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::DtUnitPatchSelectionEntryWidget Class Reference

Widget that allows the selection of a force.

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

Public Member Functions

 DtUnitPatchSelectionEntryWidget (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0, const CreationFlags &cflags=NormalMode)
 
virtual ~DtUnitPatchSelectionEntryWidget ()
 
virtual void setPrimaryUnitPatch (const DtPatchIdentifier &patchId)
 
virtual DtPatchIdentifier primaryUnitPatch () const
 
virtual void setSecondaryUnitPatch (const DtPatchIdentifier &patchId)
 
virtual DtPatchIdentifier secondaryUnitPatch () 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::vector< makVrv::DtSimEntry * > &data) override
 
virtual DtReaderWritercreateBoundVariable (const std::string &variableName)
 
virtual void setupFromBoundVariable (const DtReaderWriter *variableName)
 
virtual void setIndent (int)
 
virtual std::string variableDataFromUiDesigner (const QDomElement &, const DtScriptedTaskVariableLayoutConverter &) const override
 
virtual std::string scriptedTaskVariableName () const override
 
Default value setters.

Value is expected to be an integer pair specifying the patch set and patch id. Optional secondary patch can be specified by providing another integer pair after a space. E.g. "225:0:3" or "225:0:3 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::vector< makVrv::DtSimEntry * > &data)
 
virtual void setSelection (const std::set< makVrv::DtUniqueID > &selection)
 
virtual void setSelection (const std::vector< makVrv::DtSimEntry * > &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

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 &, 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 initializePatchLists ()
 
virtual void reinitializePatchLists ()
 
virtual void clear ()
 

Protected Attributes

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

Additional Inherited Members

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

Constructor & Destructor Documentation

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

CTOR.

virtual makVrf::DtUnitPatchSelectionEntryWidget::~DtUnitPatchSelectionEntryWidget ( )
virtual

Virtual DTOR.

Member Function Documentation

virtual void makVrf::DtUnitPatchSelectionEntryWidget::setPrimaryUnitPatch ( const DtPatchIdentifier &  patchId)
virtual

Sets the primary unit patch selected in the widget.

virtual DtPatchIdentifier makVrf::DtUnitPatchSelectionEntryWidget::primaryUnitPatch ( ) const
virtual

Get the primary unit patch selected in the widget.

virtual void makVrf::DtUnitPatchSelectionEntryWidget::setSecondaryUnitPatch ( const DtPatchIdentifier &  patchId)
virtual

Sets the secondary unit patch selected in the widget.

virtual DtPatchIdentifier makVrf::DtUnitPatchSelectionEntryWidget::secondaryUnitPatch ( ) const
virtual

Get the secondary unit patch selected in the widget.

virtual void makVrf::DtUnitPatchSelectionEntryWidget::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::DtUnitPatchSelectionEntryWidget::setLabel ( const QString &  val)
overridevirtual
virtual void makVrf::DtUnitPatchSelectionEntryWidget::setToolTip ( const QString &  )
overridevirtual

Sets the tool tip for the widget.

Implements makVrf::DtTaskSetVariableWidgetInterface.

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

Indicates the current selection is valid.

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual void makVrf::DtUnitPatchSelectionEntryWidget::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::DtUnitPatchSelectionEntryWidget::setDefaultValue ( const std::string &  )
overridevirtual

Default value to set in control.

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual void makVrf::DtUnitPatchSelectionEntryWidget::setDefaultValue ( const QString &  value)
virtual
virtual void makVrf::DtUnitPatchSelectionEntryWidget::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::DtUnitPatchSelectionEntryWidget::setupFrom ( const std::vector< makVrv::DtSimEntry * > &  data)
overridevirtual

Sets up widget with currently selected item. Requests data.

Implements makVrf::DtTaskSetVariableWidgetInterface.

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

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

Implements makVrf::DtTaskSetVariableWidgetInterface.

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

Sets the indent level for the contents of this widget.

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual std::string makVrf::DtUnitPatchSelectionEntryWidget::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::DtUnitPatchSelectionEntryWidget::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::DtUnitPatchSelectionEntryWidget::codeVariableType ( )
inlinestatic
static std::string makVrf::DtUnitPatchSelectionEntryWidget::designerGroup ( )
inlinestatic
static std::string makVrf::DtUnitPatchSelectionEntryWidget::headerFile ( )
inlinestatic
static std::string makVrf::DtUnitPatchSelectionEntryWidget::variableName ( )
inlinestatic
virtual void makVrf::DtUnitPatchSelectionEntryWidget::slot_onCountryChanged ( )
protectedvirtualslot
virtual void makVrf::DtUnitPatchSelectionEntryWidget::slot_onPatchComboBox_currentIndexChanged ( int  index)
protectedvirtualslot
void makVrf::DtUnitPatchSelectionEntryWidget::setupGui ( )
protected

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

virtual void makVrf::DtUnitPatchSelectionEntryWidget::initialize ( )
protectedvirtual
virtual void makVrf::DtUnitPatchSelectionEntryWidget::initializePatchLists ( )
protectedvirtual
virtual void makVrf::DtUnitPatchSelectionEntryWidget::reinitializePatchLists ( )
protectedvirtual
virtual void makVrf::DtUnitPatchSelectionEntryWidget::clear ( )
protectedvirtual

Member Data Documentation

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

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

makVrv::DtDe& makVrf::DtUnitPatchSelectionEntryWidget::myDe
protected
makVrv::DtSignalConnectionManager makVrf::DtUnitPatchSelectionEntryWidget::myConnections
protected
std::string makVrf::DtUnitPatchSelectionEntryWidget::myAppearance
protected
QSpacerItem* makVrf::DtUnitPatchSelectionEntryWidget::myIndentationSpacer
protected
QComboBox* makVrf::DtUnitPatchSelectionEntryWidget::myPrimaryPatchComboBox
protected
QComboBox* makVrf::DtUnitPatchSelectionEntryWidget::mySecondaryPatchComboBox
protected
QCheckBox* makVrf::DtUnitPatchSelectionEntryWidget::myApplyImmediatelyCheckBox
protected
bool makVrf::DtUnitPatchSelectionEntryWidget::myInitialized
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)