![]() |
VR-Forces 4.7 Class Documentation
|
The DtVrfTaskSetDialogManager maintains the dialogs that are used to show for specific tasks/sets. More...

Public Member Functions | |
| DtVrfTaskSetDialogManager (makVrv::DtDe &) | |
| CTOR. Registers all known dialogs with manager. | |
| virtual | ~DtVrfTaskSetDialogManager () |
| DTOR. | |
| virtual DtTaskSetDialogInterface * | processDialogFor (int menuItemType, QWidget *parent, DtVrfTaskSetAction *forAction, const std::vector< makVrv::DtSimEntry * > &data, int partOfPlan=0) |
| Creates dialog and then sends out various signals at creation process to allow user to add functionality. | |
| virtual DtCommandAssignmentWidgetInterface * | processCommandActionDialog (int menuItemType, QWidget *parent, DtVrfTaskSetAction *forAction, const std::vector< makVrv::DtSimEntry * > &data, int partOfPlan=0) |
| Creates a command assignment widget but does not connect it to anything (other than the destruction of the dialog). | |
| bool | dialogInProgress () const |
| int | dialogsInProgress () const |
| virtual bool | useNewStyleCommandDialog () const |
| virtual int | nextAvailableId () const |
| Starting at the user menu start item, return the next available id. | |
| virtual void | addTaskDialogCreator (int menuItemType, DtVrfTaskDialogCreator *) |
| Adds items into the factory. | |
| virtual void | addSetDialogCreator (int menuItemType, DtVrfSetDialogCreator *) |
| virtual bool | removeTaskDialogCreator (int menuItemType) |
| Removes the dialog creator, effectively disabling the task/set menu item. Returns true if removed. | |
| virtual bool | removeSetDialogCreator (int menuItemType) |
| virtual bool | hasTaskDialogCreator (int menuItemType, const makVrv::DtSelectionManager::IdSet &ids, int partOfPlanDialog) |
| Returns true if the dialog has a creator. | |
| virtual bool | hasSetDialogCreator (int menuItemType, const makVrv::DtSelectionManager::IdSet &ids, int partOfPlanDialog) |
| virtual void | removeAllDialogCreators () |
| Removes all dialog creators. | |
| virtual bool | statementIsEditable (const DtSimStatement *) const |
| Returns true if statement is editable. | |
| virtual bool | isCommandStatement (const DtSimStatement *) const |
| Returns true if this is a command dialog statement. | |
| virtual DtTaskSetDialogInterface * | createDialogFor (const DtSimTaskMessageType &type, const DtSimStatement *stmt, QWidget *parent, bool registerDialog=true) |
| Creates a dialog, connects signals, and returns the pointer. | |
| virtual DtTaskSetDialogInterface * | createDialogFor (const DtSetMessageType &type, const DtSimStatement *stmt, QWidget *parent, bool registerDialog=true) |
| virtual DtTaskSetDialogInterface * | createDialogFor (const DtSimStatement *stmt, QWidget *parent, bool registerDialog=true) |
| virtual DtCommandAssignmentWidgetInterface * | createCommandDialogFor (const DtSimStatement *stmt, QWidget *parent, int partOfPlan) |
| Creates a command dialog, connects signals and returns the pointer. | |
| virtual DtCommandAssignmentWidgetInterface * | createCommandDialogFor (int menuItemType, QWidget *parent, int partOfPlan) |
| virtual DtSimTaskMessageType | taskTypeFromStatement (const DtSimStatement *stmt) const |
| Returns the type based on the sim statement. | |
| virtual DtSetMessageType | setTypeFromStatement (const DtSimStatement *stmt) const |
| virtual DtCommandAssignmentWidgetInterface * | createCommandActionDialog (QWidget *, DtCommandDialogExtensionInterface *, int partOfPlan) |
| Creates command action dialog. Override to create your own instance. | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtVrfTaskSetDialogManager & | instance (makVrv::DtDe &de) |
| Returns instance of the messager. | |
Public Attributes | |
| boost::signal< void(DtTaskSetDialogInterface *)> | signal_dialogCreated |
| Signal sent when the dialog is created but before it is run. | |
| boost::signal< void(DtCommandAssignmentWidgetInterface *)> | signal_commandDialogCreated |
| Signal sent when the dialog is created but before it is run. | |
| boost::signal< void(DtCommandAssignmentWidgetInterface *)> | signal_commandDialogDestroyed |
| Signal sent when the dialog is destroyed. | |
| boost::signal< void(DtTaskSetDialogInterface *)> | signal_dialogDestroyed |
| Signal sent when the dialog is destroyed. | |
| boost::signal< void(int)> | signal_dialogsInProgress |
| Signal sent when dialogs are/are not in progress. | |
Protected Types | |
| typedef std::vector < makVrv::DtSelectionManager::IdSet > | Selections |
Protected Member Functions | |
| virtual void | slot_onDialogDestroyed (DtTaskSetDialogInterface *) |
| virtual void | slot_onCommandDialogDestroyed (DtCommandAssignmentWidgetInterface *) |
| virtual void | prepDialog (DtTaskSetDialogInterface *, DtVrfTaskSetAction *forAction, int partOfPlan) |
| Emits signals about dialog state and makes connections on dialog to allow for task/set activation. | |
| virtual void | prepDialog (DtCommandAssignmentWidgetInterface *, DtVrfTaskSetAction *forAction, int partOfPlan) |
| virtual void | slot_scriptAddedToTaskMenu (int, std::string) |
| Called when a new scripted task is added. Set up dialog creator. | |
| virtual void | slot_scriptRemovedFromTaskMenu (int, std::string) |
| Called when a new scripted task is removed. Remove dialog creator. | |
| virtual void | slot_scriptAddedToSetMenu (int, std::string) |
| Called when a new scripted set is added. Set up dialog creator. | |
| virtual void | slot_scriptRemovedFromSetMenu (int, std::string) |
| Called when a new scripted set is removed. Remove dialog creator. | |
| virtual void | pushSelections () |
| Save/restore current selections around dialog usage. | |
| virtual void | popSelections () |
Private Types | |
| typedef std::map< int, DtVrfTaskDialogCreator * > | DtVrfTaskDialogCreatorMap |
| typedef std::map< int, DtVrfSetDialogCreator * > | DtVrfSetDialogCreatorMap |
The DtVrfTaskSetDialogManager maintains the dialogs that are used to show for specific tasks/sets.
Use this class to register or replace existing task/set dialog functionality
|
private |
|
private |
|
protected |
| makVrf::DtVrfTaskSetDialogManager::DtVrfTaskSetDialogManager | ( | makVrv::DtDe & | ) |
CTOR. Registers all known dialogs with manager.
|
virtual |
DTOR.
|
static |
Returns instance of the messager.
|
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 task/set request for the dialog
|
virtual |
Creates a command assignment widget but does not connect it to anything (other than the destruction of the dialog).
It is up to the caller of this function to assign functionality to the signals emitted by the dialog
|
inline |
|
inline |
|
virtual |
|
virtual |
Starting at the user menu start item, return the next available id.
Call this to add items from a plugin to figure out a unique id
|
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 DtVrfTaskSetDialogCreator and implementing the create(QWidget*) method
|
virtual |
Removes the dialog creator, effectively disabling the task/set menu item. Returns true if removed.
|
virtual |
Returns true if the dialog has a creator.
|
virtual |
|
virtual |
Removes all dialog creators.
|
virtual |
Returns true if statement is editable.
|
virtual |
Returns true if this is a command dialog statement.
|
virtual |
Creates a dialog, connects signals, and returns the pointer.
Call run() to start execution of dialog. The type is the task or set statement type
|
virtual |
|
virtual |
|
virtual |
Creates a command dialog, connects signals and returns the pointer.
|
virtual |
|
virtual |
Returns the type based on the sim statement.
|
virtual |
|
virtual |
Creates command action dialog. Override to create your own instance.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Emits signals about dialog state and makes connections on dialog to allow for task/set activation.
|
protectedvirtual |
|
protectedvirtual |
Called when a new scripted task is added. Set up dialog creator.
|
protectedvirtual |
Called when a new scripted task is removed. Remove dialog creator.
|
protectedvirtual |
Called when a new scripted set is added. Set up dialog creator.
|
protectedvirtual |
Called when a new scripted set is removed. Remove dialog creator.
|
protectedvirtual |
Save/restore current selections around dialog usage.
|
protectedvirtual |
| boost::signal<void (DtTaskSetDialogInterface*)> makVrf::DtVrfTaskSetDialogManager::signal_dialogCreated |
Signal sent when the dialog is created but before it is run.
| boost::signal<void (DtCommandAssignmentWidgetInterface*)> makVrf::DtVrfTaskSetDialogManager::signal_commandDialogCreated |
Signal sent when the dialog is created but before it is run.
| boost::signal<void (DtCommandAssignmentWidgetInterface*)> makVrf::DtVrfTaskSetDialogManager::signal_commandDialogDestroyed |
Signal sent when the dialog is destroyed.
| boost::signal<void (DtTaskSetDialogInterface*)> makVrf::DtVrfTaskSetDialogManager::signal_dialogDestroyed |
Signal sent when the dialog is destroyed.
| boost::signal<void (int)> makVrf::DtVrfTaskSetDialogManager::signal_dialogsInProgress |
Signal sent when dialogs are/are not in progress.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |