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

Widget that allows the selection of a force. More...

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

Public Member Functions

 DtForceSelectionEntryWidget (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0, const CreationFlags &cflags=NormalMode)
virtual ~DtForceSelectionEntryWidget ()
virtual void setLabel (const QString &)
 Qt version label.
virtual QString label () const
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.
virtual void setVariableData (const std::string &)
 Variable data. Unused in this widget.
virtual void setupFrom (const std::vector< makVrv::DtSimEntry * > &data)
 Sets up widget with currently selected item. Requests data.
virtual void setToolTip (const QString &)
 Sets the tool tip for the widget.
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.
virtual void setForce (int)
 Sets the current force.
virtual int force () const
 Returns the force.
virtual void setIndent (int)
 Sets the indent level for the contents of this widget.
virtual bool isValid () const
 Indicates the current selection is valid.
virtual void setApplyGroundTruthFilter (bool)
 Sets whether or not to apply the ground truth of the spot report filters as a determining factor as to what gets added to this combo.
virtual bool applyGroundTruthFilter () const
virtual std::string scriptedTaskVariableName () const
 In most cases this is the objectName of the object, however, in some cases (as in radio button) this could be a name that is shared amongst like objects, so, that is returned instead.
- Public Member Functions inherited from makVrf::DtTaskSetVariableWidgetInterface
 DtTaskSetVariableWidgetInterface ()
virtual ~DtTaskSetVariableWidgetInterface ()
virtual void setTopLineVisible (bool)
 Hides top line.
virtual bool topLineVisible () const
virtual void widgetInitializedForDialog (DtScriptedTaskDialog *)
 Called when the widget is initialized from a scripted task dialog. Default implementation is to do nothing.
virtual
DtTaskSetVariableWidgetExtensionInterface
parameterContents (QWidget *parent, const Qt::WindowFlags &flags=0) const
 If there are any, returns contents for this variable for variable extension. Default is no extension.
virtual bool guiElementOnly () const
 Returns true if this is a GUI element only. Default is false.

Static Public Member Functions

static makVrv::DtUnicode codeVariableType ()
static std::string designerGroup ()
static std::string headerFile ()
static std::string variableName ()
static bool includeInQtDesigner ()
- Static Public Member Functions inherited from makVrf::DtTaskSetVariableWidgetInterface
static bool canBeUsedAsWidget ()
 Whether or not this shows up as a usable variable widget.
static void initializeForQtDesignerExtension (makVrv::DtDe &de, QDesignerFormEditorInterface *core)
 Implement at class level to perform Qt Designer custom widget initialization. Please refer to Qt documentation for designer modifications.

Public Attributes

boost::signal< void(int)> signal_forceSelectionChanged
QLabelmyForceLabel
QComboBoxmyForces
QHBoxLayout * myContentLayout
QSpacerItem * mySpacerItem

Protected Slots

virtual void activated (int)

Protected Member Functions

virtual void initializeForces ()
virtual bool forceCanBeCreatedByUser (int f) const
virtual void slot_spotReportOptionsChanged (const DtVrfSpotReportsSettingsRecord &s)
virtual std::string variableDataFromUiDesigner (const QDomElement &, const DtScriptedTaskVariableLayoutConverter &) const
 Given the Ui designer properties create a string that will represent the variable data for those properties.

Protected Attributes

makVrv::DtDemyDe
bool myApplyGroundTruthFilter
std::map< int, std::string > myPotentialForces
makVrv::DtSignalConnectionManager myConnections

Additional Inherited Members

- Public Types inherited from makVrf::DtTaskSetVariableWidgetInterface
enum  CreationFlags { NormalMode = 0x00000000, QtDesignerMode = 0x00000001 }

Detailed Description

Widget that allows the selection of a force.

Constructor & Destructor Documentation

makVrf::DtForceSelectionEntryWidget::DtForceSelectionEntryWidget ( makVrv::DtDe de,
QWidget *  parent,
const Qt::WindowFlags &  flags = 0,
const CreationFlags cflags = NormalMode 
)
virtual makVrf::DtForceSelectionEntryWidget::~DtForceSelectionEntryWidget ( )
virtual

Member Function Documentation

virtual void makVrf::DtForceSelectionEntryWidget::setLabel ( const QString &  )
virtual

Qt version label.

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual QString makVrf::DtForceSelectionEntryWidget::label ( ) const
virtual
virtual void makVrf::DtForceSelectionEntryWidget::setLabel ( const std::string &  )
virtual

