![]() |
VR-Forces Developer's Guide
|
Abstract interface for instance editor widgets.

Public Types | |
| enum | SelectionMode { NoSelection, SingleSelection, MultiSelection, ExtendedSelection, ContiguousSelection } |
Public Member Functions | |
| virtual | ~DtInstanceEditorInterface () |
| virtual std::string | selectedInstance () const =0 |
| virtual std::vector< std::string > | selectedInstances () const =0 |
| virtual std::string | selectedInstanceCategory () const =0 |
| virtual int | selectedInstanceCategoryIndex () const =0 |
| virtual void | addFilterItem (const std::string &, int)=0 |
| virtual void | setInstanceTypeName (const std::string &name)=0 |
| virtual void | setFilterToolTip (const std::string &)=0 |
| virtual void | setDuplicate (const std::string &name, bool b)=0 |
| virtual void | addInstance (const std::string &name)=0 |
| virtual void | deleteInstance (const std::string &name)=0 |
| virtual void | renameInstance (const std::string &oldName, const std::string &newName, int selectedInstanceIndex)=0 |
| virtual void | clearFilters ()=0 |
| virtual void | clearInstances ()=0 |
| virtual void | sortInstances ()=0 |
| virtual void | selectInstance (const std::string &name)=0 |
| virtual void | selectFilter (const std::string &name)=0 |
| virtual void | setInstanceFlags (const std::string &name, bool isSaved=true, bool isOk=true, bool isEnabled=true)=0 |
| virtual void | setInstancesCopyable (bool copyable)=0 |
| virtual void | setInstancesEditable (bool editable)=0 |
| virtual void | setInstancesRenamable (bool renamable)=0 |
| virtual void | setInstancesRemovable (bool removable)=0 |
| virtual void | setEnableFilterEditor (bool filters)=0 |
| virtual void | resetFilters ()=0 |
| virtual void | setFilters (const std::vector< std::pair< std::string, bool > > &filters)=0 |
| virtual void | setupInvalidInstances ()=0 |
| virtual void | setDeleteButtonEnabled (bool)=0 |
| virtual void | setDeleteButtonToolTip (const QString &)=0 |
| virtual void | setSelectionMode (SelectionMode mode)=0 |
| virtual void | invalidateColorQtProperties ()=0 |
Public Attributes | |
| boost::signalslib::signal < void(const std::string &name, const std::string &schema)> | signal_createInstance |
| boost::signalslib::signal < void(const std::string &, const std::string &)> | signal_deleteInstance |
| boost::signalslib::signal < void(std::vector < std::string >)> | signal_deleteInstances |
| boost::signalslib::signal < void(const std::string &, const std::string &, const std::string &)> | signal_copyInstance |
| boost::signalslib::signal < void(const std::string &, const std::string &)> | signal_editInstance |
| boost::signalslib::signal < void(const std::string &oldName, const std::string &newName, int)> | signal_renameInstance |
| boost::signalslib::signal< void()> | signal_changeFileName |
| boost::signalslib::signal < void(const std::string &, const std::string &, int)> | signal_selectionChanged |
| boost::signalslib::signal < void(const std::string &)> | signal_filterChanged |
|
virtual |
Virtual DTOR.
|
pure virtual |
Returns the selected instance.
|
pure virtual |
Returns the selected instances.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Returns category selected instance is in.
|
pure virtual |
Returns category selected instance is in (integer)
|
pure virtual |
Adds an item into the filter list. id is an identifier for the item being placed into th combo box. Thit value will be returned in the call selectedInstanceCategoryIndex.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Called by the logic to set the type of instances.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Sets the tool tip of the filter button.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Balled by the logic to mark duplicate instances.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Called by the logic to add an instance to the gui.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Called by the logic to remove an instance from the gui.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Renames the instance from the old to new name if the selected instance is the one given.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Clears out filters.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Called by the logic to remove all instances from the gui.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Sorts the instances by name.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Called by the logic to select an instance in the gui.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Selects a filter item and then emits signal that filter has changed.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Called by the logic to set additional parameters about an instance. By default all of these parameters are true.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Called by the logic to enable/disable copying instances.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Called by the logic to enable/disable editing instances.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Called by the logic to enable/disable renaming instances.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Called by the logic to enable/disable removing of instances.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Called by the logic to enable/disable the filter editing control The filter editor typically selects the desired filter, the logic is still responsible for executing the actual filtering.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Called by the logic to reset the filter search box.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Set a list of filter strings the interface may display.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Cycles through dialog to look at items that have "red" background. Any item that does is considered invalid and is added to the error message box.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Sets whether or not the delete button is enabled.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Sets too tip on delete button.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
Sets the selection mode default is single selection.
Implemented in makVrv::DtInstanceEditorWidget.
|
pure virtual |
invalidate the current color Qt properties for this widget
Implemented in makVrv::DtInstanceEditorWidget.
| boost::signalslib::signal<void (const std::string& name, const std::string& schema)> makVrv::DtInstanceEditorInterface::signal_createInstance |
Signal emitted when the user clicks the "New". Connected to a slot in the logic.
| boost::signalslib::signal<void (const std::string&, const std::string&)> makVrv::DtInstanceEditorInterface::signal_deleteInstance |
Signal emitted when the user clicks the "Delete". Connected to a slot in the logic.
| boost::signalslib::signal<void(std::vector<std::string>)> makVrv::DtInstanceEditorInterface::signal_deleteInstances |
Signal emitted when the user clicks the "Delete" with multiple instances selected Connected to a slot in the logic.
| boost::signalslib::signal<void (const std::string&,const std::string&, const std::string&)> makVrv::DtInstanceEditorInterface::signal_copyInstance |
Signal emitted when the user clicks the "Copy", containing the old name, and the new name. Connected to a slot in the logic.
| boost::signalslib::signal<void (const std::string&, const std::string&)> makVrv::DtInstanceEditorInterface::signal_editInstance |
Signal emitted when the user clicks the "Edit". Connected to a slot in the logic.
| boost::signalslib::signal<void (const std::string& oldName, const std::string& newName, int)> makVrv::DtInstanceEditorInterface::signal_renameInstance |
Signal emitted when the user clicks the "Edit". Connected to a slot in the logic.
| boost::signalslib::signal<void()> makVrv::DtInstanceEditorInterface::signal_changeFileName |
| boost::signalslib::signal<void (const std::string&, const std::string&, int)> makVrv::DtInstanceEditorInterface::signal_selectionChanged |
Signal emitted when the user selects an instance. Connected to a slot in the logic.
| boost::signalslib::signal<void (const std::string&)> makVrv::DtInstanceEditorInterface::signal_filterChanged |
Signal emitted when the user changes the filter. Connected to a slot in the logic.