![]() |
VR-Forces 4.8 Class Documentation
|
A widget class for editing instances. More...

Public Member Functions | |
| DtInstanceEditorWidget (DtDe &de, const QString &widgetEditorType, QWidget *parent=0, Qt::WindowFlags flags=0) | |
| virtual | ~DtInstanceEditorWidget () |
| virtual void | setInstanceTypeName (const std::string &name) |
| Called by the logic to set the type of instances. More... | |
| virtual void | addInstance (const std::string &name) |
| Called by the logic to add an instance to the GUI. More... | |
| virtual void | setDuplicate (const std::string &name, bool b) |
| Balled by the logic to mark duplicate instances. More... | |
| virtual void | deleteInstance (const std::string &name) |
| Called by the logic to remove an instance from the GUI. More... | |
| virtual void | setInstanceFlags (const std::string &name, bool isSaved, bool isOk, bool isEnabled) |
| Called by the logic to set additional parameters about an instance. More... | |
| virtual void | clearInstances () |
| Called by the logic to remove all instances from the gui. More... | |
| virtual void | selectInstance (const std::string &name) |
| Called by the logic to select an instance in the GUI. More... | |
| virtual void | clearFilters () |
| Clears out filters. More... | |
| virtual void | selectFilter (const std::string &name) |
| Selects a filter item and then emits signal that filter has changed. More... | |
| virtual void | addFilterItem (const std::string &, int) |
| Adds an item into the filter list. More... | |
| virtual void | setEnableFilterEditor (bool filters) |
| 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. More... | |
| virtual void | setInstancesCopyable (bool copyable) |
| Called by the logic to enable/disable the copy button. More... | |
| virtual void | setInstancesEditable (bool editable) |
| Called by the logic to enable/disable the edit button. More... | |
| virtual void | setInstancesRenamable (bool renamable) |
| Called by the logic to enable/disable the rename button. More... | |
| virtual void | setInstancesRemovable (bool removable) |
| Called by the logic to enable/disable removing of instances. More... | |
| virtual void | setFilters (const std::vector< std::pair< std::string, bool > > &filters) |
| Set a list of filter strings the interface may display. More... | |
| virtual void | setFilterToolTip (const std::string &text) |
| Set the filter tool tip text. More... | |
| virtual QPushButton * | addButton () |
| Set the 'add' button text. More... | |
| virtual void | setDeleteButtonText (QString text) |
| Set the 'delete' button text. More... | |
| virtual void | setCopyButtonText (QString text) |
| Set the 'copy' button text. More... | |
| virtual void | setEditButtonText (QString text) |
| Set the 'edit' button text. More... | |
| virtual void | setRenameButtonText (QString text) |
| Set the 'rename' button text. More... | |
| virtual void | sortInstances () |
| Sorts the instances by name. More... | |
| virtual void | setupInvalidInstances () |
| Cycles through dialog to look at items that have "red" background. More... | |
| virtual void | renameInstance (const std::string &oldName, const std::string &newName, int selectedInstanceIndex) |
| Renames the instance from the old to new name if the selected instance is the one given. More... | |
| virtual void | setDeleteButtonEnabled (bool) |
| Sets whether or not the delete button is enabled. More... | |
| virtual void | setDeleteButtonToolTip (const QString &) |
| Sets too tip on delete button. If empty string, sets default. More... | |
| virtual void | setSelectionMode (SelectionMode mode) |
| Sets the selection mode default is single selection. More... | |
| virtual void | resetFilters () |
| clean the filters More... | |
Public Member Functions inherited from makVrv::DtInstanceEditorInterface | |
| virtual | ~DtInstanceEditorInterface () |
| Virtual DTOR. More... | |
| virtual std::string | selectedInstance () const =0 |
| Returns the selected instance. More... | |
| virtual std::vector< std::string > | selectedInstances () const =0 |
| Returns the selected instances. More... | |
| virtual std::string | selectedInstanceCategory () const =0 |
| Returns category selected instance is in. More... | |
| virtual int | selectedInstanceCategoryIndex () const =0 |
| Returns category selected instance is in (integer) More... | |
Protected Types | |
| typedef boost::unordered_map < std::string, QTreeWidgetItem * > ::iterator | ItemItr |
Protected Slots | |
| virtual void | on_myTreeWidget_itemSelectionChanged () |
| virtual void | on_myAddButton_clicked () |
| virtual void | on_myDeleteButton_clicked () |
| virtual void | on_myCopyButton_clicked () |
| virtual void | on_myEditButton_clicked () |
| virtual void | on_myRenameButton_clicked () |
| virtual void | on_myFilterGroup_triggered (const QString &) |
| virtual void | on_myFilterActionGroup_triggered (QAction *) |
| virtual void | on_mySearchLineEdit_textChanged (const QString &) |
| virtual void | on_mySearchCleanButton_released () |
| void | on_myTreeWidget_itemClicked (QTreeWidgetItem *item, int column) |
| void | on_myTreeWidget_itemActivated (QTreeWidgetItem *item, int column) |
| void | on_myTreeWidget_itemDoubleClicked (QTreeWidgetItem *item, int column) |
| virtual std::string | selectedInstance () const |
| virtual std::vector< std::string > | selectedInstances () const |
| virtual std::string | selectedInstanceCategory () const |
| virtual int | selectedInstanceCategoryIndex () const |
Protected Member Functions | |
| QString | askForNewInstanceName (QString initial, const QString &title) |
| void | setupGui () |
| QTreeWidgetItem * | findItem (const std::string &name) |
| virtual void | updateErrorMessage (QTreeWidgetItem *item) |
| brief update the error messages when you delete item More... | |
Protected Attributes | |
| DtDe & | myDe |
| bool | myInstancesCopyable |
| bool | myInstancesEditable |
| bool | myInstancesRenamable |
| bool | myInstancesRemovable |
| boost::unordered_map < std::string, QTreeWidgetItem * > | myNameToItemMap |
| std::set< QTreeWidgetItem * > | myInvalidItems |
| QLabel * | myTitle |
| QHBoxLayout * | myButtonLayout |
| QPushButton * | myAddButton |
| QPushButton * | myDeleteButton |
| QPushButton * | myCopyButton |
| QPushButton * | myEditButton |
| QPushButton * | myRenameButton |
| QLabel * | mySearchLabel |
| QLineEdit * | mySearchLineEdit |
| QPushButton * | mySearchCleanButton |
| QPushButton * | myFilterButton |
| QActionGroup * | myFilterActionGroup |
| QTextEdit * | myErrorMessages |
| DtContextTreeWidget * | myTreeWidget |
| QString | myInstanceTypeLabel |
| QString | myWidgetEditorType |
| bool | myShowDeleteDialog |
Additional Inherited Members | |
Public Types inherited from makVrv::DtInstanceEditorInterface | |
| enum | SelectionMode { NoSelection, SingleSelection, MultiSelection, ExtendedSelection, ContiguousSelection } |
Public Attributes inherited from makVrv::DtInstanceEditorInterface | |
| boost::signal< void(const std::string &name, const std::string &schema)> | signal_createInstance |
| Signal emitted when the user clicks the "New". More... | |
| boost::signal< void(const std::string &, const std::string &)> | signal_deleteInstance |
| Signal emitted when the user clicks the "Delete". More... | |
| boost::signal< void(std::vector < std::string >)> | signal_deleteInstances |
| Signal emitted when the user clicks the "Delete" with multiple instances selected Connected to a slot in the logic. More... | |
| boost::signal< void(const std::string &, const std::string &, const std::string &)> | signal_copyInstance |
| Signal emitted when the user clicks the "Copy", containing the old name, and the new name. More... | |
| boost::signal< void(const std::string &, const std::string &)> | signal_editInstance |
| Signal emitted when the user clicks the "Edit". More... | |
| boost::signal< void(const std::string &oldName, const std::string &newName, int)> | signal_renameInstance |
| Signal emitted when the user clicks the "Edit". More... | |
| boost::signal< void()> | signal_changeFileName |
| boost::signal< void(const std::string &, const std::string &, int)> | signal_selectionChanged |
| Signal emitted when the user selects an instance. More... | |
| boost::signal< void(const std::string &)> | signal_filterChanged |
| Signal emitted when the user changes the filter. More... | |
A widget class for editing instances.
|
protected |
| makVrv::DtInstanceEditorWidget::DtInstanceEditorWidget | ( | DtDe & | de, |
| const QString & | widgetEditorType, | ||
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | flags = 0 |
||
| ) |
|
virtual |
|
virtual |
Called by the logic to set the type of instances.
Implements makVrv::DtInstanceEditorInterface.
|
virtual |
Called by the logic to add an instance to the GUI.
Implements makVrv::DtInstanceEditorInterface.
|
virtual |
Balled by the logic to mark duplicate instances.
Implements makVrv::DtInstanceEditorInterface.
|
virtual |
Called by the logic to remove an instance from the GUI.
Implements makVrv::DtInstanceEditorInterface.
|
virtual |
Called by the logic to set additional parameters about an instance.
By default all of these parameters are true.
Implements makVrv::DtInstanceEditorInterface.
|
virtual |
Called by the logic to remove all instances from the gui.
Implements makVrv::DtInstanceEditorInterface.
|
virtual |
Called by the logic to select an instance in the GUI.
Implements makVrv::DtInstanceEditorInterface.
|
virtual |
Clears out filters.
Implements makVrv::DtInstanceEditorInterface.
|
virtual |
Selects a filter item and then emits signal that filter has changed.
Implements makVrv::DtInstanceEditorInterface.
|
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
Implements makVrv::DtInstanceEditorInterface.
|
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.
Implements makVrv::DtInstanceEditorInterface.
|
virtual |
Called by the logic to enable/disable the copy button.
Implements makVrv::DtInstanceEditorInterface.
|
virtual |
Called by the logic to enable/disable the edit button.
Implements makVrv::DtInstanceEditorInterface.
|
virtual |
Called by the logic to enable/disable the rename button.
Implements makVrv::DtInstanceEditorInterface.
|
virtual |
Called by the logic to enable/disable removing of instances.
Implements makVrv::DtInstanceEditorInterface.
|
virtual |
Set a list of filter strings the interface may display.
Implements makVrv::DtInstanceEditorInterface.
|
virtual |
Set the filter tool tip text.
Implements makVrv::DtInstanceEditorInterface.
|
virtual |
Set the 'add' button text.
|
virtual |
Set the 'delete' button text.
|
virtual |
Set the 'copy' button text.
|
virtual |
Set the 'edit' button text.
|
virtual |
Set the 'rename' button text.
|
virtual |
Sorts the instances by name.
Implements makVrv::DtInstanceEditorInterface.
|
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
Implements makVrv::DtInstanceEditorInterface.
|
virtual |
Renames the instance from the old to new name if the selected instance is the one given.
Implements makVrv::DtInstanceEditorInterface.
|
virtual |
Sets whether or not the delete button is enabled.
Implements makVrv::DtInstanceEditorInterface.
|
virtual |
Sets too tip on delete button. If empty string, sets default.
Implements makVrv::DtInstanceEditorInterface.
|
virtual |
Sets the selection mode default is single selection.
Implements makVrv::DtInstanceEditorInterface.
|
virtual |
clean the filters
Implements makVrv::DtInstanceEditorInterface.
|
protectedvirtualslot |
|
protectedvirtualslot |
Reimplemented in DtVrfModelDefinitionInstanceEditorWidget, and makVrv::DtModelDefinitionInstanceEditorWidget.
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
Reimplemented in makVrv::DtModelDefinitionInstanceEditorWidget.
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
brief update the error messages when you delete item
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |