VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes
makVrf::DtEmbeddedEntityCommandAssignmentWidget Class Reference

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

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

Public Member Functions

 DtEmbeddedEntityCommandAssignmentWidget (makVrv::DtDe &de, DtCommandDialogExtensionInterface *, QWidget *parent=0, Qt::WindowFlags flags=Qt::Dialog|Qt::CustomizeWindowHint|Qt::WindowTitleHint)
 CTOR.
virtual ~DtEmbeddedEntityCommandAssignmentWidget ()
 DTOR.
virtual void run (const std::vector< makVrv::DtSimEntry * > &)
 Override to run the dialog.
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.
virtual void setBroadcastTitle (const QString &)
virtual void setupUi (const std::vector< makVrv::DtSimEntry * > &, const DtSimStatement *stmt=NULL)
 Sets up the UI.
virtual void populateEntitySelectionWidget (const std::vector< makVrv::DtSimEntry * > &data)
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.
virtual bool insertMapFocusHandler (DtMapFocusHandler *, int index=-1)
 The QListWidget does not interact with the map so this implementation is blank.
void setPartOfPlan (int b)
 This implementation is blank because this class is only used from plans.
- Public Member Functions inherited from makVrf::DtCommandAssignmentWidgetInterface
 DtCommandAssignmentWidgetInterface ()
virtual ~DtCommandAssignmentWidgetInterface ()
 DTOR.
void setParentMenu (DtVrfTaskSetMenu *p)
void setParentContainer (DtCommandAssignmentWidgetInterface *p)
DtCommandAssignmentWidgetInterfaceparentContainer ()
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.
virtual void onCancel ()=0
virtual makVrv::DtUnicode broadcastTitle () const

Public Attributes

DtCommandDialogExtensionInterfacemyExtension
QWidgetmyOriginalExtensionParent
QGroupBox * myEntitySelectionGroupBox
QListWidget * myEntitySelectionWidget
QHBoxLayout * myMasterLayout
QVBoxLayout * myWidgetLayout
QWidgetmyButtonFrame
QHBoxLayout * myButtonLayout
QSpacerItem * myButtonSpacer
QPushButtonmyOKButton
QPushButtonmyCancelButton
- Public Attributes inherited from makVrf::DtCommandAssignmentWidgetInterface
boost::signal< void(const
std::vector
< makVrv::DtSimEntry * > &)> 
signal_stopWatching
- Public Attributes inherited from makVrf::DtCommandDialogExtensionInterface
boost::signal< void()> signal_cancelled
boost::signal< void(bool)> signal_validStateChanged
 Signal sent when the task becomes valid (or invalid)
boost::signal< void(std::vector
< std::string > names, const
DtSetDataRequest &)> 
signal_sendSetRequest
boost::signal< void(std::vector
< std::string > names, const
DtSimTask &)> 
signal_sendTaskRequest
boost::signal< void(const
DtSimCommandObjectWrapper &)> 
signal_sendCommandRequest
boost::signal< void(const
std::vector< std::string >
&, const DtSimTask
&, DtVrfTaskSetMenu *)> 
signal_commandActivated
boost::signal< void(const
DtSimCommandObjectWrapper &)> 
signal_simCommandActivated
boost::signal< void(const
std::vector
< makVrv::DtSimEntry * > &)> 
signal_stopWatching

Protected Slots

virtual void onBroadcastChanged ()
 Broadcast is not supported; using blank implementation.
virtual void onCancel ()
 Emits cancel signal and closes dialog.
virtual void onPickOK ()
 Only used in pick mode.
const std::vector
< makVrv::DtSimEntry * > & 
connectedTo () const
virtual void entitySelectionChanged (QListWidgetItem *current, QListWidgetItem *previous)

Protected Member Functions

QWidgetwidget ()
 Returns the widget.
virtual void enableEntitySelectionWidget (bool)
virtual void setSelectedName (const QString &s)
virtual QString selectedName () const
virtual void setOKEnabled (bool)
 Sets whether or not the OK button is enabled.
virtual bool extensionValid () const
virtual void initializeFromAction (DtVrfTaskSetAction *)
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.
virtual void setAllowBroadcast (bool)
 Broadcast is not supported; using blank implementations.
virtual bool broadcasting () const
virtual void setBroadcasting (bool)
virtual void addFilter (const DtVrfSelectionFilter *filter)
 Filters are not supported; this is a generic selection of strings and is not tied to a DtVrfFilteredListView.
virtual void selectFilter (int)
virtual void selectFirstNonEmptyFilter ()

Protected Attributes

