Base class for all extension type tab presenter (ActionTabPresenter, ComponentTabPresenter and ViewerTabPresenter). More...
#include <ExtensionTypeTabPresenter.h>
Public Member Functions | |
| ExtensionTypeTabPresenter (camitk::ExtensionManager::ExtensionType extensionType, CamiTKExtensionModelPresenter *presenter, VariantDataModel &dataModel, QWidget *parent=nullptr) | |
| constructor | |
| VariantDataModel & | getDataModel () |
| get the managed data model | |
| const QString | getExtensionType () const |
| get the extension type as a string | |
Protected Member Functions | |
| QStringList | buildEnum (QStringList originalList) |
| Use originalList (unsorted strings with potential duplicates) to generate a new QStringList that has only unique strings, sorted by popularity. | |
Protected Attributes | |
| VariantDataModel & | dataModel |
| the currently managed data model | |
| camitk::ExtensionManager::ExtensionType | extensionType |
| The extension type. | |
| CamiTKExtensionModelPresenter * | presenter |
| the current top level presenter | |
Base class for all extension type tab presenter (ActionTabPresenter, ComponentTabPresenter and ViewerTabPresenter).
| ExtensionTypeTabPresenter::ExtensionTypeTabPresenter | ( | camitk::ExtensionManager::ExtensionType | extensionType, |
| CamiTKExtensionModelPresenter * | presenter, | ||
| VariantDataModel & | dataModel, | ||
| QWidget * | parent = nullptr ) |
constructor
References dataModel, extensionType, and presenter.
Referenced by ActionTabPresenter::ActionTabPresenter().
|
protected |
Use originalList (unsorted strings with potential duplicates) to generate a new QStringList that has only unique strings, sorted by popularity.
Referenced by ActionTabPresenter::ActionTabPresenter().
| VariantDataModel & ExtensionTypeTabPresenter::getDataModel | ( | ) |
get the managed data model
References dataModel.
Referenced by CamiTKExtensionModelPresenter::tabCloseRequest().
| const QString ExtensionTypeTabPresenter::getExtensionType | ( | ) | const |
get the extension type as a string
References camitk::ExtensionManager::ACTION, camitk::ExtensionManager::COMPONENT, extensionType, and camitk::ExtensionManager::VIEWER.
Referenced by CamiTKExtensionModelPresenter::tabCloseRequest().
|
protected |
the currently managed data model
Referenced by ActionTabPresenter::ActionTabPresenter(), CppActionTabPresenter::CppActionTabPresenter(), ExtensionTypeTabPresenter(), getDataModel(), and PythonActionTabPresenter::PythonActionTabPresenter().
|
protected |
The extension type.
Referenced by ExtensionTypeTabPresenter(), and getExtensionType().
|
protected |
the current top level presenter
Referenced by ActionTabPresenter::ActionTabPresenter(), CppActionTabPresenter::CppActionTabPresenter(), ExtensionTypeTabPresenter(), and PythonActionTabPresenter::PythonActionTabPresenter().