This class provides a model for storing classes from memoryxcontroller::PriorKnowledgeController and allows to filter them.
More...
#include <MemoryX/gui-plugins/SceneEditor/gui/ObjectExplorerModel.h>
This class provides a model for storing classes from memoryxcontroller::PriorKnowledgeController and allows to filter them.
- See also
- memoryxcontroller::PriorKnowledgeController
◆ ObjectExplorerModel()
Creates a new instance of this class.
- Parameters
-
| control | The main controller of the whole plugin. |
- See also
- controller::Controller
◆ getItemInformation()
| std::pair< std::string, std::string > getItemInformation |
( |
const QModelIndex & | index | ) |
|
Returns a tupel containing information about the class at the given index.
The tupel contains the class name at first and class collection at second position.
- Parameters
-
| index | The index in this model of the class. |
- Returns
- The tupel containing the informations.
◆ getItemPixmap()
| QPixmap getItemPixmap |
( |
const QModelIndex & | index | ) |
const |
Returns the Icon of the class at index.
- Parameters
-
| index | The index in this model of the class. |
- Returns
- The pixmap containing the image.
◆ onConnect()
Reloads the model.
Should be called after the plugin is connected.
◆ reload
◆ setFilterFixedString()
| void setFilterFixedString |
( |
QString | searchPattern | ) |
|
Sets the string to filter all classes.
Only the classes, which contain this string are shown after this. The string is caseinsensitive.
- Parameters
-
| searchPattern | The string to filter with. |
The documentation for this class was generated from the following files: