summaryrefslogtreecommitdiffabout
path: root/korganizer/komonthview.h
authorzautrix <zautrix>2005-03-25 05:47:45 (UTC)
committer zautrix <zautrix>2005-03-25 05:47:45 (UTC)
commite3b935f4e24086117213662e670ab26cb2ad8822 (patch) (unidiff)
treed20ad8e8dd09cc3efb9f9e57568d4d009048d518 /korganizer/komonthview.h
parent658354b7112aff72f0fadd924c82b977d803bc27 (diff)
downloadkdepimpi-e3b935f4e24086117213662e670ab26cb2ad8822.zip
kdepimpi-e3b935f4e24086117213662e670ab26cb2ad8822.tar.gz
kdepimpi-e3b935f4e24086117213662e670ab26cb2ad8822.tar.bz2
mal sehn...
Diffstat (limited to 'korganizer/komonthview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/komonthview.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h
index 89912e0..b997c1a 100644
--- a/korganizer/komonthview.h
+++ b/korganizer/komonthview.h
@@ -90,18 +90,19 @@ class KNoScrollListBox: public QListBox
90 90
91 91
92class MonthViewItem: public QListBoxItem 92class MonthViewItem: public QListBoxItem
93{ 93{
94 public: 94 public:
95 MonthViewItem( Incidence *, QDate qd, const QString & title ); 95 MonthViewItem( Incidence *, QDate qd, const QString & title );
96 96 void recycle( Incidence *incidence, QDate qd, const QString & s);
97 void setRecur(bool on) { mRecur = on; } 97 void setRecur(bool on) { mRecur = on; }
98 void setAlarm(bool on) { mAlarm = on; } 98 void setAlarm(bool on) { mAlarm = on; }
99 void setReply(bool on) { mReply = on; } 99 void setReply(bool on) { mReply = on; }
100 void setMoreInfo(bool on) { mInfo = on; } 100 void setMoreInfo(bool on) { mInfo = on; }
101 void setMultiDay(int type) { mMultiday = type; } 101 void setMultiDay(int type) { mMultiday = type; }
102 void setBlockRepaint(bool on) { mblockRepaint = on; }
102 103
103 104
104 void setPalette(const QPalette &p) { mPalette = p; } 105 void setPalette(const QPalette &p) { mPalette = p; }
105 QPalette palette() const { return mPalette; } 106 QPalette palette() const { return mPalette; }
106 107
107 Incidence *incidence() const { return mIncidence; } 108 Incidence *incidence() const { return mIncidence; }
@@ -110,12 +111,13 @@ class MonthViewItem: public QListBoxItem
110 protected: 111 protected:
111 virtual void paint(QPainter *); 112 virtual void paint(QPainter *);
112 virtual int height(const QListBox *) const; 113 virtual int height(const QListBox *) const;
113 virtual int width(const QListBox *) const; 114 virtual int width(const QListBox *) const;
114 115
115 private: 116 private:
117 bool mblockRepaint;
116 int mMultiday; 118 int mMultiday;
117 bool mRecur; 119 bool mRecur;
118 bool mAlarm; 120 bool mAlarm;
119 bool mReply; 121 bool mReply;
120 bool mInfo; 122 bool mInfo;
121 123
@@ -125,17 +127,18 @@ class MonthViewItem: public QListBoxItem
125 Incidence *mIncidence; 127 Incidence *mIncidence;
126}; 128};
127 129
128 130
129class KOMonthView; 131class KOMonthView;
130 132
131class MonthViewCell : public QWidget 133class MonthViewCell : public KNoScrollListBox
132{ 134{
133 Q_OBJECT 135 Q_OBJECT
134 public: 136 public:
135 MonthViewCell(KOMonthView *,QWidget* ); 137 MonthViewCell(KOMonthView *,QWidget* );
138 ~MonthViewCell() {mAvailItemList.setAutoDelete( true );}
136 139
137 void setDate( const QDate & ); 140 void setDate( const QDate & );
138 QDate date() const; 141 QDate date() const;
139 142
140 void setPrimary( bool ); 143 void setPrimary( bool );
141 bool isPrimary() const; 144 bool isPrimary() const;
@@ -143,12 +146,13 @@ class MonthViewCell : public QWidget
143 void setHoliday( bool ); 146 void setHoliday( bool );
144 void setHoliday( const QString & ); 147 void setHoliday( const QString & );
145 148
146 void updateCell(); 149 void updateCell();
147 void startUpdateCell(); 150 void startUpdateCell();
148 void finishUpdateCell(); 151 void finishUpdateCell();
152 void repaintfinishUpdateCell();
149 void insertEvent(Event *); 153 void insertEvent(Event *);
150 void insertTodo(Todo *); 154 void insertTodo(Todo *);
151 155
152 void updateConfig( bool bigFont = false ); 156 void updateConfig( bool bigFont = false );
153 157
154 void enableScrollBars( bool ); 158 void enableScrollBars( bool );
@@ -180,34 +184,36 @@ public slots:
180 void contextMenu( QListBoxItem * ); 184 void contextMenu( QListBoxItem * );
181 void selection( QListBoxItem * ); 185 void selection( QListBoxItem * );
182 void cellClicked( QListBoxItem * ); 186 void cellClicked( QListBoxItem * );
183 void newEvent(); 187 void newEvent();
184 188
185 private: 189 private:
190 MonthViewItem* mCurrentAvailItem;
191 QPtrList <MonthViewItem> mAvailItemList;
186 KOMonthView *mMonthView; 192 KOMonthView *mMonthView;
193 int currentPalette;
187 194
188 QDate mDate; 195 QDate mDate;
189 bool mPrimary; 196 bool mPrimary;
190 bool mHoliday; 197 bool mHoliday;
191 QString mHolidayString; 198 QString mHolidayString;
192 199
193 //QLabel *mLabel; 200 //QLabel *mLabel;
194 QPushButton *mLabel; 201 QPushButton *mLabel;
195 QListBox *mItemList; 202 //QListBox *mItemList;
196#ifdef DESKTOP_VERSION 203#ifdef DESKTOP_VERSION
197 static QToolTipGroup *mToolTipGroup; 204 static QToolTipGroup *mToolTipGroup;
198#endif 205#endif
199 QSize mLabelSize; 206 QSize mLabelSize;
200 QSize mLabelBigSize; 207 QSize mLabelBigSize;
201 QPalette mHolidayPalette; 208 QPalette mHolidayPalette;
202 QPalette mStandardPalette; 209 QPalette mStandardPalette;
203 QPalette mPrimaryPalette; 210 QPalette mPrimaryPalette;
204 QPalette mNonPrimaryPalette; 211 QPalette mNonPrimaryPalette;
205 void setMyPalette(); 212 void setMyPalette();
206 QPalette getPalette (); 213 QPalette getPalette ();
207 void keyPressEvent ( QKeyEvent * ) ;
208 214
209}; 215};
210 216
211 217
212class KOMonthView: public KOEventView 218class KOMonthView: public KOEventView
213{ 219{