makVrv::DtDemyDe
DtEmbeddedEntityCommandAssignmentWidgetLogicmyLogic
std::vector< makVrv::DtSimEntry * > myConnectedTo
DtSimTaskmyImmediateTask
std::vector< std::string > myImmediateNames
DtSimCommandObjectWrappermyCommandObjectWrapper
DtCommandDialogExtensionInterfacemyInitialExtension
- Protected Attributes inherited from makVrf::DtCommandAssignmentWidgetInterface
DtVrfTaskSetMenumyTaskSetMenu
DtCommandAssignmentWidgetInterfacemyParentContainer
bool myAllowExtensionChange

Detailed Description

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

Constructor & Destructor Documentation

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

CTOR.

virtual makVrf::DtEmbeddedEntityCommandAssignmentWidget::~DtEmbeddedEntityCommandAssignmentWidget ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::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 std::vector<std::string> makVrf::DtEmbeddedEntityCommandAssignmentWidget::commandDialogFiltersFor ( const std::vector< makVrv::DtSimEntry * > &  data,
const DtSimStatement stmt,
int initialSelection 
) const
virtual

If part of a command dialog the filters to use for the command dialog selection.

Implements makVrf::DtCommandDialogExtensionInterface.

virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::setBroadcastTitle ( const QString &  )
virtual
virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::setupUi ( const std::vector< makVrv::DtSimEntry * > &  ,
const DtSimStatement stmt = NULL 
)
virtual

Sets up the UI.

Implements makVrf::DtCommandAssignmentWidgetInterface.

virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::populateEntitySelectionWidget ( const std::vector< makVrv::DtSimEntry * > &  data)
virtual
virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::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::DtEmbeddedEntityCommandAssignmentWidget::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.

virtual bool makVrf::DtEmbeddedEntityCommandAssignmentWidget::insertMapFocusHandler ( DtMapFocusHandler ,
int  index = -1 
)
inlinevirtual

The QListWidget does not interact with the map so this implementation is blank.

Implements makVrf::DtCommandDialogExtensionInterface.

void makVrf::DtEmbeddedEntityCommandAssignmentWidget::setPartOfPlan ( int  b)
inlinevirtual

This implementation is blank because this class is only used from plans.

Implements makVrf::DtCommandAssignmentWidgetInterface.

QWidget* makVrf::DtEmbeddedEntityCommandAssignmentWidget::widget ( )
inlineprotectedvirtual

Returns the widget.

Implements makVrf::DtCommandDialogExtensionInterface.

virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::enableEntitySelectionWidget ( bool  )
protectedvirtual
virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::setSelectedName ( const QString &  s)
protectedvirtual
virtual QString makVrf::DtEmbeddedEntityCommandAssignmentWidget::selectedName ( ) const
protectedvirtual
virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::setOKEnabled ( bool  )
protectedvirtual

Sets whether or not the OK button is enabled.

Implements makVrf::DtCommandAssignmentWidgetInterface.

virtual bool makVrf::DtEmbeddedEntityCommandAssignmentWidget::extensionValid ( ) const
protectedvirtual
virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::initializeFromAction ( DtVrfTaskSetAction )
protectedvirtual
virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::commandActivated ( const DtSimTask ,
const std::vector< std::string > &  ,
bool  immediate 
)
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.

virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::commandActivated ( const DtSimCommandObjectWrapper ,
bool  immediate 
)
protectedvirtual
virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::slot_objectAboutToBeRemoved ( makVrv::DtSimObjectEntry )
protectedvirtual
virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::attachExtension ( DtCommandDialogExtensionInterface ,
const DtSimStatement stmt = NULL 
)
protectedvirtual
virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::detachExtension ( )
protectedvirtual
virtual DtCommandDialogExtensionInterface* makVrf::DtEmbeddedEntityCommandAssignmentWidget::extension ( )
protectedvirtual
virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::setPickMode ( bool  )
protectedvirtual
virtual bool makVrf::DtEmbeddedEntityCommandAssignmentWidget::editStatement ( const std::vector< makVrv::DtSimEntry * > &  ,
const DtSimStatement  
)
protectedvirtual

Edits the current statement. Return true if the statement can be edited.

Implements makVrf::DtCommandAssignmentWidgetInterface.

virtual std::vector<DtVrfObjectListViewItem::DtVrfObjectState> makVrf::DtEmbeddedEntityCommandAssignmentWidget::selectedObjects ( ) const
protectedvirtual
virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::setAllowObjectSelection ( bool  b)
protectedvirtual

