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

The DtPrecisionMovementEntryWidget class will show a combo box that will allow for the selection of existing animation movement objects. More...

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

Public Member Functions

 DtPrecisionMovementEntryWidget (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0)
virtual ~DtPrecisionMovementEntryWidget ()
virtual void setAllowEmptyEntry (bool)
 Allows an empty entry to create a new model. By default this is true.
virtual bool allowEmptyEntry () const
virtual DtString animationModel () const
 Returns the animation movement model value.
virtual void setAnimationModel (const DtString &)
 Sets the animation movement model. Akin to calling setDefaultValue.
virtual DtReaderWritercreateBoundVariable (const std::string &variableName)
 Creates the reader/writer variable that will be used as part of the task statement.
virtual void receiveScriptedMovementObjects (DtSimMessage *msg)
 Called when message is received with movement models.
virtual void setupFromBoundVariable (const DtReaderWriter *variableName)
 Sets up the widget from the given reader/writer variables.
virtual
DtTaskSetVariableWidgetExtensionInterface
parameterContents (QWidget *parent, const Qt::WindowFlags &flags=0) const
 Used the string extension as the basis for additional variables.
virtual void setRange (double bottom, double top)
virtual void setDefaultValue (const std::string &)
 Default value to set in control.
virtual void setVariableData (const std::string &)
 Variable data.
- 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 setLabel (const std::string &)
 Display label.
virtual void setupFrom (const std::vector< makVrv::DtSimEntry * > &data)
 Sets up widget with currently selected item. No-op.
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

QGridLayout * myLayout
QLabel * myValueLabel
QLabel * myDescription
QComboBoxmyValue
QComboBoxmyCategories
QLabel * myCategoryLabel
QString myDefaultValue
bool myAllowEmptyEntry
- 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 Slots

virtual void onModelChanged ()
virtual void onCategoryChanged ()

Protected Attributes

DtIfScriptedMovementObjectsResponse::ScriptedMovementObjects myAnimationModels
- Protected Attributes inherited from makVrf::DtTaskSetVariableWidget
makVrv::DtDe & myDe
makVrv::DtSignalConnectionManager myConnections

Detailed Description

The DtPrecisionMovementEntryWidget class will show a combo box that will allow for the selection of existing animation movement objects.

Constructor & Destructor Documentation

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

Member Function Documentation

virtual void makVrf::DtPrecisionMovementEntryWidget::setAllowEmptyEntry ( bool  )
virtual

Allows an empty entry to create a new model. By default this is true.

virtual bool makVrf::DtPrecisionMovementEntryWidget::allowEmptyEntry ( ) const
virtual
virtual void makVrf::DtPrecisionMovementEntryWidget::setRange ( double  bottom,
double  top 
)
virtual

These methods must be implemented in order to be considered a DtTaskSetVariable that can be used as part of a scripted task.

Implements makVrf::DtTaskSetVariableWidgetInterface.

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

Default value to set in control.

Implements makVrf::DtTaskSetVariableWidgetInterface.

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

Variable data.

if "allow_empty" is defined will allow an empty model (new model) to be defined for this movement task

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual DtString makVrf::DtPrecisionMovementEntryWidget::animationModel ( ) const
virtual

Returns the animation movement model value.

virtual void makVrf::DtPrecisionMovementEntryWidget::setAnimationModel ( const DtString )
virtual

Sets the animation movement model. Akin to calling setDefaultValue.

virtual DtReaderWriter* makVrf::DtPrecisionMovementEntryWidget::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::DtPrecisionMovementEntryWidget::receiveScriptedMovementObjects ( DtSimMessage msg)
virtual

Called when message is received with movement models.

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

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

Implements makVrf::DtTaskSetVariableWidgetInterface.

virtual DtTaskSetVariableWidgetExtensionInterface* makVrf::DtPrecisionMovementEntryWidget::parameterContents ( QWidget parent,
const Qt::WindowFlags &  flags = 0 
) const
virtual

Used the string extension as the basis for additional variables.

Reimplemented from makVrf::DtTaskSetVariableWidgetInterface.

static makVrv::DtUnicode makVrf::DtPrecisionMovementEntryWidget::codeVariableType ( )
inlinestatic
virtual void makVrf::DtPrecisionMovementEntryWidget::onModelChanged ( )
protectedvirtualslot
virtual void makVrf::DtPrecisionMovementEntryWidget::onCategoryChanged ( )
protectedvirtualslot

Member Data Documentation

QGridLayout* makVrf::DtPrecisionMovementEntryWidget::myLayout
QLabel* makVrf::DtPrecisionMovementEntryWidget::myValueLabel
QLabel* makVrf::DtPrecisionMovementEntryWidget::myDescription
QComboBox* makVrf::DtPrecisionMovementEntryWidget::myValue
QComboBox* makVrf::DtPrecisionMovementEntryWidget::myCategories
QLabel* makVrf::DtPrecisionMovementEntryWidget::myCategoryLabel
QString makVrf::DtPrecisionMovementEntryWidget::myDefaultValue
bool makVrf::DtPrecisionMovementEntryWidget::myAllowEmptyEntry
DtIfScriptedMovementObjectsResponse::ScriptedMovementObjects makVrf::DtPrecisionMovementEntryWidget::myAnimationModels
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)