1 #ifndef AbstractTreeItem_H 2 #define AbstractTreeItem_H 7 template<
typename T >
class QList;
36 enum InternalPointerType {
58 virtual int childCount()
const = 0;
68 virtual QVariant getData()
const = 0;
69 virtual QVariant getData(QString columnTitle)
const = 0;
70 virtual void setData(QString
const &columnTitle,
71 QString
const &newData) = 0;
72 virtual bool isDataEditable(QString columnTitle)
const = 0;
73 virtual void deleteSource() = 0;
74 virtual InternalPointerType getPointerType()
const = 0;
75 virtual void *getPointer()
const = 0;
78 virtual QString getFormattedData()
const;
79 virtual QString getFormattedData(QString columnTitle)
const;
82 virtual bool hasImage(QString imageSerial)
const;
88 virtual void setExpanded(
bool newState);
89 virtual bool isExpanded()
const;
91 virtual void setSelected(
bool newState);
92 virtual void setSelectable(
bool newSelectable);
93 virtual bool isSelected()
const;
94 virtual bool isSelectable()
const;
96 virtual void setVisible(
bool newState);
97 virtual bool isVisible()
const;
99 virtual int getDataWidth()
const;
100 virtual int getDepth()
const;
106 virtual void sourceDeleted() = 0;
109 virtual void calcDataWidth(
int avgCharWidth);
110 static double catchNull(QString);
111 static QString catchNull(QVariant);
Namespace for ISIS/Bullet specific routines.
Base class for an item in the tree.