VR-Forces 4.2 Class Documentation
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
makVrf::DtResourceSelectionEntryWidget Class Reference

Widget that allows users to select resources for the given entity. More...

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

Public Member Functions

 DtResourceSelectionEntryWidget (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0)
virtual ~DtResourceSelectionEntryWidget ()
virtual void setLabel (const std::string &)
 Display label.
virtual void setRange (double bottom, double top)
 Validation range. Not applicable.
virtual void setDefaultValue (const std::string &)
 Default value to set in control. Will contain initial resource to select.
virtual void setVariableData (const std::string &)
 Variable data. Used to determine allowable variable types.
virtual void setupFrom (const std::vector< makVrv::DtSimEntry * > &data)
 Sets up widget with currently selected item. Requests data.
virtual DtReaderWritercreateBoundVariable (const std::string &variableName)
 Creates the reader/writer variable that will be used as part of the task statement.
virtual void setupFromBoundVariable (const DtReaderWriter *variableName)
 Sets up the widget from the given reader/writer variables.
- Public Member Functions inherited from makVrf::DtVrfResourceRequestor
 DtVrfResourceRequestor (makVrv::DtDe &)
virtual ~DtVrfResourceRequestor ()
virtual void requestResourcesFor (const std::vector< makVrv::DtSimEntry * > &data, bool entitiesOnly=true)
 Requests resources for all items in the vector.
virtual void startMonitoring (const std::string &, int rate=-1)
 Start monitoring for this entity.
virtual void stopMonitoring (const std::string &)
 Stop monitoring for the specified entity.
virtual void setUpdateRate (const std::string &entity, int)
 Sets the update rate for entity being monitored.
- Public Member Functions inherited from makVrf::DtTaskSetVariableWidget
 DtTaskSetVariableWidget (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0)
virtual ~DtTaskSetVariableWidget ()
virtual void setToolTip (const QString &)
 Sets the tool tip.
virtual void setTopLineVisible (bool)
 Hides top line.
virtual bool topLineVisible () const
virtual void createTopLine ()
 Creates top line.
virtual void setIndent (int)
 Sets the indent level for the contents of this widget, except for the title line.
- Public Member Functions inherited from makVrf::DtTaskSetVariableWidgetInterface
 DtTaskSetVariableWidgetInterface ()
virtual ~DtTaskSetVariableWidgetInterface ()
virtual bool guiElementOnly () const
 Returns true if this is a GUI element only. Default is false.

Static Public Member Functions

static makVrv::DtUnicode codeVariableType ()

Public Attributes

QLabel * myResourceLabel
QComboBoxmyResources
QHBoxLayout * myContentLayout
- Public Attributes inherited from makVrf::DtTaskSetVariableWidget
QVBoxLayout * myVariableWidgetLayout
QHBoxLayout * mySpacedLayout
QVBoxLayout * myVariableContentLayout
 When creating subclasses of this item, use the variable content layout to add your content.
QWidgetmyTopLine
QLabel * myTopLabel
QSpacerItem * myTopSeparator
QHBoxLayout * myTopLineLayout
QSpacerItem * mySpacerItem

Protected Member Functions

virtual bool shouldAddResource (const DtResource &) const
 Looks at variable data for: "resourcetypes=<resourcetype>;<...>" "entitytypes=<entitytype>;<...>" Can only be resourcetypes OR entity types.
virtual bool isResourceType (const DtResource &, const std::string &validResources) const
virtual bool isEntityType (const DtResource &, const std::string &validEntityTypes) const
virtual void addResource (const DtResource &)
 Called to add a new resource.
virtual void resourceUpdated (const DtResource &)
 Called when a particular resource has been updated.
virtual void resourcesChanged ()
 Virtual overrides to complete class.
virtual void resourceCheckingDisabled ()
 Called when this item can not longer set resources.
virtual void resourceCheckComplete ()
 Called when resource checking is complete.
virtual
DtTaskSetVariableWidgetExtensionInterface
parameterContents (QWidget *parent, const Qt::WindowFlags &flags) const
 If there are any, returns contents for this variable for variable extension. Default is no extension.
- Protected Member Functions inherited from makVrf::DtVrfResourceRequestor
virtual void slot_resourceResponse (const DtIfServerRequestResponse &)

Protected Attributes

std::string myVariableData
QString myDefaultValue
makVrv::DtDe & myDe
- Protected Attributes inherited from makVrf::DtVrfResourceRequestor
makVrv::DtDe & myDe
std::vector< std::string > myResourceRequests
bool myCanSetResources
DtEntityResourceList myResources
- Protected Attributes inherited from makVrf::DtTaskSetVariableWidget
makVrv::DtDe & myDe
makVrv::DtSignalConnectionManager myConnections

