author | zautrix <zautrix> | 2005-03-25 13:47:53 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-25 13:47:53 (UTC) |
commit | 5a0130ffdbf03fa5b881f856b41d081e91e1958b (patch) (unidiff) | |
tree | c71ac939789927dd9c77f2c6e88b910008db7f9b /korganizer/komonthview.h | |
parent | e3b935f4e24086117213662e670ab26cb2ad8822 (diff) | |
download | kdepimpi-5a0130ffdbf03fa5b881f856b41d081e91e1958b.zip kdepimpi-5a0130ffdbf03fa5b881f856b41d081e91e1958b.tar.gz kdepimpi-5a0130ffdbf03fa5b881f856b41d081e91e1958b.tar.bz2 |
layout fixes
-rw-r--r-- | korganizer/komonthview.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h index b997c1a..a58f6b8 100644 --- a/korganizer/komonthview.h +++ b/korganizer/komonthview.h | |||
@@ -114,96 +114,97 @@ class MonthViewItem: public QListBoxItem | |||
114 | virtual int width(const QListBox *) const; | 114 | virtual int width(const QListBox *) const; |
115 | 115 | ||
116 | private: | 116 | private: |
117 | bool mblockRepaint; | 117 | bool mblockRepaint; |
118 | int mMultiday; | 118 | int mMultiday; |
119 | bool mRecur; | 119 | bool mRecur; |
120 | bool mAlarm; | 120 | bool mAlarm; |
121 | bool mReply; | 121 | bool mReply; |
122 | bool mInfo; | 122 | bool mInfo; |
123 | 123 | ||
124 | QPalette mPalette; | 124 | QPalette mPalette; |
125 | QDate mDate; | 125 | QDate mDate; |
126 | 126 | ||
127 | Incidence *mIncidence; | 127 | Incidence *mIncidence; |
128 | }; | 128 | }; |
129 | 129 | ||
130 | 130 | ||
131 | class KOMonthView; | 131 | class KOMonthView; |
132 | 132 | ||
133 | class MonthViewCell : public KNoScrollListBox | 133 | class MonthViewCell : public KNoScrollListBox |
134 | { | 134 | { |
135 | Q_OBJECT | 135 | Q_OBJECT |
136 | public: | 136 | public: |
137 | MonthViewCell(KOMonthView *,QWidget* ); | 137 | MonthViewCell(KOMonthView *,QWidget* ); |
138 | ~MonthViewCell() {mAvailItemList.setAutoDelete( true );} | 138 | ~MonthViewCell() {mAvailItemList.setAutoDelete( true );} |
139 | 139 | ||
140 | void setDate( const QDate & ); | 140 | void setDate( const QDate & ); |
141 | QDate date() const; | 141 | QDate date() const; |
142 | 142 | ||
143 | void setPrimary( bool ); | 143 | void setPrimary( bool ); |
144 | bool isPrimary() const; | 144 | bool isPrimary() const; |
145 | 145 | ||
146 | void setHoliday( bool ); | 146 | void setHoliday( bool ); |
147 | void setHoliday( const QString & ); | 147 | void setHoliday( const QString & ); |
148 | 148 | ||
149 | void updateCell(); | 149 | void updateCell(); |
150 | void startUpdateCell(); | 150 | void startUpdateCell(); |
151 | void finishUpdateCell(); | 151 | void finishUpdateCell(); |
152 | void repaintfinishUpdateCell(); | 152 | void repaintfinishUpdateCell(); |
153 | void insertEvent(Event *); | 153 | void insertEvent(Event *); |
154 | void insertTodo(Todo *); | 154 | void insertTodo(Todo *); |
155 | 155 | ||
156 | void updateConfig( bool bigFont = false ); | 156 | void updateConfig( bool bigFont = false ); |
157 | 157 | ||
158 | void enableScrollBars( bool ); | 158 | void enableScrollBars( bool ); |
159 | 159 | ||
160 | Incidence *selectedIncidence(); | 160 | Incidence *selectedIncidence(); |
161 | QDate selectedIncidenceDate(); | 161 | QDate selectedIncidenceDate(); |
162 | QPushButton * dateLabel() { return mLabel; } | ||
162 | 163 | ||
163 | void deselect(); | 164 | void deselect(); |
164 | void select(); | 165 | void select(); |
165 | 166 | ||
166 | #ifdef DESKTOP_VERSION | 167 | #ifdef DESKTOP_VERSION |
167 | static QToolTipGroup *toolTipGroup(); | 168 | static QToolTipGroup *toolTipGroup(); |
168 | #endif | 169 | #endif |
169 | signals: | 170 | signals: |
170 | void defaultAction( Incidence * ); | 171 | void defaultAction( Incidence * ); |
171 | void newEventSignal( QDateTime ); | 172 | void newEventSignal( QDateTime ); |
172 | void showDaySignal( QDate ); | 173 | void showDaySignal( QDate ); |
173 | 174 | ||
174 | protected: | 175 | protected: |
175 | QStringList mToolTip; | 176 | QStringList mToolTip; |
176 | void resizeEvent( QResizeEvent * ); | 177 | void resizeEvent( QResizeEvent * ); |
177 | 178 | ||
178 | 179 | ||
179 | public slots: | 180 | public slots: |
180 | void showDay(); | 181 | void showDay(); |
181 | 182 | ||
182 | protected slots: | 183 | protected slots: |
183 | void defaultAction( QListBoxItem * ); | 184 | void defaultAction( QListBoxItem * ); |
184 | void contextMenu( QListBoxItem * ); | 185 | void contextMenu( QListBoxItem * ); |
185 | void selection( QListBoxItem * ); | 186 | void selection( QListBoxItem * ); |
186 | void cellClicked( QListBoxItem * ); | 187 | void cellClicked( QListBoxItem * ); |
187 | void newEvent(); | 188 | void newEvent(); |
188 | 189 | ||
189 | private: | 190 | private: |
190 | MonthViewItem* mCurrentAvailItem; | 191 | MonthViewItem* mCurrentAvailItem; |
191 | QPtrList <MonthViewItem> mAvailItemList; | 192 | QPtrList <MonthViewItem> mAvailItemList; |
192 | KOMonthView *mMonthView; | 193 | KOMonthView *mMonthView; |
193 | int currentPalette; | 194 | int currentPalette; |
194 | 195 | ||
195 | QDate mDate; | 196 | QDate mDate; |
196 | bool mPrimary; | 197 | bool mPrimary; |
197 | bool mHoliday; | 198 | bool mHoliday; |
198 | QString mHolidayString; | 199 | QString mHolidayString; |
199 | 200 | ||
200 | //QLabel *mLabel; | 201 | //QLabel *mLabel; |
201 | QPushButton *mLabel; | 202 | QPushButton *mLabel; |
202 | //QListBox *mItemList; | 203 | //QListBox *mItemList; |
203 | #ifdef DESKTOP_VERSION | 204 | #ifdef DESKTOP_VERSION |
204 | static QToolTipGroup *mToolTipGroup; | 205 | static QToolTipGroup *mToolTipGroup; |
205 | #endif | 206 | #endif |
206 | QSize mLabelSize; | 207 | QSize mLabelSize; |
207 | QSize mLabelBigSize; | 208 | QSize mLabelBigSize; |
208 | QPalette mHolidayPalette; | 209 | QPalette mHolidayPalette; |
209 | QPalette mStandardPalette; | 210 | QPalette mStandardPalette; |