author | zautrix <zautrix> | 2005-01-31 16:29:05 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-31 16:29:05 (UTC) |
commit | ec037c4616342c1b3976c55db98b775f48e0d455 (patch) (unidiff) | |
tree | 9d568c8f6ad6005f822c12644596b7a553837c7f /korganizer/komonthview.h | |
parent | 5d52c81be9b43887c13f8534a04164d3b44b821f (diff) | |
download | kdepimpi-ec037c4616342c1b3976c55db98b775f48e0d455.zip kdepimpi-ec037c4616342c1b3976c55db98b775f48e0d455.tar.gz kdepimpi-ec037c4616342c1b3976c55db98b775f48e0d455.tar.bz2 |
fix
-rw-r--r-- | korganizer/komonthview.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h index 50903b3..b84065e 100644 --- a/korganizer/komonthview.h +++ b/korganizer/komonthview.h | |||
@@ -92,117 +92,122 @@ class MonthViewItem: public QListBoxItem | |||
92 | void setRecur(bool on) { mRecur = on; } | 92 | void setRecur(bool on) { mRecur = on; } |
93 | void setAlarm(bool on) { mAlarm = on; } | 93 | void setAlarm(bool on) { mAlarm = on; } |
94 | void setReply(bool on) { mReply = on; } | 94 | void setReply(bool on) { mReply = on; } |
95 | void setMoreInfo(bool on) { mInfo = on; } | 95 | void setMoreInfo(bool on) { mInfo = on; } |
96 | 96 | ||
97 | 97 | ||
98 | void setPalette(const QPalette &p) { mPalette = p; } | 98 | void setPalette(const QPalette &p) { mPalette = p; } |
99 | QPalette palette() const { return mPalette; } | 99 | QPalette palette() const { return mPalette; } |
100 | 100 | ||
101 | Incidence *incidence() const { return mIncidence; } | 101 | Incidence *incidence() const { return mIncidence; } |
102 | QDate incidenceDate() { return mDate; } | 102 | QDate incidenceDate() { return mDate; } |
103 | 103 | ||
104 | protected: | 104 | protected: |
105 | virtual void paint(QPainter *); | 105 | virtual void paint(QPainter *); |
106 | virtual int height(const QListBox *) const; | 106 | virtual int height(const QListBox *) const; |
107 | virtual int width(const QListBox *) const; | 107 | virtual int width(const QListBox *) const; |
108 | 108 | ||
109 | private: | 109 | private: |
110 | bool mRecur; | 110 | bool mRecur; |
111 | bool mAlarm; | 111 | bool mAlarm; |
112 | bool mReply; | 112 | bool mReply; |
113 | bool mInfo; | 113 | bool mInfo; |
114 | 114 | ||
115 | QPalette mPalette; | 115 | QPalette mPalette; |
116 | QDate mDate; | 116 | QDate mDate; |
117 | 117 | ||
118 | Incidence *mIncidence; | 118 | Incidence *mIncidence; |
119 | }; | 119 | }; |
120 | 120 | ||
121 | 121 | ||
122 | class KOMonthView; | 122 | class KOMonthView; |
123 | 123 | ||
124 | class MonthViewCell : public QWidget | 124 | class MonthViewCell : public QWidget |
125 | { | 125 | { |
126 | Q_OBJECT | 126 | Q_OBJECT |
127 | public: | 127 | public: |
128 | MonthViewCell( KOMonthView * ); | 128 | MonthViewCell( KOMonthView * ); |
129 | 129 | ||
130 | void setDate( const QDate & ); | 130 | void setDate( const QDate & ); |
131 | QDate date() const; | 131 | QDate date() const; |
132 | 132 | ||
133 | void setPrimary( bool ); | 133 | void setPrimary( bool ); |
134 | bool isPrimary() const; | 134 | bool isPrimary() const; |
135 | 135 | ||
136 | void setHoliday( bool ); | 136 | void setHoliday( bool ); |
137 | void setHoliday( const QString & ); | 137 | void setHoliday( const QString & ); |
138 | 138 | ||
139 | void updateCell(); | 139 | void updateCell(); |
140 | void startUpdateCell(); | ||
141 | void finishUpdateCell(); | ||
142 | void insertEvent(Event *); | ||
143 | void insertTodo(Todo *); | ||
140 | 144 | ||
141 | void updateConfig(); | 145 | void updateConfig(); |
142 | 146 | ||
143 | void enableScrollBars( bool ); | 147 | void enableScrollBars( bool ); |
144 | 148 | ||
145 | Incidence *selectedIncidence(); | 149 | Incidence *selectedIncidence(); |
146 | QDate selectedIncidenceDate(); | 150 | QDate selectedIncidenceDate(); |
147 | 151 | ||
148 | void deselect(); | 152 | void deselect(); |
149 | void select(); | 153 | void select(); |
150 | void clear(); | 154 | void clear(); |
151 | 155 | ||
152 | #ifdef DESKTOP_VERSION | 156 | #ifdef DESKTOP_VERSION |
153 | static QToolTipGroup *toolTipGroup(); | 157 | static QToolTipGroup *toolTipGroup(); |
154 | #endif | 158 | #endif |
155 | signals: | 159 | signals: |
156 | void defaultAction( Incidence * ); | 160 | void defaultAction( Incidence * ); |
157 | void newEventSignal( QDateTime ); | 161 | void newEventSignal( QDateTime ); |
158 | void showDaySignal( QDate ); | 162 | void showDaySignal( QDate ); |
159 | 163 | ||
160 | protected: | 164 | protected: |
165 | QString mToolTip; | ||
161 | void resizeEvent( QResizeEvent * ); | 166 | void resizeEvent( QResizeEvent * ); |
162 | 167 | ||
163 | protected slots: | 168 | protected slots: |
164 | void defaultAction( QListBoxItem * ); | 169 | void defaultAction( QListBoxItem * ); |
165 | void contextMenu( QListBoxItem * ); | 170 | void contextMenu( QListBoxItem * ); |
166 | void selection( QListBoxItem * ); | 171 | void selection( QListBoxItem * ); |
167 | void cellClicked( QListBoxItem * ); | 172 | void cellClicked( QListBoxItem * ); |
168 | void newEvent(); | 173 | void newEvent(); |
169 | void showDay(); | 174 | void showDay(); |
170 | 175 | ||
171 | private: | 176 | private: |
172 | KOMonthView *mMonthView; | 177 | KOMonthView *mMonthView; |
173 | 178 | ||
174 | QDate mDate; | 179 | QDate mDate; |
175 | bool mPrimary; | 180 | bool mPrimary; |
176 | bool mHoliday; | 181 | bool mHoliday; |
177 | QString mHolidayString; | 182 | QString mHolidayString; |
178 | 183 | ||
179 | //QLabel *mLabel; | 184 | //QLabel *mLabel; |
180 | QPushButton *mLabel; | 185 | QPushButton *mLabel; |
181 | QListBox *mItemList; | 186 | QListBox *mItemList; |
182 | #ifdef DESKTOP_VERSION | 187 | #ifdef DESKTOP_VERSION |
183 | static QToolTipGroup *mToolTipGroup; | 188 | static QToolTipGroup *mToolTipGroup; |
184 | #endif | 189 | #endif |
185 | QSize mLabelSize; | 190 | QSize mLabelSize; |
186 | QSize mLabelBigSize; | 191 | QSize mLabelBigSize; |
187 | QPalette mHolidayPalette; | 192 | QPalette mHolidayPalette; |
188 | QPalette mStandardPalette; | 193 | QPalette mStandardPalette; |
189 | QPalette mPrimaryPalette; | 194 | QPalette mPrimaryPalette; |
190 | QPalette mNonPrimaryPalette; | 195 | QPalette mNonPrimaryPalette; |
191 | void setMyPalette(); | 196 | void setMyPalette(); |
192 | QPalette getPalette (); | 197 | QPalette getPalette (); |
193 | void keyPressEvent ( QKeyEvent * ) ; | 198 | void keyPressEvent ( QKeyEvent * ) ; |
194 | 199 | ||
195 | }; | 200 | }; |
196 | 201 | ||
197 | 202 | ||
198 | class KOMonthView: public KOEventView | 203 | class KOMonthView: public KOEventView |
199 | { | 204 | { |
200 | Q_OBJECT | 205 | Q_OBJECT |
201 | public: | 206 | public: |
202 | KOMonthView(Calendar *cal, QWidget *parent = 0, const char *name = 0 ); | 207 | KOMonthView(Calendar *cal, QWidget *parent = 0, const char *name = 0 ); |
203 | ~KOMonthView(); | 208 | ~KOMonthView(); |
204 | 209 | ||
205 | /** Returns maximum number of days supported by the komonthview */ | 210 | /** Returns maximum number of days supported by the komonthview */ |
206 | virtual int maxDatesHint(); | 211 | virtual int maxDatesHint(); |
207 | 212 | ||
208 | /** Returns number of currently shown dates. */ | 213 | /** Returns number of currently shown dates. */ |