Public Types |
enum | tItemType {
itemUnknown = 0x0000,
itemCatDataIO = 0x0001,
itemCatActuator = 0x0002,
itemCatAlgo = 0x0004,
itemSubCategoryDataIO_Grabber = 0x0008,
itemSubCategoryDataIO_ADDA = 0x0010,
itemSubCategoryDataIO_RawIO = 0x0020,
itemPlugin = 0x0040,
itemInstance = 0x0080,
itemFilter = 0x0100,
itemWidget = 0x0200,
itemCatMainAll = itemCatDataIO | itemCatActuator | itemCatAlgo,
itemCatSubAll = itemSubCategoryDataIO_Grabber | itemSubCategoryDataIO_ADDA | itemSubCategoryDataIO_RawIO,
itemCatAll = itemCatMainAll | itemCatSubAll,
itemUnknown = 0x0000,
itemCatDataIO = 0x0001,
itemCatActuator = 0x0002,
itemCatAlgo = 0x0004,
itemCatDesignerWidget = 0x0008,
itemSubCategoryDataIO_Grabber = 0x0008,
itemSubCategoryDataIO_ADDA = 0x0010,
itemSubCategoryDataIO_RawIO = 0x0020,
itemSubCategoryDesignerWidget = 0x0080,
itemPlugin = 0x0040,
itemInstance = 0x0080,
itemFilter = 0x0100,
itemWidget = 0x0200,
itemDesignerWidget = 0x1000,
itemCatMainAll = itemCatDataIO | itemCatActuator | itemCatAlgo,
itemCatSubAll = itemSubCategoryDataIO_Grabber | itemSubCategoryDataIO_ADDA | itemSubCategoryDataIO_RawIO,
itemCatAll = itemCatMainAll | itemCatSubAll
} |
enum | tItemType {
itemUnknown = 0x0000,
itemCatDataIO = 0x0001,
itemCatActuator = 0x0002,
itemCatAlgo = 0x0004,
itemSubCategoryDataIO_Grabber = 0x0008,
itemSubCategoryDataIO_ADDA = 0x0010,
itemSubCategoryDataIO_RawIO = 0x0020,
itemPlugin = 0x0040,
itemInstance = 0x0080,
itemFilter = 0x0100,
itemWidget = 0x0200,
itemCatMainAll = itemCatDataIO | itemCatActuator | itemCatAlgo,
itemCatSubAll = itemSubCategoryDataIO_Grabber | itemSubCategoryDataIO_ADDA | itemSubCategoryDataIO_RawIO,
itemCatAll = itemCatMainAll | itemCatSubAll,
itemUnknown = 0x0000,
itemCatDataIO = 0x0001,
itemCatActuator = 0x0002,
itemCatAlgo = 0x0004,
itemCatDesignerWidget = 0x0008,
itemSubCategoryDataIO_Grabber = 0x0008,
itemSubCategoryDataIO_ADDA = 0x0010,
itemSubCategoryDataIO_RawIO = 0x0020,
itemSubCategoryDesignerWidget = 0x0080,
itemPlugin = 0x0040,
itemInstance = 0x0080,
itemFilter = 0x0100,
itemWidget = 0x0200,
itemDesignerWidget = 0x1000,
itemCatMainAll = itemCatDataIO | itemCatActuator | itemCatAlgo,
itemCatSubAll = itemSubCategoryDataIO_Grabber | itemSubCategoryDataIO_ADDA | itemSubCategoryDataIO_RawIO,
itemCatAll = itemCatMainAll | itemCatSubAll
} |
Public Member Functions |
| PlugInModel () |
| ~PlugInModel () |
QVariant | data (const QModelIndex &index, int role) const |
Qt::ItemFlags | flags (const QModelIndex &index) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
QModelIndex | parent (const QModelIndex &index) const |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
int | update (void) |
bool | insertInstance (ito::AddInInterfaceBase *addInInterface, bool beginOperation) |
bool | deleteInstance (ito::AddInInterfaceBase *addInInterface, ito::AddInBase *addInInstance, const bool beginOperation) |
bool | resetModel (bool beginOperation) |
QModelIndex | getIndexByAddIn (ito::AddInBase *ai) const |
QModelIndex | getIndexByAddInInterface (ito::AddInInterfaceBase *aib) const |
bool | getModelIndexInfo (const QModelIndex &index, tItemType &type, size_t &internalData) const |
bool | getIsAlgoPlugIn (tItemType &itemType, size_t &internalData) const |
bool | getIsGrabberInstance (tItemType &itemType, size_t &internalData) const |
QModelIndex | getTypeNode (const int type) const |
QVariant | data (const QModelIndex &index, int role) const |
Qt::ItemFlags | flags (const QModelIndex &index) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
QModelIndex | parent (const QModelIndex &index) const |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
int | update (void) |
bool | insertInstance (ito::AddInInterfaceBase *addInInterface, bool beginOperation) |
bool | deleteInstance (ito::AddInInterfaceBase *addInInterface, ito::AddInBase *addInInstance, bool beginOperation) |
bool | resetModel (bool beginOperation) |
QModelIndex | getIndexByAddIn (ito::AddInBase *ai) const |
QModelIndex | getIndexByAddInInterface (ito::AddInInterfaceBase *aib) const |
bool | getModelIndexInfo (const QModelIndex &index, tItemType &type, size_t &internalData) const |
bool | getIsAlgoPlugIn (size_t &internalData) const |
bool | getIsGrabberInstance (size_t &internalData) const |
QModelIndex | getTypeNode (const int type) const |
void | setDesignerPlugins (QList< DesignerPlugin > &designerPlugins) |
Protected Member Functions |
QVariant | getFixedNodeInfo (const QModelIndex &index, const QVariant &name, const tItemType &itemType, const int &role, const QIcon icon) const |
QVariant | getPluginNodeInfo (const QModelIndex &index, const int &role) const |
QVariant | getInstanceNodeInfo (const QModelIndex &index, const int &role) const |
QVariant | getFilterOrWidgetNodeInfo (const QModelIndex &index, const int &role, bool filterNotWidget) const |
QVariant | getFixedNodeInfo (const QModelIndex &index, const QVariant &name, const tItemType &itemType, const int &role, const QIcon icon) const |
QVariant | getPluginNodeInfo (const QModelIndex &index, const int &role) const |
QVariant | getInstanceNodeInfo (const QModelIndex &index, const int &role) const |
QVariant | getFilterOrWidgetNodeInfo (const QModelIndex &index, const int &role, bool filterNotWidget) const |
Private Attributes |
QList< QString > | m_headers |
| string list of names of column headers
|
QList< QVariant > | m_alignment |
| list of alignments for the corresponding headers
|
int | m_treeFixNodes [6] |
QModelIndex | m_treeFixIndizes [6] |
QIcon | m_iconActuator |
QIcon | m_iconGrabber |
QIcon | m_iconADDA |
QIcon | m_iconRawIO |
QIcon | m_iconFilter |
QIcon | m_iconDataIO |
QIcon | m_iconAlgo |
QIcon | m_iconWidget |
QIcon | m_iconPlots |
int * | m_treeFixNodes |
QModelIndex * | m_treeFixIndizes |
QIcon | m_iconDesignerWidget |
QList< DesignerPlugin > | m_designerPlugins |
QMap< int, QString > | m_designerWidgetPlotTypes |
class for visualizing the available (loaded) plugins
The PlugInModel supplies a widget showing the available plugins (libraries) with their name, filename, version and so on. In addition below each plugin its running instances are shown and if a plugin offers a configuration dialog it can be opened using a right click on the instance and selecting "open configuration dialog" in the context menu. The tree view is automatically updated when a new instance is created or an existing one had been deleted.