VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtVisualizerAttributeComboEditor Class Reference

Default type responsible for editing attribute with a set number of values. More...

Inheritance diagram for makVrv::DtVisualizerAttributeComboEditor:
Inheritance graph
[legend]

Public Member Functions

 DtVisualizerAttributeComboEditor (DtDe &de, QWidget *parent)
virtual void setAttribute (const DtVisualizerDefinition *visDef, DtVisualizerAttribute *visAttr)
virtual void commitValue ()
 Commit the value, calls commitValue with the current index.
- Public Member Functions inherited from makVrv::DtVisualizerAttributeEditor
 DtVisualizerAttributeEditor (DtDe &de, QWidget *parent)
 CTOR.
virtual ~DtVisualizerAttributeEditor ()
 DTOR.
virtual void setType (DtElementDefinitionTypeManager::ElementDefinitionType type)
 Sets the type of the element definition.
virtual bool commited () const
 Get if the editor was commmited.
virtual bool canceled () const
 Get if the editor was canceled.
virtual const TypeInfotypeInfo () const =0
- Public Member Functions inherited from makVrv::DtVisualizerAttributeEditorInterface
virtual ~DtVisualizerAttributeEditorInterface ()

Protected Member Functions

virtual void setCurrentIndex (int index)
 Call this from the setAttribute function to properly set the current value of the combo.
virtual void getValues (QStringList &values)=0
 This is called by the combo editor to get the possible values.
virtual void commitValue (int currentIndex, const QString &value)=0
 This is called by the combo editor to commit a particular value.
- Protected Member Functions inherited from makVrv::DtVisualizerAttributeEditor
virtual void addCancelButton ()
 Adds a cancel button to the widget.

Protected Attributes

QComboBoxmyEdit
- Protected Attributes inherited from makVrv::DtVisualizerAttributeEditor
DtDemyDe
bool myCommitedFlag
bool myCancelFlag
DtElementDefinitionTypeManager::ElementDefinitionType myType
const DtVisualizerDefinitionmyVisualizerDefinition
DtVisualizerAttributemyVisualizerAttribute
QPushButtonmyCancel

Additional Inherited Members

- Public Slots inherited from makVrv::DtVisualizerAttributeEditor
virtual void cancelValue ()
virtual void onPopup ()
 Utility function for displaying a popup.
- Public Attributes inherited from makVrv::DtVisualizerAttributeEditorInterface
boost::signal< void(const
DtUnicode &original)> 
signal_attributeValueChanged
 Signal emitted if the editor changes the attribute's value.
boost::signal< void()> signal_cancel
 Signal emitted if the editor changes the attribute's value.
boost::signal< void(DtVisualizerAttributeEditorInterface *)> signal_destroyed

Detailed Description

Default type responsible for editing attribute with a set number of values.

Constructor & Destructor Documentation

makVrv::DtVisualizerAttributeComboEditor::DtVisualizerAttributeComboEditor ( DtDe de,
QWidget *  parent 
)

Member Function Documentation

virtual void makVrv::DtVisualizerAttributeComboEditor::setAttribute ( const DtVisualizerDefinition visDef,
DtVisualizerAttribute visAttr 
)
virtual
virtual void makVrv::DtVisualizerAttributeComboEditor::commitValue ( )
virtual

Commit the value, calls commitValue with the current index.

Reimplemented from makVrv::DtVisualizerAttributeEditor.

virtual void makVrv::DtVisualizerAttributeComboEditor::setCurrentIndex ( int  index)
protectedvirtual

Call this from the setAttribute function to properly set the current value of the combo.

virtual void makVrv::DtVisualizerAttributeComboEditor::getValues ( QStringList &  values)
protectedpure virtual

This is called by the combo editor to get the possible values.

Implemented in makVrv::DtVisualizerAttributeTypeEditor, and makVrv::DtVisualizerAttributeBoolEditor.

virtual void makVrv::DtVisualizerAttributeComboEditor::commitValue ( int  currentIndex,
const QString &  value 
)
protectedpure virtual

This is called by the combo editor to commit a particular value.

Implemented in makVrv::DtVisualizerAttributeTypeEditor, and makVrv::DtVisualizerAttributeBoolEditor.

Member Data Documentation

QComboBox* makVrv::DtVisualizerAttributeComboEditor::myEdit
protected

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)