-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 | |||
@@ -116,69 +116,74 @@ class MonthViewItem: public QListBoxItem | |||
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 |