Public Types | |
enum | ObjClass { ABSTRACT_ITEM, INST_ITEM, PROG_ITEM, MODULE_ITEM, FACULTY_ITEM, DEPT_ITEM, STAFF_ITEM, ROOM_ITEM, ML_ALLOC_ITEM, TIME_SLOT_ITEM, DAILY_TIME_SLOT_ITEM } |
Public Member Functions | |
RootItem (RootItem *parent=0, int cc=0) | |
RootItem (RootItem &ii) | |
virtual QString | getDescription () const =0 |
virtual QVariant | data (int column) const =0 |
virtual DataClass * | getItemData () const =0 |
virtual int | getParentID () |
int | columnCount () const |
int | getID () const |
RootItem * | parent () |
int | childCount () const |
RootItem * | child (int row) const |
QString | getClassName () |
int | row () const |
RootItem * | findItem (DataClass *dc) |
int | findChildPos (int id) |
virtual bool | setData (int column, const QVariant &value)=0 |
void | setParent (RootItem *pi) |
void | clearAllChildren () |
void | setColumnCount (int cc) |
void | setColumnOrder (int count,...) |
void | setTextColour (int count,...) |
void | setBGColour (int count,...) |
void | insertChild (RootItem *child) |
void | appendChild (RootItem *item) |
void | deleteChild (RootItem *child) |
void | sort (CompareRI compare) |
virtual QColor | textColour (int) |
virtual QColor | bgColour (int) |
virtual void | dbSave ()=0 |
virtual void | dbDelete ()=0 |
int | rtti () |
RootItem * | clone () |
void | dump () |
Static Public Member Functions | |
static bool | riCompareCI (const RootItem *p1, const RootItem *p2) |
static bool | riCompareCS (const RootItem *p1, const RootItem *p2) |
Static Public Attributes | |
static const int | UNKNOWN = -1 |
Protected Attributes | |
QList< RootItem * > | childItems |
RootItem * | parentItem |
DataClass * | itemData |
int | RTTI |
int | col_count |
QVector< int > | col_order |
QVector< QColor > | txtColour |
QVector< QColor > | backgroundColour |
Definition at line 34 of file RootItem.h.