-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 | |||
@@ -32,3 +32,3 @@ | |||
32 | <y>0</y> | 32 | <y>0</y> |
33 | <width>429</width> | 33 | <width>425</width> |
34 | <height>321</height> | 34 | <height>321</height> |
@@ -50,3 +50,3 @@ | |||
50 | <name>name</name> | 50 | <name>name</name> |
51 | <cstring>Layout22</cstring> | 51 | <cstring>Layout31</cstring> |
52 | </property> | 52 | </property> |
@@ -55,4 +55,4 @@ | |||
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> |
@@ -70,3 +70,3 @@ | |||
70 | </property> | 70 | </property> |
71 | <widget row="3" column="0" > | 71 | <widget row="2" column="0" > |
72 | <class>QLayoutWidget</class> | 72 | <class>QLayoutWidget</class> |
@@ -74,3 +74,3 @@ | |||
74 | <name>name</name> | 74 | <name>name</name> |
75 | <cstring>Layout18</cstring> | 75 | <cstring>Layout19</cstring> |
76 | </property> | 76 | </property> |
@@ -89,7 +89,3 @@ | |||
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> |
@@ -97,3 +93,3 @@ | |||
97 | <name>text</name> | 93 | <name>text</name> |
98 | <string>Category:</string> | 94 | <string>Progress:</string> |
99 | </property> | 95 | </property> |
@@ -101,12 +97,48 @@ | |||
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> |
@@ -116,3 +148,3 @@ | |||
116 | </widget> | 148 | </widget> |
117 | <widget row="4" column="0" > | 149 | <widget row="3" column="0" > |
118 | <class>QLayoutWidget</class> | 150 | <class>QLayoutWidget</class> |
@@ -120,3 +152,3 @@ | |||
120 | <name>name</name> | 152 | <name>name</name> |
121 | <cstring>Layout4</cstring> | 153 | <cstring>Layout18</cstring> |
122 | </property> | 154 | </property> |
@@ -135,3 +167,7 @@ | |||
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> |
@@ -139,3 +175,3 @@ | |||
139 | <name>text</name> | 175 | <name>text</name> |
140 | <string>Summary:</string> | 176 | <string>Category:</string> |
141 | </property> | 177 | </property> |
@@ -143,6 +179,13 @@ | |||
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> |
@@ -227,2 +270,9 @@ | |||
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" > |
@@ -281,3 +331,3 @@ | |||
281 | </widget> | 331 | </widget> |
282 | <widget row="2" column="0" > | 332 | <widget row="4" column="0" > |
283 | <class>QLayoutWidget</class> | 333 | <class>QLayoutWidget</class> |
@@ -285,3 +335,3 @@ | |||
285 | <name>name</name> | 335 | <name>name</name> |
286 | <cstring>Layout19</cstring> | 336 | <cstring>Layout30</cstring> |
287 | </property> | 337 | </property> |
@@ -300,3 +350,3 @@ | |||
300 | <name>name</name> | 350 | <name>name</name> |
301 | <cstring>txtProg</cstring> | 351 | <cstring>TextLabel1</cstring> |
302 | </property> | 352 | </property> |
@@ -304,3 +354,3 @@ | |||
304 | <name>text</name> | 354 | <name>text</name> |
305 | <string>Progress:</string> | 355 | <string>Summary:</string> |
306 | </property> | 356 | </property> |
@@ -308,42 +358,20 @@ | |||
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> |
@@ -352,4 +380,4 @@ | |||
352 | <size> | 380 | <size> |
353 | <width>45</width> | 381 | <width>20</width> |
354 | <height>32767</height> | 382 | <height>20</height> |
355 | </size> | 383 | </size> |
@@ -359,9 +387,2 @@ | |||
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> |
@@ -384,2 +405,19 @@ | |||
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> |
@@ -398,4 +436,11 @@ | |||
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> |
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 | |||
@@ -23,2 +23,3 @@ | |||
23 | 23 | ||
24 | #include <opie/oclickablelabel.h> | ||
24 | #include <opie/todoevent.h> | 25 | #include <opie/todoevent.h> |
@@ -29,2 +30,3 @@ | |||
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> |
@@ -101,2 +103,3 @@ void NewTaskDialog::init() | |||
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 | } |
@@ -142,3 +145,7 @@ ToDoEvent NewTaskDialog::todoEntry() | |||
142 | } | 145 | } |
143 | 146 | void NewTaskDialog::slotCopy() | |
147 | { | ||
148 | txtTodo->clear(); | ||
149 | txtTodo->setText( lneSum->text() ); | ||
150 | } | ||
144 | 151 | ||
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 | |||
@@ -49,3 +49,3 @@ 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: |