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

Editor widget for editing model definitions. More...

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

Public Member Functions

 DtModelDefinitionEditorWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0)
 CTOR.
virtual void setSchema (const std::vector< std::string > &schema)
 Set the current schema list for the widget.
virtual void setCurrentSchema (const std::string &currentSchema)
 Set the current schema.
virtual void updateErrorMessages (const QStringList &messages)
 Set the error messages.
- Public Member Functions inherited from makVrv::DtMapEditorWidget
 DtMapEditorWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0)
 CTOR.
virtual ~DtMapEditorWidget ()
 DTOR.
virtual void setColumnTitles (QString keyTitle, QStringList valueTitles)
 Set strings to indicate the name of the keys and the name of the values.
virtual void setPossibleValues (QStringList values, int column)
 Set the possible value selection for a column.
const QStringList & possibleValues (int column)
 Get the possible values for a column.
virtual void setValue (const std::string &key, const std::string &value, int index=1, DtCustomTreeWidgetEditor::EditorType defaultEditor=DtCustomTreeWidgetEditor::DefaultEditor)
 Called by the logic to add a key/value to the widget as well as a description of that value.
virtual void deleteValue (const std::string &key)
 Called by the logic to delete a key/value to the widget.
virtual void clearValues ()
 Called by the logic to clear all values on widget.
virtual void renameKey (const std::string &oldkey, const std::string &newkey)
 Called by the logic to rename a key.
virtual void selectValue (const std::string &key)
 Called by the logic to select a value in the widget.
virtual void unableToRenameParameter (const std::string &oldName)
 Called by the logic when a rename fails.
virtual void setKeyVisible (bool visible)
 Called by the logic to show/hide key column.
virtual void setLabelText (const std::string &)
 Sets label text for label next to buttons.
virtual void setUseSpacer (bool)
 Sets whether or not to show a spacer underneath the label.
virtual void sortValues ()
 Sorts all items in ascending order.
- Public Member Functions inherited from makVrv::DtMapEditorInterface
virtual ~DtMapEditorInterface ()
- Public Member Functions inherited from makVrv::DtModelDefinitionEditorInterface
virtual ~DtModelDefinitionEditorInterface ()

Protected Slots

virtual void on_mySchemaComboBox_currentIndexChanged (int index)
- Protected Slots inherited from makVrv::DtMapEditorWidget
virtual void on_myTreeWidget_itemActivated (QTreeWidgetItem *item, int column)
virtual void on_myTreeWidget_itemDoubleClicked (QTreeWidgetItem *item, int column)
virtual void on_myTreeWidget_itemClicked (QTreeWidgetItem *item, int column)
virtual void on_myTreeWidget_itemChanged (QTreeWidgetItem *item, int column)
virtual void on_myTreeWidget_itemSelectionChanged ()
virtual void on_myAddButton_clicked ()
virtual void on_myDeleteButton_clicked ()
virtual void on_myRenameButton_clicked ()
virtual void on_addKey (QAction *action)
void editParameterName (QString nameInData)

Protected Member Functions

void setupGui ()
- Protected Member Functions inherited from makVrv::DtMapEditorWidget
QString askForNewName (QString initial, const QString &title)
QTreeWidgetItemfindItem (const std::string &key)
QString selectedInstanceName () const

Protected Attributes

QLabelmySchemaLabel
QComboBoxmySchemaComboBox
QTextEdit * myErrorMessages
- Protected Attributes inherited from makVrv::DtMapEditorWidget
DtDemyDe
QVBoxLayout * myMainLayout
QLabelmyLabel
QLabelmySpacer
QHBoxLayout * myButtonLayout
DtContextTreeWidgetmyTreeWidget
QPushButtonmyAddButton
QPushButtonmyDeleteButton
QPushButtonmyRenameButton
QMenumyMenu
FastTreeLoopkupMap myFastItemLookup
ComboValueMap myPossibleValues

Additional Inherited Members

- Public Attributes inherited from makVrv::DtMapEditorInterface
boost::signal< void(const
std::string &oldName, const
std::string &newName)> 
signal_renameValue
 Signal emitted when the user wants to rename a key.
boost::signal< void(const
std::string &key, const
std::string &value, int index)> 
signal_addValue
 Signal emitted when the user wants to add a new key/value.
boost::signal< void(const
std::string &key)> 
signal_deleteValue
 Signal emitted when the user wants to delete a key value.
boost::signal< void(const
std::string &key)> 
signal_itemSelected
 Signal emitted when a value is selected.
- Public Attributes inherited from makVrv::DtModelDefinitionEditorInterface
boost::signal< void(const
std::string &schema)> 
signal_schemaChanged
- Protected Types inherited from makVrv::DtMapEditorWidget
typedef std::map< std::string,
QTreeWidgetItem * > 
FastTreeLoopkupMap
typedef std::map< int,
QStringList > 
ComboValueMap

Detailed Description

Editor widget for editing model definitions.

Constructor & Destructor Documentation

makVrv::DtModelDefinitionEditorWidget::DtModelDefinitionEditorWidget ( DtDe de,
QWidget parent = 0,
Qt::WindowFlags  f = 0 
)

CTOR.

Member Function Documentation

virtual void makVrv::DtModelDefinitionEditorWidget::setSchema ( const std::vector< std::string > &  schema)
virtual

Set the current schema list for the widget.

Implements makVrv::DtModelDefinitionEditorInterface.

virtual void makVrv::DtModelDefinitionEditorWidget::setCurrentSchema ( const std::string &  currentSchema)
virtual

Set the current schema.

Implements makVrv::DtModelDefinitionEditorInterface.

virtual void makVrv::DtModelDefinitionEditorWidget::updateErrorMessages ( const QStringList &  messages)
virtual

Set the error messages.

Implements makVrv::DtModelDefinitionEditorInterface.

virtual void makVrv::DtModelDefinitionEditorWidget::on_mySchemaComboBox_currentIndexChanged ( int  index)
protectedvirtualslot
void makVrv::DtModelDefinitionEditorWidget::setupGui ( )
protected

Reimplemented from makVrv::DtMapEditorWidget.

Member Data Documentation

QLabel* makVrv::DtModelDefinitionEditorWidget::mySchemaLabel
protected
QComboBox* makVrv::DtModelDefinitionEditorWidget::mySchemaComboBox
protected
QTextEdit* makVrv::DtModelDefinitionEditorWidget::myErrorMessages
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)