author | zecke <zecke> | 2002-06-16 16:55:40 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-06-16 16:55:40 (UTC) |
commit | f63c4f952daeeda9787b8b700a9d50f20cdff88c (patch) (unidiff) | |
tree | fee143b48834b24ab56f7373571c8ef94f6314f3 | |
parent | 98f3588c957217c720779945a02bc01a164bfaa5 (diff) | |
download | opie-f63c4f952daeeda9787b8b700a9d50f20cdff88c.zip opie-f63c4f952daeeda9787b8b700a9d50f20cdff88c.tar.gz opie-f63c4f952daeeda9787b8b700a9d50f20cdff88c.tar.bz2 |
I dunno
-rw-r--r-- | core/pim/todo/todoentry.ui | 193 | ||||
-rw-r--r-- | core/pim/todo/todoentryimpl.cpp | 9 | ||||
-rw-r--r-- | core/pim/todo/todoentryimpl.h | 2 |
3 files changed, 128 insertions, 76 deletions
diff --git a/core/pim/todo/todoentry.ui b/core/pim/todo/todoentry.ui index 5da4bb7..9ffa89b 100644 --- a/core/pim/todo/todoentry.ui +++ b/core/pim/todo/todoentry.ui | |||
@@ -30,7 +30,7 @@ | |||
30 | <rect> | 30 | <rect> |
31 | <x>0</x> | 31 | <x>0</x> |
32 | <y>0</y> | 32 | <y>0</y> |
33 | <width>429</width> | 33 | <width>425</width> |
34 | <height>321</height> | 34 | <height>321</height> |
35 | </rect> | 35 | </rect> |
36 | </property> | 36 | </property> |
@@ -48,13 +48,13 @@ | |||
48 | <class>QLayoutWidget</class> | 48 | <class>QLayoutWidget</class> |
49 | <property stdset="1"> | 49 | <property stdset="1"> |
50 | <name>name</name> | 50 | <name>name</name> |
51 | <cstring>Layout22</cstring> | 51 | <cstring>Layout31</cstring> |
52 | </property> | 52 | </property> |
53 | <property stdset="1"> | 53 | <property stdset="1"> |
54 | <name>geometry</name> | 54 | <name>geometry</name> |
55 | <rect> | 55 | <rect> |
56 | <x>0</x> | 56 | <x>1</x> |
57 | <y>5</y> | 57 | <y>6</y> |
58 | <width>240</width> | 58 | <width>240</width> |
59 | <height>310</height> | 59 | <height>310</height> |
60 | </rect> | 60 | </rect> |
@@ -68,11 +68,11 @@ | |||
68 | <name>spacing</name> | 68 | <name>spacing</name> |
69 | <number>6</number> | 69 | <number>6</number> |
70 | </property> | 70 | </property> |
71 | <widget row="3" column="0" > | 71 | <widget row="2" column="0" > |
72 | <class>QLayoutWidget</class> | 72 | <class>QLayoutWidget</class> |
73 | <property stdset="1"> | 73 | <property stdset="1"> |
74 | <name>name</name> | 74 | <name>name</name> |
75 | <cstring>Layout18</cstring> | 75 | <cstring>Layout19</cstring> |
76 | </property> | 76 | </property> |
77 | <hbox> | 77 | <hbox> |
78 | <property stdset="1"> | 78 | <property stdset="1"> |
@@ -87,38 +87,70 @@ | |||
87 | <class>QLabel</class> | 87 | <class>QLabel</class> |
88 | <property stdset="1"> | 88 | <property stdset="1"> |
89 | <name>name</name> | 89 | <name>name</name> |
90 | <cstring>TextLabel3</cstring> | 90 | <cstring>txtProg</cstring> |
91 | </property> | ||
92 | <property stdset="1"> | ||
93 | <name>frameShape</name> | ||
94 | <enum>NoFrame</enum> | ||
95 | </property> | 91 | </property> |
96 | <property stdset="1"> | 92 | <property stdset="1"> |
97 | <name>text</name> | 93 | <name>text</name> |
98 | <string>Category:</string> | 94 | <string>Progress:</string> |
99 | </property> | 95 | </property> |
100 | </widget> | 96 | </widget> |
101 | <widget> | 97 | <widget> |
102 | <class>CategorySelect</class> | 98 | <class>QComboBox</class> |
99 | <item> | ||
100 | <property> | ||
101 | <name>text</name> | ||
102 | <string>0%</string> | ||
103 | </property> | ||
104 | </item> | ||
105 | <item> | ||
106 | <property> | ||
107 | <name>text</name> | ||
108 | <string>20%</string> | ||
109 | </property> | ||
110 | </item> | ||
111 | <item> | ||
112 | <property> | ||
113 | <name>text</name> | ||
114 | <string>40%</string> | ||
115 | </property> | ||
116 | </item> | ||
117 | <item> | ||
118 | <property> | ||
119 | <name>text</name> | ||
120 | <string>60%</string> | ||
121 | </property> | ||
122 | </item> | ||
123 | <item> | ||
124 | <property> | ||
125 | <name>text</name> | ||
126 | <string>80%</string> | ||
127 | </property> | ||
128 | </item> | ||
129 | <item> | ||
130 | <property> | ||
131 | <name>text</name> | ||
132 | <string>100%</string> | ||
133 | </property> | ||
134 | </item> | ||
103 | <property stdset="1"> | 135 | <property stdset="1"> |
104 | <name>name</name> | 136 | <name>name</name> |
105 | <cstring>comboCategory</cstring> | 137 | <cstring>cmbProg</cstring> |
106 | </property> | 138 | </property> |
107 | <property stdset="1"> | 139 | <property stdset="1"> |
108 | <name>minimumSize</name> | 140 | <name>maximumSize</name> |
109 | <size> | 141 | <size> |
110 | <width>60</width> | 142 | <width>45</width> |
111 | <height>0</height> | 143 | <height>32767</height> |
112 | </size> | 144 | </size> |
113 | </property> | 145 | </property> |
114 | </widget> | 146 | </widget> |
115 | </hbox> | 147 | </hbox> |
116 | </widget> | 148 | </widget> |
117 | <widget row="4" column="0" > | 149 | <widget row="3" column="0" > |
118 | <class>QLayoutWidget</class> | 150 | <class>QLayoutWidget</class> |
119 | <property stdset="1"> | 151 | <property stdset="1"> |
120 | <name>name</name> | 152 | <name>name</name> |
121 | <cstring>Layout4</cstring> | 153 | <cstring>Layout18</cstring> |
122 | </property> | 154 | </property> |
123 | <hbox> | 155 | <hbox> |
124 | <property stdset="1"> | 156 | <property stdset="1"> |
@@ -133,18 +165,29 @@ | |||
133 | <class>QLabel</class> | 165 | <class>QLabel</class> |
134 | <property stdset="1"> | 166 | <property stdset="1"> |
135 | <name>name</name> | 167 | <name>name</name> |
136 | <cstring>TextLabel1</cstring> | 168 | <cstring>TextLabel3</cstring> |
169 | </property> | ||
170 | <property stdset="1"> | ||
171 | <name>frameShape</name> | ||
172 | <enum>NoFrame</enum> | ||
137 | </property> | 173 | </property> |
138 | <property stdset="1"> | 174 | <property stdset="1"> |
139 | <name>text</name> | 175 | <name>text</name> |
140 | <string>Summary:</string> | 176 | <string>Category:</string> |
141 | </property> | 177 | </property> |
142 | </widget> | 178 | </widget> |
143 | <widget> | 179 | <widget> |
144 | <class>QLineEdit</class> | 180 | <class>CategorySelect</class> |
145 | <property stdset="1"> | 181 | <property stdset="1"> |
146 | <name>name</name> | 182 | <name>name</name> |
147 | <cstring>lneSum</cstring> | 183 | <cstring>comboCategory</cstring> |
184 | </property> | ||
185 | <property stdset="1"> | ||
186 | <name>minimumSize</name> | ||
187 | <size> | ||
188 | <width>60</width> | ||
189 | <height>0</height> | ||
190 | </size> | ||
148 | </property> | 191 | </property> |
149 | </widget> | 192 | </widget> |
150 | </hbox> | 193 | </hbox> |
@@ -225,6 +268,13 @@ | |||
225 | </widget> | 268 | </widget> |
226 | </hbox> | 269 | </hbox> |
227 | </widget> | 270 | </widget> |
271 | <widget row="5" column="0" > | ||
272 | <class>QMultiLineEdit</class> | ||
273 | <property stdset="1"> | ||
274 | <name>name</name> | ||
275 | <cstring>txtTodo</cstring> | ||
276 | </property> | ||
277 | </widget> | ||
228 | <widget row="1" column="0" > | 278 | <widget row="1" column="0" > |
229 | <class>QLayoutWidget</class> | 279 | <class>QLayoutWidget</class> |
230 | <property stdset="1"> | 280 | <property stdset="1"> |
@@ -279,11 +329,11 @@ | |||
279 | </widget> | 329 | </widget> |
280 | </hbox> | 330 | </hbox> |
281 | </widget> | 331 | </widget> |
282 | <widget row="2" column="0" > | 332 | <widget row="4" column="0" > |
283 | <class>QLayoutWidget</class> | 333 | <class>QLayoutWidget</class> |
284 | <property stdset="1"> | 334 | <property stdset="1"> |
285 | <name>name</name> | 335 | <name>name</name> |
286 | <cstring>Layout19</cstring> | 336 | <cstring>Layout30</cstring> |
287 | </property> | 337 | </property> |
288 | <hbox> | 338 | <hbox> |
289 | <property stdset="1"> | 339 | <property stdset="1"> |
@@ -298,72 +348,43 @@ | |||
298 | <class>QLabel</class> | 348 | <class>QLabel</class> |
299 | <property stdset="1"> | 349 | <property stdset="1"> |
300 | <name>name</name> | 350 | <name>name</name> |
301 | <cstring>txtProg</cstring> | 351 | <cstring>TextLabel1</cstring> |
302 | </property> | 352 | </property> |
303 | <property stdset="1"> | 353 | <property stdset="1"> |
304 | <name>text</name> | 354 | <name>text</name> |
305 | <string>Progress:</string> | 355 | <string>Summary:</string> |
306 | </property> | 356 | </property> |
307 | </widget> | 357 | </widget> |
308 | <widget> | 358 | <widget> |
309 | <class>QComboBox</class> | 359 | <class>QLineEdit</class> |
310 | <item> | ||
311 | <property> | ||
312 | <name>text</name> | ||
313 | <string>0%</string> | ||
314 | </property> | ||
315 | </item> | ||
316 | <item> | ||
317 | <property> | ||
318 | <name>text</name> | ||
319 | <string>20%</string> | ||
320 | </property> | ||
321 | </item> | ||
322 | <item> | ||
323 | <property> | ||
324 | <name>text</name> | ||
325 | <string>40%</string> | ||
326 | </property> | ||
327 | </item> | ||
328 | <item> | ||
329 | <property> | ||
330 | <name>text</name> | ||
331 | <string>60%</string> | ||
332 | </property> | ||
333 | </item> | ||
334 | <item> | ||
335 | <property> | ||
336 | <name>text</name> | ||
337 | <string>80%</string> | ||
338 | </property> | ||
339 | </item> | ||
340 | <item> | ||
341 | <property> | ||
342 | <name>text</name> | ||
343 | <string>100%</string> | ||
344 | </property> | ||
345 | </item> | ||
346 | <property stdset="1"> | 360 | <property stdset="1"> |
347 | <name>name</name> | 361 | <name>name</name> |
348 | <cstring>cmbProg</cstring> | 362 | <cstring>lneSum</cstring> |
363 | </property> | ||
364 | </widget> | ||
365 | <widget> | ||
366 | <class>OClickableLabel</class> | ||
367 | <property stdset="1"> | ||
368 | <name>name</name> | ||
369 | <cstring>lblDown</cstring> | ||
370 | </property> | ||
371 | <property stdset="1"> | ||
372 | <name>minimumSize</name> | ||
373 | <size> | ||
374 | <width>20</width> | ||
375 | <height>20</height> | ||
376 | </size> | ||
349 | </property> | 377 | </property> |
350 | <property stdset="1"> | 378 | <property stdset="1"> |
351 | <name>maximumSize</name> | 379 | <name>maximumSize</name> |
352 | <size> | 380 | <size> |
353 | <width>45</width> | 381 | <width>20</width> |
354 | <height>32767</height> | 382 | <height>20</height> |
355 | </size> | 383 | </size> |
356 | </property> | 384 | </property> |
357 | </widget> | 385 | </widget> |
358 | </hbox> | 386 | </hbox> |
359 | </widget> | 387 | </widget> |
360 | <widget row="5" column="0" > | ||
361 | <class>QMultiLineEdit</class> | ||
362 | <property stdset="1"> | ||
363 | <name>name</name> | ||
364 | <cstring>txtTodo</cstring> | ||
365 | </property> | ||
366 | </widget> | ||
367 | </grid> | 388 | </grid> |
368 | </widget> | 389 | </widget> |
369 | </widget> | 390 | </widget> |
@@ -382,6 +403,23 @@ | |||
382 | </sizepolicy> | 403 | </sizepolicy> |
383 | <pixmap>image0</pixmap> | 404 | <pixmap>image0</pixmap> |
384 | </customwidget> | 405 | </customwidget> |
406 | <customwidget> | ||
407 | <class>OClickableLabel</class> | ||
408 | <header location="global">opie/oclickablelabel.h</header> | ||
409 | <sizehint> | ||
410 | <width>-1</width> | ||
411 | <height>-1</height> | ||
412 | </sizehint> | ||
413 | <container>0</container> | ||
414 | <sizepolicy> | ||
415 | <hordata>5</hordata> | ||
416 | <verdata>5</verdata> | ||
417 | </sizepolicy> | ||
418 | <pixmap>image0</pixmap> | ||
419 | <signal>clicked()</signal> | ||
420 | <signal>toggled(bool)</signal> | ||
421 | <slot access="public">slotOn(bool)</slot> | ||
422 | </customwidget> | ||
385 | </customwidgets> | 423 | </customwidgets> |
386 | <images> | 424 | <images> |
387 | <image> | 425 | <image> |
@@ -396,7 +434,14 @@ | |||
396 | <receiver>buttonDate</receiver> | 434 | <receiver>buttonDate</receiver> |
397 | <slot>setEnabled(bool)</slot> | 435 | <slot>setEnabled(bool)</slot> |
398 | </connection> | 436 | </connection> |
437 | <connection> | ||
438 | <sender>lblDown</sender> | ||
439 | <signal>clicked()</signal> | ||
440 | <receiver>NewTaskDialogBase</receiver> | ||
441 | <slot>slotCopy()</slot> | ||
442 | </connection> | ||
399 | <slot access="protected">dateChanged( const QString & )</slot> | 443 | <slot access="protected">dateChanged( const QString & )</slot> |
400 | <slot access="protected">dateChanged( int, int, int )</slot> | 444 | <slot access="protected">dateChanged( int, int, int )</slot> |
445 | <slot access="protected">slotCopy()</slot> | ||
401 | </connections> | 446 | </connections> |
402 | </UI> | 447 | </UI> |
diff --git a/core/pim/todo/todoentryimpl.cpp b/core/pim/todo/todoentryimpl.cpp index f8e2f4d..dd01130 100644 --- a/core/pim/todo/todoentryimpl.cpp +++ b/core/pim/todo/todoentryimpl.cpp | |||
@@ -21,12 +21,14 @@ | |||
21 | 21 | ||
22 | #include "todoentryimpl.h" | 22 | #include "todoentryimpl.h" |
23 | 23 | ||
24 | #include <opie/oclickablelabel.h> | ||
24 | #include <opie/todoevent.h> | 25 | #include <opie/todoevent.h> |
25 | #include <opie/tododb.h> | 26 | #include <opie/tododb.h> |
26 | 27 | ||
27 | #include <qpe/categoryselect.h> | 28 | #include <qpe/categoryselect.h> |
28 | #include <qpe/datebookmonth.h> | 29 | #include <qpe/datebookmonth.h> |
29 | #include <qpe/global.h> | 30 | #include <qpe/global.h> |
31 | #include <qpe/resource.h> | ||
30 | #include <qpe/imageedit.h> | 32 | #include <qpe/imageedit.h> |
31 | #include <qpe/timestring.h> | 33 | #include <qpe/timestring.h> |
32 | #include <qpe/palmtoprecord.h> | 34 | #include <qpe/palmtoprecord.h> |
@@ -99,6 +101,7 @@ void NewTaskDialog::init() | |||
99 | 101 | ||
100 | buttonDate->setText( TimeString::longDateString( date ) ); | 102 | buttonDate->setText( TimeString::longDateString( date ) ); |
101 | picker->setDate( date.year(), date.month(), date.day() ); | 103 | picker->setDate( date.year(), date.month(), date.day() ); |
104 | lblDown->setPixmap(Resource::loadPixmap("down") ); | ||
102 | } | 105 | } |
103 | 106 | ||
104 | /* | 107 | /* |
@@ -140,7 +143,11 @@ ToDoEvent NewTaskDialog::todoEntry() | |||
140 | todo.setProgress( text.remove( text.length()-1, 1 ).toUShort() ); | 143 | todo.setProgress( text.remove( text.length()-1, 1 ).toUShort() ); |
141 | return todo; | 144 | return todo; |
142 | } | 145 | } |
143 | 146 | void NewTaskDialog::slotCopy() | |
147 | { | ||
148 | txtTodo->clear(); | ||
149 | txtTodo->setText( lneSum->text() ); | ||
150 | } | ||
144 | 151 | ||
145 | /*! | 152 | /*! |
146 | 153 | ||
diff --git a/core/pim/todo/todoentryimpl.h b/core/pim/todo/todoentryimpl.h index 6407eb4..49d1274 100644 --- a/core/pim/todo/todoentryimpl.h +++ b/core/pim/todo/todoentryimpl.h | |||
@@ -47,7 +47,7 @@ public: | |||
47 | 47 | ||
48 | protected slots: | 48 | protected slots: |
49 | void dateChanged( int y, int m, int d ); | 49 | void dateChanged( int y, int m, int d ); |
50 | 50 | void slotCopy(); | |
51 | protected: | 51 | protected: |
52 | virtual void accept(); | 52 | virtual void accept(); |
53 | 53 | ||