korganizer
cellitem.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef KORG_CELLITEM_H
00025 #define KORG_CELLITEM_H
00026
00027 #include <qstring.h>
00028 #include <qptrlist.h>
00029
00030 #include <kdepimmacros.h>
00031
00032 namespace KOrg {
00033
00034 class KDE_EXPORT CellItem
00035 {
00036 public:
00037 CellItem()
00038 : mSubCells( 0 ), mSubCell( -1 )
00039 {
00040 }
00041
00042 void setSubCells( int v ) { mSubCells = v; }
00043 int subCells() const { return mSubCells; }
00044
00045 void setSubCell( int v ) { mSubCell = v; }
00046 int subCell() const { return mSubCell; }
00047
00048 virtual bool overlaps( CellItem *other ) const = 0;
00049
00050 virtual QString label() const;
00051
00058 static QPtrList<CellItem> placeItem( QPtrList<CellItem> cells,
00059 CellItem *placeItem );
00060
00061 private:
00062 int mSubCells;
00063 int mSubCell;
00064 };
00065
00066 }
00067
00068 #endif
|