Diffstat (limited to 'core/pim/todo/taskeditoroverview.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/todo/taskeditoroverview.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/pim/todo/taskeditoroverview.cpp b/core/pim/todo/taskeditoroverview.cpp index 9a8abea..415dcf2 100644 --- a/core/pim/todo/taskeditoroverview.cpp +++ b/core/pim/todo/taskeditoroverview.cpp | |||
@@ -24,28 +24,26 @@ | |||
24 | Inc., 59 Temple Place - Suite 330, | 24 | Inc., 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "taskeditoroverview.h" | 29 | #include "taskeditoroverview.h" |
30 | 30 | ||
31 | #include <opie/orecur.h> | 31 | #include <opie/orecur.h> |
32 | 32 | ||
33 | #include <qpe/categoryselect.h> | 33 | #include <qpe/categoryselect.h> |
34 | #include <qpe/datebookmonth.h> | 34 | #include <qpe/datebookmonth.h> |
35 | #include <qpe/resource.h> | 35 | #include <qpe/resource.h> |
36 | #include <qpe/timestring.h> | ||
37 | 36 | ||
38 | #include <qcheckbox.h> | 37 | #include <qcheckbox.h> |
39 | #include <qcombobox.h> | ||
40 | #include <qlabel.h> | 38 | #include <qlabel.h> |
41 | #include <qlayout.h> | 39 | #include <qlayout.h> |
42 | #include <qmultilineedit.h> | 40 | #include <qmultilineedit.h> |
43 | #include <qwhatsthis.h> | 41 | #include <qwhatsthis.h> |
44 | 42 | ||
45 | TaskEditorOverView::TaskEditorOverView( QWidget* parent, const char* name, WFlags fl ) | 43 | TaskEditorOverView::TaskEditorOverView( QWidget* parent, const char* name, WFlags fl ) |
46 | : QWidget( parent, name, fl ) | 44 | : QWidget( parent, name, fl ) |
47 | { | 45 | { |
48 | // Load icons | 46 | // Load icons |
49 | // TODO - probably should be done globally somewhere else, | 47 | // TODO - probably should be done globally somewhere else, |
50 | // see also quickeditimpl.cpp/h, tableview.cpp/h | 48 | // see also quickeditimpl.cpp/h, tableview.cpp/h |
51 | QString namestr; | 49 | QString namestr; |
@@ -59,25 +57,25 @@ TaskEditorOverView::TaskEditorOverView( QWidget* parent, const char* name, WFla | |||
59 | 57 | ||
60 | QScrollView *sv = new QScrollView( this ); | 58 | QScrollView *sv = new QScrollView( this ); |
61 | vb->addWidget( sv ); | 59 | vb->addWidget( sv ); |
62 | sv->setResizePolicy( QScrollView::AutoOneFit ); | 60 | sv->setResizePolicy( QScrollView::AutoOneFit ); |
63 | sv->setFrameStyle( QFrame::NoFrame ); | 61 | sv->setFrameStyle( QFrame::NoFrame ); |
64 | 62 | ||
65 | QWidget *container = new QWidget( sv->viewport() ); | 63 | QWidget *container = new QWidget( sv->viewport() ); |
66 | sv->addChild( container ); | 64 | sv->addChild( container ); |
67 | 65 | ||
68 | QGridLayout *layout = new QGridLayout( container, 7, 2, 4, 4 ); | 66 | QGridLayout *layout = new QGridLayout( container, 7, 2, 4, 4 ); |
69 | 67 | ||
70 | // Description | 68 | // Description |
71 | QLabel *label = new QLabel( tr( "Description:" ), container ); | 69 | QLabel *label = new QLabel( tr( "Summary:" ), container ); |
72 | layout->addWidget( label, 0, 0 ); | 70 | layout->addWidget( label, 0, 0 ); |
73 | QWhatsThis::add( label, tr( "Enter brief description of the task here." ) ); | 71 | QWhatsThis::add( label, tr( "Enter brief description of the task here." ) ); |
74 | cmbDesc = new QComboBox( TRUE, container ); | 72 | cmbDesc = new QComboBox( TRUE, container ); |
75 | cmbDesc->insertItem( tr( "Complete " ) ); | 73 | cmbDesc->insertItem( tr( "Complete " ) ); |
76 | cmbDesc->insertItem( tr( "Work on " ) ); | 74 | cmbDesc->insertItem( tr( "Work on " ) ); |
77 | cmbDesc->insertItem( tr( "Buy " ) ); | 75 | cmbDesc->insertItem( tr( "Buy " ) ); |
78 | cmbDesc->insertItem( tr( "Organize " ) ); | 76 | cmbDesc->insertItem( tr( "Organize " ) ); |
79 | cmbDesc->insertItem( tr( "Get " ) ); | 77 | cmbDesc->insertItem( tr( "Get " ) ); |
80 | cmbDesc->insertItem( tr( "Update " ) ); | 78 | cmbDesc->insertItem( tr( "Update " ) ); |
81 | cmbDesc->insertItem( tr( "Create " ) ); | 79 | cmbDesc->insertItem( tr( "Create " ) ); |
82 | cmbDesc->insertItem( tr( "Plan " ) ); | 80 | cmbDesc->insertItem( tr( "Plan " ) ); |
83 | cmbDesc->insertItem( tr( "Call " ) ); | 81 | cmbDesc->insertItem( tr( "Call " ) ); |
@@ -107,25 +105,25 @@ TaskEditorOverView::TaskEditorOverView( QWidget* parent, const char* name, WFla | |||
107 | QWhatsThis::add( label, tr( "Select category to organize this task with." ) ); | 105 | QWhatsThis::add( label, tr( "Select category to organize this task with." ) ); |
108 | cmbCategory = new CategorySelect( container ); | 106 | cmbCategory = new CategorySelect( container ); |
109 | layout->addWidget( cmbCategory, 3, 1 ); | 107 | layout->addWidget( cmbCategory, 3, 1 ); |
110 | QWhatsThis::add( cmbCategory, tr( "Select category to organize this task with." ) ); | 108 | QWhatsThis::add( cmbCategory, tr( "Select category to organize this task with." ) ); |
111 | 109 | ||
112 | // Recurrence | 110 | // Recurrence |
113 | ckbRecurrence = new QCheckBox( tr( "Recurring task" ), container ); | 111 | ckbRecurrence = new QCheckBox( tr( "Recurring task" ), container ); |
114 | layout->addMultiCellWidget( ckbRecurrence, 4, 4, 0, 1 ); | 112 | layout->addMultiCellWidget( ckbRecurrence, 4, 4, 0, 1 ); |
115 | QWhatsThis::add( ckbRecurrence, tr( "Click here if task happens on a regular basis. If selected, frequency can be set on the Recurrence tab." ) ); | 113 | QWhatsThis::add( ckbRecurrence, tr( "Click here if task happens on a regular basis. If selected, frequency can be set on the Recurrence tab." ) ); |
116 | connect( ckbRecurrence, SIGNAL(clicked() ), this, SLOT( slotRecClicked() ) ); | 114 | connect( ckbRecurrence, SIGNAL(clicked() ), this, SLOT( slotRecClicked() ) ); |
117 | 115 | ||
118 | // Notes | 116 | // Notes |
119 | label = new QLabel( tr( "Notes:" ), container ); | 117 | label = new QLabel( tr( "Description:" ), container ); |
120 | layout->addWidget( label, 5, 0 ); | 118 | layout->addWidget( label, 5, 0 ); |
121 | QWhatsThis::add( label, tr( "Enter any additional information about this task here." ) ); | 119 | QWhatsThis::add( label, tr( "Enter any additional information about this task here." ) ); |
122 | mleNotes = new QMultiLineEdit( container ); | 120 | mleNotes = new QMultiLineEdit( container ); |
123 | mleNotes->setWordWrap( QMultiLineEdit::WidgetWidth ); | 121 | mleNotes->setWordWrap( QMultiLineEdit::WidgetWidth ); |
124 | layout->addMultiCellWidget( mleNotes, 6, 6, 0, 1 ); | 122 | layout->addMultiCellWidget( mleNotes, 6, 6, 0, 1 ); |
125 | QWhatsThis::add( mleNotes, tr( "Enter any additional information about this task here." ) ); | 123 | QWhatsThis::add( mleNotes, tr( "Enter any additional information about this task here." ) ); |
126 | } | 124 | } |
127 | 125 | ||
128 | TaskEditorOverView::~TaskEditorOverView() | 126 | TaskEditorOverView::~TaskEditorOverView() |
129 | { | 127 | { |
130 | } | 128 | } |
131 | 129 | ||