![]() |
VR-Forces Developer's Guide
|
Interface for a key/value pair editor GUI.

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 |
|
virtual |
|
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.
|
pure virtual |
Called by the logic to add a key/value to the widget.
Implemented in makVrv::DtMapEditorWidget.
|
pure virtual |
Called by the logic to delete a key/value to the widget.
Implemented in makVrv::DtMapEditorWidget.
|
pure virtual |
Called by the logic to clear all values on widget.
Implemented in makVrv::DtMapEditorWidget, and makVrv::DtModelDefinitionEditorWidget.
|
pure virtual |
Called by the logic when a renameValue fails.
Implemented in makVrv::DtMapEditorWidget.
|
pure virtual |
Called by the logic to select a value in the widget.
Implemented in makVrv::DtMapEditorWidget.
|
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.
|
pure virtual |
Sets label text for label next to buttons.
Implemented in makVrv::DtMapEditorWidget.
|
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.
|
pure virtual |
Sorts all items in ascending order.
Implemented in makVrv::DtMapEditorWidget.
|
pure virtual |
Called by the logic to setKeyTextColour used when definitions are not valid.
Implemented in makVrv::DtMapEditorWidget.
| 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.