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
@@ -6,71 +6,74 @@
6 This program is free software; you can redistribute it and/or modify 6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or 8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version. 9 (at your option) any later version.
10 10
11 This program is distributed in the hope that it will be useful, 11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details. 14 GNU General Public License for more details.
15 15
16 You should have received a copy of the GNU General Public License 16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software 17 along with this program; if not, write to the Free Software
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;
45 48
46 public slots: 49 public slots:
47 void selectDates( const KCal::DateList & ); 50 void selectDates( const KCal::DateList & );
48 void selectMonth(); 51 void selectMonth();
49 52
50 signals: 53 signals:
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
76#endif 79#endif