87 itemCatDataIO = 0x0001,
88 itemCatActuator = 0x0002,
90 itemSubCategoryDataIO_Grabber = 0x0008,
91 itemSubCategoryDataIO_ADDA = 0x0010,
92 itemSubCategoryDataIO_RawIO = 0x0020,
94 itemInstance = 0x0080,
97 itemCatMainAll = itemCatDataIO | itemCatActuator | itemCatAlgo,
98 itemCatSubAll = itemSubCategoryDataIO_Grabber | itemSubCategoryDataIO_ADDA | itemSubCategoryDataIO_RawIO,
99 itemCatAll = itemCatMainAll | itemCatSubAll
102 QVariant data(
const QModelIndex &index,
int role)
const;
103 Qt::ItemFlags flags(
const QModelIndex &index)
const;
104 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
105 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const;
106 QModelIndex parent(
const QModelIndex &index)
const;
107 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
108 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
109 int update(
void) { emit(beginResetModel()); emit(endResetModel());
return 0; };
112 bool deleteInstance(
ito::AddInBase *addInInstance,
const bool beginOperation);
113 bool resetModel(
bool beginOperation);
117 bool getModelIndexInfo(
const QModelIndex &index, tItemType &type,
size_t &internalData)
const;
119 bool getIsAlgoPlugIn(tItemType &itemType,
size_t &internalData)
const;
120 bool getIsGrabberInstance(tItemType &itemType,
size_t &internalData)
const;
122 QModelIndex getTypeNode(
const int type)
const;
125 QColor backgroundColorInstancesWithPythonRef()
const;
126 void setBackgroundColorInstancesWithPythonRef(
const QColor &bgColor);
129 QVariant getFixedNodeInfo(
const QModelIndex &index,
const QVariant &name,
const tItemType &itemType,
const int &role,
const QIcon icon)
const;
130 QVariant getPluginNodeInfo(
const QModelIndex &index,
const int &role)
const;
131 QVariant getInstanceNodeInfo(
const QModelIndex &index,
const int &role)
const;
132 QVariant getFilterOrWidgetNodeInfo(
const QModelIndex &index,
const int &role,
bool filterNotWidget)
const;
133 QMimeData* mimeData(
const QModelIndexList &indexes)
const;
136 QScopedPointer<PlugInModelPrivate> d_ptr;
137 QString getInitCommand(
const QModelIndex & item)
const;