Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

RootItem Class Reference

Inheritance diagram for RootItem:

Inheritance graph
[legend]
Collaboration diagram for RootItem:

Collaboration graph
[legend]
List of all members.

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 DataClassgetItemData () const =0
virtual int getParentID ()
int columnCount () const
int getID () const
RootItemparent ()
int childCount () const
RootItemchild (int row) const
QString getClassName ()
int row () const
RootItemfindItem (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 ()
RootItemclone ()
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
RootItemparentItem
DataClassitemData
int RTTI
int col_count
QVector< int > col_order
QVector< QColor > txtColour
QVector< QColor > backgroundColour

Detailed Description

Definition at line 34 of file RootItem.h.


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 16:27:21 2006 for time-table by  doxygen 1.4.4