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 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. More...
 
virtual void setSchema (const std::vector< std::string > &schema)
 Set the current schema list for the widget. More...
 
virtual void setFileLocationBar (const std::vector< std::string > &schema)
 Fill the file location dropdown bar with all file name in //! directory. More...
 
virtual void setCurrentSchema (const std::string &currentSchema)
 Set the current schema. More...
 
virtual void setCurrentFileLocation (const std::string &currentSchema)
 Refresh file location dropdown bar to display the location of the currently selected definition. More...
 
std::string getCurrentFileLocation ()
 returns the file location currently displayed in the file location dropdown box More...
 
virtual void updateErrorMessages (const QStringList &messages)
 Set the error messages. More...
 
- Public Member Functions inherited from makVrv::DtMapEditorWidget
 DtMapEditorWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0)
 CTOR. More...
 
virtual ~DtMapEditorWidget ()
 DTOR. More...
 
virtual void setColumnTitles (QString keyTitle, QStringList valueTitles)
 Set strings to indicate the name of the keys and the name of the values. More...
 
virtual void setPossibleValues (QStringList values, int column)
 Set the possible value selection for a column. More...
 
const QStringList & possibleValues (int column)
 Get the possible values for a column. More...
 
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. More...
 
virtual void deleteValue (const std::string &key)
 Called by the logic to delete a key/value to the widget. More...
 
virtual void clearValues ()
 Called by the logic to clear all values on widget. More...
 
virtual void renameKey (const std::string &oldkey, const std::string &newkey)
 Called by the logic to rename a key. More...
 
virtual void selectValue (const std::string &key)
 Called by the logic to select a value in the widget. More...
 
virtual void unableToRenameParameter (const std::string &oldName)
 Called by the logic when a rename fails. More...
 
virtual void setKeyVisible (bool visible)
 Called by the logic to show/hide key column. More...
 
virtual void setLabelText (const std::string &)
 Sets label text for label next to buttons. More...
 
virtual void setFilterVisible (const bool &isVisible)
 Hides the file location buttons for Schema editor. More...
 
virtual void setUseSpacer (bool)
 Sets whether or not to show a spacer underneath the label. More...
 
virtual void sortValues ()
 Sorts all items in ascending order. More...
 
- Public Member Functions inherited from makVrv::DtMapEditorInterface
virtual ~DtMapEditorInterface ()
 
- Public Member Functions inherited from makVrv::DtModelDefinitionEditorInterface
 DtModelDefinitionEditorInterface ()
 CTOR. More...
 
virtual ~DtModelDefinitionEditorInterface ()
 

Protected Slots

virtual void on_mySchemaComboBox_currentIndexChanged (int index)
 
virtual void on_myFileComboBox_currentIndexChanged (int index)
 Updates the current file path in the dropdown whenever a new element is selected. More...
 
- 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_myChangeFileLocationButton_clicked ()
 
virtual void on_myChangeFileFilterButton_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)
 
void setupGui ()
 
QTreeWidgetItemfindItem (const std::string &key)
 
QString selectedInstanceName () const
 

Protected Attributes

QHBoxLayout * myVisualizerDefinitionButtonLayout
 
QLabelmySchemaLabel
 
QLabelmyFileLabel
 
QComboBoxmySchemaComboBox
 
QComboBoxmyFileComboBox
 
QTextEdit * myErrorMessages
 
- Protected Attributes inherited from makVrv::DtMapEditorWidget
DtDemyDe
 
QVBoxLayout * myMainLayout
 
QLabelmyLabel
 
QLabelmySpacer
 
QHBoxLayout * myButtonLayout
 
DtContextTreeWidgetmyTreeWidget
 
QPushButtonmyAddButton
 
QPushButtonmyDeleteButton
 
QPushButtonmyRenameButton
 
QPushButtonmyChangeFilePathButton
 
QPushButtonmyChangeFileFilterButton
 
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. More...
 
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. More...
 
boost::signal< void()> signal_changeFileName
 
boost::signal< void()> signal_changeFileFilter
 
boost::signal< void(const
std::string &key)> 
signal_deleteValue
 Signal emitted when the user wants to delete a key value. More...
 
boost::signal< void(const
std::string &key)> 
signal_itemSelected
 Signal emitted when a value is selected. More...
 
- Public Attributes inherited from makVrv::DtModelDefinitionEditorInterface
boost::signal< void(const
std::string &schema)> 
signal_schemaChanged
 
boost::signal< void(const
std::string &schema)> 
signal_fileChanged
 
- 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::setFileLocationBar ( const std::vector< std::string > &  schema)
virtual

Fill the file location dropdown bar with all file name in //! directory.

Implements makVrv::DtModelDefinitionEditorInterface.

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

Set the current schema.

Implements makVrv::DtModelDefinitionEditorInterface.

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

Refresh file location dropdown bar to display the location of the currently selected definition.

Implements makVrv::DtModelDefinitionEditorInterface.

std::string makVrv::DtModelDefinitionEditorWidget::getCurrentFileLocation ( )
virtual

returns the file location currently displayed in the file location dropdown box

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
virtual void makVrv::DtModelDefinitionEditorWidget::on_myFileComboBox_currentIndexChanged ( int  index)
protectedvirtualslot

Updates the current file path in the dropdown whenever a new element is selected.

void makVrv::DtModelDefinitionEditorWidget::setupGui ( )
protected

Member Data Documentation

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