VR-Forces 4.8 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 Referenceabstract

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. More...
 
- Public Member Functions inherited from makVrv::DtVisualizerAttributeEditor
 DtVisualizerAttributeEditor (DtDe &de, QWidget *parent)
 CTOR. More...
 
virtual ~DtVisualizerAttributeEditor ()
 DTOR. More...
 
virtual void setType (DtElementDefinitionTypeManager::ElementDefinitionType type)
 Sets the type of the element definition. More...
 
virtual bool commited () const
 Get if the editor was commmited. More...
 
virtual bool canceled () const
 Get if the editor was canceled. More...
 
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. More...
 
virtual void getValues (QStringList &values)=0
 This is called by the combo editor to get the possible values. More...
 
virtual void commitValue (int currentIndex, const QString &value)=0
 This is called by the combo editor to commit a particular value. More...
 
- Protected Member Functions inherited from makVrv::DtVisualizerAttributeEditor
virtual void addCancelButton ()
 Adds a cancel button to the widget. More...
 

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. More...
 
- Public Attributes inherited from makVrv::DtVisualizerAttributeEditorInterface
boost::signal< void(const
DtUnicode &original)> 
signal_attributeValueChanged
 Signal emitted if the editor changes the attribute's value. More...
 
boost::signal< void()> signal_cancel
 Signal emitted if the editor changes the attribute's value. More...
 
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 Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)