![]() |
VR-Forces 4.0.4 Class Documentation
|
Interface of the makVrv::DtMultiMapEditorWidget for the makVrv::DtMultiMapEditorLogic. More...

Public Member Functions | |
| virtual | ~DtMultiMapEditorInterface () |
| virtual void | setPossibleValues (QStringList values, int column=1)=0 |
| Set the list of possible values for value. | |
| virtual void | addValue (const std::string &key, const std::string &value, int index=1)=0 |
| Called by the logic to add a key/value to the widget. | |
| virtual void | changeValue (const std::string &key, const std::string &oldValue, const std::string &value, int index=1)=0 |
| Called by the logic to change a key/value to the widget. | |
| virtual void | deleteValue (const std::string &key, const std::string &value)=0 |
| Called by the logic to delete a key/value to the widget. | |
| virtual void | replaceValue (const std::string &key, const std::string &oldValue, const std::string &newValue)=0 |
| Called by the logic to replace the old value with the new value for the specified key. | |
| virtual void | clearValues ()=0 |
| Called by the logic to clear all values on widget. | |
| virtual void | unableToRenameParameter (const std::string &oldName)=0 |
| Called by the logic when a renameValue fails. | |
| virtual void | sortItems ()=0 |
| Sort the items. | |
| virtual void | selectValue (const std::string &key, const std::string &value)=0 |
| Called by the logic to select a value in the widget. | |
| virtual void | selectFirstValue (const std::string &key)=0 |
| Called by the logic to select a value in the widget. | |
| virtual void | renameKey (const std::string &oldkey, const std::string &value, const std::string &newkey)=0 |
| 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. | |
| virtual void | setTitle (const QString &)=0 |
| Sets the title of the label next to dialog buttons. | |
| virtual bool | selectedInstanceNameAndValue (QString &key, QString &value) const =0 |
| Returns the selected instance name and value in the supplied parameters. | |
| virtual QWidget * | widget ()=0 |
| Returns this widget. | |
| virtual void | setValid (const std::string &name, const std::string &value, bool valid, const QString &errorText)=0 |
| Sets value valid/invalid and gives text to display when selected if invalid. | |
Public Attributes | |
| boost::signal< void(const std::string &oldName, const std::string &value, 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, const std::string &oldValue, const std::string &value, int index)> | signal_valueChanged |
| Signal emitted when the user wants to add a new key/value. | |
| boost::signal< void(const std::string &key, const std::string &value)> | signal_deleteValue |
| Signal emitted when the user wants to delete a key value. | |
| boost::signal< void(const std::string &key)> | signal_itemSelected |
Interface of the makVrv::DtMultiMapEditorWidget for the makVrv::DtMultiMapEditorLogic.
| virtual makVrv::DtMultiMapEditorInterface::~DtMultiMapEditorInterface | ( | ) | [virtual] |
| virtual void makVrv::DtMultiMapEditorInterface::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::DtMultiMapEditorWidget.
| virtual void makVrv::DtMultiMapEditorInterface::addValue | ( | const std::string & | key, |
| const std::string & | value, | ||
| int | index = 1 |
||
| ) | [pure virtual] |
Called by the logic to add a key/value to the widget.
Implemented in makVrv::DtMultiMapEditorWidget.
| virtual void makVrv::DtMultiMapEditorInterface::changeValue | ( | const std::string & | key, |
| const std::string & | oldValue, | ||
| const std::string & | value, | ||
| int | index = 1 |
||
| ) | [pure virtual] |
Called by the logic to change a key/value to the widget.
Implemented in makVrv::DtMultiMapEditorWidget.
| virtual void makVrv::DtMultiMapEditorInterface::deleteValue | ( | const std::string & | key, |
| const std::string & | value | ||
| ) | [pure virtual] |
Called by the logic to delete a key/value to the widget.
Implemented in makVrv::DtEntityTypeMapEditorWidget, and makVrv::DtMultiMapEditorWidget.
| virtual void makVrv::DtMultiMapEditorInterface::replaceValue | ( | const std::string & | key, |
| const std::string & | oldValue, | ||
| const std::string & | newValue | ||
| ) | [pure virtual] |
Called by the logic to replace the old value with the new value for the specified key.
Implemented in makVrv::DtMultiMapEditorWidget.
| virtual void makVrv::DtMultiMapEditorInterface::clearValues | ( | ) | [pure virtual] |
Called by the logic to clear all values on widget.
Implemented in makVrv::DtMultiMapEditorWidget, and makVrv::DtEntityTypeMapEditorWidget.
| virtual void makVrv::DtMultiMapEditorInterface::unableToRenameParameter | ( | const std::string & | oldName | ) | [pure virtual] |
Called by the logic when a renameValue fails.
Implemented in makVrv::DtMultiMapEditorWidget.
| virtual void makVrv::DtMultiMapEditorInterface::sortItems | ( | ) | [pure virtual] |
Sort the items.
Implemented in makVrv::DtMultiMapEditorWidget.
| virtual void makVrv::DtMultiMapEditorInterface::selectValue | ( | const std::string & | key, |
| const std::string & | value | ||
| ) | [pure virtual] |
Called by the logic to select a value in the widget.
Implemented in makVrv::DtMultiMapEditorWidget.
| virtual void makVrv::DtMultiMapEditorInterface::selectFirstValue | ( | const std::string & | key | ) | [pure virtual] |
Called by the logic to select a value in the widget.
Implemented in makVrv::DtMultiMapEditorWidget.
| virtual void makVrv::DtMultiMapEditorInterface::renameKey | ( | const std::string & | oldkey, |
| const std::string & | value, | ||
| 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::DtMultiMapEditorWidget, and makVrv::DtEntityTypeMapEditorWidget.
| virtual void makVrv::DtMultiMapEditorInterface::setTitle | ( | const QString & | ) | [pure virtual] |
Sets the title of the label next to dialog buttons.
Implemented in makVrv::DtMultiMapEditorWidget.
| virtual bool makVrv::DtMultiMapEditorInterface::selectedInstanceNameAndValue | ( | QString & | key, |
| QString & | value | ||
| ) | const [pure virtual] |
Returns the selected instance name and value in the supplied parameters.
Will return true if there is something selected
Implemented in makVrv::DtMultiMapEditorWidget.
| virtual QWidget* makVrv::DtMultiMapEditorInterface::widget | ( | ) | [pure virtual] |
Returns this widget.
Implemented in makVrv::DtMultiMapEditorWidget.
| virtual void makVrv::DtMultiMapEditorInterface::setValid | ( | const std::string & | name, |
| const std::string & | value, | ||
| bool | valid, | ||
| const QString & | errorText | ||
| ) | [pure virtual] |
Sets value valid/invalid and gives text to display when selected if invalid.
Invalid backgroud color is 0
Implemented in makVrv::DtMultiMapEditorWidget, and makVrv::DtEntityTypeMapEditorWidget.
| boost::signal<void (const std::string& oldName,const std::string& value, const std::string& newName)> makVrv::DtMultiMapEditorInterface::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)> makVrv::DtMultiMapEditorInterface::signal_addValue |
Signal emitted when the user wants to add a new key/value.
Optionally there is an index provided for multiple values.
| boost::signal<void (const std::string& key,const std::string& oldValue, const std::string& value, int index)> makVrv::DtMultiMapEditorInterface::signal_valueChanged |
Signal emitted when the user wants to add a new key/value.
Optionally there is an index provided for multiple values.
| boost::signal<void (const std::string& key, const std::string& value)> makVrv::DtMultiMapEditorInterface::signal_deleteValue |
Signal emitted when the user wants to delete a key value.
| boost::signal<void (const std::string& key)> makVrv::DtMultiMapEditorInterface::signal_itemSelected |