![]() |
VR-Forces Developer's Guide
|
A widget class for encapsulating radio commands for tasks or sets.

Public Slots | |
| virtual void | onCancel () override |
| virtual void | onPickOK () |
Signals | |
| void | unlockPlan () |
Public Member Functions | |
| DtCommandAssignmentWidget (makVrv::DtDe &de, DtCommandDialogExtensionInterface *, QWidget *parent=0, Qt::WindowFlags flags=Qt::Dialog|Qt::CustomizeWindowHint|Qt::WindowTitleHint, int partOfPlan=false) | |
| virtual | ~DtCommandAssignmentWidget () override |
| virtual void | run (const std::set< makVrv::DtUniqueID > &) override |
| virtual void | setupUi (const std::set< makVrv::DtUniqueID > &, const DtSimStatement *stmt=NULL) override |
| virtual void | connectSignals (const std::set< makVrv::DtUniqueID > &) override |
| virtual void | selectionChanged (const DtUUID &selection) override |
| virtual bool | insertMapFocusHandler (DtMapFocusHandlerInterface *, int index=-1) override |
| virtual void | setPartOfPlan (int b) override |
| virtual void | setBroadcastTitle (const QString &) override |
| virtual DtCommandDialogExtensionInterface * | extension () override |
| virtual QWidget * | takeOKCancelButtonCanvas (QWidget *newParent) override |
| virtual void | giveOKCancelButtonCanvas (QWidget *) override |
| virtual bool | alwaysPopOut () const override |
| virtual bool | okEnabled () const override |
| virtual void | setReadOnlyMode (bool b) override |
Public Member Functions inherited from makVrf::DtCommandAssignmentWidgetInterface | |
| DtCommandAssignmentWidgetInterface () | |
| virtual | ~DtCommandAssignmentWidgetInterface () override |
| void | setParentMenu (DtVrfTaskSetMenu *p) |
| void | setParentContainer (DtCommandAssignmentWidgetInterface *p) |
| DtCommandAssignmentWidgetInterface * | parentContainer () |
| void | setAllowExtensionChange (bool b) |
| bool | allowExtensionChange () const |
| virtual const std::set < makVrv::DtUniqueID > & | connectedTo () const =0 |
Public Member Functions inherited from makVrf::DtCommandDialogExtensionInterface | |
| virtual | ~DtCommandDialogExtensionInterface () |
| virtual bool | initiallyBroadcast () const |
| virtual bool | allowBroadcasting () const |
| virtual bool | hasUserEntry () const |
| virtual QString | entitySelectionGroupBoxTitle () const |
| virtual void | filterAboutToBeAdded (DtVrfSelectionFilter *) |
| virtual void | parentShown (QWidget *) |
| virtual void | onCancel ()=0 |
| virtual makVrv::DtUnicode | broadcastTitle () const |
Protected Slots | |
| virtual void | onBroadcastChanged () |
| virtual const std::set < makVrv::DtUniqueID > & | connectedTo () const override |
Protected Member Functions | |
| virtual QWidget * | widget () override |
| virtual void | setAllowBroadcast (bool) override |
| virtual bool | broadcasting () const override |
| virtual void | setBroadcasting (bool) override |
| virtual void | enableEntitySelectionWidget (bool) override |
| virtual std::vector< std::string > | commandDialogFiltersFor (const std::set< makVrv::DtUniqueID > &data, const DtSimStatement *stmt, int &initialSelection) const override |
| virtual void | addFilter (const DtVrfSelectionFilter *filter) override |
| virtual void | setSelectedName (const DtUUID &) override |
| virtual DtUUID | selectedName () const override |
| virtual void | selectFilter (int) override |
| virtual void | selectFirstNonEmptyFilter () override |
| virtual void | setApplyVisible (bool) override |
| virtual void | setOKEnabled (bool) override |
| virtual void | setCancelEnabled (bool) override |
| virtual void | setCancelButtonText (const QString &) override |
| virtual bool | extensionValid () const override |
| virtual void | initializeFromAction (DtVrfTaskSetAction *) override |
| virtual void | commandActivated (const DtSimTask &, const std::vector< DtUUID > &, bool immediate) override |
| virtual void | commandActivated (const DtSimCommandObjectWrapper &, bool immediate) override |
| virtual QWidget * | sizeToParent () const |
| virtual void | closeEvent (QCloseEvent *) override |
| virtual void | changeEvent (QEvent *event) override |
| virtual void | slot_objectAboutToBeRemoved (DtSimObjectReference) |
| virtual void | attachExtension (const std::set< makVrv::DtUniqueID > &data, DtCommandDialogExtensionInterface *, const DtSimStatement *stmt=NULL) |
| virtual void | detachExtension () |
| virtual void | setPickMode (bool) |
| virtual bool | editStatement (const std::set< makVrv::DtUniqueID > &, const DtSimStatement *) override |
| virtual std::vector < DtSimObjectReference > | selectedObjects () const override |
| virtual void | setAllowObjectSelection (bool b) override |
| virtual bool | canSelectObjects () const override |
| virtual bool | wantsSelectionOfObjectInCommandMode (const std::set< makVrv::DtUniqueID > &) const override |
| virtual bool | valid () const override |
| virtual void | setupFrom (const std::set< makVrv::DtUniqueID > &) override |
| virtual void | unknownObjectSelected (const DtUUID &) override |
| virtual void | noObjectsSelected () override |
| virtual void | onOK () override |
| virtual void | hideButtons (bool) override |
| virtual void | showEvent (QShowEvent *) override |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| DtCommandAssignmentWidgetLogic * | myLogic |
| int | myPartOfPlan |
| std::set< makVrv::DtUniqueID > | myConnectedTo |
| DtSimTask * | myImmediateTask |
| std::vector< DtUUID > | myImmediateNames |
| DtSimCommandObjectWrapper * | myCommandObjectWrapper |
| DtCommandDialogExtensionInterface * | myInitialExtension |
| QString | myBroadcastTitle |
| makVrv::DtSignalConnectionManager | myConnections |
| bool | myReadOnlyMode = false |
| bool | myOKEnabled = false |
| DtMapFocusHandler | myMapFocusHandler |
| bool | mySignaled = false |
Protected Attributes inherited from makVrf::DtCommandAssignmentWidgetInterface | |
| DtVrfTaskSetMenu * | myTaskSetMenu |
| DtCommandAssignmentWidgetInterface * | myParentContainer |
| bool | myAllowExtensionChange |
| makVrf::DtCommandAssignmentWidget::DtCommandAssignmentWidget | ( | makVrv::DtDe & | de, |
| DtCommandDialogExtensionInterface * | , | ||
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | flags = Qt::Dialog|Qt::CustomizeWindowHint|Qt::WindowTitleHint, |
||
| int | partOfPlan = false |
||
| ) |
CTOR.
|
overridevirtual |
DTOR.
|
overridevirtual |
Override to run the dialog. Supplies data of entities that are selected for this dialog.
Implements makVrf::DtCommandDialogExtensionInterface.
|
overridevirtual |
Sets up the UI.
Implements makVrf::DtCommandAssignmentWidgetInterface.
Reimplemented in makVrf::DtEmbeddedEntityCommandAssignmentWidget.
|
overridevirtual |
Call to remove dialog if an entity is destroyed that is part of the supplied list.
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
overridevirtual |
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.
|
overridevirtual |
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.
|
inlineoverridevirtual |
0 - Not part of plan dialog 1 - Part of plan dialog 2 - Part of command widget
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
overridevirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
overridevirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
overridevirtual |
This will return the OK/Cancel cavas that the current OK/Cancel buttons are on. You can use this to reparent to another widget.
Implements makVrf::DtCommandDialogExtensionInterface.
|
overridevirtual |
Gives the canvas back to this widget.
Implements makVrf::DtCommandDialogExtensionInterface.
|
overridevirtual |
Check extension, if it exists, to see if it wants to pop out.
Reimplemented from makVrf::DtCommandDialogExtensionInterface.
|
overridevirtual |
Whether or not the OK button is enabled.
Implements makVrf::DtCommandDialogExtensionInterface.
|
overridevirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
signal |
|
inlineoverrideprotectedvirtual |
Returns the widget.
Implements makVrf::DtCommandDialogExtensionInterface.
|
overrideprotectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
Reimplemented in makVrf::DtEmbeddedEntityCommandAssignmentWidget.
|
overrideprotectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
overrideprotectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
overrideprotectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
overrideprotectedvirtual |
If part of a command dialog the filters to use for the command dialog selection.
Implements makVrf::DtCommandDialogExtensionInterface.
Reimplemented in makVrf::DtEmbeddedEntityCommandAssignmentWidget.
|
overrideprotectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
overrideprotectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
overrideprotectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
overrideprotectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
overrideprotectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
overrideprotectedvirtual |
No-op. No apply button for this widget.
Implements makVrf::DtCommandDialogExtensionInterface.
|
overrideprotectedvirtual |
Sets whether or not the OK button is enabled.
Implements makVrf::DtCommandDialogExtensionInterface.
|
overrideprotectedvirtual |
Sets whether or not the Cancel button is enabled.
Implements makVrf::DtCommandDialogExtensionInterface.
|
overrideprotectedvirtual |
Sets the Cancel button text.
Implements makVrf::DtCommandDialogExtensionInterface.
|
overrideprotectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
overrideprotectedvirtual |
Called to initialize from the given action.
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
overrideprotectedvirtual |
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.
|
overrideprotectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
protectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in makVrf::DtEmbeddedEntityCommandAssignmentWidget.
|
protectedvirtual |
|
protectedvirtual |
|
overrideprotectedvirtual |
Edits the current statement. Return true if the statement can be edited.
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
overrideprotectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
overrideprotectedvirtual |
If false will hide broadcast and object selection.
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
overrideprotectedvirtual |
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
overrideprotectedvirtual |
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.
|
overrideprotectedvirtual |
Override to return whether or not extension is valid.
Implements makVrf::DtCommandDialogExtensionInterface.
|
overrideprotectedvirtual |
Sets up the extension for the given entries.
Implements makVrf::DtCommandDialogExtensionInterface.
|
overrideprotectedvirtual |
Sets up from an empty set.
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
overrideprotectedvirtual |
Called when no objects are selected.
Implements makVrf::DtCommandAssignmentWidgetInterface.
|
overrideprotectedvirtual |
Implements makVrf::DtCommandDialogExtensionInterface.
|
inlineoverrideprotectedvirtual |
If OK and Cancel buttons are present, hide them (or not)
Implements makVrf::DtCommandDialogExtensionInterface.
|
overrideprotectedvirtual |
|
overridevirtualslot |
Emits cancel signal and closes dialog.
|
virtualslot |
Only used in pick mode.
|
protectedvirtualslot |
Calls down to logic to let it know the broadcast value has changed.
|
inlineoverrideprotectedvirtualslot |
|
protected |
|
protected |
|
protected |
|
protected |
|
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 |
| QWidget* makVrf::DtCommandAssignmentWidget::myEntitySelectionGroupBox |
| QLabel* makVrf::DtCommandAssignmentWidget::myEntitySelectionGroupBoxLabel |
| QFrame* makVrf::DtCommandAssignmentWidget::myEntitySelectionGroupBoxLine |
| DtVrfFilteredListView* makVrf::DtCommandAssignmentWidget::myEntitySelectionWidget |
| QVBoxLayout* makVrf::DtCommandAssignmentWidget::myMasterLayout |
| QVBoxLayout* makVrf::DtCommandAssignmentWidget::myWidgetLayout |
| QFrame* makVrf::DtCommandAssignmentWidget::mySeparator |
| QWidget* makVrf::DtCommandAssignmentWidget::myOKCancelButtonCanvas |
| QHBoxLayout* makVrf::DtCommandAssignmentWidget::myButtonLayout |
| QSpacerItem* makVrf::DtCommandAssignmentWidget::myButtonSpacer |
| QPushButton* makVrf::DtCommandAssignmentWidget::myOKButton |
| QToolButton* makVrf::DtCommandAssignmentWidget::myLockButton |
| QPushButton* makVrf::DtCommandAssignmentWidget::myCancelButton |