![]() |
VR-Forces 4.8 Class Documentation
|
A widget class for encapsulating radio commands for tasks or sets. More...

Public Member Functions | |
| DtCommandAssignmentWidget (makVrv::DtDe &de, DtCommandDialogExtensionInterface *, QWidget *parent=0, Qt::WindowFlags flags=Qt::Dialog|Qt::CustomizeWindowHint|Qt::WindowTitleHint, int partOfPlan=false) | |
| CTOR. More... | |
| virtual | ~DtCommandAssignmentWidget () |
| DTOR. More... | |
| virtual void | run (const std::vector< makVrv::DtSimEntry * > &) |
| Override to run the dialog. More... | |
| virtual void | setupUi (const std::vector< makVrv::DtSimEntry * > &, const DtSimStatement *stmt=NULL) |
| Sets up the UI. More... | |
| virtual void | connectSignals (const std::vector< makVrv::DtSimEntry * > &) |
| Call to remove dialog if an entity is destroyed that is part of the supplied list. More... | |
| virtual void | selectionChanged (const DtUUID &selection) |
| Called when myEntitySelectionWidget selection has changed. More... | |
| virtual bool | insertMapFocusHandler (DtMapFocusHandler *, int index=-1) |
| If a dialog has manages map focus handlers, inserts this map focus handler into the chain. More... | |
| void | setPartOfPlan (int b) |
| 0 - Not part of plan dialog 1 - Part of plan dialog 2 - Part of command widget More... | |
| virtual void | setBroadcastTitle (const QString &) |
| virtual DtCommandDialogExtensionInterface * | extension () |
Public Member Functions inherited from makVrf::DtCommandAssignmentWidgetInterface | |
| DtCommandAssignmentWidgetInterface () | |
| virtual | ~DtCommandAssignmentWidgetInterface () |
| DTOR. More... | |
| void | setParentMenu (DtVrfTaskSetMenu *p) |
| void | setParentContainer (DtCommandAssignmentWidgetInterface *p) |
| DtCommandAssignmentWidgetInterface * | parentContainer () |
| void | setAllowExtensionChange (bool b) |
| bool | allowExtensionChange () const |
| virtual const std::vector < makVrv::DtSimEntry * > & | connectedTo () const =0 |
Public Member Functions inherited from makVrf::DtCommandDialogExtensionInterface | |
| virtual | ~DtCommandDialogExtensionInterface () |
| virtual bool | initiallyBroadcast () const |
| Whether or not to initially set to broadcast. Default is false. More... | |
| virtual bool | allowBroadcasting () const |
| Whether or not to allow broadcasting. Default is true. More... | |
| virtual bool | hasUserEntry () const |
| Returns true if there is user entry. Default is to assume there is. More... | |
| virtual QString | entitySelectionGroupBoxTitle () const |
| If defined, title for the group box for entity selection on command widget. More... | |
| virtual void | filterAboutToBeAdded (DtVrfSelectionFilter *) |
| virtual void | parentShown (QWidget *) |
| virtual void | onCancel ()=0 |
| virtual makVrv::DtUnicode | broadcastTitle () const |
Public Attributes | |
| DtCommandDialogExtensionInterface * | myExtension |
| QSplitter * | mySplitter |
| QWidget * | myOriginalExtensionParent |
| QCheckBox * | myBroadcast |
| QGroupBox * | myEntitySelectionGroupBox |
| DtVrfFilteredListView * | myEntitySelectionWidget |
| QHBoxLayout * | myMasterLayout |
| QVBoxLayout * | myWidgetLayout |
| QFrame * | mySeparator |
| QWidget * | myButtonFrame |
| QHBoxLayout * | myButtonLayout |
| QSpacerItem * | myButtonSpacer |
| QPushButton * | myOKButton |
| QPushButton * | myCancelButton |
Public Attributes inherited from makVrf::DtCommandAssignmentWidgetInterface | |
| boost::signals2::signal< void(const std::vector < makVrv::DtSimEntry * > &)> | signal_stopWatching |
Public Attributes inherited from makVrf::DtCommandDialogExtensionInterface | |
| boost::signals2::signal< void()> | signal_cancelled |
| boost::signals2::signal< void(bool)> | signal_enableCommandModeSelection |
| Signal sent when the task becomes valid (or invalid) More... | |
| boost::signals2::signal< void(bool)> | signal_validStateChanged |
| boost::signals2::signal< void(bool)> | signal_disableCancel |
| boost::signals2::signal< void(std::vector < DtUUID > names, const DtSetDataRequest &)> | signal_sendSetRequest |
| boost::signals2::signal< void(std::vector < DtUUID > names, const DtSimTask &)> | signal_sendTaskRequest |
| boost::signals2::signal< void(const DtSimCommandObjectWrapper &)> | signal_sendCommandRequest |
| boost::signals2::signal< void(const std::vector< DtUUID > &, const DtSimTask &, DtVrfTaskSetMenu *)> | signal_commandActivated |
| boost::signals2::signal< void(const DtSimCommandObjectWrapper &)> | signal_simCommandActivated |
| boost::signals2::signal< void(const std::vector < makVrv::DtSimEntry * > &)> | signal_stopWatching |
Protected Slots | |
| virtual void | onBroadcastChanged () |
| Calls down to logic to let it know the broadcast value has changed. More... | |
| virtual void | onCancel () |
| Emits cancel signal and closes dialog. More... | |
| virtual void | onPickOK () |
| Only used in pick mode. More... | |
| const std::vector < makVrv::DtSimEntry * > & | connectedTo () const |
Protected Member Functions | |
| QWidget * | widget () |
| Returns the widget. More... | |
| virtual void | setAllowBroadcast (bool) |
| virtual bool | broadcasting () const |
| virtual void | setBroadcasting (bool) |
| virtual void | enableEntitySelectionWidget (bool) |
| virtual std::vector< std::string > | commandDialogFiltersFor (const std::vector< makVrv::DtSimEntry * > &data, const DtSimStatement *stmt, int &initialSelection) const |
| If part of a command dialog the filters to use for the command dialog selection. More... | |
| virtual void | addFilter (const DtVrfSelectionFilter *filter) |
| virtual void | setSelectedName (const DtUUID &) |
| virtual DtUUID | selectedName () const |
| virtual void | selectFilter (int) |
| virtual void | selectFirstNonEmptyFilter () |
| virtual void | setOKEnabled (bool) |
| Sets whether or not the OK button is enabled. More... | |
| virtual void | setCancelEnabled (bool) |
| Sets whether or not the Cancel button is enabled. More... | |
| virtual bool | extensionValid () const |
| virtual void | initializeFromAction (DtVrfTaskSetAction *) |
| Called to initialize from the given action. More... | |
| virtual void | commandActivated (const DtSimTask &, const std::vector< DtUUID > &, bool immediate) |
| If immediate is true, puts command assignment widget into pick mode before finishing command activated code. More... | |
| virtual void | commandActivated (const DtSimCommandObjectWrapper &, bool immediate) |
| virtual void | slot_objectAboutToBeRemoved (makVrv::DtSimObjectEntry &) |
| virtual void | attachExtension (const std::vector< makVrv::DtSimEntry * > &data, DtCommandDialogExtensionInterface *, const DtSimStatement *stmt=NULL) |
| virtual void | detachExtension () |
| virtual void | setPickMode (bool) |
| virtual bool | editStatement (const std::vector< makVrv::DtSimEntry * > &, const DtSimStatement *) |
| Edits the current statement. Return true if the statement can be edited. More... | |
| virtual std::vector < DtObjectListViewItem::DtVrfObjectState > | selectedObjects () const |
| virtual void | setAllowObjectSelection (bool b) |
| If false will hide broadcast and object selection. More... | |
| virtual bool | canSelectObjects () const |
| virtual bool | wantsSelectionOfObjectInCommandMode (const std::vector< makVrv::DtSimEntry * > &) const |
| Override to return false if, when this task is used as part of a simulation command, it does not want to allow to choose an object to apply the command to. More... | |
| virtual bool | valid () const |
| Override to return whether or not extension is valid. More... | |
| virtual void | setupFrom (const std::vector< makVrv::DtSimEntry * > &) |
| Sets up the extension for the given entries. More... | |
| virtual void | unknownObjectSelected (const DtUUID &) |
| Sets up from an empty set. More... | |
| virtual void | noObjectsSelected () |
| Called when no objects are selected. More... | |
| virtual void | onOK () |
| virtual void | hideButtons (bool) |
| If OK and Cancel buttons are present, hide them (or not) More... | |
| virtual void | showEvent (QShowEvent *) |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| DtCommandAssignmentWidgetLogic * | myLogic |
| int | myPartOfPlan |
| std::vector< makVrv::DtSimEntry * > | myConnectedTo |
| DtSimTask * | myImmediateTask |
| std::vector< DtUUID > | myImmediateNames |
| DtSimCommandObjectWrapper * | myCommandObjectWrapper |
| DtCommandDialogExtensionInterface * | myInitialExtension |
| QString | myBroadcastTitle |
| makVrv::DtSignalConnectionManager | myConnections |
Protected Attributes inherited from makVrf::DtCommandAssignmentWidgetInterface | |
| DtVrfTaskSetMenu * | myTaskSetMenu |
| DtCommandAssignmentWidgetInterface * | myParentContainer |
| bool | myAllowExtensionChange |
A widget class for encapsulating radio commands for tasks or sets.
| makVrf::DtCommandAssignmentWidget::DtCommandAssignmentWidget | ( | makVrv::DtDe & | de, |
| DtCommandDialogExtensionInterface * | , | ||
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | flags = Qt::Dialog|Qt::CustomizeWindowHint|Qt::WindowTitleHint, |
||
| int | partOfPlan = false |
||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Override to run the dialog.
Supplies data of entities that are selected for this dialog
Implements makVrf::DtCommandDialogExtensionInterface.
|
virtual |
Sets up the UI.
Implements makVrf::DtCommandAssignmentWidgetInterface.
Reimplemented in makVrf::DtEmbeddedEntityCommandAssignmentWidget.
|
virtual |
Call to remove dialog if an entity is destroyed that is part of the supplied list.
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
virtual |
Called when myEntitySelectionWidget selection has changed.
Checks if there is an extension dialog associated with this widget and if so calls down to it's selectionChanged. This allows the command widget to share selection changes with its extension when needed.
Implements makVrf::DtCommandDialogExtensionInterface.
|
virtual |
If a dialog has manages map focus handlers, inserts this map focus handler into the chain.
Will call the initial extension to do the work. Will return true if inserted into focus chain
Implements makVrf::DtCommandDialogExtensionInterface.
Reimplemented in makVrf::DtEmbeddedEntityCommandAssignmentWidget.
|
inlinevirtual |
0 - Not part of plan dialog 1 - Part of plan dialog 2 - Part of command widget
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
virtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
virtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
inlineprotectedvirtual |
Returns the widget.
Implements makVrf::DtCommandDialogExtensionInterface.
|
protectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
Reimplemented in makVrf::DtEmbeddedEntityCommandAssignmentWidget.
|
protectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
protectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
protectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
protectedvirtual |
If part of a command dialog the filters to use for the command dialog selection.
Implements makVrf::DtCommandDialogExtensionInterface.
Reimplemented in makVrf::DtEmbeddedEntityCommandAssignmentWidget.
|
protectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
protectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
protectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
protectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
protectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
protectedvirtual |
Sets whether or not the OK button is enabled.
Implements makVrf::DtCommandDialogExtensionInterface.
|
protectedvirtual |
Sets whether or not the Cancel button is enabled.
Implements makVrf::DtCommandDialogExtensionInterface.
|
protectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
protectedvirtual |
Called to initialize from the given action.
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
protectedvirtual |
If immediate is true, puts command assignment widget into pick mode before finishing command activated code.
Pick mode will create ok and cancel buttons. The ok and cancel buttons of this class will be NULL unless in pick mode
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
protectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in makVrf::DtEmbeddedEntityCommandAssignmentWidget.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Edits the current statement. Return true if the statement can be edited.
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
protectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
protectedvirtual |
If false will hide broadcast and object selection.
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
protectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
protectedvirtual |
Override to return false if, when this task is used as part of a simulation command, it does not want to allow to choose an object to apply the command to.
Calls down to logic with method of same name
Implements makVrf::DtCommandDialogExtensionInterface.
|
protectedvirtual |
Override to return whether or not extension is valid.
Implements makVrf::DtCommandDialogExtensionInterface.
|
protectedvirtual |
Sets up the extension for the given entries.
Implements makVrf::DtCommandDialogExtensionInterface.
|
protectedvirtual |
Sets up from an empty set.
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
protectedvirtual |
Called when no objects are selected.
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
protectedvirtual |
Implements makVrf::DtCommandDialogExtensionInterface.
|
inlineprotectedvirtual |
If OK and Cancel buttons are present, hide them (or not)
Implements makVrf::DtCommandDialogExtensionInterface.
|
protectedvirtual |
|
protectedvirtualslot |
Calls down to logic to let it know the broadcast value has changed.
|
protectedvirtualslot |
Emits cancel signal and closes dialog.
|
protectedvirtualslot |
Only used in pick mode.
|
inlineprotectedslot |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| DtCommandDialogExtensionInterface* makVrf::DtCommandAssignmentWidget::myExtension |
| QSplitter* makVrf::DtCommandAssignmentWidget::mySplitter |
| QWidget* makVrf::DtCommandAssignmentWidget::myOriginalExtensionParent |
| QCheckBox* makVrf::DtCommandAssignmentWidget::myBroadcast |
| QGroupBox* makVrf::DtCommandAssignmentWidget::myEntitySelectionGroupBox |
| DtVrfFilteredListView* makVrf::DtCommandAssignmentWidget::myEntitySelectionWidget |
| QHBoxLayout* makVrf::DtCommandAssignmentWidget::myMasterLayout |
| QVBoxLayout* makVrf::DtCommandAssignmentWidget::myWidgetLayout |
| QFrame* makVrf::DtCommandAssignmentWidget::mySeparator |
| QWidget* makVrf::DtCommandAssignmentWidget::myButtonFrame |
| QHBoxLayout* makVrf::DtCommandAssignmentWidget::myButtonLayout |
| QSpacerItem* makVrf::DtCommandAssignmentWidget::myButtonSpacer |
| QPushButton* makVrf::DtCommandAssignmentWidget::myOKButton |
| QPushButton* makVrf::DtCommandAssignmentWidget::myCancelButton |