Display label.

Implements makVrf::DtTaskSetVariableWidgetInterface.

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

Validation range. Not applicable.

Implements makVrf::DtTaskSetVariableWidgetInterface.

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

Default value to set in control.

If value contains colons then treat as DD:HH:MM:SS else treat as seconds

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual void makVrf::DtForceSelectionEntryWidget::setVariableData ( const std::string &  )
virtual

Variable data. Unused in this widget.

Implements makVrf::DtTaskSetVariableWidgetInterface.

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

Sets up widget with currently selected item. Requests data.

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual void makVrf::DtForceSelectionEntryWidget::setToolTip ( const QString &  )
virtual

Sets the tool tip for the widget.

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual DtReaderWriter* makVrf::DtForceSelectionEntryWidget::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::DtForceSelectionEntryWidget::setupFromBoundVariable ( const DtReaderWriter variableName)
virtual

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

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual void makVrf::DtForceSelectionEntryWidget::setForce ( int  )
virtual

Sets the current force.

virtual int makVrf::DtForceSelectionEntryWidget::force ( ) const
virtual

Returns the force.

virtual void makVrf::DtForceSelectionEntryWidget::setIndent ( int  )
virtual

Sets the indent level for the contents of this widget.

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual bool makVrf::DtForceSelectionEntryWidget::isValid ( void  ) const
inlinevirtual

Indicates the current selection is valid.

Implements makVrf::DtTaskSetVariableWidgetInterface.

static makVrv::DtUnicode makVrf::DtForceSelectionEntryWidget::codeVariableType ( )
inlinestatic
static std::string makVrf::DtForceSelectionEntryWidget::designerGroup ( )
inlinestatic
static std::string makVrf::DtForceSelectionEntryWidget::headerFile ( )
inlinestatic
static std::string makVrf::DtForceSelectionEntryWidget::variableName ( )
inlinestatic
static bool makVrf::DtForceSelectionEntryWidget::includeInQtDesigner ( )
inlinestatic
virtual void makVrf::DtForceSelectionEntryWidget::setApplyGroundTruthFilter ( bool  )
virtual

Sets whether or not to apply the ground truth of the spot report filters as a determining factor as to what gets added to this combo.

Default is false

virtual bool makVrf::DtForceSelectionEntryWidget::applyGroundTruthFilter ( ) const
virtual
virtual std::string makVrf::DtForceSelectionEntryWidget::scriptedTaskVariableName ( ) const
virtual

In most cases this is the objectName of the object, however, in some cases (as in radio button) this could be a name that is shared amongst like objects, so, that is returned instead.

If the blank name is returned then just use the variable name

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual void makVrf::DtForceSelectionEntryWidget::activated ( int  )
protectedvirtualslot
virtual void makVrf::DtForceSelectionEntryWidget::initializeForces ( )
protectedvirtual
virtual bool makVrf::DtForceSelectionEntryWidget::forceCanBeCreatedByUser ( int  f) const
protectedvirtual
virtual void makVrf::DtForceSelectionEntryWidget::slot_spotReportOptionsChanged ( const DtVrfSpotReportsSettingsRecord s)
protectedvirtual
virtual std::string makVrf::DtForceSelectionEntryWidget::variableDataFromUiDesigner ( const QDomElement &  ,
const DtScriptedTaskVariableLayoutConverter  
) const
inlineprotectedvirtual

Given the Ui designer properties create a string that will represent the variable data for those properties.

Implements makVrf::DtTaskSetVariableWidgetInterface.

Member Data Documentation

boost::signal<void (int)> makVrf::DtForceSelectionEntryWidget::signal_forceSelectionChanged
QLabel* makVrf::DtForceSelectionEntryWidget::myForceLabel
QComboBox* makVrf::DtForceSelectionEntryWidget::myForces
QHBoxLayout* makVrf::DtForceSelectionEntryWidget::myContentLayout
QSpacerItem* makVrf::DtForceSelectionEntryWidget::mySpacerItem
makVrv::DtDe& makVrf::DtForceSelectionEntryWidget::myDe
protected
bool makVrf::DtForceSelectionEntryWidget::myApplyGroundTruthFilter
protected
std::map<int, std::string> makVrf::DtForceSelectionEntryWidget::myPotentialForces
protected
makVrv::DtSignalConnectionManager makVrf::DtForceSelectionEntryWidget::myConnections
protected

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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)