VR-Forces 4.0.4 Class Documentation
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtElementEditorWidget Class Reference

The main widget for editing element definitions. More...

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

List of all members.

Public Slots

void slot_currentElementItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *previous)
void slot_currentVisualizerDefItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *previous)
void slot_addElementDefinition ()
void slot_removeElementDefinition ()
void slot_renameElementDefinition ()
void slot_addVisualizerDef ()
void slot_removeVisualizerDef ()
void slot_addAttribute ()
void slot_removeAttribute ()
void slot_removeOverrideAttribute ()
void slot_modelSetChanged (int index)
void destroyEditors ()

Public Member Functions

 DtElementEditorWidget (DtElementDefinitionTypeManager::ElementDefinitionType type, DtStateVisualizer::Type visType, DtDe &de, QWidget *parent, DtPersistenceControlsInterface *persistenceToolbar)
 CTOR.
 ~DtElementEditorWidget ()
 DTOR.
virtual void activate ()
 Activates the widget.
virtual void deactivate ()
 Deactivates the widget.
virtual void changeElementsStart ()
 Enable/Disable the remove element button.
virtual void addElement (const DtUnicode &name)
 Enable/Disable the remove element button.
virtual void addElement (const DtUnicode &name, const DtUnicode &parentName)
 Enable/Disable the remove element button.
virtual void removeElement (const DtUnicode &name)
 Enable/Disable the remove element button.
virtual void changeElementsStop ()
 Enable/Disable the remove element button.
virtual void clearElements ()
 Enable/Disable the remove element button.
virtual void selectElement (const DtUnicode &name)
 Enable/Disable the remove element button.
virtual void setModelSets (const std::vector< DtUnicode > &modelSets)
 Enable/Disable the remove element button.
virtual void setCurrentModelSet (int index)
 Enable/Disable the remove element button.
virtual void changeDefinitionStart ()
 Enable/Disable the remove element button.
virtual void clearDefinitions ()
 Enable/Disable the remove element button.
virtual void addDefinition (int index, const DtUnicode &name, bool inherited)
 Enable/Disable the remove element button.
virtual void removeDefinition (int index)
 Enable/Disable the remove element button.
virtual void changeDefinitionStop ()
 Enable/Disable the remove element button.
virtual void changeAttributeStart ()
 Enable/Disable the remove element button.
virtual void addAttribute (int defIndex, const std::string &name, const DtUnicode &value, bool inherited)
 Enable/Disable the remove element button.
virtual void removeAttribute (int defIndex, const std::string &name)
 Enable/Disable the remove element button.
virtual void changeAttributeStop ()
 Enable/Disable the remove element button.
virtual void selectAttribute (int defIndex, const std::string &name)
 Enable/Disable the remove element button.
virtual void updateAttribute (int defIndex, const std::string &name, const DtUnicode &value)
 Enable/Disable the remove element button.
QTreeWidgetItemfindAttributeItem (int defIndex, const std::string &name)
 Enable/Disable the remove element button.
virtual void setAttributeDescription (const DtUnicode &desc)
 Enable/Disable the remove element button.
virtual void createAttributeEditor (int defIndex, const std::string &name, const std::string &attrClass)
 Enable/Disable the remove element button.
virtual void destroyAttributeEditor (int defIndex, const std::string &name)
 Enable/Disable the remove element button.
virtual std::string chooseNewVisualizerDefinitionType ()
 Enable/Disable the remove element button.
virtual int chooseNewAttributeName (const std::vector< std::pair< std::string, DtUnicode > > &nameTypePairs)
 Enable/Disable the remove element button.
virtual void setRemoveElementEnabled (bool b)
 Enable/Disable the remove element button.
virtual void setAddVisualDefEnabled (bool b)
 Enable/Disable the add visual defintion button.
virtual void setRemoveVisualDefEnabled (bool b)
 Enable/Disable the remove visual definition button.
virtual void setAddAttributeEnabled (bool b)
 Enable/Disable the add attribute button.
virtual void setRemoveAttributeEnabled (bool b)
 Enable/Disable the remove attribute button.
virtual void showAddedElements (std::vector< DtUnicode > &addedNames, std::vector< DtUnicode > &skippedNames)
 Display a list of added element names.

Protected Member Functions

void setupGui ()
QString nameOfSelectedElement () const
 Get the name of the selected element.
