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

Widget that allows the selection of a force.

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

Classes

struct  ForceInfo
 

Public Member Functions

 DtForceSelectionEntryWidget (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0, const CreationFlags &cflags=NormalMode)
 
virtual ~DtForceSelectionEntryWidget () override
 
virtual void setLabel (const QString &) override
 
virtual QString label () const
 
virtual void setLabel (const std::string &) override
 
virtual void setRange (double bottom, double top) override
 
virtual void setDefaultValue (const std::string &) override
 
virtual void setVariableData (const std::string &) override
 
virtual void setupFrom (const std::set< makVrv::DtUniqueID > &data) override
 
virtual void setToolTip (const QString &) override
 
virtual DtReaderWritercreateBoundVariable (const std::string &variableName) override
 
virtual void addForce (const ForceInfo &f, bool layoutButtons=false)
 
virtual void setupFromBoundVariable (const DtReaderWriter *variableName) override
 
virtual void setForce (int)
 
virtual int force () const
 
virtual std::vector< intforces () const
 
virtual void setIndent (int) override
 
virtual void clear ()
 
virtual bool isValid () const override
 
virtual void setAddAllForce (bool b)
 
bool addAllForce () const
 
virtual void setAllowMultipleForceSelection (bool b)
 
bool allowMultipleForceSelection () const
 
virtual void setApplyGroundTruthFilter (bool)
 
virtual bool applyGroundTruthFilter () const
 
virtual void initializeForces ()
 
virtual void setUseFixedWidth (bool)
 
virtual bool useFixedWidth () const
 
virtual std::string scriptedTaskVariableName () const override
 
virtual void setAllowColorSelection (bool b)
 
bool allowColorSelection () const
 
virtual void setMaximumColorButtons (int)
 
int maximumColorButtons () const
 
virtual void setOverlayFlags (bool)
 
bool overlayFlags () const
 
virtual bool forceCanBeCreatedByUser (int f) const
 
- Public Member Functions inherited from makVrf::DtTaskSetVariableWidgetInterface
 DtTaskSetVariableWidgetInterface ()
 
virtual ~DtTaskSetVariableWidgetInterface ()
 
virtual void setTopLineVisible (bool)
 
virtual bool topLineVisible () const
 
virtual void widgetInitializedForDialog (DtScriptedTaskDialog *, const std::set< makVrv::DtUniqueID > &data)
 
virtual const std::set
< makVrv::DtUniqueID > & 
selection () const
 
virtual void setDefaultValueFromStateProperty (const DtPropertyInterface &)
 
virtual
DtTaskSetVariableWidgetExtensionInterface
parameterContents (QWidget *parent, const Qt::WindowFlags &flags=0) const
 
virtual bool guiElementOnly () const
 

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 ()
 
static void initializeForQtDesignerExtension (makVrv::DtDe &de, QDesignerFormEditorInterface *core)
 
static bool includeInQtDesigner ()
 

Public Attributes

boost::signals2::signal< void(int)> signal_forceSelectionChanged
 
boost::signals2::signal< void(const
std::vector< int > &)> 
signal_forcesSelectionChanged
 
QLabelmyForceLabel
 
QComboBoxmyForces
 
QHBoxLayout * myContentLayout
 
QSpacerItem * mySpacerItem
 
DtToolButtonWrapperWidgetmyForceContainer
 

Protected Types

typedef std::map< int, ForceInfoPotentialForces
 

Protected Slots

virtual void activated (int)
 
virtual void slot_onForceChangedByButton ()
 

Protected Member Functions

virtual void countryChanged ()
 
virtual void slot_spotReportOptionsChanged (const DtVrfSpotReportsSettingsRecord &s)
 
virtual void updateDisplay ()
 
virtual void setSelection (const std::set< makVrv::DtUniqueID > &) override
 
virtual std::string variableDataFromUiDesigner (const QDomElement &, const DtScriptedTaskVariableLayoutConverter &) const override
 
virtual void resetForcesDisplay ()
 
virtual void resizeEvent (QResizeEvent *) override
 
virtual void initialize ()
 

Protected Attributes

makVrv::DtDemyDe
 
bool myApplyGroundTruthFilter
 
PotentialForces myPotentialForces
 
int myMaximumColorButtons
 
makVrv::DtSignalConnectionManager myConnections
 
bool myAllowColorSelection
 
QAbstractButton * myCurrentForceButtonSelected
 
bool myInitialized
 
bool myOverlayFlags
 
bool myAddAllForce = false
 
bool myAllowMultipleForceSelection = false
 

Additional Inherited Members

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

Member Typedef Documentation

Constructor & Destructor Documentation

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

Member Function Documentation

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

Qt version label.

Implements makVrf::DtTaskSetVariableWidgetInterface.

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

Display label.

Implements makVrf::DtTaskSetVariableWidgetInterface.

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

Validation range. Not applicable.

Implements makVrf::DtTaskSetVariableWidgetInterface.

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

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 &  )
overridevirtual

Variable data. Unused in this widget.

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual void makVrf::DtForceSelectionEntryWidget::setupFrom ( const std::set< makVrv::DtUniqueID > &  data)
overridevirtual

Sets up widget with currently selected item. Requests data.

Implements makVrf::DtTaskSetVariableWidgetInterface.

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

Sets the tool tip for the widget.

Implements makVrf::DtTaskSetVariableWidgetInterface.

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

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

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual void makVrf::DtForceSelectionEntryWidget::addForce ( const ForceInfo f,
bool  layoutButtons = false 
)
virtual

Adds a new force info potential forces and force combo.

