From e3b935f4e24086117213662e670ab26cb2ad8822 Mon Sep 17 00:00:00 2001 From: zautrix Date: Fri, 25 Mar 2005 05:47:45 +0000 Subject: mal sehn... --- (limited to 'korganizer/komonthview.h') diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h index 89912e0..b997c1a 100644 --- a/korganizer/komonthview.h +++ b/korganizer/komonthview.h @@ -93,12 +93,13 @@ class MonthViewItem: public QListBoxItem { public: MonthViewItem( Incidence *, QDate qd, const QString & title ); - + void recycle( Incidence *incidence, QDate qd, const QString & s); void setRecur(bool on) { mRecur = on; } void setAlarm(bool on) { mAlarm = on; } void setReply(bool on) { mReply = on; } void setMoreInfo(bool on) { mInfo = on; } void setMultiDay(int type) { mMultiday = type; } + void setBlockRepaint(bool on) { mblockRepaint = on; } void setPalette(const QPalette &p) { mPalette = p; } @@ -113,6 +114,7 @@ class MonthViewItem: public QListBoxItem virtual int width(const QListBox *) const; private: + bool mblockRepaint; int mMultiday; bool mRecur; bool mAlarm; @@ -128,11 +130,12 @@ class MonthViewItem: public QListBoxItem class KOMonthView; -class MonthViewCell : public QWidget +class MonthViewCell : public KNoScrollListBox { Q_OBJECT public: MonthViewCell(KOMonthView *,QWidget* ); + ~MonthViewCell() {mAvailItemList.setAutoDelete( true );} void setDate( const QDate & ); QDate date() const; @@ -146,6 +149,7 @@ class MonthViewCell : public QWidget void updateCell(); void startUpdateCell(); void finishUpdateCell(); + void repaintfinishUpdateCell(); void insertEvent(Event *); void insertTodo(Todo *); @@ -183,7 +187,10 @@ public slots: void newEvent(); private: + MonthViewItem* mCurrentAvailItem; + QPtrList mAvailItemList; KOMonthView *mMonthView; + int currentPalette; QDate mDate; bool mPrimary; @@ -192,7 +199,7 @@ public slots: //QLabel *mLabel; QPushButton *mLabel; - QListBox *mItemList; + //QListBox *mItemList; #ifdef DESKTOP_VERSION static QToolTipGroup *mToolTipGroup; #endif @@ -204,7 +211,6 @@ public slots: QPalette mNonPrimaryPalette; void setMyPalette(); QPalette getPalette (); - void keyPressEvent ( QKeyEvent * ) ; }; -- cgit v0.9.0.2