![]() |
VR-Forces 4.0.4 Class Documentation
|
The Master Scenario Settings Dialog. More...

Public Member Functions | |
| DtVrfSimulationCommandDialogManager (makVrv::DtDe &) | |
| CTOR. Registers all known dialogs with manager. | |
| virtual | ~DtVrfSimulationCommandDialogManager () |
| DTOR. | |
| virtual DtCommandAssignmentWidgetInterface * | createCommandDialogFor (const std::string &menuItemType, QWidget *parent, DtVrfSimulationCommandAction *forAction, const std::vector< makVrv::DtSimEntry * > &data) |
| Creates dialog and then sends out various signals at creation process to allow user to add functionality. | |
| virtual DtCommandAssignmentWidgetInterface * | createCommandDialogFor (const DtSimStatement *, QWidget *parent) |
| virtual DtCommandAssignmentWidgetInterface * | createCommandDialogFor (const DtSimCommand *simCommand, QWidget *parent) |
| Create a dialog based on a DtTaskCommand or DtSetDataCommand. | |
| virtual DtCommandAssignmentWidgetInterface * | createCommandDialogFor (QWidget *parent, DtCommandAssignmentWidgetInterface *) |
| virtual DtTaskStmt * | statementFromSimCommand (const DtSimCommand *simCommand) const |
| bool | dialogInProgress () const |
| virtual std::string | objectNameFromStatement (const DtSimCommandStmt *) |
| Given the simulation command, return the name it is applied to. | |
| virtual void | addDialogCreator (const std::string &menuItemType, DtVrfSimulationCommandDialogCreator *) |
| Adds items into the factory. | |
| virtual bool | removeDialogCreator (const std::string &menuItemType) |
| Removes the dialog creator. Returns true if removed. | |
| virtual bool | hasDialogCreator (const std::string &menuItemType) |
| Returns true if the dialog has a creator. | |
| virtual void | removeAllDialogCreators () |
| Removes all dialog creators. | |
| virtual bool | statementIsEditable (const DtSimStatement *) const |
| Returns true if statement is editable. | |
Static Public Member Functions | |
| static DtVrfSimulationCommandDialogManager & | instance (makVrv::DtDe &de) |
| Returns instance of the messager. | |
Public Attributes | |
| boost::signal< void(DtCommandAssignmentWidgetInterface *)> | signal_dialogCreated |
| Signal sent when the dialog is created but before it is run. | |
| boost::signal< void(DtCommandAssignmentWidgetInterface *)> | signal_dialogDestroyed |
| Signal sent when the dialog is destroyed. | |
Protected Member Functions | |
| virtual void | slot_onDialogDestroyed (DtCommandAssignmentWidgetInterface *) |
| virtual void | prepDialog (DtCommandAssignmentWidgetInterface *, DtVrfSimulationCommandAction *forAction) |
| Emits signals about dialog state and makes connections on dialog to allow for simulation command activation. | |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| DtVrfSimulationCommandDialogCreatorMap | myDialogCreatorMap |
| DtVrfSimulationCommandDialogSignalHandler | mySimulationCommandDialogSignalHandler |
| bool | myDialogInProgress |
Private Types | |
| typedef std::map< std::string, DtVrfSimulationCommandDialogCreator * > | DtVrfSimulationCommandDialogCreatorMap |
The Master Scenario Settings Dialog.
typedef std::map<std::string, DtVrfSimulationCommandDialogCreator*> makVrf::DtVrfSimulationCommandDialogManager::DtVrfSimulationCommandDialogCreatorMap [private] |
CTOR. Registers all known dialogs with manager.
| virtual makVrf::DtVrfSimulationCommandDialogManager::~DtVrfSimulationCommandDialogManager | ( | ) | [virtual] |
DTOR.
| static DtVrfSimulationCommandDialogManager& makVrf::DtVrfSimulationCommandDialogManager::instance | ( | makVrv::DtDe & | de | ) | [static] |
Returns instance of the messager.
| virtual DtCommandAssignmentWidgetInterface* makVrf::DtVrfSimulationCommandDialogManager::createCommandDialogFor | ( | const std::string & | menuItemType, |
| QWidget * | parent, | ||
| DtVrfSimulationCommandAction * | forAction, | ||
| const std::vector< makVrv::DtSimEntry * > & | data | ||
| ) | [virtual] |
Creates dialog and then sends out various signals at creation process to allow user to add functionality.
Connects to slot in the action to process the resulting simulation command request for the dialog
| virtual DtCommandAssignmentWidgetInterface* makVrf::DtVrfSimulationCommandDialogManager::createCommandDialogFor | ( | const DtSimStatement * | , |
| QWidget * | parent | ||
| ) | [virtual] |
| virtual DtCommandAssignmentWidgetInterface* makVrf::DtVrfSimulationCommandDialogManager::createCommandDialogFor | ( | const DtSimCommand * | simCommand, |
| QWidget * | parent | ||
| ) | [virtual] |
Create a dialog based on a DtTaskCommand or DtSetDataCommand.
Will repackage as representative DtSendSetMessageTask or DtSendTaskMessageTask and pass to createCommandDialogFor passing in a sim statement
| virtual DtCommandAssignmentWidgetInterface* makVrf::DtVrfSimulationCommandDialogManager::createCommandDialogFor | ( | QWidget * | parent, |
| DtCommandAssignmentWidgetInterface * | |||
| ) | [virtual] |
| virtual DtTaskStmt* makVrf::DtVrfSimulationCommandDialogManager::statementFromSimCommand | ( | const DtSimCommand * | simCommand | ) | const [virtual] |
| bool makVrf::DtVrfSimulationCommandDialogManager::dialogInProgress | ( | ) | const [inline] |
| virtual std::string makVrf::DtVrfSimulationCommandDialogManager::objectNameFromStatement | ( | const DtSimCommandStmt * | ) | [virtual] |
Given the simulation command, return the name it is applied to.
Asks dialog creators to return name if the statement is editable by that type
| virtual void makVrf::DtVrfSimulationCommandDialogManager::addDialogCreator | ( | const std::string & | menuItemType, |
| DtVrfSimulationCommandDialogCreator * | |||
| ) | [virtual] |
Adds items into the factory.
The memory will be taked as owned by the factory. The pattern should be passing in a subclass of DtVrfSimulationCommandDialogCreator and implementing the create(QWidget*) method
| virtual bool makVrf::DtVrfSimulationCommandDialogManager::removeDialogCreator | ( | const std::string & | menuItemType | ) | [virtual] |
Removes the dialog creator. Returns true if removed.
| virtual bool makVrf::DtVrfSimulationCommandDialogManager::hasDialogCreator | ( | const std::string & | menuItemType | ) | [virtual] |
Returns true if the dialog has a creator.
| virtual void makVrf::DtVrfSimulationCommandDialogManager::removeAllDialogCreators | ( | ) | [virtual] |
Removes all dialog creators.
| virtual bool makVrf::DtVrfSimulationCommandDialogManager::statementIsEditable | ( | const DtSimStatement * | ) | const [virtual] |
Returns true if statement is editable.
| virtual void makVrf::DtVrfSimulationCommandDialogManager::slot_onDialogDestroyed | ( | DtCommandAssignmentWidgetInterface * | ) | [protected, virtual] |
| virtual void makVrf::DtVrfSimulationCommandDialogManager::prepDialog | ( | DtCommandAssignmentWidgetInterface * | , |
| DtVrfSimulationCommandAction * | forAction | ||
| ) | [protected, virtual] |
Emits signals about dialog state and makes connections on dialog to allow for simulation command activation.
| boost::signal<void (DtCommandAssignmentWidgetInterface*)> makVrf::DtVrfSimulationCommandDialogManager::signal_dialogCreated |
Signal sent when the dialog is created but before it is run.
| boost::signal<void (DtCommandAssignmentWidgetInterface*)> makVrf::DtVrfSimulationCommandDialogManager::signal_dialogDestroyed |
Signal sent when the dialog is destroyed.
DtVrfSimulationCommandDialogCreatorMap makVrf::DtVrfSimulationCommandDialogManager::myDialogCreatorMap [protected] |
DtVrfSimulationCommandDialogSignalHandler makVrf::DtVrfSimulationCommandDialogManager::mySimulationCommandDialogSignalHandler [protected] |