summaryrefslogtreecommitdiff
path: root/core/pim/todo/taskeditorstatus.h
Unidiff
Diffstat (limited to 'core/pim/todo/taskeditorstatus.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/taskeditorstatus.h100
1 files changed, 100 insertions, 0 deletions
diff --git a/core/pim/todo/taskeditorstatus.h b/core/pim/todo/taskeditorstatus.h
new file mode 100644
index 0000000..3544200
--- a/dev/null
+++ b/core/pim/todo/taskeditorstatus.h
@@ -0,0 +1,100 @@
1/*
2               =. This file is part of the OPIE Project
3             .=l. Copyright (c) 2002 <>
4           .>+-=
5 _;:,     .>    :=|. This program is free software; you can
6.> <`_,   >  .   <= redistribute it and/or modify it under
7:`=1 )Y*s>-.--   : the terms of the GNU General Public
8.="- .-=="i,     .._ License as published by the Free Software
9 - .   .-<_>     .<> Foundation; either version 2 of the License,
10     ._= =}       : or (at your option) any later version.
11    .%`+i>       _;_.
12    .i_,=:_.      -<s. This program is distributed in the hope that
13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
14    : ..    .:,     . . . without even the implied warranty of
15    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
16  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
17..}^=.=       =       ; Library General Public License for more
18++=   -.     .`     .: details.
19 :     =  ...= . :.=-
20 -.   .:....=;==+<; You should have received a copy of the GNU
21  -_. . .   )=.  = General Public License along with
22    --        :-=` this library; see the file COPYING.LIB.
23 If not, write to the Free Software Foundation,
24 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA.
26
27*/
28
29#ifndef TASKEDITORSTATUS_H
30#define TASKEDITORSTATUS_H
31
32#include <qdatetime.h>
33#include <qwidget.h>
34
35class DateBookMonth;
36class OTodo;
37class QCheckBox;
38class QComboBox;
39class QLabel;
40class QPushButton;
41class QToolButton;
42
43/**
44 * This is the implementation of the Opie Task Editor Advanced tab
45 * it features the State!
46 * MaintainerMode
47 * Description
48 */
49class TaskEditorStatus : public QWidget
50{
51 Q_OBJECT
52
53public:
54 TaskEditorStatus( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
55 ~TaskEditorStatus();
56
57 QComboBox *cmbStatus;
58 QLabel *txtMaintainer;
59 QToolButton *tbtMaintainer;
60 QComboBox *cmbMaintMode;
61 QCheckBox *ckbDue;
62 QPushButton *btnDue;
63 QCheckBox *ckbStart;
64 QPushButton *btnStart;
65 QCheckBox *ckbComp;
66 QPushButton *btnComp;
67 QComboBox *cmbProgress;
68
69 /*
70 * I could have a struct which returns a QWidget*
71 * load and save to a OTodo
72 * and use multiple inheretence with all other widgets
73 * and then simply iterate over the list of structs
74 * this way I could easily have plugins for the whole editor....
75 * but I do not do it -zecke
76 */
77 void load( const OTodo & );
78 void save( OTodo & );
79
80private:
81 QDate m_start;
82 QDate m_comp;
83 QDate m_due;
84 DateBookMonth *m_startBook;
85 DateBookMonth *m_compBook;
86 DateBookMonth *m_dueBook;
87
88private slots:
89 void slotStartChecked();
90 void slotCompChecked();
91 void slotDueChecked();
92 void slotStartChanged( int, int, int );
93 void slotCompChanged( int, int, int );
94 void slotDueChanged( int, int, int );
95
96signals:
97 void dueDateChanged( const QDate& date );
98};
99
100#endif // TASKEDITORSTATUS_H