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

Widget that allows the selection of a force.

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

Public Member Functions

 DtRankPatchSelectionEntryWidget (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0, const CreationFlags &cflags=NormalMode)
 
virtual ~DtRankPatchSelectionEntryWidget () override
 
virtual void setRankPatch (const DtPatchIdentifier &patchId)
 
virtual DtPatchIdentifier rankPatch () const
 
virtual void setLabel (const std::string &val) override
 
virtual void setLabel (const QString &val) override
 
virtual void setToolTip (const QString &tooltip) override
 
virtual bool isValid () const override
 
virtual void setRange (double bottom, double top) override
 
virtual void setVariableData (const std::string &data) override
 
virtual void setupFrom (const std::set< makVrv::DtUniqueID > &data) override
 
virtual DtReaderWritercreateBoundVariable (const std::string &variableName) override
 
virtual void setupFromBoundVariable (const DtReaderWriter *variableName) override
 
virtual void setIndent (int) override
 
virtual std::string variableDataFromUiDesigner (const QDomElement &, const DtScriptedTaskVariableLayoutConverter &) const override
 
virtual std::string scriptedTaskVariableName () const override
 
Default value setters.

Value is expected to be a patch identifier string. E.g. "225:0:3" or "225:0:4"

virtual void setDefaultValue (const std::string &value) override
 
virtual void setDefaultValue (const QString &value)
 
- 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 void setSelection (const std::set< makVrv::DtUniqueID > &selection)
 
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

Methods needed for DtTaskSetVariableWidgetCreator.
static makVrv::DtUnicode codeVariableType ()
 
static std::string designerGroup ()
 
static std::string headerFile ()
 
static std::string variableName ()
 
- 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(const
DtPatchIdentifier &)> 
signal_patchSelectionChanged
 

Protected Slots

virtual void slot_onCountryChanged ()
 
virtual void slot_onPatchComboBox_currentIndexChanged (int index)
 

Protected Member Functions

void setupGui ()
 
virtual void initialize ()
 
virtual void initializePatchList ()
 
virtual void reinitializePatchList ()
 
virtual void clear ()
 

Protected Attributes

makVrv::DtDemyDe
 
makVrv::DtSignalConnectionManager myConnections
 
std::string myAppearance
 
QSpacerItem * myIndentationSpacer
 
QComboBoxmyRankPatchComboBox
 
QCheckBoxmyApplyImmediatelyCheckBox
 
bool myInitialized
 

Additional Inherited Members

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

Constructor & Destructor Documentation

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

CTOR.

virtual makVrf::DtRankPatchSelectionEntryWidget::~DtRankPatchSelectionEntryWidget ( )
overridevirtual

Virtual DTOR.

Member Function Documentation

virtual void makVrf::DtRankPatchSelectionEntryWidget::setRankPatch ( const DtPatchIdentifier &  patchId)
virtual

Sets the rank patch selected in the widget.

virtual DtPatchIdentifier makVrf::DtRankPatchSelectionEntryWidget::rankPatch ( ) const
virtual

Get the rank patch selected in the widget.

virtual void makVrf::DtRankPatchSelectionEntryWidget::setLabel ( const std::string &  )
overridevirtual

Display label. This will create the top label line if not overridden by a default.

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual void makVrf::DtRankPatchSelectionEntryWidget::setLabel ( const QString &  val)
overridevirtual
virtual void makVrf::DtRankPatchSelectionEntryWidget::setToolTip ( const QString &  )
overridevirtual

Sets the tool tip for the widget.

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual bool makVrf::DtRankPatchSelectionEntryWidget::isValid ( void  ) const
inlineoverridevirtual

Indicates the current selection is valid.

Implements makVrf::DtTaskSetVariableWidgetInterface.

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

These methods must be implemented in order to be considered a DtTaskSetVariable that can be used as part of a scripted task Validation range. Might not be applicable to all items.

Implements makVrf::DtTaskSetVariableWidgetInterface.

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

Default value to set in control.

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual void makVrf::DtRankPatchSelectionEntryWidget::setDefaultValue ( const QString &  value)
virtual
virtual void makVrf::DtRankPatchSelectionEntryWidget::setVariableData ( const std::string &  )
overridevirtual

Variable data that can be used by this control to initialize values (i.e. filtered list box, combo box). Items should be separated by a semi-colon.

Implements makVrf::DtTaskSetVariableWidgetInterface.

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

Sets up widget with currently selected item. Requests data.

Implements makVrf::DtTaskSetVariableWidgetInterface.

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

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

Implements makVrf::DtTaskSetVariableWidgetInterface.

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

Sets the indent level for the contents of this widget.

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual std::string makVrf::DtRankPatchSelectionEntryWidget::variableDataFromUiDesigner ( const QDomElement &  ,
const DtScriptedTaskVariableLayoutConverter  
) const
overridevirtual

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

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual std::string makVrf::DtRankPatchSelectionEntryWidget::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.

static makVrv::DtUnicode makVrf::DtRankPatchSelectionEntryWidget::codeVariableType ( )
inlinestatic
static std::string makVrf::DtRankPatchSelectionEntryWidget::designerGroup ( )
inlinestatic
static std::string makVrf::DtRankPatchSelectionEntryWidget::headerFile ( )
inlinestatic
static std::string makVrf::DtRankPatchSelectionEntryWidget::variableName ( )
inlinestatic
virtual void makVrf::DtRankPatchSelectionEntryWidget::slot_onCountryChanged ( )
protectedvirtualslot
virtual void makVrf::DtRankPatchSelectionEntryWidget::slot_onPatchComboBox_currentIndexChanged ( int  index)
protectedvirtualslot
void makVrf::DtRankPatchSelectionEntryWidget::setupGui ( )
protected

Set up the widget contents. Non-virtual (called from CTOR).

virtual void makVrf::DtRankPatchSelectionEntryWidget::initialize ( )
protectedvirtual
virtual void makVrf::DtRankPatchSelectionEntryWidget::initializePatchList ( )
protectedvirtual
virtual void makVrf::DtRankPatchSelectionEntryWidget::reinitializePatchList ( )
protectedvirtual
virtual void makVrf::DtRankPatchSelectionEntryWidget::clear ( )
protectedvirtual

Member Data Documentation

boost::signals2::signal<void(const DtPatchIdentifier&)> makVrf::DtRankPatchSelectionEntryWidget::signal_patchSelectionChanged

Signal data values are the patch IDs for the primary and secondary patches, respectively.

makVrv::DtDe& makVrf::DtRankPatchSelectionEntryWidget::myDe
protected
makVrv::DtSignalConnectionManager makVrf::DtRankPatchSelectionEntryWidget::myConnections
protected
std::string makVrf::DtRankPatchSelectionEntryWidget::myAppearance
protected
QSpacerItem* makVrf::DtRankPatchSelectionEntryWidget::myIndentationSpacer
protected
QComboBox* makVrf::DtRankPatchSelectionEntryWidget::myRankPatchComboBox
protected
QCheckBox* makVrf::DtRankPatchSelectionEntryWidget::myApplyImmediatelyCheckBox
protected
bool makVrf::DtRankPatchSelectionEntryWidget::myInitialized
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)