VR-Forces 4.0.4 Class Documentation
Signals | Public Member Functions | Public Attributes | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes | Private Member Functions
makVrf::DtEnumerationSelectionWidget Class Reference
Inheritance diagram for makVrf::DtEnumerationSelectionWidget:
Inheritance graph
[legend]

List of all members.

Signals

void typeChanged (const DtRangedObjectType &)

Public Member Functions

 DtEnumerationSelectionWidget (QWidget *parent=NULL, const Qt::WindowFlags &flags=0)
 default constructor
virtual ~DtEnumerationSelectionWidget ()
 destructor
virtual bool init (DtDisDictionary *disDictionary, bool showEnumInText=false)
 Sets up the comboboxes based on the given DtDisDictionary.
virtual void clear ()
 Clears out any current UI elements.
virtual void clearEnumeration (int)
 Clears the enumeration values of the specified enumeration combo.
virtual void objectType (DtRangedObjectType &) const
 Fills in the object type based on combo settings.
virtual void objectType (DtObjectType &) const
virtual void setKindEnabled (bool)
void setOnlyValidKind (int)
int onlyValidKind () const
 If only one valid kind is supported, returns it.
void setAllowRange (bool)
bool allowRange () const
void setAllowWildcard (bool v)
bool allowWildCard () const
 Returns whether or not wild cards are allowed.
virtual int numberOfEnumerations () const
 Returns the number of enumerations supported by this widget.
virtual void setEnumerationEnabled (int, bool)
 Sets whether or not the enumeration combo is enabled.
virtual bool enumerationEnabled (int) const
 Returns whether or not enumeration is enabled.
virtual QHash< QString, int > supportedEnumerations (int) const
 Returns a map of the enumerations supported for the enumeration type.
virtual void setSelectedEnumeration (int enumeration, const QString &)
 Sets the enumeration to be selected.
virtual QString selectedEnumeration (int) const
 Returns the enumeration selected.
virtual void setEnumerationText (int, const QString &)
 Sets the text of the enumeration line edit.
virtual bool showEnumInText () const
 Returns true if the enumeration should be shown with the text.
virtual void addEnumeration (int enumeration, int id, const QString &)
 For the given enumeration, add the enumeration value and string respresentation.
virtual void signalTypeChanged (const DtRangedObjectType &)
 Signal that the type has changed to the supplied type.
virtual void setObjectType (const DtRangedObjectType &)
virtual void setObjectType (const DtObjectType &)

Public Attributes

Ui_DtEnumerationSelectionUI myUiImpl

Protected Types

typedef std::pair< QComboBox
*, QLineEdit * > 
EnumerationInformation
typedef std::vector
< EnumerationInformation
EnumerationInformationVector

Protected Slots

virtual void comboChanged (int)
virtual void enumerationChanged (const QString &)

Protected Member Functions

virtual void setupCombo (int)

Protected Attributes

DtEnumerationSelectionWidgetLogicmyLogic
EnumerationInformationVector myComboMappings
int myOnlyValidKind
QIntValidator myValidator
bool myAllowRange
bool myShowEnumInText
bool myAllowWildCard

Private Member Functions

 DtEnumerationSelectionWidget (const DtEnumerationSelectionWidget &orig)
 copy constructor; not implemented
DtEnumerationSelectionWidgetoperator= (const DtEnumerationSelectionWidget &rhs)
 assignment operator; not implemented

Member Typedef Documentation


Constructor & Destructor Documentation

makVrf::DtEnumerationSelectionWidget::DtEnumerationSelectionWidget ( QWidget parent = NULL,
const Qt::WindowFlags &  flags = 0 
)

default constructor

destructor

copy constructor; not implemented


Member Function Documentation

virtual bool makVrf::DtEnumerationSelectionWidget::init ( DtDisDictionary disDictionary,
bool  showEnumInText = false 
) [virtual]

Sets up the comboboxes based on the given DtDisDictionary.

If showEnumInText is set to true, the enumeration number is prepended to its corresponding text description.

Clears the enumeration values of the specified enumeration combo.

Implements makVrf::DtEnumerationSelectionWidgetInterface.

Fills in the object type based on combo settings.

Implements makVrf::DtEnumerationSelectionWidgetInterface.

virtual void makVrf::DtEnumerationSelectionWidget::objectType ( DtObjectType ) const [virtual]

If only one valid kind is supported, returns it.

Implements makVrf::DtEnumerationSelectionWidgetInterface.

Returns whether or not wild cards are allowed.

Implements makVrf::DtEnumerationSelectionWidgetInterface.

Returns the number of enumerations supported by this widget.

Implements makVrf::DtEnumerationSelectionWidgetInterface.

virtual void makVrf::DtEnumerationSelectionWidget::setEnumerationEnabled ( int  ,
bool   
) [virtual]

Sets whether or not the enumeration combo is enabled.

Implements makVrf::DtEnumerationSelectionWidgetInterface.

Returns whether or not enumeration is enabled.

Implements makVrf::DtEnumerationSelectionWidgetInterface.

virtual QHash<QString, int> makVrf::DtEnumerationSelectionWidget::supportedEnumerations ( int  ) const [virtual]

Returns a map of the enumerations supported for the enumeration type.

Implements makVrf::DtEnumerationSelectionWidgetInterface.

virtual void makVrf::DtEnumerationSelectionWidget::setSelectedEnumeration ( int  enumeration,
const QString &   
) [virtual]

Sets the enumeration to be selected.

Implements makVrf::DtEnumerationSelectionWidgetInterface.

virtual QString makVrf::DtEnumerationSelectionWidget::selectedEnumeration ( int  ) const [virtual]

Returns the enumeration selected.

Implements makVrf::DtEnumerationSelectionWidgetInterface.

virtual void makVrf::DtEnumerationSelectionWidget::setEnumerationText ( int  ,
const QString &   
) [virtual]

Sets the text of the enumeration line edit.

Implements makVrf::DtEnumerationSelectionWidgetInterface.

Returns true if the enumeration should be shown with the text.

Implements makVrf::DtEnumerationSelectionWidgetInterface.

virtual void makVrf::DtEnumerationSelectionWidget::addEnumeration ( int  enumeration,
int  id,
const QString &   
) [virtual]

For the given enumeration, add the enumeration value and string respresentation.

Implements makVrf::DtEnumerationSelectionWidgetInterface.

Signal that the type has changed to the supplied type.

Implements makVrf::DtEnumerationSelectionWidgetInterface.

virtual void makVrf::DtEnumerationSelectionWidget::setupCombo ( int  ) [protected, virtual]
virtual void makVrf::DtEnumerationSelectionWidget::comboChanged ( int  ) [protected, virtual, slot]
virtual void makVrf::DtEnumerationSelectionWidget::enumerationChanged ( const QString &  ) [protected, virtual, slot]
DtEnumerationSelectionWidget& makVrf::DtEnumerationSelectionWidget::operator= ( const DtEnumerationSelectionWidget rhs) [private]

assignment operator; not implemented


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)