summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/todoentry.ui193
-rw-r--r--core/pim/todo/todoentryimpl.cpp9
-rw-r--r--core/pim/todo/todoentryimpl.h2
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
@@ -31,5 +31,5 @@
<x>0</x>
<y>0</y>
- <width>429</width>
+ <width>425</width>
<height>321</height>
</rect>
@@ -49,11 +49,11 @@
<property stdset="1">
<name>name</name>
- <cstring>Layout22</cstring>
+ <cstring>Layout31</cstring>
</property>
<property stdset="1">
<name>geometry</name>
<rect>
- <x>0</x>
- <y>5</y>
+ <x>1</x>
+ <y>6</y>
<width>240</width>
<height>310</height>
@@ -69,9 +69,9 @@
<number>6</number>
</property>
- <widget row="3" column="0" >
+ <widget row="2" column="0" >
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
- <cstring>Layout18</cstring>
+ <cstring>Layout19</cstring>
</property>
<hbox>
@@ -88,26 +88,58 @@
<property stdset="1">
<name>name</name>
- <cstring>TextLabel3</cstring>
- </property>
- <property stdset="1">
- <name>frameShape</name>
- <enum>NoFrame</enum>
+ <cstring>txtProg</cstring>
</property>
<property stdset="1">
<name>text</name>
- <string>Category:</string>
+ <string>Progress:</string>
</property>
</widget>
<widget>
- <class>CategorySelect</class>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>0%</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>20%</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>40%</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>60%</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>80%</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>100%</string>
+ </property>
+ </item>
<property stdset="1">
<name>name</name>
- <cstring>comboCategory</cstring>
+ <cstring>cmbProg</cstring>
</property>
<property stdset="1">
- <name>minimumSize</name>
+ <name>maximumSize</name>
<size>
- <width>60</width>
- <height>0</height>
+ <width>45</width>
+ <height>32767</height>
</size>
</property>
@@ -115,9 +147,9 @@
</hbox>
</widget>
- <widget row="4" column="0" >
+ <widget row="3" column="0" >
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
- <cstring>Layout4</cstring>
+ <cstring>Layout18</cstring>
</property>
<hbox>
@@ -134,16 +166,27 @@
<property stdset="1">
<name>name</name>
- <cstring>TextLabel1</cstring>
+ <cstring>TextLabel3</cstring>
+ </property>
+ <property stdset="1">
+ <name>frameShape</name>
+ <enum>NoFrame</enum>
</property>
<property stdset="1">
<name>text</name>
- <string>Summary:</string>
+ <string>Category:</string>
</property>
</widget>
<widget>
- <class>QLineEdit</class>
+ <class>CategorySelect</class>
<property stdset="1">
<name>name</name>
- <cstring>lneSum</cstring>
+ <cstring>comboCategory</cstring>
+ </property>
+ <property stdset="1">
+ <name>minimumSize</name>
+ <size>
+ <width>60</width>
+ <height>0</height>
+ </size>
</property>
</widget>
@@ -226,4 +269,11 @@
</hbox>
</widget>
+ <widget row="5" column="0" >
+ <class>QMultiLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>txtTodo</cstring>
+ </property>
+ </widget>
<widget row="1" column="0" >
<class>QLayoutWidget</class>
@@ -280,9 +330,9 @@
</hbox>
</widget>
- <widget row="2" column="0" >
+ <widget row="4" column="0" >
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
- <cstring>Layout19</cstring>
+ <cstring>Layout30</cstring>
</property>
<hbox>
@@ -299,58 +349,36 @@
<property stdset="1">
<name>name</name>
- <cstring>txtProg</cstring>
+ <cstring>TextLabel1</cstring>
</property>
<property stdset="1">
<name>text</name>
- <string>Progress:</string>
+ <string>Summary:</string>
</property>
</widget>
<widget>
- <class>QComboBox</class>
- <item>
- <property>
- <name>text</name>
- <string>0%</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>20%</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>40%</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>60%</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>80%</string>
- </property>
- </item>
- <item>
- <property>
- <name>text</name>
- <string>100%</string>
- </property>
- </item>
+ <class>QLineEdit</class>
<property stdset="1">
<name>name</name>
- <cstring>cmbProg</cstring>
+ <cstring>lneSum</cstring>
+ </property>
+ </widget>
+ <widget>
+ <class>OClickableLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>lblDown</cstring>
+ </property>
+ <property stdset="1">
+ <name>minimumSize</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
</property>
<property stdset="1">
<name>maximumSize</name>
<size>
- <width>45</width>
- <height>32767</height>
+ <width>20</width>
+ <height>20</height>
</size>
</property>
@@ -358,11 +386,4 @@
</hbox>
</widget>
- <widget row="5" column="0" >
- <class>QMultiLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>txtTodo</cstring>
- </property>
- </widget>
</grid>
</widget>
@@ -383,4 +404,21 @@
<pixmap>image0</pixmap>
</customwidget>
+ <customwidget>
+ <class>OClickableLabel</class>
+ <header location="global">opie/oclickablelabel.h</header>
+ <sizehint>
+ <width>-1</width>
+ <height>-1</height>
+ </sizehint>
+ <container>0</container>
+ <sizepolicy>
+ <hordata>5</hordata>
+ <verdata>5</verdata>
+ </sizepolicy>
+ <pixmap>image0</pixmap>
+ <signal>clicked()</signal>
+ <signal>toggled(bool)</signal>
+ <slot access="public">slotOn(bool)</slot>
+ </customwidget>
</customwidgets>
<images>
@@ -397,6 +435,13 @@
<slot>setEnabled(bool)</slot>
</connection>
+ <connection>
+ <sender>lblDown</sender>
+ <signal>clicked()</signal>
+ <receiver>NewTaskDialogBase</receiver>
+ <slot>slotCopy()</slot>
+ </connection>
<slot access="protected">dateChanged( const QString &amp; )</slot>
<slot access="protected">dateChanged( int, int, int )</slot>
+ <slot access="protected">slotCopy()</slot>
</connections>
</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
@@ -22,4 +22,5 @@
#include "todoentryimpl.h"
+#include <opie/oclickablelabel.h>
#include <opie/todoevent.h>
#include <opie/tododb.h>
@@ -28,4 +29,5 @@
#include <qpe/datebookmonth.h>
#include <qpe/global.h>
+#include <qpe/resource.h>
#include <qpe/imageedit.h>
#include <qpe/timestring.h>
@@ -100,4 +102,5 @@ void NewTaskDialog::init()
buttonDate->setText( TimeString::longDateString( date ) );
picker->setDate( date.year(), date.month(), date.day() );
+ lblDown->setPixmap(Resource::loadPixmap("down") );
}
@@ -141,5 +144,9 @@ ToDoEvent NewTaskDialog::todoEntry()
return todo;
}
-
+void NewTaskDialog::slotCopy()
+{
+ txtTodo->clear();
+ txtTodo->setText( lneSum->text() );
+}
/*!
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
@@ -48,5 +48,5 @@ public:
protected slots:
void dateChanged( int y, int m, int d );
-
+ void slotCopy();
protected:
virtual void accept();