VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
makVrv::DtMapEditorInterface Class Referenceabstract

Interface for a key/value pair editor GUI.

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

Public Member Functions

virtual ~DtMapEditorInterface ()
 
virtual void setPossibleValues (QStringList values, int column=1)=0
 
virtual void setValue (const std::string &key, const std::string &value, int index=1, DtCustomTreeWidgetEditor::EditorType defaultEditor=DtCustomTreeWidgetEditor::DefaultEditor)=0
 
virtual void deleteValue (const std::string &key)=0
 
virtual void clearValues ()=0
 
virtual void unableToRenameParameter (const std::string &oldName)=0
 
virtual void selectValue (const std::string &key)=0
 
virtual void renameKey (const std::string &oldkey, const std::string &newkey)=0
 
virtual void setLabelText (const std::string &)=0
 
virtual void setUseSpacer (bool)=0
 
virtual void sortValues ()=0
 
virtual void setKeyTextColour (const std::string &key, int r, int g, int b, int a, int index=1)=0
 

Public Attributes

boost::signalslib::signal
< void(const std::string
&oldName, const std::string
&newName)> 
signal_renameValue
 
boost::signalslib::signal
< void(const std::string &key,
const std::string &value, int
index)> 
signal_addValue
 
boost::signalslib::signal< void()> signal_changeFileName
 
boost::signalslib::signal< void()> signal_changeFileFilter
 
boost::signalslib::signal
< void(const std::string &key)> 
signal_deleteValue
 
boost::signalslib::signal
< void(const std::string &key)> 
signal_itemSelected
 

Constructor & Destructor Documentation

virtual makVrv::DtMapEditorInterface::~DtMapEditorInterface ( )
virtual

Member Function Documentation

virtual void makVrv::DtMapEditorInterface::setPossibleValues ( QStringList  values,
int  column = 1 
)
pure virtual

Set the list of possible values for value. Optionally there may be multiple sets of values, specified by the index.

Implemented in makVrv::DtMapEditorWidget.

virtual void makVrv::DtMapEditorInterface::setValue ( const std::string &  key,
const std::string &  value,
int  index = 1,
DtCustomTreeWidgetEditor::EditorType  defaultEditor = DtCustomTreeWidgetEditor::DefaultEditor 
)
pure virtual

Called by the logic to add a key/value to the widget.

Implemented in makVrv::DtMapEditorWidget.

virtual void makVrv::DtMapEditorInterface::deleteValue ( const std::string &  key)
pure virtual

Called by the logic to delete a key/value to the widget.

Implemented in makVrv::DtMapEditorWidget.

virtual void makVrv::DtMapEditorInterface::clearValues ( )
pure virtual

Called by the logic to clear all values on widget.

Implemented in makVrv::DtMapEditorWidget, and makVrv::DtModelDefinitionEditorWidget.

virtual void makVrv::DtMapEditorInterface::unableToRenameParameter ( const std::string &  oldName)
pure virtual

Called by the logic when a renameValue fails.

Implemented in makVrv::DtMapEditorWidget.

virtual void makVrv::DtMapEditorInterface::selectValue ( const std::string &  key)
pure virtual

Called by the logic to select a value in the widget.

Implemented in makVrv::DtMapEditorWidget.

virtual void makVrv::DtMapEditorInterface::renameKey ( const std::string &  oldkey,
const std::string &  newkey 
)
pure virtual

Called by the logic to rename a key Warning: This only does so visually and is primarily only used when using the map editor to display an ordered list with an invisible key.

Implemented in makVrv::DtMapEditorWidget.

virtual void makVrv::DtMapEditorInterface::setLabelText ( const std::string &  )
pure virtual

Sets label text for label next to buttons.

Implemented in makVrv::DtMapEditorWidget.

virtual void makVrv::DtMapEditorInterface::setUseSpacer ( bool  )
pure virtual

Sets whether or not to show a spacer underneath the label. Default is true (used for layout with other widgets on screen)

Implemented in makVrv::DtMapEditorWidget.

virtual void makVrv::DtMapEditorInterface::sortValues ( )
pure virtual

Sorts all items in ascending order.

Implemented in makVrv::DtMapEditorWidget.

virtual void makVrv::DtMapEditorInterface::setKeyTextColour ( const std::string &  key,
int  r,
int  g,
int  b,
int  a,
int  index = 1 
)
pure virtual

Called by the logic to setKeyTextColour used when definitions are not valid.

Implemented in makVrv::DtMapEditorWidget.

Member Data Documentation

boost::signalslib::signal<void (const std::string& oldName,const std::string& newName)> makVrv::DtMapEditorInterface::signal_renameValue

Signal emitted when the user wants to rename a key.

boost::signalslib::signal<void (const std::string& key,const std::string& value, int index)> makVrv::DtMapEditorInterface::signal_addValue

Signal emitted when the user wants to add a new key/value. Optionally there is an index provided for multiple values.

boost::signalslib::signal<void()> makVrv::DtMapEditorInterface::signal_changeFileName
boost::signalslib::signal<void()> makVrv::DtMapEditorInterface::signal_changeFileFilter
boost::signalslib::signal<void (const std::string& key)> makVrv::DtMapEditorInterface::signal_deleteValue

Signal emitted when the user wants to delete a key value.

boost::signalslib::signal<void (const std::string& key)> makVrv::DtMapEditorInterface::signal_itemSelected

Signal emitted when a value is selected.


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

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)