![]() |
VR-Forces 4.0.4 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) | |
| CTOR. | |
| virtual | ~DtCommandAssignmentWidget () |
| DTOR. | |
| virtual void | run (const std::vector< makVrv::DtSimEntry * > &) |
| Override to run the dialog. | |
| virtual void | setupUi (const std::vector< makVrv::DtSimEntry * > &, const DtSimStatement *stmt=NULL) |
| Sets up the UI. | |
| virtual void | connectSignals (const std::vector< makVrv::DtSimEntry * > &) |
| Call to remove dialog if an entity is destroyed that is part of the supplied list. | |
| virtual void | selectionChanged (const QString &selection) |
| Called when myEntitySelectionWidget selection has changed. | |
Public Attributes | |
| DtCommandDialogExtensionInterface * | myExtension |
| QWidget * | myOriginalExtensionParent |
| QCheckBox * | myBroadcast |
| QGroupBox * | myEntitySelectionGroupBox |
| DtVrfFilteredListView * | myEntitySelectionWidget |
| QHBoxLayout * | myMasterLayout |
| QVBoxLayout * | myWidgetLayout |
| QWidget * | myButtonFrame |
| QHBoxLayout * | myButtonLayout |
| QSpacerItem * | myButtonSpacer |
| QPushButton * | myOKButton |
| QPushButton * | myCancelButton |
Protected Slots | |
| virtual void | onBroadcastChanged () |
| Calls down to logic to let it know the broadcast value has changed. | |
| virtual void | onCancel () |
| Emits cancel signal and closes dialog. | |
| virtual void | onPickOK () |
| Only used in pick mode. | |
| const std::vector < makVrv::DtSimEntry * > & | connectedTo () const |
Protected Member Functions | |
| void | setPartOfPlan (bool b) |
| QWidget * | widget () |
| Returns the widget. | |
| virtual void | setAllowBroadcast (bool) |
| virtual bool | broadcasting () const |
| virtual void | setBroadcasting (bool) |
| virtual void | enableEntitySelectionWidget (bool) |
| virtual void | addFilter (const DtVrfSelectionFilter *filter) |
| virtual void | setSelectedName (const QString &s) |
| virtual QString | selectedName () const |
| virtual void | selectFilter (int) |
| virtual void | setOKEnabled (bool) |
| Sets whether or not the OK button is enabled. | |
| virtual bool | extensionValid () const |
| virtual void | commandActivated (const DtSimTask &, const std::vector< std::string > &, bool immediate) |
| If immediate is true, puts command assignment widget into pick mode before finishing command activated code. | |
| virtual void | commandActivated (const DtSimCommandObjectWrapper &, bool immediate) |
| virtual void | slot_objectAboutToBeRemoved (makVrv::DtSimObjectEntry &) |
| virtual void | attachExtension (DtCommandDialogExtensionInterface *, const DtSimStatement *stmt=NULL) |
| virtual void | detachExtension () |
| virtual DtCommandDialogExtensionInterface * | extension () |
| 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. | |
| virtual std::vector < DtVrfObjectListViewItem::DtVrfObjectState > | selectedObjects () const |
| virtual void | setAllowObjectSelection (bool b) |
| If false will hide broadcast and object selection. | |
| virtual bool | canSelectObjects () const |
| virtual bool | wantsSelectionOfObjectInCommandMode () 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. | |
| virtual bool | valid () const |
| Override to return whether or not extension is valid. | |
| virtual void | setupFrom (const std::vector< makVrv::DtSimEntry * > &) |
| Sets up the extension for the given entries. | |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| DtCommandAssignmentWidgetLogic * | myLogic |
| bool | myPartOfPlan |
| std::vector< makVrv::DtSimEntry * > | myConnectedTo |
| DtSimTask * | myImmediateTask |
| std::vector< std::string > | myImmediateNames |
| DtSimCommandObjectWrapper * | myCommandObjectWrapper |
| DtCommandDialogExtensionInterface * | myInitialExtension |
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 |
||
| ) |
CTOR.
| virtual makVrf::DtCommandAssignmentWidget::~DtCommandAssignmentWidget | ( | ) | [virtual] |
DTOR.
| virtual void makVrf::DtCommandAssignmentWidget::run | ( | const std::vector< makVrv::DtSimEntry * > & | ) | [virtual] |
Override to run the dialog.
Supplies data of entities that are selected for this dialog
Implements makVrf::DtCommandDialogExtensionInterface.
| virtual void makVrf::DtCommandAssignmentWidget::setupUi | ( | const std::vector< makVrv::DtSimEntry * > & | , |
| const DtSimStatement * | stmt = NULL |
||
| ) | [virtual] |
Sets up the UI.
Implements makVrf::DtCommandAssignmentWidgetInterface.
| virtual void makVrf::DtCommandAssignmentWidget::connectSignals | ( | const std::vector< makVrv::DtSimEntry * > & | ) | [virtual] |
Call to remove dialog if an entity is destroyed that is part of the supplied list.
Implements makVrf::DtCommandAssignmentWidgetInterface.
| virtual void makVrf::DtCommandAssignmentWidget::selectionChanged | ( | const QString & | selection | ) | [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.
| void makVrf::DtCommandAssignmentWidget::setPartOfPlan | ( | bool | b | ) | [inline, protected, virtual] |
Implements makVrf::DtCommandAssignmentWidgetInterface.
| QWidget* makVrf::DtCommandAssignmentWidget::widget | ( | ) | [inline, protected, virtual] |
Returns the widget.
Implements makVrf::DtCommandDialogExtensionInterface.
| virtual void makVrf::DtCommandAssignmentWidget::setAllowBroadcast | ( | bool | ) | [protected, virtual] |
Implements makVrf::DtCommandAssignmentWidgetInterface.
| virtual bool makVrf::DtCommandAssignmentWidget::broadcasting | ( | ) | const [protected, virtual] |
Implements makVrf::DtCommandAssignmentWidgetInterface.
| virtual void makVrf::DtCommandAssignmentWidget::setBroadcasting | ( | bool | ) | [protected, virtual] |
Implements makVrf::DtCommandAssignmentWidgetInterface.
| virtual void makVrf::DtCommandAssignmentWidget::enableEntitySelectionWidget | ( | bool | ) | [protected, virtual] |
Implements makVrf::DtCommandAssignmentWidgetInterface.
| virtual void makVrf::DtCommandAssignmentWidget::addFilter | ( | const DtVrfSelectionFilter * | filter | ) | [protected, virtual] |
Implements makVrf::DtCommandAssignmentWidgetInterface.
| virtual void makVrf::DtCommandAssignmentWidget::setSelectedName | ( | const QString & | s | ) | [protected, virtual] |
Implements makVrf::DtCommandAssignmentWidgetInterface.
| virtual QString makVrf::DtCommandAssignmentWidget::selectedName | ( | ) | const [protected, virtual] |
Implements makVrf::DtCommandAssignmentWidgetInterface.
| virtual void makVrf::DtCommandAssignmentWidget::selectFilter | ( | int | ) | [protected, virtual] |
Implements makVrf::DtCommandAssignmentWidgetInterface.
| virtual void makVrf::DtCommandAssignmentWidget::setOKEnabled | ( | bool | ) | [protected, virtual] |
Sets whether or not the OK button is enabled.
Implements makVrf::DtCommandAssignmentWidgetInterface.
| virtual bool makVrf::DtCommandAssignmentWidget::extensionValid | ( | ) | const [protected, virtual] |
Implements makVrf::DtCommandAssignmentWidgetInterface.
| virtual void makVrf::DtCommandAssignmentWidget::commandActivated | ( | const DtSimTask & | , |
| const std::vector< std::string > & | , | ||
| bool | immediate | ||
| ) | [protected, virtual] |
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.
| virtual void makVrf::DtCommandAssignmentWidget::commandActivated | ( | const DtSimCommandObjectWrapper & | , |
| bool | immediate | ||
| ) | [protected, virtual] |
Implements makVrf::DtCommandAssignmentWidgetInterface.
| virtual void makVrf::DtCommandAssignmentWidget::slot_objectAboutToBeRemoved | ( | makVrv::DtSimObjectEntry & | ) | [protected, virtual] |
| virtual void makVrf::DtCommandAssignmentWidget::attachExtension | ( | DtCommandDialogExtensionInterface * | , |
| const DtSimStatement * | stmt = NULL |
||
| ) | [protected, virtual] |
| virtual void makVrf::DtCommandAssignmentWidget::detachExtension | ( | ) | [protected, virtual] |
| virtual DtCommandDialogExtensionInterface* makVrf::DtCommandAssignmentWidget::extension | ( | ) | [protected, virtual] |
Implements makVrf::DtCommandAssignmentWidgetInterface.
| virtual void makVrf::DtCommandAssignmentWidget::setPickMode | ( | bool | ) | [protected, virtual] |
| virtual bool makVrf::DtCommandAssignmentWidget::editStatement | ( | const std::vector< makVrv::DtSimEntry * > & | , |
| const DtSimStatement * | |||
| ) | [protected, virtual] |
Edits the current statement. Return true if the statement can be edited.
Implements makVrf::DtCommandAssignmentWidgetInterface.
| virtual std::vector<DtVrfObjectListViewItem::DtVrfObjectState> makVrf::DtCommandAssignmentWidget::selectedObjects | ( | ) | const [protected, virtual] |
Implements makVrf::DtCommandAssignmentWidgetInterface.
| virtual void makVrf::DtCommandAssignmentWidget::setAllowObjectSelection | ( | bool | b | ) | [protected, virtual] |
If false will hide broadcast and object selection.
Implements makVrf::DtCommandAssignmentWidgetInterface.
| virtual bool makVrf::DtCommandAssignmentWidget::canSelectObjects | ( | ) | const [protected, virtual] |
Implements makVrf::DtCommandAssignmentWidgetInterface.
| virtual bool makVrf::DtCommandAssignmentWidget::wantsSelectionOfObjectInCommandMode | ( | ) | const [protected, virtual] |
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.
| virtual bool makVrf::DtCommandAssignmentWidget::valid | ( | ) | const [protected, virtual] |
Override to return whether or not extension is valid.
Implements makVrf::DtCommandDialogExtensionInterface.
| virtual void makVrf::DtCommandAssignmentWidget::setupFrom | ( | const std::vector< makVrv::DtSimEntry * > & | ) | [protected, virtual] |
Sets up the extension for the given entries.
Implements makVrf::DtCommandDialogExtensionInterface.
| virtual void makVrf::DtCommandAssignmentWidget::onBroadcastChanged | ( | ) | [protected, virtual, slot] |
Calls down to logic to let it know the broadcast value has changed.
| virtual void makVrf::DtCommandAssignmentWidget::onCancel | ( | ) | [protected, virtual, slot] |
Emits cancel signal and closes dialog.
Implements makVrf::DtCommandDialogExtensionInterface.
| virtual void makVrf::DtCommandAssignmentWidget::onPickOK | ( | ) | [protected, virtual, slot] |
Only used in pick mode.
| const std::vector<makVrv::DtSimEntry*>& makVrf::DtCommandAssignmentWidget::connectedTo | ( | ) | const [inline, protected, virtual, slot] |
Implements makVrf::DtCommandAssignmentWidgetInterface.
makVrv::DtDe& makVrf::DtCommandAssignmentWidget::myDe [protected] |
bool makVrf::DtCommandAssignmentWidget::myPartOfPlan [protected] |
std::vector<makVrv::DtSimEntry*> makVrf::DtCommandAssignmentWidget::myConnectedTo [protected] |
std::vector<std::string> makVrf::DtCommandAssignmentWidget::myImmediateNames [protected] |
DtCommandDialogExtensionInterface* makVrf::DtCommandAssignmentWidget::myInitialExtension [protected] |
| QHBoxLayout* makVrf::DtCommandAssignmentWidget::myMasterLayout |
| QVBoxLayout* makVrf::DtCommandAssignmentWidget::myWidgetLayout |
| QHBoxLayout* makVrf::DtCommandAssignmentWidget::myButtonLayout |
| QSpacerItem* makVrf::DtCommandAssignmentWidget::myButtonSpacer |