author | zautrix <zautrix> | 2005-06-27 17:25:27 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-27 17:25:27 (UTC) |
commit | 2a6c47afc7688923f427f4a38e3353e3503ab09a (patch) (unidiff) | |
tree | f314e7062e60f8e0302714bcc6149f2e83c96e30 /korganizer/komonthview.h | |
parent | 58ad1402f6415de889e7a0dc98be29e9ae56d86c (diff) | |
download | kdepimpi-2a6c47afc7688923f427f4a38e3353e3503ab09a.zip kdepimpi-2a6c47afc7688923f427f4a38e3353e3503ab09a.tar.gz kdepimpi-2a6c47afc7688923f427f4a38e3353e3503ab09a.tar.bz2 |
monthview enh
-rw-r--r-- | korganizer/komonthview.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h index 65b5e77..159af16 100644 --- a/korganizer/komonthview.h +++ b/korganizer/komonthview.h | |||
@@ -41,12 +41,13 @@ | |||
41 | 41 | ||
42 | #ifdef DESKTOP_VERSION | 42 | #ifdef DESKTOP_VERSION |
43 | class QToolTipGroup; | 43 | class QToolTipGroup; |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | class KNOWhatsThis; | 46 | class KNOWhatsThis; |
47 | class MonthViewCell; | ||
47 | class KOWeekButton : public QPushButton | 48 | class KOWeekButton : public QPushButton |
48 | { | 49 | { |
49 | Q_OBJECT | 50 | Q_OBJECT |
50 | public: | 51 | public: |
51 | KOWeekButton( QWidget *parent=0, const char *name=0 ) : | 52 | KOWeekButton( QWidget *parent=0, const char *name=0 ) : |
52 | QPushButton( parent, name) | 53 | QPushButton( parent, name) |
@@ -82,12 +83,13 @@ class KNoScrollListBox: public QListBox | |||
82 | signals: | 83 | signals: |
83 | void shiftDown(); | 84 | void shiftDown(); |
84 | void shiftUp(); | 85 | void shiftUp(); |
85 | void rightClick(); | 86 | void rightClick(); |
86 | void nextCell(); | 87 | void nextCell(); |
87 | void prevCell(); | 88 | void prevCell(); |
89 | void highligtIncidence( Incidence * , MonthViewCell*, int ); | ||
88 | 90 | ||
89 | protected slots: | 91 | protected slots: |
90 | void oneDown(); | 92 | void oneDown(); |
91 | void keyPressEvent(QKeyEvent *); | 93 | void keyPressEvent(QKeyEvent *); |
92 | void keyReleaseEvent(QKeyEvent *); | 94 | void keyReleaseEvent(QKeyEvent *); |
93 | void mousePressEvent(QMouseEvent *); | 95 | void mousePressEvent(QMouseEvent *); |
@@ -107,20 +109,21 @@ class MonthViewItem: public QListBoxItem | |||
107 | void recycle( Incidence *incidence, QDate qd, const QString & s); | 109 | void recycle( Incidence *incidence, QDate qd, const QString & s); |
108 | void setRecur(bool on) { mRecur = on; } | 110 | void setRecur(bool on) { mRecur = on; } |
109 | void setAlarm(bool on) { mAlarm = on; } | 111 | void setAlarm(bool on) { mAlarm = on; } |
110 | void setReply(bool on) { mReply = on; } | 112 | void setReply(bool on) { mReply = on; } |
111 | void setMoreInfo(bool on) { mInfo = on; } | 113 | void setMoreInfo(bool on) { mInfo = on; } |
112 | void setMultiDay(int type) { mMultiday = type; } | 114 | void setMultiDay(int type) { mMultiday = type; } |
115 | int multiDay() { return mMultiday; } | ||
113 | void setMultiDayPos(int type) { mdayPos = type; } | 116 | void setMultiDayPos(int type) { mdayPos = type; } |
114 | int gettMultiDayPos() { return mdayPos; } | 117 | int gettMultiDayPos() { return mdayPos; } |
115 | void setBlockRepaint(bool on) { mblockRepaint = on; } | 118 | void setBlockRepaint(bool on) { mblockRepaint = on; } |
116 | 119 | bool setHighlighted( Incidence * ); | |
117 | 120 | ||
118 | void setPalette(const QPalette &p) { mPalette = p; } | 121 | void setPalette(const QPalette &p) { mPalette = p; } |
119 | QPalette palette() const { return mPalette; } | 122 | QPalette palette() const { return mPalette; } |
120 | 123 | bool setHighlightedFalse(); | |
121 | Incidence *incidence() const { return mIncidence; } | 124 | Incidence *incidence() const { return mIncidence; } |
122 | QDate incidenceDate() { return mDate; } | 125 | QDate incidenceDate() { return mDate; } |
123 | 126 | ||
124 | protected: | 127 | protected: |
125 | virtual void paint(QPainter *); | 128 | virtual void paint(QPainter *); |
126 | virtual int height(const QListBox *) const; | 129 | virtual int height(const QListBox *) const; |
@@ -132,12 +135,13 @@ class MonthViewItem: public QListBoxItem | |||
132 | bool mblockRepaint; | 135 | bool mblockRepaint; |
133 | int mMultiday; | 136 | int mMultiday; |
134 | bool mRecur; | 137 | bool mRecur; |
135 | bool mAlarm; | 138 | bool mAlarm; |
136 | bool mReply; | 139 | bool mReply; |
137 | bool mInfo; | 140 | bool mInfo; |
141 | bool mDisplayHightlighted; | ||
138 | 142 | ||
139 | QPalette mPalette; | 143 | QPalette mPalette; |
140 | QDate mDate; | 144 | QDate mDate; |
141 | 145 | ||
142 | Incidence *mIncidence; | 146 | Incidence *mIncidence; |
143 | }; | 147 | }; |
@@ -172,13 +176,14 @@ class MonthViewCell : public KNoScrollListBox | |||
172 | 176 | ||
173 | void enableScrollBars( bool ); | 177 | void enableScrollBars( bool ); |
174 | 178 | ||
175 | Incidence *selectedIncidence(); | 179 | Incidence *selectedIncidence(); |
176 | QDate selectedIncidenceDate(); | 180 | QDate selectedIncidenceDate(); |
177 | QPushButton * dateLabel() { return mLabel; } | 181 | QPushButton * dateLabel() { return mLabel; } |
178 | 182 | void deHightLight(); | |
183 | bool doHightLight( Incidence *); | ||
179 | void deselect(); | 184 | void deselect(); |
180 | void select(); | 185 | void select(); |
181 | #ifdef DESKTOP_VERSION | 186 | #ifdef DESKTOP_VERSION |
182 | static QToolTipGroup *toolTipGroup(); | 187 | static QToolTipGroup *toolTipGroup(); |
183 | #endif | 188 | #endif |
184 | signals: | 189 | signals: |
@@ -189,13 +194,12 @@ class MonthViewCell : public KNoScrollListBox | |||
189 | protected: | 194 | protected: |
190 | QStringList mToolTip; | 195 | QStringList mToolTip; |
191 | void resizeEvent( QResizeEvent * ); | 196 | void resizeEvent( QResizeEvent * ); |
192 | 197 | ||
193 | public slots: | 198 | public slots: |
194 | void showDay(); | 199 | void showDay(); |
195 | |||
196 | protected slots: | 200 | protected slots: |
197 | void defaultAction( QListBoxItem * ); | 201 | void defaultAction( QListBoxItem * ); |
198 | void contextMenu( QListBoxItem * ); | 202 | void contextMenu( QListBoxItem * ); |
199 | void selection( QListBoxItem * ); | 203 | void selection( QListBoxItem * ); |
200 | void cellClicked( QListBoxItem * ); | 204 | void cellClicked( QListBoxItem * ); |
201 | void newEvent(); | 205 | void newEvent(); |
@@ -255,12 +259,13 @@ class KOMonthView: public KOEventView | |||
255 | 259 | ||
256 | MonthViewCell * selectedCell(); | 260 | MonthViewCell * selectedCell(); |
257 | bool skipResize; | 261 | bool skipResize; |
258 | NavigatorBar* navigatorBar() { return mNavigatorBar ;} | 262 | NavigatorBar* navigatorBar() { return mNavigatorBar ;} |
259 | void clearList(); | 263 | void clearList(); |
260 | public slots: | 264 | public slots: |
265 | void incidenceHighlighted( Incidence *, MonthViewCell*, int ); | ||
261 | void nextCell(); | 266 | void nextCell(); |
262 | void prevCell(); | 267 | void prevCell(); |
263 | virtual void updateView(); | 268 | virtual void updateView(); |
264 | virtual void updateConfig(); | 269 | virtual void updateConfig(); |
265 | virtual void showDates(const QDate &start, const QDate &end); | 270 | virtual void showDates(const QDate &start, const QDate &end); |
266 | virtual void showEvents(QPtrList<Event> eventList); | 271 | virtual void showEvents(QPtrList<Event> eventList); |