![]() |
VR-Forces Developer's Guide
|
An object action that will enable/disable itself given the scenario loaded state. Use if you want to be able to control the fact that the object will not be able to be created until the scenario is active.
Set the myStartCreateActionOnTrigger flag to true (default) to create the item when the action is triggered, else will call base class representation which will emit the Qt createObject signal

Public Member Functions | |
| DtSimulationBasedCreateObjectAction (makVrv::DtDe &de, const std::string &path, const QString &title, const DtEntityMapperKey &o, const std::string &keywords="", const std::string &menuIcon="", const std::string &toolTip="") | |
| virtual | ~DtSimulationBasedCreateObjectAction () override |
| void | setStartCreateActionOnTrigger (bool) |
| bool | startCreateActionOnTrigger () const |
Public Member Functions inherited from makVrf::DtCreateObjectAction | |
| DtCreateObjectAction (makVrv::DtDe &de, const std::string &path, const QString &title, const DtEntityMapperKey &o, const std::string &keywords="", const std::string &menuIcon="", const std::string &toolTip="") | |
| virtual | ~DtCreateObjectAction () override |
| virtual DtEntityMapperKey | objectType () const |
| virtual int | forceType () const |
| virtual const std::string & | keywords () const |
| virtual const std::string & | menuIcon () const |
| virtual const std::string & | toolTip () const |
| virtual void | setSignalOnCreate (DtCreationSignalType creationSignal) |
| virtual DtCreationSignalType | signalOnCreate () const |
| virtual void | on_aboutToShow () override |
| virtual int | forceFromKey (const DtEntityMapperKey &key) const |
Public Member Functions inherited from makVrv::DtMenuItem | |
| DtMenuItem (const std::string &menuItemIdName) | |
| virtual | ~DtMenuItem () |
| virtual const std::string & | menuItemIdName () const |
Protected Member Functions | |
| virtual QAction * | createAction (makVrv::DtDe &, QWidget *parent) override |
| virtual void | on_triggered () override |
| virtual void | enableAction () |
| virtual void | slot_backendUpdated (const DtVrfBackendState &, int changedFlags) |
Protected Member Functions inherited from makVrf::DtCreateObjectAction | |
| virtual void | setIconFromTick (makVrv::DtDe *de, QAction *act) |
| virtual void | slot_defaultIconListChanged () |
Protected Attributes | |
| bool | myStartCreateActionOnTrigger |
Protected Attributes inherited from makVrf::DtCreateObjectAction | |
| makVrv::DtDe & | myDe |
| makVrv::DtSignalConnectionManager | myConnections |
| DtEntityMapperKey | myObjectType |
| QString | myTitle |
| DtCreationSignalType | mySignalOnCreate |
| std::string | myKeywords |
| std::string | myToolTip |
| std::string | myMenuIcon |
| QAction * | myAction |
Protected Attributes inherited from makVrv::DtMenuItem | |
| std::string | myMenuIdName |
Additional Inherited Members | |
Signals inherited from makVrf::DtCreateObjectAction | |
| void | createObject (const DtEntityMapperKey &, int force, const std::string &) |
Protected Slots inherited from makVrv::DtMenuItem | |
| virtual void | on_checkStateChanged (bool) |
| makVrf::DtSimulationBasedCreateObjectAction::DtSimulationBasedCreateObjectAction | ( | makVrv::DtDe & | de, |
| const std::string & | path, | ||
| const QString & | title, | ||
| const DtEntityMapperKey & | o, | ||
| const std::string & | keywords = "", |
||
| const std::string & | menuIcon = "", |
||
| const std::string & | toolTip = "" |
||
| ) |
|
overridevirtual |
Destructor.
| void makVrf::DtSimulationBasedCreateObjectAction::setStartCreateActionOnTrigger | ( | bool | ) |
| bool makVrf::DtSimulationBasedCreateObjectAction::startCreateActionOnTrigger | ( | ) | const |
|
overrideprotectedvirtual |
Build a menu item (via an action).
Reimplemented from makVrf::DtCreateObjectAction.
|
overrideprotectedvirtual |
Reimplemented from makVrf::DtCreateObjectAction.
|
protectedvirtual |
|
protectedvirtual |
|
protected |