![]() |
VR-Forces 4.0.4 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. | |
| virtual void | addInstance (const std::string &name) |
| Called by the logic to add an instance to the GUI. | |
| virtual void | deleteInstance (const std::string &name) |
| Called by the logic to remove an instance from the GUI. | |
| virtual void | setInstanceFlags (const std::string &name, bool isSaved, bool isOk, bool isEnabled) |
| Called by the logic to set additional parameters about an instance. | |
| virtual void | clearInstances () |
| Called by the logic to remove all instances from the gui. | |
| virtual void | selectInstance (const std::string &name) |
| Called by the logic to select an instance in the GUI. | |
| virtual void | clearFilters () |
| Clears out filters. | |
| virtual void | selectFilter (const std::string &name) |
| Selects a filter item and then emits signal that filter has changed. | |
| virtual void | addFilterItem (const std::string &, int) |
| Adds an item into the filter list. | |
| 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. | |
| virtual void | setInstancesCopyable (bool copyable) |
| Called by the logic to enable/disable the copy button. | |
| virtual void | setInstancesEditable (bool editable) |
| Called by the logic to enable/disable the edit button. | |
| virtual void | setInstancesRenamable (bool renamable) |
| Called by the logic to enable/disable the rename button. | |
| virtual void | setInstancesRemovable (bool removable) |
| Called by the logic to enable/disable removing of instances. | |
| virtual void | setFilters (const std::vector< std::pair< std::string, bool > > &filters) |
| Set a list of filter strings the interface may display. | |
| virtual void | setFilterToolTip (const std::string &text) |
| Set the filter tool tip text. | |
| virtual QPushButton * | addButton () |
| Set the 'add' button text. | |
| virtual void | setDeleteButtonText (QString text) |
| Set the 'delete' button text. | |
| virtual void | setCopyButtonText (QString text) |
| Set the 'copy' button text. | |
| virtual void | setEditButtonText (QString text) |
| Set the 'edit' button text. | |
| virtual void | setRenameButtonText (QString text) |
| Set the 'rename' button text. | |
| virtual void | sortInstances () |
| Sorts the instances by name. | |
| virtual void | setupInvalidInstances () |
| Cycles through dialog to look at items that have "red" background. | |
| 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. | |
| virtual void | setDeleteButtonEnabled (bool) |
| Sets whether or not the delete button is enabled. | |
| virtual void | setDeleteButtonToolTip (const QString &) |
| Sets too tip on delete button. If empty string, sets default. | |
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 *) |
| 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 |
| Returns the selected instance. | |
| virtual std::string | selectedInstanceCategory () const |
| Returns category selected instance is in. | |
| virtual int | selectedInstanceCategoryIndex () const |
| Returns category selected instance is in (integer) | |
Protected Member Functions | |
| QString | askForNewInstanceName (QString initial, const QString &title) |
| void | setupGui () |
Protected Attributes | |
| DtDe & | myDe |
| bool | myInstancesCopyable |
| bool | myInstancesEditable |
| bool | myInstancesRenamable |
| bool | myInstancesRemovable |
| QLabel * | myTitle |
| QHBoxLayout * | myButtonLayout |
| QPushButton * | myAddButton |
| QPushButton * | myDeleteButton |
| QPushButton * | myCopyButton |
| QPushButton * | myEditButton |
| QPushButton * | myRenameButton |
| QPushButton * | myFilterButton |
| QActionGroup * | myFilterActionGroup |
| QTextEdit * | myErrorMessages |
| DtContextTreeWidget * | myTreeWidget |
| QString | myInstanceTypeLabel |
| QString | myWidgetEditorType |
A widget class for editing instances.
| makVrv::DtInstanceEditorWidget::DtInstanceEditorWidget | ( | DtDe & | de, |
| const QString & | widgetEditorType, | ||
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | flags = 0 |
||
| ) |
| virtual makVrv::DtInstanceEditorWidget::~DtInstanceEditorWidget | ( | ) | [virtual] |
| virtual void makVrv::DtInstanceEditorWidget::setInstanceTypeName | ( | const std::string & | name | ) | [virtual] |
Called by the logic to set the type of instances.
Implements makVrv::DtInstanceEditorInterface.
| virtual void makVrv::DtInstanceEditorWidget::addInstance | ( | const std::string & | name | ) | [virtual] |
Called by the logic to add an instance to the GUI.
Implements makVrv::DtInstanceEditorInterface.
| virtual void makVrv::DtInstanceEditorWidget::deleteInstance | ( | const std::string & | name | ) | [virtual] |
Called by the logic to remove an instance from the GUI.
Implements makVrv::DtInstanceEditorInterface.
| virtual void makVrv::DtInstanceEditorWidget::setInstanceFlags | ( | const std::string & | name, |
| bool | isSaved, | ||
| bool | isOk, | ||
| bool | isEnabled | ||
| ) | [virtual] |
Called by the logic to set additional parameters about an instance.
By default all of these parameters are true.
Implements makVrv::DtInstanceEditorInterface.
| virtual void makVrv::DtInstanceEditorWidget::clearInstances | ( | ) | [virtual] |
Called by the logic to remove all instances from the gui.
Implements makVrv::DtInstanceEditorInterface.
| virtual void makVrv::DtInstanceEditorWidget::selectInstance | ( | const std::string & | name | ) | [virtual] |
Called by the logic to select an instance in the GUI.
Implements makVrv::DtInstanceEditorInterface.
| virtual void makVrv::DtInstanceEditorWidget::clearFilters | ( | ) | [virtual] |
Clears out filters.
Implements makVrv::DtInstanceEditorInterface.
| virtual void makVrv::DtInstanceEditorWidget::selectFilter | ( | const std::string & | name | ) | [virtual] |
Selects a filter item and then emits signal that filter has changed.
Implements makVrv::DtInstanceEditorInterface.
| virtual void makVrv::DtInstanceEditorWidget::addFilterItem | ( | const std::string & | , |
| int | |||
| ) | [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 void makVrv::DtInstanceEditorWidget::setEnableFilterEditor | ( | bool | filters | ) | [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 void makVrv::DtInstanceEditorWidget::setInstancesCopyable | ( | bool | copyable | ) | [virtual] |
Called by the logic to enable/disable the copy button.
Implements makVrv::DtInstanceEditorInterface.
| virtual void makVrv::DtInstanceEditorWidget::setInstancesEditable | ( | bool | editable | ) | [virtual] |
Called by the logic to enable/disable the edit button.
Implements makVrv::DtInstanceEditorInterface.
| virtual void makVrv::DtInstanceEditorWidget::setInstancesRenamable | ( | bool | renamable | ) | [virtual] |
Called by the logic to enable/disable the rename button.
Implements makVrv::DtInstanceEditorInterface.
| virtual void makVrv::DtInstanceEditorWidget::setInstancesRemovable | ( | bool | removable | ) | [virtual] |
Called by the logic to enable/disable removing of instances.
Implements makVrv::DtInstanceEditorInterface.
| virtual void makVrv::DtInstanceEditorWidget::setFilters | ( | const std::vector< std::pair< std::string, bool > > & | filters | ) | [virtual] |
Set a list of filter strings the interface may display.
Implements makVrv::DtInstanceEditorInterface.
| virtual void makVrv::DtInstanceEditorWidget::setFilterToolTip | ( | const std::string & | text | ) | [virtual] |
Set the filter tool tip text.
Implements makVrv::DtInstanceEditorInterface.
| virtual QPushButton* makVrv::DtInstanceEditorWidget::addButton | ( | ) | [virtual] |
Set the 'add' button text.
| virtual void makVrv::DtInstanceEditorWidget::setDeleteButtonText | ( | QString | text | ) | [virtual] |
Set the 'delete' button text.
| virtual void makVrv::DtInstanceEditorWidget::setCopyButtonText | ( | QString | text | ) | [virtual] |
Set the 'copy' button text.
| virtual void makVrv::DtInstanceEditorWidget::setEditButtonText | ( | QString | text | ) | [virtual] |
Set the 'edit' button text.
| virtual void makVrv::DtInstanceEditorWidget::setRenameButtonText | ( | QString | text | ) | [virtual] |
Set the 'rename' button text.
| virtual void makVrv::DtInstanceEditorWidget::sortInstances | ( | ) | [virtual] |
Sorts the instances by name.
Implements makVrv::DtInstanceEditorInterface.
| virtual void makVrv::DtInstanceEditorWidget::setupInvalidInstances | ( | ) | [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 void makVrv::DtInstanceEditorWidget::renameInstance | ( | const std::string & | oldName, |
| const std::string & | newName, | ||
| int | selectedInstanceIndex | ||
| ) | [virtual] |
Renames the instance from the old to new name if the selected instance is the one given.
Implements makVrv::DtInstanceEditorInterface.
| virtual void makVrv::DtInstanceEditorWidget::setDeleteButtonEnabled | ( | bool | ) | [virtual] |
Sets whether or not the delete button is enabled.
Implements makVrv::DtInstanceEditorInterface.
| virtual void makVrv::DtInstanceEditorWidget::setDeleteButtonToolTip | ( | const QString & | ) | [virtual] |
Sets too tip on delete button. If empty string, sets default.
Implements makVrv::DtInstanceEditorInterface.
| virtual void makVrv::DtInstanceEditorWidget::on_myTreeWidget_itemSelectionChanged | ( | ) | [protected, virtual, slot] |
| virtual void makVrv::DtInstanceEditorWidget::on_myAddButton_clicked | ( | ) | [protected, virtual, slot] |
Reimplemented in makVrv::DtModelDefinitionInstanceEditorWidget.
| virtual void makVrv::DtInstanceEditorWidget::on_myDeleteButton_clicked | ( | ) | [protected, virtual, slot] |
| virtual void makVrv::DtInstanceEditorWidget::on_myCopyButton_clicked | ( | ) | [protected, virtual, slot] |
| virtual void makVrv::DtInstanceEditorWidget::on_myEditButton_clicked | ( | ) | [protected, virtual, slot] |
| virtual void makVrv::DtInstanceEditorWidget::on_myRenameButton_clicked | ( | ) | [protected, virtual, slot] |
Reimplemented in makVrv::DtModelDefinitionInstanceEditorWidget.
| virtual void makVrv::DtInstanceEditorWidget::on_myFilterGroup_triggered | ( | const QString & | ) | [protected, virtual, slot] |
| virtual void makVrv::DtInstanceEditorWidget::on_myFilterActionGroup_triggered | ( | QAction * | ) | [protected, virtual, slot] |
| void makVrv::DtInstanceEditorWidget::on_myTreeWidget_itemClicked | ( | QTreeWidgetItem * | item, |
| int | column | ||
| ) | [protected, slot] |
| void makVrv::DtInstanceEditorWidget::on_myTreeWidget_itemActivated | ( | QTreeWidgetItem * | item, |
| int | column | ||
| ) | [protected, slot] |
| void makVrv::DtInstanceEditorWidget::on_myTreeWidget_itemDoubleClicked | ( | QTreeWidgetItem * | item, |
| int | column | ||
| ) | [protected, slot] |
| virtual std::string makVrv::DtInstanceEditorWidget::selectedInstance | ( | ) | const [protected, virtual, slot] |
Returns the selected instance.
Implements makVrv::DtInstanceEditorInterface.
| virtual std::string makVrv::DtInstanceEditorWidget::selectedInstanceCategory | ( | ) | const [protected, virtual, slot] |
Returns category selected instance is in.
Implements makVrv::DtInstanceEditorInterface.
| virtual int makVrv::DtInstanceEditorWidget::selectedInstanceCategoryIndex | ( | ) | const [protected, virtual, slot] |
Returns category selected instance is in (integer)
Implements makVrv::DtInstanceEditorInterface.
| QString makVrv::DtInstanceEditorWidget::askForNewInstanceName | ( | QString | initial, |
| const QString & | title | ||
| ) | [protected] |
| void makVrv::DtInstanceEditorWidget::setupGui | ( | ) | [protected] |
DtDe& makVrv::DtInstanceEditorWidget::myDe [protected] |
QLabel* makVrv::DtInstanceEditorWidget::myTitle [protected] |
QHBoxLayout* makVrv::DtInstanceEditorWidget::myButtonLayout [protected] |
QPushButton* makVrv::DtInstanceEditorWidget::myAddButton [protected] |
QPushButton* makVrv::DtInstanceEditorWidget::myCopyButton [protected] |
QPushButton* makVrv::DtInstanceEditorWidget::myEditButton [protected] |
QTextEdit* makVrv::DtInstanceEditorWidget::myErrorMessages [protected] |
QString makVrv::DtInstanceEditorWidget::myInstanceTypeLabel [protected] |
QString makVrv::DtInstanceEditorWidget::myWidgetEditorType [protected] |