summaryrefslogtreecommitdiff
path: root/noncore/unsupported/libopie/orecurrancewidget.h
authormickeyl <mickeyl>2004-11-16 19:14:18 (UTC)
committer mickeyl <mickeyl>2004-11-16 19:14:18 (UTC)
commitea3945a9bd8f9830f70b1efa133f9df13b19362f (patch) (unidiff)
treef2ea22cc50e9aa8aa73ee7dea148f41c563c9666 /noncore/unsupported/libopie/orecurrancewidget.h
parent1c6f490e8541626f68422e0a3a7c7281d7f5b7d3 (diff)
downloadopie-ea3945a9bd8f9830f70b1efa133f9df13b19362f.zip
opie-ea3945a9bd8f9830f70b1efa133f9df13b19362f.tar.gz
opie-ea3945a9bd8f9830f70b1efa133f9df13b19362f.tar.bz2
libopie1 goes into unsupported
Diffstat (limited to 'noncore/unsupported/libopie/orecurrancewidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/libopie/orecurrancewidget.h93
1 files changed, 93 insertions, 0 deletions
diff --git a/noncore/unsupported/libopie/orecurrancewidget.h b/noncore/unsupported/libopie/orecurrancewidget.h
new file mode 100644
index 0000000..37a57f0
--- a/dev/null
+++ b/noncore/unsupported/libopie/orecurrancewidget.h
@@ -0,0 +1,93 @@
1/*
2 * GPL and based on the widget from TT
3 */
4
5#ifndef OPIE_RECURRANCE_WIDGET_H
6#define OPIE_RECURRANCE_WIDGET_H
7
8#include <qlist.h>
9#include <qtoolbutton.h>
10#include <qcheckbox.h>
11#include <qdatetime.h>
12#include <qbuttongroup.h>
13
14#include <qpe/datebookmonth.h>
15
16#include "orecurrancebase.h"
17#include <opie/orecur.h>
18
19// FIXME spelling!!!! -zecke
20// FIXME spelling filenames
21
22/**
23 * A widget to let the user select rules for recurrences.
24 * This widget can take care of weekly, monthly, daily and yearly recurrence
25 * It is used inside todolist and datebook.
26 *
27 *
28 * @short Widget of selecting Recurrance
29 * @author Trolltech, Holger Freyther
30 * @version 0.9
31 */
32class ORecurranceWidget : public ORecurranceBase {
33 Q_OBJECT
34public:
35 ORecurranceWidget( bool startOnMonday,
36 const QDate& start, QWidget* parent = 0,
37 const char* name = 0, bool modal = TRUE,
38 WFlags fl = 0 );
39 ORecurranceWidget( bool startOnMonday,
40 const ORecur& rp, const QDate& start,
41 QWidget* parent = 0, const char* name =0,
42 bool modal = TRUE, WFlags = 0 );
43 ~ORecurranceWidget();
44 ORecur recurrence()const;
45 QDate endDate()const;
46
47public slots:
48 void slotSetRType( int );
49 /**
50 * set the new end date
51 */
52 void endDateChanged( int, int, int );
53 /**
54 * enable/disable end date
55 */
56 void slotNoEnd( bool unused );
57 void setStartDate( const QDate& );
58 void setRecurrence( const ORecur& recur, const QDate& start );
59 void setRecurrence( const ORecur& recur );
60
61private slots:
62 void setupRepeatLabel( const QString& );
63 void setupRepeatLabel( int );
64 void slotWeekLabel();
65 void slotMonthLabel( int );
66 void slotChangeStartOfWeek( bool onMonday );
67
68private:
69 void setupNone();
70 void setupDaily();
71 void setupWeekly();
72 void setupMonthly();
73 void setupYearly();
74
75 enum repeatButtons { None, Day, Week, Month, Year };
76 void init();
77 void hideExtras();
78 void showRepeatStuff();
79
80 QList<QToolButton> listRTypeButtons;
81 QList<QToolButton> listExtra;
82 QDate start; // only used in one spot...
83 QDate end;
84 repeatButtons currInterval;
85 bool startWeekOnMonday : 1;
86 DateBookMonth *repeatPicker;
87
88 class Private;
89 Private *d;
90
91};
92
93#endif