1 #ifndef AbstractTreeItem_H
2 #define AbstractTreeItem_H
15 template<
typename T >
class QList;
44 enum InternalPointerType {
66 virtual int childCount()
const = 0;
76 virtual QVariant getData()
const = 0;
77 virtual QVariant getData(QString columnTitle)
const = 0;
78 virtual void setData(QString
const &columnTitle,
79 QString
const &newData) = 0;
80 virtual bool isDataEditable(QString columnTitle)
const = 0;
81 virtual void deleteSource() = 0;
82 virtual InternalPointerType getPointerType()
const = 0;
83 virtual void *getPointer()
const = 0;
86 virtual QString getFormattedData()
const;
87 virtual QString getFormattedData(QString columnTitle)
const;
90 virtual bool hasImage(QString imageSerial)
const;
96 virtual void setExpanded(
bool newState);
97 virtual bool isExpanded()
const;
99 virtual void setSelected(
bool newState);
100 virtual void setSelectable(
bool newSelectable);
101 virtual bool isSelected()
const;
102 virtual bool isSelectable()
const;
104 virtual void setVisible(
bool newState);
105 virtual bool isVisible()
const;
107 virtual int getDataWidth()
const;
108 virtual int getDepth()
const;
114 virtual void sourceDeleted() = 0;
117 virtual void calcDataWidth(
int avgCharWidth);
118 static double catchNull(QString);
119 static QString catchNull(QVariant);