summaryrefslogtreecommitdiffstats
path: root/korganizer/koagendaitem.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-01 00:37:02 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-01 00:37:02 +0000
commitcc29364f06178f8f6b457384f2ec37a042bd9d43 (patch)
tree7c77a3184c698bbf9d98cef09fb1ba8124daceba /korganizer/koagendaitem.h
parent4f6c584bacc8c3c694228f36ada3de77a76614a6 (diff)
downloadtdepim-cc29364f06178f8f6b457384f2ec37a042bd9d43.tar.gz
tdepim-cc29364f06178f8f6b457384f2ec37a042bd9d43.zip
* Massive set of changes to bring in all fixes and enhancements from the Enterprise PIM branch
* Ensured that the Trinity changes were applied on top of those enhancements, and any redundancy removed * Added journal read support to the CalDAV resource * Fixed CalDAV resource to use events URL for tasks and journals when separate URL checkbox unchecked git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1170461 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korganizer/koagendaitem.h')
-rw-r--r--korganizer/koagendaitem.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/korganizer/koagendaitem.h b/korganizer/koagendaitem.h
index fc774dd1f..f15594428 100644
--- a/korganizer/koagendaitem.h
+++ b/korganizer/koagendaitem.h
@@ -34,6 +34,7 @@ class TQDragEnterEvent;
class TQDropEvent;
namespace KCal {
+class Calendar;
class Incidence;
}
using namespace KCal;
@@ -75,8 +76,10 @@ class KOAgendaItem : public TQWidget, public KOrg::CellItem
{
Q_OBJECT
public:
- KOAgendaItem(Incidence *incidence, const TQDate &qd, TQWidget *parent, const char *name=0,
- WFlags f=0 );
+ KOAgendaItem( Calendar *calendar, Incidence *incidence, const TQDate &qd,
+ TQWidget *parent,
+ int itemPos, int itemCount,
+ const char *name = 0, WFlags f = 0 );
int cellXLeft() const { return mCellXLeft; }
int cellXRight() const { return mCellXRight; }
@@ -85,6 +88,9 @@ class KOAgendaItem : public TQWidget, public KOrg::CellItem
int cellHeight() const;
int cellWidth() const;
+ int itemPos() const { return mItemPos; }
+ int itemCount() const { return mItemCount; }
+
void setCellXY(int X, int YTop, int YBottom);
void setCellY(int YTop, int YBottom);
void setCellX(int XLeft, int XRight);
@@ -173,15 +179,19 @@ class KOAgendaItem : public TQWidget, public KOrg::CellItem
private:
int mCellXLeft, mCellXRight;
int mCellYTop, mCellYBottom;
- int mSubCell; // subcell number of this item
- int mSubCells; // Total number of subcells in cell of this item
+ Calendar *mCalendar;
Incidence *mIncidence; // corresponding event or todo
TQDate mDate; //date this events occurs (for recurrence)
TQString mLabelText;
bool mIconAlarm, mIconRecur, mIconReadonly;
bool mIconReply, mIconGroup, mIconGroupTentative;
- bool mIconOrganizer;
+ bool mIconOrganizer, mSpecialEvent;
+
+ // For incidences that expand through more than 1 day
+ // Will be 1 for single day incidences
+ int mItemPos;
+ int mItemCount;
// Multi item pointers
MultiItemInfo* mMultiItemInfo;