|
|
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>
Inheritance diagram for ObjectExplorerModel:Signals | |
| void | reload () |
Public Member Functions | |
| std::pair< std::string, std::string > | getItemInformation (const QModelIndex &index) |
| Returns a tupel containing information about the class at the given index. More... | |
| QPixmap | getItemPixmap (const QModelIndex &index) const |
| Returns the Icon of the class at index. More... | |
| ObjectExplorerModel (const controller::ControllerPtr &control, QObject *parent=0) | |
| Creates a new instance of this class. More... | |
| void | onConnect () |
| Reloads the model. More... | |
| void | setFilterFixedString (QString searchPattern) |
| Sets the string to filter all classes. More... | |
This class provides a model for storing classes from memoryxcontroller::PriorKnowledgeController and allows to filter them.
Definition at line 44 of file ObjectExplorerModel.h.
|
explicit |
Creates a new instance of this class.
| control | The main controller of the whole plugin. |
Definition at line 31 of file ObjectExplorerModel.cpp.
| 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.
| index | The index in this model of the class. |
Definition at line 62 of file ObjectExplorerModel.cpp.
| QPixmap getItemPixmap | ( | const QModelIndex & | index | ) | const |
Returns the Icon of the class at index.
| index | The index in this model of the class. |
Definition at line 118 of file ObjectExplorerModel.cpp.
Here is the caller graph for this function:| void onConnect | ( | ) |
Reloads the model.
Should be called after the plugin is connected.
Definition at line 43 of file ObjectExplorerModel.cpp.
|
signal |
Here is the caller graph for this function:| 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.
| searchPattern | The string to filter with. |
Definition at line 55 of file ObjectExplorerModel.cpp.