VR-Forces 4.0.4 Class Documentation
Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes
makVrf::DtCommandAssignmentWidget Class Reference

A widget class for encapsulating radio commands for tasks or sets. More...

Inheritance diagram for makVrf::DtCommandAssignmentWidget:
Inheritance graph
[legend]

List of all members.

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

DtCommandDialogExtensionInterfacemyExtension
QWidgetmyOriginalExtensionParent
QCheckBoxmyBroadcast
QGroupBox * myEntitySelectionGroupBox
DtVrfFilteredListViewmyEntitySelectionWidget
QHBoxLayout * myMasterLayout
QVBoxLayout * myWidgetLayout
QWidgetmyButtonFrame
QHBoxLayout * myButtonLayout
QSpacerItem * myButtonSpacer
QPushButtonmyOKButton
QPushButtonmyCancelButton

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)
QWidgetwidget ()
 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::DtDemyDe
DtCommandAssignmentWidgetLogicmyLogic
bool myPartOfPlan
std::vector< makVrv::DtSimEntry * > myConnectedTo
DtSimTaskmyImmediateTask
std::vector< std::string > myImmediateNames
DtSimCommandObjectWrappermyCommandObjectWrapper
DtCommandDialogExtensionInterfacemyInitialExtension

Detailed Description

A widget class for encapsulating radio commands for tasks or sets.


Constructor & Destructor Documentation

makVrf::DtCommandAssignmentWidget::DtCommandAssignmentWidget ( makVrv::DtDe de,
DtCommandDialogExtensionInterface ,
QWidget parent = 0,
Qt::WindowFlags  flags = Qt::Dialog|Qt::CustomizeWindowHint|Qt::WindowTitleHint 
)

CTOR.

DTOR.


Member Function Documentation

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]
QWidget* makVrf::DtCommandAssignmentWidget::widget ( ) [inline, protected, virtual]

Returns the widget.

Implements makVrf::DtCommandDialogExtensionInterface.

virtual void makVrf::DtCommandAssignmentWidget::setAllowBroadcast ( bool  ) [protected, virtual]
virtual bool makVrf::DtCommandAssignmentWidget::broadcasting ( ) const [protected, virtual]
virtual void makVrf::DtCommandAssignmentWidget::setBroadcasting ( bool  ) [protected, virtual]
virtual void makVrf::DtCommandAssignmentWidget::addFilter ( const DtVrfSelectionFilter filter) [protected, virtual]
virtual void makVrf::DtCommandAssignmentWidget::setSelectedName ( const QString &  s) [protected, virtual]
virtual QString makVrf::DtCommandAssignmentWidget::selectedName ( ) const [protected, virtual]
virtual void makVrf::DtCommandAssignmentWidget::selectFilter ( int  ) [protected, virtual]
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]
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]
virtual void makVrf::DtCommandAssignmentWidget::attachExtension ( DtCommandDialogExtensionInterface ,
const DtSimStatement stmt = NULL 
) [protected, virtual]
virtual void makVrf::DtCommandAssignmentWidget::detachExtension ( ) [protected, virtual]
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 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]

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]

Member Data Documentation

std::vector<std::string> makVrf::DtCommandAssignmentWidget::myImmediateNames [protected]

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)