VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | 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]

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, bool valid)
 Enable/Disable the remove element button.
virtual void addElement (const DtUnicode &name, const DtUnicode &parentName, bool valid)
 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.
- Public Member Functions inherited from makVrv::DtElementEditorInterface
 DtElementEditorInterface ()
 CTOR.
virtual ~DtElementEditorInterface ()
 DTOR.

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

Additional Inherited Members

- Public Attributes inherited from makVrv::DtElementEditorInterface
boost::signal< void(const
DtUnicode &)> 
signal_addElement
boost::signal< void()> signal_removeElement
boost::signal< void(const
DtUnicode &, const DtUnicode &)> 
signal_renameElement
boost::signal< void(const
DtUnicode &)> 
signal_elementSelected
boost::signal< void(const
DtUnicode &)> 
signal_elementDeselected
boost::signal< void()> signal_noElementSelected
boost::signal< void(int index)> signal_modelSetChanged
boost::signal< void(int index)> signal_visualizerDefSelected
boost::signal< void(int index)> signal_visualizerDefDeselected
boost::signal< void(int index,
const std::string &)> 
signal_attributeSelected
boost::signal< void(int index,
const std::string &)> 
signal_attributeDeselected
boost::signal< void()> signal_noVisualizerOrAttributeSelected
boost::signal< void()> signal_addVisualizer
boost::signal< void(int index)> signal_removeVisualizer
boost::signal< void(int index)> signal_addAttribute
boost::signal< void(int index,
const std::string &)> 
signal_removeAttribute
boost::signal< void(int index,
const std::string &)> 
signal_removeLocalAttribute
boost::signal< void(int index,
const std::string
&, DtVisualizerAttributeEditorInterface
*iface)> 
signal_attributeEditorCreated

Detailed Description

The main widget for editing element definitions.

Constructor & Destructor Documentation

makVrv::DtElementEditorWidget::DtElementEditorWidget ( DtElementDefinitionTypeManager::ElementDefinitionType  type,
DtStateVisualizer::Type  visType,
DtDe de,
QWidget parent,
DtPersistenceControlsInterface persistenceToolbar 
)

CTOR.

makVrv::DtElementEditorWidget::~DtElementEditorWidget ( )

DTOR.

Member Function Documentation

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

Activates the widget.

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

Deactivates the widget.

virtual void makVrv::DtElementEditorWidget::changeElementsStart ( )
virtual

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::addElement ( const DtUnicode name,
bool  valid 
)
virtual

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::addElement ( const DtUnicode name,
const DtUnicode parentName,
bool  valid 
)
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.

virtual void makVrv::DtElementEditorWidget::changeElementsStop ( )
virtual

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::clearElements ( )
virtual

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.

virtual void makVrv::DtElementEditorWidget::changeDefinitionStart ( )
virtual

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::clearDefinitions ( )
virtual

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.

virtual void makVrv::DtElementEditorWidget::changeDefinitionStop ( )
virtual

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::changeAttributeStart ( )
virtual

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.

virtual void makVrv::DtElementEditorWidget::changeAttributeStop ( )
virtual

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.

Reimplemented in makVrf::DtSpotReportElementEditorWidget.

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

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual std::string makVrv::DtElementEditorWidget::chooseNewVisualizerDefinitionType ( )
virtual

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

Reimplemented in makVrf::DtSpotReportElementEditorWidget.

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

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::setRemoveElementEnabled ( bool  b)
virtual

Enable/Disable the remove element button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::setAddVisualDefEnabled ( bool  b)
virtual

Enable/Disable the add visual defintion button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::setRemoveVisualDefEnabled ( bool  b)
virtual

Enable/Disable the remove visual definition button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::setAddAttributeEnabled ( bool  b)
virtual

Enable/Disable the add attribute button.

Implements makVrv::DtElementEditorInterface.

virtual void makVrv::DtElementEditorWidget::setRemoveAttributeEnabled ( bool  b)
virtual

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.

void makVrv::DtElementEditorWidget::setupGui ( )
protected
QString makVrv::DtElementEditorWidget::nameOfSelectedElement ( ) const
protected

Get the name of the selected element.

If an element is not selected returns empty string.

int makVrv::DtElementEditorWidget::indexOfSelectedVisualizer ( )
protected
QString makVrv::DtElementEditorWidget::nameOfSelectedAttribute ( ) const
protected

Get the name of the selected attribute.

If an attribute is not selected returns empty string.

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

Member Data Documentation

DtDe& makVrv::DtElementEditorWidget::myDe
protected
DtElementDefinitionTypeManager::ElementDefinitionType makVrv::DtElementEditorWidget::myType
protected
DtStateVisualizer::Type makVrv::DtElementEditorWidget::myVisType
protected
DtElementEditorLogic* makVrv::DtElementEditorWidget::myLogic
protected
QMap<QString,QTreeWidgetItem*> makVrv::DtElementEditorWidget::myCacheMap
protected
QList<QTreeWidgetItem*> makVrv::DtElementEditorWidget::myTopItemCache
protected
QList<QTreeWidgetItem*> makVrv::DtElementEditorWidget::myDeleteCache
protected
QList<QTreeWidgetItem*> makVrv::DtElementEditorWidget::myVisualizerDefinitionTreeItemDeleteWidgetCache
protected
QVBoxLayout* makVrv::DtElementEditorWidget::myMainLayout
protected
QSplitter* makVrv::DtElementEditorWidget::mySplitter
protected
QWidget* makVrv::DtElementEditorWidget::myLeftWidgetPane
protected
QVBoxLayout* makVrv::DtElementEditorWidget::myLeftWidgetLayout
protected
QWidget* makVrv::DtElementEditorWidget::myRightWidgetPane
protected
QVBoxLayout* makVrv::DtElementEditorWidget::myRightWidgetLayout
protected
QLabel* makVrv::DtElementEditorWidget::myElementDefinitionLabel
protected
QTreeWidget* makVrv::DtElementEditorWidget::myTreeWidget
protected
QHBoxLayout* makVrv::DtElementEditorWidget::myElementButtonLayout
protected
QPushButton* makVrv::DtElementEditorWidget::myAddElementButton
protected
QPushButton* makVrv::DtElementEditorWidget::myRemoveElementButton
protected
QPushButton* makVrv::DtElementEditorWidget::myRenameElementButton
protected
QHBoxLayout* makVrv::DtElementEditorWidget::myVisualizerDefinitionButtonLayout
protected
QPushButton* makVrv::DtElementEditorWidget::myAddVisualizerDefButton
protected
QPushButton* makVrv::DtElementEditorWidget::myRemoveVisualizerDefButton
protected
QPushButton* makVrv::DtElementEditorWidget::myAddVisualizerAttributeButton
protected
QPushButton* makVrv::DtElementEditorWidget::myRemoveVisualizerAttributeButton
protected
QPushButton* makVrv::DtElementEditorWidget::myRemoveLocalOverrideVisualizerButton
protected
QLabel* makVrv::DtElementEditorWidget::myVisualDefinitionLabel
protected
QHBoxLayout* makVrv::DtElementEditorWidget::myModelSetLayout
protected
QLabel* makVrv::DtElementEditorWidget::myModelSetLabel
protected
QComboBox* makVrv::DtElementEditorWidget::myModelSetComboBox
protected
QTreeWidget* makVrv::DtElementEditorWidget::myVisualizerDefinitionTreeWidget
protected
QTextEdit* makVrv::DtElementEditorWidget::myDescriptionText
protected
DtPersistenceControlsInterface* makVrv::DtElementEditorWidget::myPersistenceToolbar
protected

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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)