Diffstat (limited to 'libopie2/opiepim/ui/opimrecurrencewidget.h') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiepim/ui/opimrecurrencewidget.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/libopie2/opiepim/ui/opimrecurrencewidget.h b/libopie2/opiepim/ui/opimrecurrencewidget.h index 3f28565..2c315b3 100644 --- a/libopie2/opiepim/ui/opimrecurrencewidget.h +++ b/libopie2/opiepim/ui/opimrecurrencewidget.h | |||
@@ -8,64 +8,62 @@ | |||
8 | #include <opie2/opimrecurrence.h> | 8 | #include <opie2/opimrecurrence.h> |
9 | 9 | ||
10 | #include <qpe/datebookmonth.h> | 10 | #include <qpe/datebookmonth.h> |
11 | 11 | ||
12 | #include <qlist.h> | 12 | #include <qlist.h> |
13 | #include <qtoolbutton.h> | 13 | #include <qtoolbutton.h> |
14 | #include <qcheckbox.h> | 14 | #include <qcheckbox.h> |
15 | #include <qdatetime.h> | 15 | #include <qdatetime.h> |
16 | #include <qbuttongroup.h> | 16 | #include <qbuttongroup.h> |
17 | 17 | ||
18 | #include "opimrecurrencebase.h" | 18 | #include "opimrecurrencebase.h" |
19 | 19 | ||
20 | using namespace Opie; | ||
21 | |||
22 | /** | 20 | /** |
23 | * A widget to let the user select rules for recurrences. | 21 | * A widget to let the user select rules for recurrences. |
24 | * This widget can take care of weekly, monthly, daily and yearly recurrence | 22 | * This widget can take care of weekly, monthly, daily and yearly recurrence |
25 | * It is used inside todolist and datebook. | 23 | * It is used inside todolist and datebook. |
26 | * | 24 | * |
27 | * | 25 | * |
28 | * @short Widget of selecting Recurrance | 26 | * @short Widget of selecting Recurrance |
29 | * @author Trolltech, Holger Freyther | 27 | * @author Trolltech, Holger Freyther |
30 | * @version 0.9 | 28 | * @version 0.9 |
31 | */ | 29 | */ |
32 | class OPimRecurrenceWidget : public OPimRecurrenceBase { | 30 | class OPimRecurrenceWidget : public OPimRecurrenceBase { |
33 | Q_OBJECT | 31 | Q_OBJECT |
34 | public: | 32 | public: |
35 | OPimRecurrenceWidget( bool startOnMonday, | 33 | OPimRecurrenceWidget( bool startOnMonday, |
36 | const QDate& start, QWidget* parent = 0, | 34 | const QDate& start, QWidget* parent = 0, |
37 | const char* name = 0, bool modal = TRUE, | 35 | const char* name = 0, bool modal = TRUE, |
38 | WFlags fl = 0 ); | 36 | WFlags fl = 0 ); |
39 | OPimRecurrenceWidget( bool startOnMonday, | 37 | OPimRecurrenceWidget( bool startOnMonday, |
40 | const OPimRecurrence& rp, const QDate& start, | 38 | const Opie::OPimRecurrence& rp, const QDate& start, |
41 | QWidget* parent = 0, const char* name =0, | 39 | QWidget* parent = 0, const char* name =0, |
42 | bool modal = TRUE, WFlags = 0 ); | 40 | bool modal = TRUE, WFlags = 0 ); |
43 | ~OPimRecurrenceWidget(); | 41 | ~OPimRecurrenceWidget(); |
44 | OPimRecurrence recurrence()const; | 42 | Opie::OPimRecurrence recurrence()const; |
45 | QDate endDate()const; | 43 | QDate endDate()const; |
46 | 44 | ||
47 | public slots: | 45 | public slots: |
48 | void slotSetRType( int ); | 46 | void slotSetRType( int ); |
49 | /** | 47 | /** |
50 | * set the new end date | 48 | * set the new end date |
51 | */ | 49 | */ |
52 | void endDateChanged( int, int, int ); | 50 | void endDateChanged( int, int, int ); |
53 | /** | 51 | /** |
54 | * enable/disable end date | 52 | * enable/disable end date |
55 | */ | 53 | */ |
56 | void slotNoEnd( bool unused ); | 54 | void slotNoEnd( bool unused ); |
57 | void setStartDate( const QDate& ); | 55 | void setStartDate( const QDate& ); |
58 | void setRecurrence( const OPimRecurrence& recur, const QDate& start ); | 56 | void setRecurrence( const Opie::OPimRecurrence& recur, const QDate& start ); |
59 | void setRecurrence( const OPimRecurrence& recur ); | 57 | void setRecurrence( const Opie::OPimRecurrence& recur ); |
60 | 58 | ||
61 | private slots: | 59 | private slots: |
62 | void setupRepeatLabel( const QString& ); | 60 | void setupRepeatLabel( const QString& ); |
63 | void setupRepeatLabel( int ); | 61 | void setupRepeatLabel( int ); |
64 | void slotWeekLabel(); | 62 | void slotWeekLabel(); |
65 | void slotMonthLabel( int ); | 63 | void slotMonthLabel( int ); |
66 | void slotChangeStartOfWeek( bool onMonday ); | 64 | void slotChangeStartOfWeek( bool onMonday ); |
67 | 65 | ||
68 | private: | 66 | private: |
69 | void setupNone(); | 67 | void setupNone(); |
70 | void setupDaily(); | 68 | void setupDaily(); |
71 | void setupWeekly(); | 69 | void setupWeekly(); |