Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

taskeditorstatus.h

Go to the documentation of this file.
00001 /*
00002                              This file is part of the Opie Project
00003 
00004                              Copyright (C) Opie Team <opie-devel@handhelds.org>
00005               =.
00006             .=l.
00007            .>+-=
00008  _;:,     .>    :=|.         This program is free software; you can
00009 .> <`_,   >  .   <=          redistribute it and/or  modify it under
00010 :`=1 )Y*s>-.--   :           the terms of the GNU Library General Public
00011 .="- .-=="i,     .._         License as published by the Free Software
00012  - .   .-<_>     .<>         Foundation; either version 2 of the License,
00013      ._= =}       :          or (at your option) any later version.
00014     .%`+i>       _;_.
00015     .i_,=:_.      -<s.       This program is distributed in the hope that
00016      +  .  -:.       =       it will be useful,  but WITHOUT ANY WARRANTY;
00017     : ..    .:,     . . .    without even the implied warranty of
00018     =_        +     =;=|`    MERCHANTABILITY or FITNESS FOR A
00019   _.=:.       :    :=>`:     PARTICULAR PURPOSE. See the GNU
00020 ..}^=.=       =       ;      Library General Public License for more
00021 ++=   -.     .`     .:       details.
00022 :     =  ...= . :.=-
00023  -.   .:....=;==+<;          You should have received a copy of the GNU
00024   -_. . .   )=.  =           Library General Public License along with
00025     --        :-=`           this library; see the file COPYING.LIB.
00026                              If not, write to the Free Software Foundation,
00027                              Inc., 59 Temple Place - Suite 330,
00028                              Boston, MA 02111-1307, USA.
00029 */
00030 
00031 #ifndef TASKEDITORSTATUS_H
00032 #define TASKEDITORSTATUS_H
00033 
00034 #include <opie2/opimtodo.h>
00035 
00036 #include <qdatetime.h>
00037 #include <qwidget.h>
00038 
00039 class DateBookMonth;
00040 class QCheckBox;
00041 class QComboBox;
00042 class QLabel;
00043 class QPushButton;
00044 class QToolButton;
00045 
00046 using namespace Opie;
00047 
00054 class TaskEditorStatus : public QWidget
00055 {
00056     Q_OBJECT
00057 
00058 public:
00059     TaskEditorStatus( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
00060     ~TaskEditorStatus();
00061 
00062     QComboBox      *cmbStatus;
00063     QLabel         *txtMaintainer;
00064     QToolButton    *tbtMaintainer;
00065     QComboBox      *cmbMaintMode;
00066     QCheckBox      *ckbDue;
00067     QPushButton    *btnDue;
00068     QCheckBox      *ckbStart;
00069     QPushButton    *btnStart;
00070     QCheckBox      *ckbComp;
00071     QPushButton    *btnComp;
00072     QComboBox      *cmbProgress;
00073 
00074     /*
00075      * I could have a struct which returns a QWidget*
00076      * load and save to a OPimTodo
00077      * and use multiple inheretence with all other widgets
00078      * and then simply iterate over the list of structs
00079      * this way I could easily have plugins for the whole editor....
00080      * but I do not do it -zecke
00081      */
00082     void load( const OPimTodo & );
00083     void save( OPimTodo & );
00084 
00085 private:
00086     QDate          m_start;
00087     QDate          m_comp;
00088     QDate          m_due;
00089     DateBookMonth *m_startBook;
00090     DateBookMonth *m_compBook;
00091     DateBookMonth *m_dueBook;
00092 
00093 private slots:
00094     void slotStartChecked();
00095     void slotCompChecked();
00096     void slotDueChecked();
00097     void slotStartChanged( int, int, int );
00098     void slotCompChanged( int, int, int );
00099     void slotDueChanged( int, int, int );
00100 
00101 signals:
00102     void dueDateChanged( const QDate& date );
00103 };
00104 
00105 #endif // TASKEDITORSTATUS_H

Generated on Sat Nov 5 16:15:56 2005 for OPIE by  doxygen 1.4.2