virtual void makVrf::DtForceSelectionEntryWidget::setupFromBoundVariable ( const DtReaderWriter variableName)
overridevirtual

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 std::vector<int> makVrf::DtForceSelectionEntryWidget::forces ( ) const
virtual

Returns all currently selected forces.

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

Sets the indent level for the contents of this widget.

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual void makVrf::DtForceSelectionEntryWidget::clear ( )
virtual
virtual bool makVrf::DtForceSelectionEntryWidget::isValid ( void  ) const
inlineoverridevirtual

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::setAddAllForce ( bool  b)
virtual

Whether or not to add "All" to forces.

bool makVrf::DtForceSelectionEntryWidget::addAllForce ( ) const
inline
virtual void makVrf::DtForceSelectionEntryWidget::setAllowMultipleForceSelection ( bool  b)
virtual

Allows multiple forces to be selected. You can no longer select a single force until all forces are unselected and then you select another force. if all forces are unselected then it is considered as all forces selected.

bool makVrf::DtForceSelectionEntryWidget::allowMultipleForceSelection ( ) const
inline
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 void makVrf::DtForceSelectionEntryWidget::initializeForces ( )
virtual
virtual void makVrf::DtForceSelectionEntryWidget::setUseFixedWidth ( bool  )
virtual

Whether or not to fix the width of the container to the maximum width of any row of the container. Default is false.

virtual bool makVrf::DtForceSelectionEntryWidget::useFixedWidth ( ) const
virtual
virtual std::string makVrf::DtForceSelectionEntryWidget::scriptedTaskVariableName ( ) const
overridevirtual

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::setAllowColorSelection ( bool  b)
virtual
bool makVrf::DtForceSelectionEntryWidget::allowColorSelection ( ) const
inline
virtual void makVrf::DtForceSelectionEntryWidget::setMaximumColorButtons ( int  )
virtual
int makVrf::DtForceSelectionEntryWidget::maximumColorButtons ( ) const
inline
virtual void makVrf::DtForceSelectionEntryWidget::setOverlayFlags ( bool  )
virtual
bool makVrf::DtForceSelectionEntryWidget::overlayFlags ( ) const
inline
virtual bool makVrf::DtForceSelectionEntryWidget::forceCanBeCreatedByUser ( int  f) const
virtual
virtual void makVrf::DtForceSelectionEntryWidget::activated ( int  )
protectedvirtualslot
virtual void makVrf::DtForceSelectionEntryWidget::slot_onForceChangedByButton ( )
protectedvirtualslot
virtual void makVrf::DtForceSelectionEntryWidget::countryChanged ( )
protectedvirtual
virtual void makVrf::DtForceSelectionEntryWidget::slot_spotReportOptionsChanged ( const DtVrfSpotReportsSettingsRecord s)
protectedvirtual
virtual void makVrf::DtForceSelectionEntryWidget::updateDisplay ( )
protectedvirtual
virtual void makVrf::DtForceSelectionEntryWidget::setSelection ( const std::set< makVrv::DtUniqueID > &  selection)
inlineoverrideprotectedvirtual

The selection set can be used to determine the display units to show.

Reimplemented from makVrf::DtTaskSetVariableWidgetInterface.

virtual std::string makVrf::DtForceSelectionEntryWidget::variableDataFromUiDesigner ( const QDomElement &  ,
const DtScriptedTaskVariableLayoutConverter  
) const
inlineoverrideprotectedvirtual

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

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual void makVrf::DtForceSelectionEntryWidget::resetForcesDisplay ( )
protectedvirtual
virtual void makVrf::DtForceSelectionEntryWidget::resizeEvent ( QResizeEvent *  )
overrideprotectedvirtual
virtual void makVrf::DtForceSelectionEntryWidget::initialize ( )
protectedvirtual

Member Data Documentation

boost::signals2::signal<void (int)> makVrf::DtForceSelectionEntryWidget::signal_forceSelectionChanged

The integer is the new force type.

boost::signals2::signal<void (const std::vector<int>&)> makVrf::DtForceSelectionEntryWidget::signal_forcesSelectionChanged
QLabel* makVrf::DtForceSelectionEntryWidget::myForceLabel
QComboBox* makVrf::DtForceSelectionEntryWidget::myForces
QHBoxLayout* makVrf::DtForceSelectionEntryWidget::myContentLayout
QSpacerItem* makVrf::DtForceSelectionEntryWidget::mySpacerItem
DtToolButtonWrapperWidget* makVrf::DtForceSelectionEntryWidget::myForceContainer
makVrv::DtDe& makVrf::DtForceSelectionEntryWidget::myDe
protected
bool makVrf::DtForceSelectionEntryWidget::myApplyGroundTruthFilter
protected
PotentialForces makVrf::DtForceSelectionEntryWidget::myPotentialForces
protected
int makVrf::DtForceSelectionEntryWidget::myMaximumColorButtons
protected
makVrv::DtSignalConnectionManager makVrf::DtForceSelectionEntryWidget::myConnections
protected
bool makVrf::DtForceSelectionEntryWidget::myAllowColorSelection
protected
QAbstractButton* makVrf::DtForceSelectionEntryWidget::myCurrentForceButtonSelected
protected
bool makVrf::DtForceSelectionEntryWidget::myInitialized
protected
bool makVrf::DtForceSelectionEntryWidget::myOverlayFlags
protected
bool makVrf::DtForceSelectionEntryWidget::myAddAllForce = false
protected
bool makVrf::DtForceSelectionEntryWidget::myAllowMultipleForceSelection = false
protected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)