libopie API Documentation

orecurrancewidget.h

00001 /*
00002  * GPL and based on the widget from TT
00003  */
00004 
00005 #ifndef OPIE_RECURRANCE_WIDGET_H
00006 #define OPIE_RECURRANCE_WIDGET_H
00007 
00008 #include <qlist.h>
00009 #include <qtoolbutton.h>
00010 #include <qcheckbox.h>
00011 #include <qdatetime.h>
00012 #include <qbuttongroup.h>
00013 
00014 #include <qpe/datebookmonth.h>
00015 
00016 #include "orecurrancebase.h"
00017 #include <opie/orecur.h>
00018 
00019 // FIXME spelling!!!! -zecke
00020 // FIXME spelling filenames
00021 
00032 class ORecurranceWidget : public ORecurranceBase {
00033     Q_OBJECT
00034 public:
00035     ORecurranceWidget( bool startOnMonday,
00036                        const QDate& start, QWidget* parent = 0,
00037                        const char* name = 0,  bool modal = TRUE,
00038                        WFlags fl = 0 );
00039     ORecurranceWidget( bool startOnMonday,
00040                        const ORecur& rp, const QDate& start,
00041                        QWidget* parent = 0, const char* name =0,
00042                        bool modal = TRUE, WFlags = 0 );
00043     ~ORecurranceWidget();
00044     ORecur recurrence()const;
00045     QDate endDate()const;
00046 
00047 public slots:
00048     void slotSetRType( int );
00052     void endDateChanged( int, int, int );
00056     void slotNoEnd( bool unused );
00057     void setStartDate( const QDate& );
00058     void setRecurrence( const ORecur& recur, const QDate& start );
00059     void setRecurrence( const ORecur& recur );
00060 
00061 private slots:
00062     void setupRepeatLabel( const QString& );
00063     void setupRepeatLabel( int );
00064     void slotWeekLabel();
00065     void slotMonthLabel( int );
00066     void slotChangeStartOfWeek( bool onMonday );
00067 
00068 private:
00069     void setupNone();
00070     void setupDaily();
00071     void setupWeekly();
00072     void setupMonthly();
00073     void setupYearly();
00074 
00075     enum repeatButtons { None, Day, Week, Month, Year };
00076     void init();
00077     void hideExtras();
00078     void showRepeatStuff();
00079 
00080     QList<QToolButton> listRTypeButtons;
00081     QList<QToolButton> listExtra;
00082     QDate start;    // only used in one spot...
00083     QDate end;
00084     repeatButtons currInterval;
00085     bool startWeekOnMonday : 1;
00086     DateBookMonth *repeatPicker;
00087     
00088     class Private;
00089     Private *d;
00090 
00091 };
00092 
00093 #endif
KDE Logo
This file is part of the documentation for OPIE Version 1.1.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:24:45 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001