-rw-r--r-- | core/pim/datebook/datebookdayheader.ui | 14 | ||||
-rw-r--r-- | core/pim/datebook/datebookdayheaderimpl.cpp | 5 |
2 files changed, 7 insertions, 12 deletions
diff --git a/core/pim/datebook/datebookdayheader.ui b/core/pim/datebook/datebookdayheader.ui index bb0c1ac..308bad3 100644 --- a/core/pim/datebook/datebookdayheader.ui +++ b/core/pim/datebook/datebookdayheader.ui | |||
@@ -1,420 +1,410 @@ | |||
1 | <!DOCTYPE UI><UI> | 1 | <!DOCTYPE UI><UI> |
2 | <class>DateBookDayHeaderBase</class> | 2 | <class>DateBookDayHeaderBase</class> |
3 | <comment>/********************************************************************** | 3 | <comment>/********************************************************************** |
4 | ** Copyright (C) 2001 Trolltech AS. All rights reserved. | 4 | ** Copyright (C) 2001 Trolltech AS. All rights reserved. |
5 | ** | 5 | ** |
6 | ** This file is part of Qtopia Environment. | 6 | ** This file is part of Qtopia Environment. |
7 | ** | 7 | ** |
8 | ** This file may be distributed and/or modified under the terms of the | 8 | ** This file may be distributed and/or modified under the terms of the |
9 | ** GNU General Public License version 2 as published by the Free Software | 9 | ** GNU General Public License version 2 as published by the Free Software |
10 | ** Foundation and appearing in the file LICENSE.GPL included in the | 10 | ** Foundation and appearing in the file LICENSE.GPL included in the |
11 | ** packaging of this file. | 11 | ** packaging of this file. |
12 | ** | 12 | ** |
13 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 13 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
14 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 14 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
15 | ** | 15 | ** |
16 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 16 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
17 | ** | 17 | ** |
18 | ** Contact info@trolltech.com if any conditions of this licensing are | 18 | ** Contact info@trolltech.com if any conditions of this licensing are |
19 | ** not clear to you. | 19 | ** not clear to you. |
20 | ** | 20 | ** |
21 | ** $Id$ | 21 | ** $Id$ |
22 | ** | 22 | ** |
23 | **********************************************************************/</comment> | 23 | **********************************************************************/</comment> |
24 | <widget> | 24 | <widget> |
25 | <class>QWidget</class> | 25 | <class>QWidget</class> |
26 | <property stdset="1"> | 26 | <property stdset="1"> |
27 | <name>name</name> | 27 | <name>name</name> |
28 | <cstring>DateBookDayHeaderBase</cstring> | 28 | <cstring>DateBookDayHeaderBase</cstring> |
29 | </property> | 29 | </property> |
30 | <property stdset="1"> | 30 | <property stdset="1"> |
31 | <name>geometry</name> | 31 | <name>geometry</name> |
32 | <rect> | 32 | <rect> |
33 | <x>0</x> | 33 | <x>0</x> |
34 | <y>0</y> | 34 | <y>0</y> |
35 | <width>249</width> | 35 | <width>249</width> |
36 | <height>26</height> | 36 | <height>26</height> |
37 | </rect> | 37 | </rect> |
38 | </property> | 38 | </property> |
39 | <property> | 39 | <property> |
40 | <name>layoutMargin</name> | 40 | <name>layoutMargin</name> |
41 | </property> | 41 | </property> |
42 | <property> | 42 | <property> |
43 | <name>layoutSpacing</name> | 43 | <name>layoutSpacing</name> |
44 | </property> | 44 | </property> |
45 | <hbox> | 45 | <hbox> |
46 | <property stdset="1"> | 46 | <property stdset="1"> |
47 | <name>margin</name> | 47 | <name>margin</name> |
48 | <number>0</number> | 48 | <number>0</number> |
49 | </property> | 49 | </property> |
50 | <property stdset="1"> | 50 | <property stdset="1"> |
51 | <name>spacing</name> | 51 | <name>spacing</name> |
52 | <number>0</number> | 52 | <number>0</number> |
53 | </property> | 53 | </property> |
54 | <widget> | 54 | <widget> |
55 | <class>QToolButton</class> | 55 | <class>QToolButton</class> |
56 | <property stdset="1"> | 56 | <property stdset="1"> |
57 | <name>name</name> | 57 | <name>name</name> |
58 | <cstring>back</cstring> | 58 | <cstring>back</cstring> |
59 | </property> | 59 | </property> |
60 | <property stdset="1"> | 60 | <property stdset="1"> |
61 | <name>text</name> | 61 | <name>text</name> |
62 | <string></string> | 62 | <string></string> |
63 | </property> | 63 | </property> |
64 | <property stdset="1"> | 64 | <property stdset="1"> |
65 | <name>pixmap</name> | 65 | <name>pixmap</name> |
66 | <pixmap>image0</pixmap> | 66 | <pixmap></pixmap> |
67 | </property> | 67 | </property> |
68 | <property stdset="1"> | 68 | <property stdset="1"> |
69 | <name>toggleButton</name> | 69 | <name>toggleButton</name> |
70 | <bool>false</bool> | 70 | <bool>false</bool> |
71 | </property> | 71 | </property> |
72 | <property stdset="1"> | 72 | <property stdset="1"> |
73 | <name>autoRepeat</name> | 73 | <name>autoRepeat</name> |
74 | <bool>true</bool> | 74 | <bool>true</bool> |
75 | </property> | 75 | </property> |
76 | <property stdset="1"> | 76 | <property stdset="1"> |
77 | <name>autoRaise</name> | 77 | <name>autoRaise</name> |
78 | <bool>true</bool> | 78 | <bool>true</bool> |
79 | </property> | 79 | </property> |
80 | <property stdset="1"> | 80 | <property stdset="1"> |
81 | <name>toggleButton</name> | 81 | <name>toggleButton</name> |
82 | <bool>false</bool> | 82 | <bool>false</bool> |
83 | </property> | 83 | </property> |
84 | <property> | 84 | <property> |
85 | <name>toolTip</name> | 85 | <name>toolTip</name> |
86 | <string></string> | 86 | <string></string> |
87 | </property> | 87 | </property> |
88 | </widget> | 88 | </widget> |
89 | <widget> | 89 | <widget> |
90 | <class>QToolButton</class> | 90 | <class>QToolButton</class> |
91 | <property stdset="1"> | 91 | <property stdset="1"> |
92 | <name>name</name> | 92 | <name>name</name> |
93 | <cstring>date</cstring> | 93 | <cstring>date</cstring> |
94 | </property> | 94 | </property> |
95 | <property stdset="1"> | 95 | <property stdset="1"> |
96 | <name>sizePolicy</name> | 96 | <name>sizePolicy</name> |
97 | <sizepolicy> | 97 | <sizepolicy> |
98 | <hsizetype>7</hsizetype> | 98 | <hsizetype>7</hsizetype> |
99 | <vsizetype>1</vsizetype> | 99 | <vsizetype>1</vsizetype> |
100 | </sizepolicy> | 100 | </sizepolicy> |
101 | </property> | 101 | </property> |
102 | <property stdset="1"> | 102 | <property stdset="1"> |
103 | <name>font</name> | 103 | <name>font</name> |
104 | <font> | 104 | <font> |
105 | <bold>1</bold> | 105 | <bold>1</bold> |
106 | </font> | 106 | </font> |
107 | </property> | 107 | </property> |
108 | <property stdset="1"> | 108 | <property stdset="1"> |
109 | <name>text</name> | 109 | <name>text</name> |
110 | <string></string> | 110 | <string></string> |
111 | </property> | 111 | </property> |
112 | <property stdset="1"> | 112 | <property stdset="1"> |
113 | <name>pixmap</name> | 113 | <name>pixmap</name> |
114 | <pixmap></pixmap> | 114 | <pixmap></pixmap> |
115 | </property> | 115 | </property> |
116 | <property stdset="1"> | 116 | <property stdset="1"> |
117 | <name>autoRepeat</name> | 117 | <name>autoRepeat</name> |
118 | <bool>false</bool> | 118 | <bool>false</bool> |
119 | </property> | 119 | </property> |
120 | <property stdset="1"> | 120 | <property stdset="1"> |
121 | <name>autoRaise</name> | 121 | <name>autoRaise</name> |
122 | <bool>false</bool> | 122 | <bool>false</bool> |
123 | </property> | 123 | </property> |
124 | </widget> | 124 | </widget> |
125 | <widget> | 125 | <widget> |
126 | <class>QButtonGroup</class> | 126 | <class>QButtonGroup</class> |
127 | <property stdset="1"> | 127 | <property stdset="1"> |
128 | <name>name</name> | 128 | <name>name</name> |
129 | <cstring>grpDays</cstring> | 129 | <cstring>grpDays</cstring> |
130 | </property> | 130 | </property> |
131 | <property stdset="1"> | 131 | <property stdset="1"> |
132 | <name>frameShape</name> | 132 | <name>frameShape</name> |
133 | <enum>NoFrame</enum> | 133 | <enum>NoFrame</enum> |
134 | </property> | 134 | </property> |
135 | <property stdset="1"> | 135 | <property stdset="1"> |
136 | <name>frameShadow</name> | 136 | <name>frameShadow</name> |
137 | <enum>Plain</enum> | 137 | <enum>Plain</enum> |
138 | </property> | 138 | </property> |
139 | <property stdset="1"> | 139 | <property stdset="1"> |
140 | <name>title</name> | 140 | <name>title</name> |
141 | <string></string> | 141 | <string></string> |
142 | </property> | 142 | </property> |
143 | <property stdset="1"> | 143 | <property stdset="1"> |
144 | <name>exclusive</name> | 144 | <name>exclusive</name> |
145 | <bool>true</bool> | 145 | <bool>true</bool> |
146 | </property> | 146 | </property> |
147 | <property> | 147 | <property> |
148 | <name>layoutMargin</name> | 148 | <name>layoutMargin</name> |
149 | </property> | 149 | </property> |
150 | <property> | 150 | <property> |
151 | <name>layoutSpacing</name> | 151 | <name>layoutSpacing</name> |
152 | </property> | 152 | </property> |
153 | <hbox> | 153 | <hbox> |
154 | <property stdset="1"> | 154 | <property stdset="1"> |
155 | <name>margin</name> | 155 | <name>margin</name> |
156 | <number>0</number> | 156 | <number>0</number> |
157 | </property> | 157 | </property> |
158 | <property stdset="1"> | 158 | <property stdset="1"> |
159 | <name>spacing</name> | 159 | <name>spacing</name> |
160 | <number>1</number> | 160 | <number>1</number> |
161 | </property> | 161 | </property> |
162 | <widget> | 162 | <widget> |
163 | <class>QToolButton</class> | 163 | <class>QToolButton</class> |
164 | <property stdset="1"> | 164 | <property stdset="1"> |
165 | <name>name</name> | 165 | <name>name</name> |
166 | <cstring>cmdDay1</cstring> | 166 | <cstring>cmdDay1</cstring> |
167 | </property> | 167 | </property> |
168 | <property stdset="1"> | 168 | <property stdset="1"> |
169 | <name>text</name> | 169 | <name>text</name> |
170 | <string>M</string> | 170 | <string>M</string> |
171 | </property> | 171 | </property> |
172 | <property stdset="1"> | 172 | <property stdset="1"> |
173 | <name>toggleButton</name> | 173 | <name>toggleButton</name> |
174 | <bool>true</bool> | 174 | <bool>true</bool> |
175 | </property> | 175 | </property> |
176 | <property stdset="1"> | 176 | <property stdset="1"> |
177 | <name>autoRaise</name> | 177 | <name>autoRaise</name> |
178 | <bool>true</bool> | 178 | <bool>true</bool> |
179 | </property> | 179 | </property> |
180 | <property stdset="1"> | 180 | <property stdset="1"> |
181 | <name>toggleButton</name> | 181 | <name>toggleButton</name> |
182 | <bool>true</bool> | 182 | <bool>true</bool> |
183 | </property> | 183 | </property> |
184 | <property> | 184 | <property> |
185 | <name>toolTip</name> | 185 | <name>toolTip</name> |
186 | <string></string> | 186 | <string></string> |
187 | </property> | 187 | </property> |
188 | </widget> | 188 | </widget> |
189 | <widget> | 189 | <widget> |
190 | <class>QToolButton</class> | 190 | <class>QToolButton</class> |
191 | <property stdset="1"> | 191 | <property stdset="1"> |
192 | <name>name</name> | 192 | <name>name</name> |
193 | <cstring>cmdDay2</cstring> | 193 | <cstring>cmdDay2</cstring> |
194 | </property> | 194 | </property> |
195 | <property stdset="1"> | 195 | <property stdset="1"> |
196 | <name>text</name> | 196 | <name>text</name> |
197 | <string>T</string> | 197 | <string>T</string> |
198 | </property> | 198 | </property> |
199 | <property stdset="1"> | 199 | <property stdset="1"> |
200 | <name>toggleButton</name> | 200 | <name>toggleButton</name> |
201 | <bool>true</bool> | 201 | <bool>true</bool> |
202 | </property> | 202 | </property> |
203 | <property stdset="1"> | 203 | <property stdset="1"> |
204 | <name>autoRaise</name> | 204 | <name>autoRaise</name> |
205 | <bool>true</bool> | 205 | <bool>true</bool> |
206 | </property> | 206 | </property> |
207 | <property stdset="1"> | 207 | <property stdset="1"> |
208 | <name>toggleButton</name> | 208 | <name>toggleButton</name> |
209 | <bool>true</bool> | 209 | <bool>true</bool> |
210 | </property> | 210 | </property> |
211 | <property> | 211 | <property> |
212 | <name>toolTip</name> | 212 | <name>toolTip</name> |
213 | <string></string> | 213 | <string></string> |
214 | </property> | 214 | </property> |
215 | </widget> | 215 | </widget> |
216 | <widget> | 216 | <widget> |
217 | <class>QToolButton</class> | 217 | <class>QToolButton</class> |
218 | <property stdset="1"> | 218 | <property stdset="1"> |
219 | <name>name</name> | 219 | <name>name</name> |
220 | <cstring>cmdDay3</cstring> | 220 | <cstring>cmdDay3</cstring> |
221 | </property> | 221 | </property> |
222 | <property stdset="1"> | 222 | <property stdset="1"> |
223 | <name>text</name> | 223 | <name>text</name> |
224 | <string>W</string> | 224 | <string>W</string> |
225 | </property> | 225 | </property> |
226 | <property stdset="1"> | 226 | <property stdset="1"> |
227 | <name>toggleButton</name> | 227 | <name>toggleButton</name> |
228 | <bool>true</bool> | 228 | <bool>true</bool> |
229 | </property> | 229 | </property> |
230 | <property stdset="1"> | 230 | <property stdset="1"> |
231 | <name>autoRaise</name> | 231 | <name>autoRaise</name> |
232 | <bool>true</bool> | 232 | <bool>true</bool> |
233 | </property> | 233 | </property> |
234 | <property stdset="1"> | 234 | <property stdset="1"> |
235 | <name>toggleButton</name> | 235 | <name>toggleButton</name> |
236 | <bool>true</bool> | 236 | <bool>true</bool> |
237 | </property> | 237 | </property> |
238 | <property> | 238 | <property> |
239 | <name>toolTip</name> | 239 | <name>toolTip</name> |
240 | <string></string> | 240 | <string></string> |
241 | </property> | 241 | </property> |
242 | </widget> | 242 | </widget> |
243 | <widget> | 243 | <widget> |
244 | <class>QToolButton</class> | 244 | <class>QToolButton</class> |
245 | <property stdset="1"> | 245 | <property stdset="1"> |
246 | <name>name</name> | 246 | <name>name</name> |
247 | <cstring>cmdDay4</cstring> | 247 | <cstring>cmdDay4</cstring> |
248 | </property> | 248 | </property> |
249 | <property stdset="1"> | 249 | <property stdset="1"> |
250 | <name>text</name> | 250 | <name>text</name> |
251 | <string>T</string> | 251 | <string>T</string> |
252 | </property> | 252 | </property> |
253 | <property stdset="1"> | 253 | <property stdset="1"> |
254 | <name>pixmap</name> | 254 | <name>pixmap</name> |
255 | <pixmap></pixmap> | 255 | <pixmap></pixmap> |
256 | </property> | 256 | </property> |
257 | <property stdset="1"> | 257 | <property stdset="1"> |
258 | <name>toggleButton</name> | 258 | <name>toggleButton</name> |
259 | <bool>true</bool> | 259 | <bool>true</bool> |
260 | </property> | 260 | </property> |
261 | <property stdset="1"> | 261 | <property stdset="1"> |
262 | <name>autoRepeat</name> | 262 | <name>autoRepeat</name> |
263 | <bool>false</bool> | 263 | <bool>false</bool> |
264 | </property> | 264 | </property> |
265 | <property stdset="1"> | 265 | <property stdset="1"> |
266 | <name>autoRaise</name> | 266 | <name>autoRaise</name> |
267 | <bool>true</bool> | 267 | <bool>true</bool> |
268 | </property> | 268 | </property> |
269 | <property stdset="1"> | 269 | <property stdset="1"> |
270 | <name>toggleButton</name> | 270 | <name>toggleButton</name> |
271 | <bool>true</bool> | 271 | <bool>true</bool> |
272 | </property> | 272 | </property> |
273 | <property> | 273 | <property> |
274 | <name>toolTip</name> | 274 | <name>toolTip</name> |
275 | <string></string> | 275 | <string></string> |
276 | </property> | 276 | </property> |
277 | </widget> | 277 | </widget> |
278 | <widget> | 278 | <widget> |
279 | <class>QToolButton</class> | 279 | <class>QToolButton</class> |
280 | <property stdset="1"> | 280 | <property stdset="1"> |
281 | <name>name</name> | 281 | <name>name</name> |
282 | <cstring>cmdDay5</cstring> | 282 | <cstring>cmdDay5</cstring> |
283 | </property> | 283 | </property> |
284 | <property stdset="1"> | 284 | <property stdset="1"> |
285 | <name>text</name> | 285 | <name>text</name> |
286 | <string>F</string> | 286 | <string>F</string> |
287 | </property> | 287 | </property> |
288 | <property stdset="1"> | 288 | <property stdset="1"> |
289 | <name>toggleButton</name> | 289 | <name>toggleButton</name> |
290 | <bool>true</bool> | 290 | <bool>true</bool> |
291 | </property> | 291 | </property> |
292 | <property stdset="1"> | 292 | <property stdset="1"> |
293 | <name>autoRaise</name> | 293 | <name>autoRaise</name> |
294 | <bool>true</bool> | 294 | <bool>true</bool> |
295 | </property> | 295 | </property> |
296 | <property stdset="1"> | 296 | <property stdset="1"> |
297 | <name>toggleButton</name> | 297 | <name>toggleButton</name> |
298 | <bool>true</bool> | 298 | <bool>true</bool> |
299 | </property> | 299 | </property> |
300 | <property> | 300 | <property> |
301 | <name>toolTip</name> | 301 | <name>toolTip</name> |
302 | <string></string> | 302 | <string></string> |
303 | </property> | 303 | </property> |
304 | </widget> | 304 | </widget> |
305 | <widget> | 305 | <widget> |
306 | <class>QToolButton</class> | 306 | <class>QToolButton</class> |
307 | <property stdset="1"> | 307 | <property stdset="1"> |
308 | <name>name</name> | 308 | <name>name</name> |
309 | <cstring>cmdDay6</cstring> | 309 | <cstring>cmdDay6</cstring> |
310 | </property> | 310 | </property> |
311 | <property stdset="1"> | 311 | <property stdset="1"> |
312 | <name>text</name> | 312 | <name>text</name> |
313 | <string>S</string> | 313 | <string>S</string> |
314 | </property> | 314 | </property> |
315 | <property stdset="1"> | 315 | <property stdset="1"> |
316 | <name>toggleButton</name> | 316 | <name>toggleButton</name> |
317 | <bool>true</bool> | 317 | <bool>true</bool> |
318 | </property> | 318 | </property> |
319 | <property stdset="1"> | 319 | <property stdset="1"> |
320 | <name>autoRaise</name> | 320 | <name>autoRaise</name> |
321 | <bool>true</bool> | 321 | <bool>true</bool> |
322 | </property> | 322 | </property> |
323 | <property stdset="1"> | 323 | <property stdset="1"> |
324 | <name>toggleButton</name> | 324 | <name>toggleButton</name> |
325 | <bool>true</bool> | 325 | <bool>true</bool> |
326 | </property> | 326 | </property> |
327 | <property> | 327 | <property> |
328 | <name>toolTip</name> | 328 | <name>toolTip</name> |
329 | <string></string> | 329 | <string></string> |
330 | </property> | 330 | </property> |
331 | </widget> | 331 | </widget> |
332 | <widget> | 332 | <widget> |
333 | <class>QToolButton</class> | 333 | <class>QToolButton</class> |
334 | <property stdset="1"> | 334 | <property stdset="1"> |
335 | <name>name</name> | 335 | <name>name</name> |
336 | <cstring>cmdDay7</cstring> | 336 | <cstring>cmdDay7</cstring> |
337 | </property> | 337 | </property> |
338 | <property stdset="1"> | 338 | <property stdset="1"> |
339 | <name>text</name> | 339 | <name>text</name> |
340 | <string>S</string> | 340 | <string>S</string> |
341 | </property> | 341 | </property> |
342 | <property stdset="1"> | 342 | <property stdset="1"> |
343 | <name>toggleButton</name> | 343 | <name>toggleButton</name> |
344 | <bool>true</bool> | 344 | <bool>true</bool> |
345 | </property> | 345 | </property> |
346 | <property stdset="1"> | 346 | <property stdset="1"> |
347 | <name>autoRaise</name> | 347 | <name>autoRaise</name> |
348 | <bool>true</bool> | 348 | <bool>true</bool> |
349 | </property> | 349 | </property> |
350 | <property stdset="1"> | 350 | <property stdset="1"> |
351 | <name>toggleButton</name> | 351 | <name>toggleButton</name> |
352 | <bool>true</bool> | 352 | <bool>true</bool> |
353 | </property> | 353 | </property> |
354 | <property> | 354 | <property> |
355 | <name>toolTip</name> | 355 | <name>toolTip</name> |
356 | <string></string> | 356 | <string></string> |
357 | </property> | 357 | </property> |
358 | </widget> | 358 | </widget> |
359 | </hbox> | 359 | </hbox> |
360 | </widget> | 360 | </widget> |
361 | <widget> | 361 | <widget> |
362 | <class>QToolButton</class> | 362 | <class>QToolButton</class> |
363 | <property stdset="1"> | 363 | <property stdset="1"> |
364 | <name>name</name> | 364 | <name>name</name> |
365 | <cstring>forward</cstring> | 365 | <cstring>forward</cstring> |
366 | </property> | 366 | </property> |
367 | <property stdset="1"> | 367 | <property stdset="1"> |
368 | <name>text</name> | 368 | <name>text</name> |
369 | <string></string> | 369 | <string></string> |
370 | </property> | 370 | </property> |
371 | <property stdset="1"> | 371 | <property stdset="1"> |
372 | <name>pixmap</name> | 372 | <name>pixmap</name> |
373 | <pixmap>image1</pixmap> | 373 | <pixmap></pixmap> |
374 | </property> | 374 | </property> |
375 | <property stdset="1"> | 375 | <property stdset="1"> |
376 | <name>autoRepeat</name> | 376 | <name>autoRepeat</name> |
377 | <bool>true</bool> | 377 | <bool>true</bool> |
378 | </property> | 378 | </property> |
379 | <property stdset="1"> | 379 | <property stdset="1"> |
380 | <name>autoRaise</name> | 380 | <name>autoRaise</name> |
381 | <bool>true</bool> | 381 | <bool>true</bool> |
382 | </property> | 382 | </property> |
383 | </widget> | 383 | </widget> |
384 | </hbox> | 384 | </hbox> |
385 | </widget> | 385 | </widget> |
386 | <images> | ||
387 | <image> | ||
388 | <name>image0</name> | ||
389 | <data format="XPM.GZ" length="582">789c6dcfcd4e843010c0f13b4fd1d01b31bb6cb325211b1f41e3d1c4789876a60bcbd7aeae07637c773b6d5985d870e0f7ef50605b88e7a707516cb3f72b5c5b2b6c036fa2c08f61f87c79bdffcaf2dd5ef0558b5d7e97e51b61c5e33412df4b7f2fcbb09896a94ab557817063cd744cad74a915734aac35308740d018d9332d5ab0c8ec1229f2c2448d156a661b489ee1ab4e4cf2a08a790e24020abb0dd355442eec8e914e45526215790c749e8e89891069125de466b1fe14295705ccaa5863e2d05cc01894925b2a7e8217dd8a631eb169fd509af10fd1a9ebfbdf32008d9d0c07cd274f70ee162773ba2cdfee935c977ffe6b2edf87ec07796f81cd</data> | ||
390 | </image> | ||
391 | <image> | ||
392 | <name>image1</name> | ||
393 | <data format="XPM.GZ" length="627">789c7dcfc94ec3301006e07b9ec28a6f114a13cbb1a8108f00e28884387819676993340b07847877329ea8697a60ec83bfdf232f8784bdbfbdb0e4104db39e6bcb6ca54796b8afb6fdfef87cfe89e25cb2650ac1f2f8218a5366d96bdf01aef9b2e65928a4458a0c07b25c29890352e63293e19c53a0968f52230159e8c22981744495133552097554a1f982b4ce6aeb9013d215165c81ec894e109b4070ca85378f2b35f18c04050214b20d04d010762ba457003eecd6442f88f34a45f4817ea147762b35d1acf4c47457d784737d9f18ebee1363614bf852c6f812b6c460f90abb6e93ba694ed7c49fdbaeee2f76b83da71ba772e0db5d9ccf4b07dfdd5e858edd9b2948fff9d796fc3e457f660e8d47</data> | ||
394 | </image> | ||
395 | </images> | ||
396 | <connections> | 386 | <connections> |
397 | <connection> | 387 | <connection> |
398 | <sender>forward</sender> | 388 | <sender>forward</sender> |
399 | <signal>clicked()</signal> | 389 | <signal>clicked()</signal> |
400 | <receiver>DateBookDayHeaderBase</receiver> | 390 | <receiver>DateBookDayHeaderBase</receiver> |
401 | <slot>goForward()</slot> | 391 | <slot>goForward()</slot> |
402 | </connection> | 392 | </connection> |
403 | <connection> | 393 | <connection> |
404 | <sender>back</sender> | 394 | <sender>back</sender> |
405 | <signal>clicked()</signal> | 395 | <signal>clicked()</signal> |
406 | <receiver>DateBookDayHeaderBase</receiver> | 396 | <receiver>DateBookDayHeaderBase</receiver> |
407 | <slot>goBack()</slot> | 397 | <slot>goBack()</slot> |
408 | </connection> | 398 | </connection> |
409 | <connection> | 399 | <connection> |
410 | <sender>grpDays</sender> | 400 | <sender>grpDays</sender> |
411 | <signal>clicked(int)</signal> | 401 | <signal>clicked(int)</signal> |
412 | <receiver>DateBookDayHeaderBase</receiver> | 402 | <receiver>DateBookDayHeaderBase</receiver> |
413 | <slot>setDay( int )</slot> | 403 | <slot>setDay( int )</slot> |
414 | </connection> | 404 | </connection> |
415 | <slot access="public">goBack()</slot> | 405 | <slot access="public">goBack()</slot> |
416 | <slot access="public">goForward()</slot> | 406 | <slot access="public">goForward()</slot> |
417 | <slot access="public">setDate( int, int, int )</slot> | 407 | <slot access="public">setDate( int, int, int )</slot> |
418 | <slot access="public">setDay( int )</slot> | 408 | <slot access="public">setDay( int )</slot> |
419 | </connections> | 409 | </connections> |
420 | </UI> | 410 | </UI> |
diff --git a/core/pim/datebook/datebookdayheaderimpl.cpp b/core/pim/datebook/datebookdayheaderimpl.cpp index fbcb3d2..7d77153 100644 --- a/core/pim/datebook/datebookdayheaderimpl.cpp +++ b/core/pim/datebook/datebookdayheaderimpl.cpp | |||
@@ -1,181 +1,186 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #include "datebookdayheaderimpl.h" | 20 | #include "datebookdayheaderimpl.h" |
21 | 21 | ||
22 | #include <qpe/datebookmonth.h> | 22 | #include <qpe/datebookmonth.h> |
23 | #include <qpe/resource.h> | ||
23 | #include <qpe/timestring.h> | 24 | #include <qpe/timestring.h> |
24 | 25 | ||
25 | #include <qbuttongroup.h> | 26 | #include <qbuttongroup.h> |
26 | #include <qpopupmenu.h> | 27 | #include <qpopupmenu.h> |
27 | #include <qstringlist.h> | 28 | #include <qstringlist.h> |
28 | #include <qtimer.h> | 29 | #include <qtimer.h> |
29 | #include <qtoolbutton.h> | 30 | #include <qtoolbutton.h> |
30 | 31 | ||
32 | |||
31 | /* | 33 | /* |
32 | * Constructs a DateBookDayHeader which is a child of 'parent', with the | 34 | * Constructs a DateBookDayHeader which is a child of 'parent', with the |
33 | * name 'name' and widget flags set to 'f' | 35 | * name 'name' and widget flags set to 'f' |
34 | * | 36 | * |
35 | * The dialog will by default be modeless, unless you set 'modal' to | 37 | * The dialog will by default be modeless, unless you set 'modal' to |
36 | * TRUE to construct a modal dialog. | 38 | * TRUE to construct a modal dialog. |
37 | */ | 39 | */ |
38 | DateBookDayHeader::DateBookDayHeader( bool useMonday, | 40 | DateBookDayHeader::DateBookDayHeader( bool useMonday, |
39 | QWidget* parent, const char* name ) | 41 | QWidget* parent, const char* name ) |
40 | : DateBookDayHeaderBase( parent, name ), | 42 | : DateBookDayHeaderBase( parent, name ), |
41 | bUseMonday( useMonday ) | 43 | bUseMonday( useMonday ) |
42 | { | 44 | { |
43 | connect(date,SIGNAL(pressed()),this,SLOT(pickDate())); | 45 | connect(date,SIGNAL(pressed()),this,SLOT(pickDate())); |
44 | 46 | ||
45 | setupNames(); | 47 | setupNames(); |
46 | 48 | ||
49 | forward->setPixmap( Resource::loadPixmap( "forward" ) ); | ||
50 | back->setPixmap( Resource::loadPixmap( "back" ) ); | ||
51 | |||
47 | setBackgroundMode( PaletteButton ); | 52 | setBackgroundMode( PaletteButton ); |
48 | grpDays->setBackgroundMode( PaletteButton ); | 53 | grpDays->setBackgroundMode( PaletteButton ); |
49 | } | 54 | } |
50 | 55 | ||
51 | /* | 56 | /* |
52 | * Destroys the object and frees any allocated resources | 57 | * Destroys the object and frees any allocated resources |
53 | */ | 58 | */ |
54 | DateBookDayHeader::~DateBookDayHeader() | 59 | DateBookDayHeader::~DateBookDayHeader() |
55 | { | 60 | { |
56 | // no need to delete child widgets, Qt does it all for us | 61 | // no need to delete child widgets, Qt does it all for us |
57 | } | 62 | } |
58 | 63 | ||
59 | void DateBookDayHeader::setStartOfWeek( bool onMonday ) | 64 | void DateBookDayHeader::setStartOfWeek( bool onMonday ) |
60 | { | 65 | { |
61 | bUseMonday = onMonday; | 66 | bUseMonday = onMonday; |
62 | setupNames(); | 67 | setupNames(); |
63 | setDate( currDate.year(), currDate.month(), currDate.day() ); | 68 | setDate( currDate.year(), currDate.month(), currDate.day() ); |
64 | } | 69 | } |
65 | 70 | ||
66 | void DateBookDayHeader::setupNames() | 71 | void DateBookDayHeader::setupNames() |
67 | { | 72 | { |
68 | if ( bUseMonday ) { | 73 | if ( bUseMonday ) { |
69 | cmdDay1->setText( DateBookDayHeaderBase::tr("Monday").left(1) ); | 74 | cmdDay1->setText( DateBookDayHeaderBase::tr("Monday").left(1) ); |
70 | cmdDay2->setText( DateBookDayHeaderBase::tr("Tuesday").left(1) ); | 75 | cmdDay2->setText( DateBookDayHeaderBase::tr("Tuesday").left(1) ); |
71 | cmdDay3->setText( DateBookDayHeaderBase::tr("Wednesday").left(1) ); | 76 | cmdDay3->setText( DateBookDayHeaderBase::tr("Wednesday").left(1) ); |
72 | cmdDay4->setText( DateBookDayHeaderBase::tr("Thursday").left(1) ); | 77 | cmdDay4->setText( DateBookDayHeaderBase::tr("Thursday").left(1) ); |
73 | cmdDay5->setText( DateBookDayHeaderBase::tr("Friday").left(1) ); | 78 | cmdDay5->setText( DateBookDayHeaderBase::tr("Friday").left(1) ); |
74 | cmdDay6->setText( DateBookDayHeaderBase::tr("Saturday").left(1) ); | 79 | cmdDay6->setText( DateBookDayHeaderBase::tr("Saturday").left(1) ); |
75 | cmdDay7->setText( DateBookDayHeaderBase::tr("Sunday").left(1) ); | 80 | cmdDay7->setText( DateBookDayHeaderBase::tr("Sunday").left(1) ); |
76 | } else { | 81 | } else { |
77 | cmdDay1->setText( DateBookDayHeaderBase::tr("Sunday").left(1) ); | 82 | cmdDay1->setText( DateBookDayHeaderBase::tr("Sunday").left(1) ); |
78 | cmdDay2->setText( DateBookDayHeaderBase::tr("Monday").left(1) ); | 83 | cmdDay2->setText( DateBookDayHeaderBase::tr("Monday").left(1) ); |
79 | cmdDay3->setText( DateBookDayHeaderBase::tr("Tuesday").left(1) ); | 84 | cmdDay3->setText( DateBookDayHeaderBase::tr("Tuesday").left(1) ); |
80 | cmdDay4->setText( DateBookDayHeaderBase::tr("Wednesday").left(1) ); | 85 | cmdDay4->setText( DateBookDayHeaderBase::tr("Wednesday").left(1) ); |
81 | cmdDay5->setText( DateBookDayHeaderBase::tr("Thursday").left(1) ); | 86 | cmdDay5->setText( DateBookDayHeaderBase::tr("Thursday").left(1) ); |
82 | cmdDay6->setText( DateBookDayHeaderBase::tr("Friday").left(1) ); | 87 | cmdDay6->setText( DateBookDayHeaderBase::tr("Friday").left(1) ); |
83 | cmdDay7->setText( DateBookDayHeaderBase::tr("Saturday").left(1) ); | 88 | cmdDay7->setText( DateBookDayHeaderBase::tr("Saturday").left(1) ); |
84 | } | 89 | } |
85 | } | 90 | } |
86 | 91 | ||
87 | 92 | ||
88 | void DateBookDayHeader::pickDate() | 93 | void DateBookDayHeader::pickDate() |
89 | { | 94 | { |
90 | static QPopupMenu *m1 = 0; | 95 | static QPopupMenu *m1 = 0; |
91 | static DateBookMonth *picker = 0; | 96 | static DateBookMonth *picker = 0; |
92 | if ( !m1 ) { | 97 | if ( !m1 ) { |
93 | m1 = new QPopupMenu( this ); | 98 | m1 = new QPopupMenu( this ); |
94 | picker = new DateBookMonth( m1, 0, TRUE ); | 99 | picker = new DateBookMonth( m1, 0, TRUE ); |
95 | m1->insertItem( picker ); | 100 | m1->insertItem( picker ); |
96 | connect( picker, SIGNAL( dateClicked( int, int, int ) ), | 101 | connect( picker, SIGNAL( dateClicked( int, int, int ) ), |
97 | this, SLOT( setDate( int, int, int ) ) ); | 102 | this, SLOT( setDate( int, int, int ) ) ); |
98 | connect( m1, SIGNAL( aboutToHide() ), | 103 | connect( m1, SIGNAL( aboutToHide() ), |
99 | this, SLOT( gotHide() ) ); | 104 | this, SLOT( gotHide() ) ); |
100 | } | 105 | } |
101 | picker->setDate( currDate.year(), currDate.month(), currDate.day() ); | 106 | picker->setDate( currDate.year(), currDate.month(), currDate.day() ); |
102 | m1->popup(mapToGlobal(date->pos()+QPoint(0,date->height()))); | 107 | m1->popup(mapToGlobal(date->pos()+QPoint(0,date->height()))); |
103 | picker->setFocus(); | 108 | picker->setFocus(); |
104 | } | 109 | } |
105 | 110 | ||
106 | void DateBookDayHeader::gotHide() | 111 | void DateBookDayHeader::gotHide() |
107 | { | 112 | { |
108 | // we have to redo the button... | 113 | // we have to redo the button... |
109 | date->setDown( false ); | 114 | date->setDown( false ); |
110 | } | 115 | } |
111 | 116 | ||
112 | /* | 117 | /* |
113 | * public slot | 118 | * public slot |
114 | */ | 119 | */ |
115 | void DateBookDayHeader::goBack() | 120 | void DateBookDayHeader::goBack() |
116 | { | 121 | { |
117 | currDate = currDate.addDays( -1 ); | 122 | currDate = currDate.addDays( -1 ); |
118 | setDate( currDate.year(), currDate.month(), currDate.day() ); | 123 | setDate( currDate.year(), currDate.month(), currDate.day() ); |
119 | } | 124 | } |
120 | /* | 125 | /* |
121 | * public slot | 126 | * public slot |
122 | */ | 127 | */ |
123 | void DateBookDayHeader::goForward() | 128 | void DateBookDayHeader::goForward() |
124 | { | 129 | { |
125 | currDate = currDate.addDays( 1 ); | 130 | currDate = currDate.addDays( 1 ); |
126 | setDate( currDate.year(), currDate.month(), currDate.day() ); | 131 | setDate( currDate.year(), currDate.month(), currDate.day() ); |
127 | } | 132 | } |
128 | 133 | ||
129 | 134 | ||
130 | /* | 135 | /* |
131 | * public slot | 136 | * public slot |
132 | */ | 137 | */ |
133 | void DateBookDayHeader::setDate( int y, int m, int d ) | 138 | void DateBookDayHeader::setDate( int y, int m, int d ) |
134 | { | 139 | { |
135 | currDate.setYMD( y, m, d ); | 140 | currDate.setYMD( y, m, d ); |
136 | date->setText( TimeString::shortDate( currDate ) ); | 141 | date->setText( TimeString::shortDate( currDate ) ); |
137 | 142 | ||
138 | int iDayOfWeek = currDate.dayOfWeek(); | 143 | int iDayOfWeek = currDate.dayOfWeek(); |
139 | // cleverly adjust the day depending on how we start the week | 144 | // cleverly adjust the day depending on how we start the week |
140 | if ( bUseMonday ) | 145 | if ( bUseMonday ) |
141 | iDayOfWeek--; | 146 | iDayOfWeek--; |
142 | else { | 147 | else { |
143 | if ( iDayOfWeek == 7 ) // Sunday | 148 | if ( iDayOfWeek == 7 ) // Sunday |
144 | iDayOfWeek = 0; | 149 | iDayOfWeek = 0; |
145 | } | 150 | } |
146 | grpDays->setButton( iDayOfWeek ); | 151 | grpDays->setButton( iDayOfWeek ); |
147 | emit dateChanged( y, m, d ); | 152 | emit dateChanged( y, m, d ); |
148 | } | 153 | } |
149 | 154 | ||
150 | /* | 155 | /* |
151 | * public slot | 156 | * public slot |
152 | */ | 157 | */ |
153 | void DateBookDayHeader::setDay( int day ) | 158 | void DateBookDayHeader::setDay( int day ) |
154 | { | 159 | { |
155 | int realDay; | 160 | int realDay; |
156 | int dayOfWeek = currDate.dayOfWeek(); | 161 | int dayOfWeek = currDate.dayOfWeek(); |
157 | 162 | ||
158 | // a little adjustment is needed... | 163 | // a little adjustment is needed... |
159 | if ( bUseMonday ) | 164 | if ( bUseMonday ) |
160 | realDay = day + 1 ; | 165 | realDay = day + 1 ; |
161 | else if ( !bUseMonday && day == 0 ) // sunday | 166 | else if ( !bUseMonday && day == 0 ) // sunday |
162 | realDay = 7; | 167 | realDay = 7; |
163 | else | 168 | else |
164 | realDay = day; | 169 | realDay = day; |
165 | // special cases first... | 170 | // special cases first... |
166 | if ( realDay == 7 && !bUseMonday ) { | 171 | if ( realDay == 7 && !bUseMonday ) { |
167 | while ( currDate.dayOfWeek() != realDay ) | 172 | while ( currDate.dayOfWeek() != realDay ) |
168 | currDate = currDate.addDays( -1 ); | 173 | currDate = currDate.addDays( -1 ); |
169 | } else if ( !bUseMonday && dayOfWeek == 7 && dayOfWeek > realDay ) { | 174 | } else if ( !bUseMonday && dayOfWeek == 7 && dayOfWeek > realDay ) { |
170 | while ( currDate.dayOfWeek() != realDay ) | 175 | while ( currDate.dayOfWeek() != realDay ) |
171 | currDate = currDate.addDays( 1 ); | 176 | currDate = currDate.addDays( 1 ); |
172 | } else if ( dayOfWeek < realDay ) { | 177 | } else if ( dayOfWeek < realDay ) { |
173 | while ( currDate.dayOfWeek() < realDay ) | 178 | while ( currDate.dayOfWeek() < realDay ) |
174 | currDate = currDate.addDays( 1 ); | 179 | currDate = currDate.addDays( 1 ); |
175 | } else if ( dayOfWeek > realDay ) { | 180 | } else if ( dayOfWeek > realDay ) { |
176 | while ( currDate.dayOfWeek() > realDay ) | 181 | while ( currDate.dayOfWeek() > realDay ) |
177 | currDate = currDate.addDays( -1 ); | 182 | currDate = currDate.addDays( -1 ); |
178 | } | 183 | } |
179 | // update the date... | 184 | // update the date... |
180 | setDate( currDate.year(), currDate.month(), currDate.day() ); | 185 | setDate( currDate.year(), currDate.month(), currDate.day() ); |
181 | } | 186 | } |