summaryrefslogtreecommitdiffabout
path: root/korganizer/navigatorbar.h
Unidiff
Diffstat (limited to 'korganizer/navigatorbar.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/navigatorbar.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/korganizer/navigatorbar.h b/korganizer/navigatorbar.h
index 9ccef14..a1880f5 100644
--- a/korganizer/navigatorbar.h
+++ b/korganizer/navigatorbar.h
@@ -18,27 +18,30 @@
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 19
20 As a special exception, permission is given to link this program 20 As a special exception, permission is given to link this program
21 with any edition of Qt, and distribute the resulting executable, 21 with any edition of Qt, and distribute the resulting executable,
22 without including the source code for Qt in the source distribution. 22 without including the source code for Qt in the source distribution.
23*/ 23*/
24#ifndef NAVIGATORBAR_H 24#ifndef NAVIGATORBAR_H
25#define NAVIGATORBAR_H 25#define NAVIGATORBAR_H
26 26
27#include <libkcal/incidencebase.h> 27#include <libkcal/incidencebase.h>
28 28
29#include <qwidget.h> 29#include <qwidget.h>
30//Added by qt3to4:
31#include <Q3Frame>
32#include <QLabel>
30 33
31class QPushButton; 34class QPushButton;
32class QFrame; 35class Q3Frame;
33class QLabel; 36class QLabel;
34 37
35class NavigatorBar: public QWidget 38class NavigatorBar: public QWidget
36{ 39{
37 Q_OBJECT 40 Q_OBJECT
38 public: 41 public:
39 NavigatorBar( const QDate & date, QWidget *parent = 0, const char *name = 0 ); 42 NavigatorBar( const QDate & date, QWidget *parent = 0, const char *name = 0 );
40 ~NavigatorBar(); 43 ~NavigatorBar();
41 void showButtons( bool left, bool right ); 44 void showButtons( bool left, bool right );
42 void resetFont ( QFont fo ); 45 void resetFont ( QFont fo );
43 QSize sizeHint() const; 46 QSize sizeHint() const;
44 QSize sizeHintTwoButtons( int butNum = 2 ) const; 47 QSize sizeHintTwoButtons( int butNum = 2 ) const;
@@ -51,25 +54,25 @@ class NavigatorBar: public QWidget
51 void goNextMonth(); 54 void goNextMonth();
52 void goPrevMonth(); 55 void goPrevMonth();
53 void goNextWeek(); 56 void goNextWeek();
54 void goPrevWeek(); 57 void goPrevWeek();
55 void goNextYear(); 58 void goNextYear();
56 void goPrevYear(); 59 void goPrevYear();
57 void monthSelected( int ); 60 void monthSelected( int );
58 61
59 private: 62 private:
60 int mCurrentHei; 63 int mCurrentHei;
61 int mCurrentMinWid; 64 int mCurrentMinWid;
62 int mCurrentButtonMinWid; 65 int mCurrentButtonMinWid;
63 QFrame *mCtrlFrame; 66 Q3Frame *mCtrlFrame;
64 67
65 QPushButton *mPrevYear; 68 QPushButton *mPrevYear;
66 QPushButton *mPrevMonth; 69 QPushButton *mPrevMonth;
67 QPushButton *mNextMonth; 70 QPushButton *mNextMonth;
68 QPushButton *mPrevWeek; 71 QPushButton *mPrevWeek;
69 QPushButton *mNextWeek; 72 QPushButton *mNextWeek;
70 QPushButton *mNextYear; 73 QPushButton *mNextYear;
71 QPushButton *mSelectMonth; 74 QPushButton *mSelectMonth;
72 75
73 //QLabel *mDateLabel; 76 //QLabel *mDateLabel;
74}; 77};
75 78