Diffstat (limited to 'core/pim/datebook/datebookweekheaderimpl.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebookweekheaderimpl.h | 49 |
1 files changed, 30 insertions, 19 deletions
diff --git a/core/pim/datebook/datebookweekheaderimpl.h b/core/pim/datebook/datebookweekheaderimpl.h index d8dce90..0b388b4 100644 --- a/core/pim/datebook/datebookweekheaderimpl.h +++ b/core/pim/datebook/datebookweekheaderimpl.h | |||
@@ -1,51 +1,62 @@ | |||
1 | /********************************************************************** | 1 | /* |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | This file is part of the Opie Project |
3 | ** | 3 | |
4 | ** This file is part of Qtopia Environment. | 4 | Copyright (C) Opie Team <opie-devel@handhelds.org> |
5 | ** | 5 | =. |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | .=l. |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | .>+-= |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | _;:, .> :=|. This program is free software; you can |
9 | ** packaging of this file. | 9 | .> <`_, > . <= redistribute it and/or modify it under |
10 | ** | 10 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | .="- .-=="i, .._ License as published by the Free Software |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | - . .-<_> .<> Foundation; either version 2 of the License, |
13 | ** | 13 | ._= =} : or (at your option) any later version. |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | .%`+i> _;_. |
15 | ** | 15 | .i_,=:_. -<s. This program is distributed in the hope that |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
17 | ** not clear to you. | 17 | : .. .:, . . . without even the implied warranty of |
18 | ** | 18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
19 | **********************************************************************/ | 19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
20 | ..}^=.= = ; Library General Public License for more | ||
21 | ++= -. .` .: details. | ||
22 | : = ...= . :.=- | ||
23 | -. .:....=;==+<; You should have received a copy of the GNU | ||
24 | -_. . . )=. = Library General Public License along with | ||
25 | -- :-=` this library; see the file COPYING.LIB. | ||
26 | If not, write to the Free Software Foundation, | ||
27 | Inc., 59 Temple Place - Suite 330, | ||
28 | Boston, MA 02111-1307, USA. | ||
29 | */ | ||
30 | |||
20 | #ifndef DATEBOOKDAYHEADER_H | 31 | #ifndef DATEBOOKDAYHEADER_H |
21 | #define DATEBOOKDAYHEADER_H | 32 | #define DATEBOOKDAYHEADER_H |
22 | #include <qdatetime.h> | 33 | #include <qdatetime.h> |
23 | #include "datebookweekheader.h" | 34 | #include "datebookweekheader.h" |
24 | 35 | ||
25 | 36 | ||
26 | class DateBookWeekHeader : public DateBookWeekHeaderBase | 37 | class DateBookWeekHeader : public DateBookWeekHeaderBase |
27 | { | 38 | { |
28 | Q_OBJECT | 39 | Q_OBJECT |
29 | 40 | ||
30 | public: | 41 | public: |
31 | DateBookWeekHeader( bool startOnMonday, QWidget* parent = 0, | 42 | DateBookWeekHeader( bool startOnMonday, QWidget* parent = 0, |
32 | const char* name = 0, WFlags fl = 0 ); | 43 | const char* name = 0, WFlags fl = 0 ); |
33 | ~DateBookWeekHeader(); | 44 | ~DateBookWeekHeader(); |
34 | 45 | ||
35 | void setDate(const QDate &d); | 46 | void setDate(const QDate &d); |
36 | void setStartOfWeek( bool onMonday ); | 47 | void setStartOfWeek( bool onMonday ); |
37 | 48 | ||
38 | signals: | 49 | signals: |
39 | void dateChanged( QDate &date ); | 50 | void dateChanged( QDate &date ); |
40 | 51 | ||
41 | public slots: | 52 | public slots: |
42 | void pickDate(); | 53 | void pickDate(); |
43 | void nextMonth(); | 54 | void nextMonth(); |
44 | void prevMonth(); | 55 | void prevMonth(); |
45 | void nextWeek(); | 56 | void nextWeek(); |
46 | void prevWeek(); | 57 | void prevWeek(); |
47 | void setDate( int y, int m, int d); | 58 | void setDate( int y, int m, int d); |
48 | 59 | ||
49 | protected slots: | 60 | protected slots: |
50 | void keyPressEvent(QKeyEvent *e) { e->ignore(); } | 61 | void keyPressEvent(QKeyEvent *e) { e->ignore(); } |
51 | 62 | ||