26 #if !defined(Q_MOC_RUN) || defined(ADDINMGR_DLL) //only moc this file in itomCommonQtLib but not in other libraries or executables linking against this itomCommonQtLib
28 #include "addInMgrDefines.h"
29 #include "../common/addInInterface.h"
31 #include <qabstractitemmodel.h>
32 #include <qscopedpointer.h>
63 PluginLoadStatus() : filename(
"") {}
65 QList< QPair<ito::PluginLoadStatusFlags, QString> > messages;
88 itemCatDataIO = 0x0001,
89 itemCatActuator = 0x0002,
91 itemSubCategoryDataIO_Grabber = 0x0008,
92 itemSubCategoryDataIO_ADDA = 0x0010,
93 itemSubCategoryDataIO_RawIO = 0x0020,
95 itemInstance = 0x0080,
98 itemCatMainAll = itemCatDataIO | itemCatActuator | itemCatAlgo,
99 itemCatSubAll = itemSubCategoryDataIO_Grabber | itemSubCategoryDataIO_ADDA | itemSubCategoryDataIO_RawIO,
100 itemCatAll = itemCatMainAll | itemCatSubAll
103 QVariant data(
const QModelIndex &index,
int role)
const;
104 Qt::ItemFlags flags(
const QModelIndex &index)
const;
105 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
106 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const;
107 QModelIndex parent(
const QModelIndex &index)
const;
108 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
109 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
110 int update(
void) { emit(beginResetModel()); emit(endResetModel());
return 0; };
113 bool deleteInstance(
ito::AddInBase *addInInstance,
const bool beginOperation);
114 bool resetModel(
bool beginOperation);
118 bool getModelIndexInfo(
const QModelIndex &index, tItemType &type,
size_t &internalData)
const;
120 bool getIsAlgoPlugIn(tItemType &itemType,
size_t &internalData)
const;
121 bool getIsGrabberInstance(tItemType &itemType,
size_t &internalData)
const;
123 QModelIndex getTypeNode(
const int type)
const;
126 QColor backgroundColorInstancesWithPythonRef()
const;
127 void setBackgroundColorInstancesWithPythonRef(
const QColor &bgColor);
130 QVariant getFixedNodeInfo(
const QModelIndex &index,
const QVariant &name,
const tItemType &itemType,
const int &role,
const QIcon icon)
const;
131 QVariant getPluginNodeInfo(
const QModelIndex &index,
const int &role)
const;
132 QVariant getInstanceNodeInfo(
const QModelIndex &index,
const int &role)
const;
133 QVariant getFilterOrWidgetNodeInfo(
const QModelIndex &index,
const int &role,
bool filterNotWidget)
const;
134 QMimeData* mimeData(
const QModelIndexList &indexes)
const;
137 QScopedPointer<PlugInModelPrivate> d_ptr;
138 QString getInitCommand(
const QModelIndex & item)
const;
144 #endif // #if !defined(Q_MOC_RUN) || defined(ADDINMGR_DLL)
Definition: pluginModel.h:52
tPluginLoadStatusFlag
Definition: pluginModel.h:45
Definition: pluginModel.h:51
Definition: pluginModel.h:47
Definition: pluginModel.cpp:32
class for visualizing the available (loaded) plugins
Definition: pluginModel.h:78
Definition: pluginModel.h:50
Base class for all plugins.
Definition: addInInterface.h:385
class for AddIn management
Definition: addInManager.h:66
Definition: pluginModel.h:49
Definition: apiFunctionsGraph.cpp:39
This struct provides a structure for saving the load status of any plugins or designerWidgets.
Definition: pluginModel.h:61
Definition: pluginModel.h:48
forward declaration to private container class of AddInAlog
Definition: addInInterface.h:248