VR-Forces 5.0.2 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 | Private Member Functions
makVrv::DtMultiMapEditorInterface Class Referenceabstract

Interface of the makVrv::DtMultiMapEditorWidget for the makVrv::DtMultiMapEditorLogic.

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

Public Member Functions

 DtMultiMapEditorInterface ()
 
virtual ~DtMultiMapEditorInterface ()
 
virtual void setPossibleValues (const QStringList &values, int column=1)=0
 
virtual void addValue (const std::string &key, const std::string &value, int index=1)=0
 
virtual void changeFilePath ()=0
 
virtual void changeValue (const std::string &key, const std::string &oldValue, const std::string &value, int index=1)=0
 
virtual void deleteValue (const std::string &key, const std::string &value)=0
 
virtual void deleteValues (const std::vector< std::string > &key, const std::vector< std::string > &value)=0
 
virtual void replaceValue (const std::string &key, const std::string &oldValue, const std::string &newValue)=0
 
virtual void clearValues ()=0
 
virtual void unableToRenameParameter (const std::string &oldName)=0
 
virtual void sortItems ()=0
 
virtual void selectValue (const std::string &key, const std::string &value)=0
 
virtual void selectAdditionalValue (const std::string &key, const std::string &value)=0
 
virtual void selectFirstValue (const std::string &key)=0
 
virtual void filterValues (const std::vector< std::string > &keys)=0
 
virtual void filterValues (const std::vector< std::pair< std::string, std::string > > &keys)=0
 
virtual void setAllTopLevelTreeWidgetItemsHidden (bool hide)=0
 
virtual void renameKey (const std::string &oldkey, const std::string &value, const std::string &newkey)=0
 
virtual void setTitle (const QString &)=0
 
virtual bool selectedInstanceNameAndValue (std::vector< std::string > &keys, std::vector< std::string > &values) const =0
 
virtual QWidget * widget ()=0
 
virtual void setValid (const std::string &name, const std::string &value, bool valid, const QString &errorText)=0
 
virtual void showErrors ()=0
 
virtual std::vector< std::string > selectedInstancesNames ()=0
 

Public Attributes

boost::signalslib::signal
< void(const std::string
&oldName, const std::string
&value, 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_changeFilePath
 
boost::signalslib::signal< void()> signal_changeFileFilterPath
 
boost::signalslib::signal
< void(const std::string &key,
const std::string &oldValue,
const std::string &value, int
index)> 
signal_valueChanged
 
boost::signalslib::signal
< void(const std::vector
< std::string > &keys, const
std::vector< std::string >
&values)> 
signal_deleteValue
 
boost::signalslib::signal
< void(const std::string &key)> 
signal_itemSelected
 

Private Member Functions

 DtMultiMapEditorInterface (const DtMultiMapEditorInterface &copy)
 
DtMultiMapEditorInterfaceoperator= (const DtMultiMapEditorInterface &)
 

Constructor & Destructor Documentation

makVrv::DtMultiMapEditorInterface::DtMultiMapEditorInterface ( )
virtual makVrv::DtMultiMapEditorInterface::~DtMultiMapEditorInterface ( )
virtual
makVrv::DtMultiMapEditorInterface::DtMultiMapEditorInterface ( const DtMultiMapEditorInterface copy)
private

Copy Constructor.

Member Function Documentation

DtMultiMapEditorInterface& makVrv::DtMultiMapEditorInterface::operator= ( const DtMultiMapEditorInterface )
private

Assignment Operator Not implemented.

virtual void makVrv::DtMultiMapEditorInterface::setPossibleValues ( const 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::changeFilePath ( )
pure virtual

Changes the path of currently selected definition to the file path currently displayed on the dropdown box.

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::deleteValues ( const std::vector< std::string > &  key,
const std::vector< std::string > &  value 
)
pure virtual

Called by the logic to delete 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::DtEntityTypeMapEditorWidget, and makVrv::DtMultiMapEditorWidget.

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::selectAdditionalValue ( const std::string &  key,
const std::string &  value 
)
pure virtual

Called by the logic to select a value in the widget without clearing previous selections.

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::filterValues ( const std::vector< std::string > &  keys)
pure virtual

Filters the tree by the given keys.

Implemented in makVrv::DtMultiMapEditorWidget.

virtual void makVrv::DtMultiMapEditorInterface::filterValues ( const std::vector< std::pair< std::string, std::string > > &  keys)
pure virtual

Filters the tree by the given key and name pairs.

Implemented in makVrv::DtMultiMapEditorWidget.

virtual void makVrv::DtMultiMapEditorInterface::setAllTopLevelTreeWidgetItemsHidden ( bool  hide)
pure virtual

Sets all the top level items hidden or not.

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::DtEntityTypeMapEditorWidget, and makVrv::DtMultiMapEditorWidget.

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 ( std::vector< std::string > &  keys,
std::vector< std::string > &  values 
) const
pure virtual

Returns the selected instance names and values 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 background color is 0.

Implemented in makVrv::DtMultiMapEditorWidget.

virtual void makVrv::DtMultiMapEditorInterface::showErrors ( )
pure virtual

Display invalid items if needed.

Implemented in makVrv::DtEntityTypeMapEditorWidget.

virtual std::vector<std::string> makVrv::DtMultiMapEditorInterface::selectedInstancesNames ( )
pure virtual

get the current selected instances names

Implemented in makVrv::DtMultiMapEditorWidget.

Member Data Documentation

boost::signalslib::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::signalslib::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::signalslib::signal<void()> makVrv::DtMultiMapEditorInterface::signal_changeFilePath

Signal emitted when the user wants to change the file path of the currently selected element.

boost::signalslib::signal<void()> makVrv::DtMultiMapEditorInterface::signal_changeFileFilterPath

Signal emitted when the user wants to filter out all files whose file path doesn't match the path in the dropdown box.

boost::signalslib::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::signalslib::signal<void(const std::vector<std::string>& keys, const std::vector<std::string>& values)> makVrv::DtMultiMapEditorInterface::signal_deleteValue

Signal emitted when the user wants to delete key value.

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

Signal emitted when the user select items.


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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)