![]() |
VR-Forces Development_Version Class Documentation
|
An object action that will enable/disable itself given the scenario loaded state. More...

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 () |
| Destructor. | |
| 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="") | |
| Constructor. | |
| virtual | ~DtCreateObjectAction () |
| Destructor. | |
| 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) |
| Set to true to have this action specify that it should signal on create rather than create the object on the network. | |
| virtual DtCreationSignalType | signalOnCreate () const |
| virtual void | on_aboutToShow () |
| Hide object if the force cannot be created due to FOW. | |
Public Member Functions inherited from makVrv::DtMenuItem | |
| DtMenuItem (const std::string &menuItemIdName) | |
| CTOR. | |
| virtual | ~DtMenuItem () |
| DTOR. | |
| virtual const std::string & | menuItemIdName () const |
| Get the menu id name, the menu id name is not the same thing as the visible menu text. | |
Protected Member Functions | |
| virtual QAction * | createAction (makVrv::DtDe &, QWidget *parent) |
| Build a menu item (via an action). | |
| virtual void | on_triggered () |
| 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) |
| Only should be called in response to a De tick. | |
Protected Attributes | |
| bool | myStartCreateActionOnTrigger |
Protected Attributes inherited from makVrf::DtCreateObjectAction | |
| makVrv::DtDe & | myDe |
| 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) |
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
| 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 = "" |
||
| ) |
|
virtual |
Destructor.
| void makVrf::DtSimulationBasedCreateObjectAction::setStartCreateActionOnTrigger | ( | bool | ) |
| bool makVrf::DtSimulationBasedCreateObjectAction::startCreateActionOnTrigger | ( | ) | const |
|
protectedvirtual |
Build a menu item (via an action).
Reimplemented from makVrf::DtCreateObjectAction.
|
protectedvirtual |
Reimplemented from makVrf::DtCreateObjectAction.
|
protectedvirtual |
|
protectedvirtual |
|
protected |