![]() |
VR-Forces 4.0.4 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) | |
| virtual | ~DtSimulationBasedCreateObjectAction () |
| Destructor. | |
| void | setStartCreateActionOnTrigger (bool) |
| bool | startCreateActionOnTrigger () const |
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 Attributes | |
| bool | myStartCreateActionOnTrigger |
| makVrv::DtDe & | myDe |
| QAction * | myAction |
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 | ||
| ) |
| virtual makVrf::DtSimulationBasedCreateObjectAction::~DtSimulationBasedCreateObjectAction | ( | ) | [virtual] |
Destructor.
| virtual QAction* makVrf::DtSimulationBasedCreateObjectAction::createAction | ( | makVrv::DtDe & | , |
| QWidget * | parent | ||
| ) | [protected, virtual] |
Build a menu item (via an action).
Reimplemented from makVrf::DtCreateObjectAction.
| virtual void makVrf::DtSimulationBasedCreateObjectAction::on_triggered | ( | ) | [protected, virtual] |
Reimplemented from makVrf::DtCreateObjectAction.
| virtual void makVrf::DtSimulationBasedCreateObjectAction::enableAction | ( | ) | [protected, virtual] |
| virtual void makVrf::DtSimulationBasedCreateObjectAction::slot_backendUpdated | ( | const DtVrfBackendState & | , |
| int | changedFlags | ||
| ) | [protected, virtual] |