If false will hide broadcast and object selection.

Implements makVrf::DtCommandAssignmentWidgetInterface.

virtual bool makVrf::DtEmbeddedEntityCommandAssignmentWidget::canSelectObjects ( ) const
protectedvirtual
virtual bool makVrf::DtEmbeddedEntityCommandAssignmentWidget::wantsSelectionOfObjectInCommandMode ( ) const
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.

virtual bool makVrf::DtEmbeddedEntityCommandAssignmentWidget::valid ( ) const
protectedvirtual

Override to return whether or not extension is valid.

Implements makVrf::DtCommandDialogExtensionInterface.

virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::setupFrom ( const std::vector< makVrv::DtSimEntry * > &  )
protectedvirtual

Sets up the extension for the given entries.

Implements makVrf::DtCommandDialogExtensionInterface.

virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::setAllowBroadcast ( bool  )
inlineprotectedvirtual

Broadcast is not supported; using blank implementations.

Implements makVrf::DtCommandAssignmentWidgetInterface.

virtual bool makVrf::DtEmbeddedEntityCommandAssignmentWidget::broadcasting ( ) const
inlineprotectedvirtual
virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::setBroadcasting ( bool  )
inlineprotectedvirtual
virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::addFilter ( const DtVrfSelectionFilter filter)
inlineprotectedvirtual

Filters are not supported; this is a generic selection of strings and is not tied to a DtVrfFilteredListView.

Implements makVrf::DtCommandAssignmentWidgetInterface.

virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::selectFilter ( int  )
inlineprotectedvirtual
virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::selectFirstNonEmptyFilter ( )
inlineprotectedvirtual
virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::onBroadcastChanged ( )
inlineprotectedvirtualslot

Broadcast is not supported; using blank implementation.

virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::onCancel ( )
protectedvirtualslot

Emits cancel signal and closes dialog.

virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::onPickOK ( )
protectedvirtualslot

Only used in pick mode.

const std::vector<makVrv::DtSimEntry*>& makVrf::DtEmbeddedEntityCommandAssignmentWidget::connectedTo ( ) const
inlineprotectedslot
virtual void makVrf::DtEmbeddedEntityCommandAssignmentWidget::entitySelectionChanged ( QListWidgetItem *  current,
QListWidgetItem *  previous 
)
protectedvirtualslot

Member Data Documentation

makVrv::DtDe& makVrf::DtEmbeddedEntityCommandAssignmentWidget::myDe
protected
DtEmbeddedEntityCommandAssignmentWidgetLogic* makVrf::DtEmbeddedEntityCommandAssignmentWidget::myLogic
protected
std::vector<makVrv::DtSimEntry*> makVrf::DtEmbeddedEntityCommandAssignmentWidget::myConnectedTo
protected
DtSimTask* makVrf::DtEmbeddedEntityCommandAssignmentWidget::myImmediateTask
protected
std::vector<std::string> makVrf::DtEmbeddedEntityCommandAssignmentWidget::myImmediateNames
protected
DtSimCommandObjectWrapper* makVrf::DtEmbeddedEntityCommandAssignmentWidget::myCommandObjectWrapper
protected
DtCommandDialogExtensionInterface* makVrf::DtEmbeddedEntityCommandAssignmentWidget::myInitialExtension
protected
DtCommandDialogExtensionInterface* makVrf::DtEmbeddedEntityCommandAssignmentWidget::myExtension
QWidget* makVrf::DtEmbeddedEntityCommandAssignmentWidget::myOriginalExtensionParent
QGroupBox* makVrf::DtEmbeddedEntityCommandAssignmentWidget::myEntitySelectionGroupBox
QListWidget* makVrf::DtEmbeddedEntityCommandAssignmentWidget::myEntitySelectionWidget
QHBoxLayout* makVrf::DtEmbeddedEntityCommandAssignmentWidget::myMasterLayout
QVBoxLayout* makVrf::DtEmbeddedEntityCommandAssignmentWidget::myWidgetLayout
QWidget* makVrf::DtEmbeddedEntityCommandAssignmentWidget::myButtonFrame
QHBoxLayout* makVrf::DtEmbeddedEntityCommandAssignmentWidget::myButtonLayout
QSpacerItem* makVrf::DtEmbeddedEntityCommandAssignmentWidget::myButtonSpacer
QPushButton* makVrf::DtEmbeddedEntityCommandAssignmentWidget::myOKButton
QPushButton* makVrf::DtEmbeddedEntityCommandAssignmentWidget::myCancelButton

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)