int indexOfSelectedVisualizer ()
QString nameOfSelectedAttribute () const
 Get the name of the selected attribute.

Protected Attributes

DtDemyDe
DtElementDefinitionTypeManager::ElementDefinitionType myType
DtStateVisualizer::Type myVisType
DtElementEditorLogicmyLogic
QMap< QString, QTreeWidgetItem * > myCacheMap
QList< QTreeWidgetItem * > myTopItemCache
QList< QTreeWidgetItem * > myDeleteCache
QList< QTreeWidgetItem * > myVisualizerDefinitionTreeItemDeleteWidgetCache
QVBoxLayout * myMainLayout
QSplitter * mySplitter
QWidgetmyLeftWidgetPane
QVBoxLayout * myLeftWidgetLayout
QWidgetmyRightWidgetPane
QVBoxLayout * myRightWidgetLayout
QLabelmyElementDefinitionLabel
QTreeWidgetmyTreeWidget
QHBoxLayout * myElementButtonLayout
QPushButtonmyAddElementButton
QPushButtonmyRemoveElementButton
QPushButtonmyRenameElementButton
QHBoxLayout * myVisualizerDefinitionButtonLayout
QPushButtonmyAddVisualizerDefButton
QPushButtonmyRemoveVisualizerDefButton
QPushButtonmyAddVisualizerAttributeButton
QPushButtonmyRemoveVisualizerAttributeButton
QPushButtonmyRemoveLocalOverrideVisualizerButton
QLabelmyVisualDefinitionLabel
QHBoxLayout * myModelSetLayout
QLabelmyModelSetLabel
QComboBoxmyModelSetComboBox
QTreeWidgetmyVisualizerDefinitionTreeWidget
QTextEdit * myDescriptionText
DtPersistenceControlsInterfacemyPersistenceToolbar

Detailed Description

The main widget for editing element definitions.


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

virtual void makVrv::DtElementEditorWidget::activate ( ) [virtual]

Activates the widget.

virtual void makVrv::DtElementEditorWidget::deactivate ( ) [virtual]

Deactivates the widget.

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::addElement ( const DtUnicode name) [virtual]

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::addElement ( const DtUnicode name,
const DtUnicode parentName 
) [virtual]

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::removeElement ( const DtUnicode name) [virtual]

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::selectElement ( const DtUnicode name) [virtual]

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::setModelSets ( const std::vector< DtUnicode > &  modelSets) [virtual]

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::setCurrentModelSet ( int  index) [virtual]

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::addDefinition ( int  index,
const DtUnicode name,
bool  inherited 
) [virtual]

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::removeDefinition ( int  index) [virtual]

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::addAttribute ( int  defIndex,
const std::string &  name,
const DtUnicode value,
bool  inherited 
) [virtual]

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::removeAttribute ( int  defIndex,
const std::string &  name 
) [virtual]

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::selectAttribute ( int  defIndex,
const std::string &  name 
) [virtual]

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::updateAttribute ( int  defIndex,
const std::string &  name,
const DtUnicode value 
) [virtual]

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

QTreeWidgetItem* makVrv::DtElementEditorWidget::findAttributeItem ( int  defIndex,
const std::string &  name 
)

Enable/Disable the remove element button.

virtual void makVrv::DtElementEditorWidget::setAttributeDescription ( const DtUnicode desc) [virtual]

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::createAttributeEditor ( int  defIndex,
const std::string &  name,
const std::string &  attrClass 
) [virtual]

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::destroyAttributeEditor ( int  defIndex,
const std::string &  name 
) [virtual]

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual int makVrv::DtElementEditorWidget::chooseNewAttributeName ( const std::vector< std::pair< std::string, DtUnicode > > &  nameTypePairs) [virtual]

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

Enable/Disable the add visual defintion button.

Implements makVrv::DtElementEditorInterface.

Enable/Disable the remove visual definition button.

Implements makVrv::DtElementEditorInterface.

Enable/Disable the add attribute button.

Implements makVrv::DtElementEditorInterface.

Enable/Disable the remove attribute button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::showAddedElements ( std::vector< DtUnicode > &  addedNames,
std::vector< DtUnicode > &  skippedNames 
) [virtual]

Display a list of added element names.

Implements makVrv::DtElementEditorInterface.

Get the name of the selected element.

If an element is not selected returns empty string.

Get the name of the selected attribute.

If an attribute is not selected returns empty string.


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)