|
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>
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 30 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 56 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 109 of file ObjectExplorerModel.cpp.
void onConnect | ( | ) |
Reloads the model.
Should be called after the plugin is connected.
Definition at line 40 of file ObjectExplorerModel.cpp.
|
signal |
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 50 of file ObjectExplorerModel.cpp.