Detailed Description

Widget that allows users to select resources for the given entity.

Constructor & Destructor Documentation

makVrf::DtResourceSelectionEntryWidget::DtResourceSelectionEntryWidget ( makVrv::DtDe &  de,
QWidget parent,
const Qt::WindowFlags &  flags = 0 
)
virtual makVrf::DtResourceSelectionEntryWidget::~DtResourceSelectionEntryWidget ( )
virtual

Member Function Documentation

virtual void makVrf::DtResourceSelectionEntryWidget::setLabel ( const std::string &  )
virtual

Display label.

Reimplemented from makVrf::DtTaskSetVariableWidget.

virtual void makVrf::DtResourceSelectionEntryWidget::setRange ( double  bottom,
double  top 
)
virtual

Validation range. Not applicable.

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual void makVrf::DtResourceSelectionEntryWidget::setDefaultValue ( const std::string &  )
virtual

Default value to set in control. Will contain initial resource to select.

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual void makVrf::DtResourceSelectionEntryWidget::setVariableData ( const std::string &  )
virtual
virtual void makVrf::DtResourceSelectionEntryWidget::setupFrom ( const std::vector< makVrv::DtSimEntry * > &  data)
virtual

Sets up widget with currently selected item. Requests data.

Reimplemented from makVrf::DtTaskSetVariableWidget.

virtual DtReaderWriter* makVrf::DtResourceSelectionEntryWidget::createBoundVariable ( const std::string &  variableName)
virtual

Creates the reader/writer variable that will be used as part of the task statement.

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual void makVrf::DtResourceSelectionEntryWidget::setupFromBoundVariable ( const DtReaderWriter variableName)
virtual

Sets up the widget from the given reader/writer variables.

Implements makVrf::DtTaskSetVariableWidgetInterface.

static makVrv::DtUnicode makVrf::DtResourceSelectionEntryWidget::codeVariableType ( )
inlinestatic
virtual bool makVrf::DtResourceSelectionEntryWidget::shouldAddResource ( const DtResource ) const
protectedvirtual

Looks at variable data for: "resourcetypes=<resourcetype>;<...>" "entitytypes=<entitytype>;<...>" Can only be resourcetypes OR entity types.

Not both

virtual bool makVrf::DtResourceSelectionEntryWidget::isResourceType ( const DtResource ,
const std::string &  validResources 
) const
protectedvirtual
virtual bool makVrf::DtResourceSelectionEntryWidget::isEntityType ( const DtResource ,
const std::string &  validEntityTypes 
) const
protectedvirtual
virtual void makVrf::DtResourceSelectionEntryWidget::addResource ( const DtResource )
protectedvirtual

Called to add a new resource.

Implements makVrf::DtVrfResourceRequestor.

virtual void makVrf::DtResourceSelectionEntryWidget::resourceUpdated ( const DtResource )
protectedvirtual

Called when a particular resource has been updated.

Implements makVrf::DtVrfResourceRequestor.

virtual void makVrf::DtResourceSelectionEntryWidget::resourcesChanged ( )
protectedvirtual

Virtual overrides to complete class.

Called when resources received has changed

Implements makVrf::DtVrfResourceRequestor.

virtual void makVrf::DtResourceSelectionEntryWidget::resourceCheckingDisabled ( )
protectedvirtual

Called when this item can not longer set resources.

This will happen when multiple requests are made through this class and there are no common resources

Implements makVrf::DtVrfResourceRequestor.

virtual void makVrf::DtResourceSelectionEntryWidget::resourceCheckComplete ( )
protectedvirtual

Called when resource checking is complete.

Implements makVrf::DtVrfResourceRequestor.

virtual DtTaskSetVariableWidgetExtensionInterface* makVrf::DtResourceSelectionEntryWidget::parameterContents ( QWidget parent,
const Qt::WindowFlags &  flags 
) const
protectedvirtual

If there are any, returns contents for this variable for variable extension. Default is no extension.

Reimplemented from makVrf::DtTaskSetVariableWidgetInterface.

Member Data Documentation

QLabel* makVrf::DtResourceSelectionEntryWidget::myResourceLabel
QComboBox* makVrf::DtResourceSelectionEntryWidget::myResources
QHBoxLayout* makVrf::DtResourceSelectionEntryWidget::myContentLayout
std::string makVrf::DtResourceSelectionEntryWidget::myVariableData
protected
QString makVrf::DtResourceSelectionEntryWidget::myDefaultValue
protected
makVrv::DtDe& makVrf::DtResourceSelectionEntryWidget::myDe
protected

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

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)