cellitem.h
00001
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
namespace KOrg {
00031
00032
class CellItem
00033 {
00034
public:
00035 CellItem()
00036 : mSubCells( 0 ), mSubCell( -1 )
00037 {
00038 }
00039
00040
void setSubCells(
int v ) { mSubCells = v; }
00041
int subCells()
const {
return mSubCells; }
00042
00043
void setSubCell(
int v ) { mSubCell = v; }
00044
int subCell()
const {
return mSubCell; }
00045
00046
virtual bool overlaps( CellItem *other )
const = 0;
00047
00048
virtual QString label() const;
00049
00056 static
QPtrList<CellItem> placeItem(
QPtrList<CellItem> cells,
00057 CellItem *placeItem );
00058
00059 private:
00060
int mSubCells;
00061
int mSubCell;
00062 };
00063
00064 }
00065
00066 #endif
This file is part of the documentation for korganizer Library Version 3.3.0.