#include <QList>
#include <QStringList>
+#include <QStyledItemDelegate>
class QWidget;
class QTableWidgetItem;
class QLineEdit;
+
+class DataTableItemDelegate : public QStyledItemDelegate
+{
+ Q_OBJECT
+public:
+ DataTableItemDelegate(ModelAPI_AttributeTables::ValueType theType) :
+ QStyledItemDelegate() { myType = theType; }
+
+ virtual QWidget* createEditor(QWidget* theParent,
+ const QStyleOptionViewItem & theOption,
+ const QModelIndex& theIndex) const;
+
+ ModelAPI_AttributeTables::ValueType dataType() const { return myType; }
+
+ void setDataType(ModelAPI_AttributeTables::ValueType theType) { myType = theType; }
+
+private:
+ ModelAPI_AttributeTables::ValueType myType;
+};
+
+
+
/*!
* \ingroup GUI
* Represent a content of the property panel to show/modify parameters of a Field feature.
bool myIsTabEdit;
bool myActivation;
+
+ DataTableItemDelegate* myDelegate;
};
#endif
\ No newline at end of file