Diffstat (limited to 'core/pim/datebook/modules/monthview/odatebookmonth.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/modules/monthview/odatebookmonth.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/pim/datebook/modules/monthview/odatebookmonth.cpp b/core/pim/datebook/modules/monthview/odatebookmonth.cpp index 5e2f1bb..d52a092 100644 --- a/core/pim/datebook/modules/monthview/odatebookmonth.cpp +++ b/core/pim/datebook/modules/monthview/odatebookmonth.cpp | |||
@@ -1,77 +1,76 @@ | |||
1 | /* this is a straight copy of datemonthview. We can not make child of | 1 | /* this is a straight copy of datemonthview. We can not make child of |
2 | * it 'cause the origin view isn't virtual in any form. | 2 | * it 'cause the origin view isn't virtual in any form. |
3 | */ | 3 | */ |
4 | /********************************************************************** | 4 | /********************************************************************** |
5 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. | 5 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. |
6 | ** | 6 | ** |
7 | ** This file is part of the Qtopia Environment. | 7 | ** This file is part of the Qtopia Environment. |
8 | ** | 8 | ** |
9 | ** This file may be distributed and/or modified under the terms of the | 9 | ** This file may be distributed and/or modified under the terms of the |
10 | ** GNU General Public License version 2 as published by the Free Software | 10 | ** GNU General Public License version 2 as published by the Free Software |
11 | ** Foundation and appearing in the file LICENSE.GPL included in the | 11 | ** Foundation and appearing in the file LICENSE.GPL included in the |
12 | ** packaging of this file. | 12 | ** packaging of this file. |
13 | ** | 13 | ** |
14 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 14 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
15 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 15 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
16 | ** | 16 | ** |
17 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 17 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
18 | ** | 18 | ** |
19 | ** Contact info@trolltech.com if any conditions of this licensing are | 19 | ** Contact info@trolltech.com if any conditions of this licensing are |
20 | ** not clear to you. | 20 | ** not clear to you. |
21 | ** | 21 | ** |
22 | **********************************************************************/ | 22 | **********************************************************************/ |
23 | #include "odatebookmonth.h" | 23 | #include "odatebookmonth.h" |
24 | #include "datebooktypes.h" | 24 | #include "datebooktypes.h" |
25 | 25 | ||
26 | #include <qpe/config.h> | 26 | #include <qpe/config.h> |
27 | #include <qpe/datebookmonth.h> | 27 | #include <qpe/datebookmonth.h> |
28 | 28 | ||
29 | #include <qpe/resource.h> | ||
30 | #include <qpe/qpeapplication.h> | 29 | #include <qpe/qpeapplication.h> |
31 | 30 | ||
32 | #include <qtoolbutton.h> | 31 | #include <qtoolbutton.h> |
33 | #include <qspinbox.h> | 32 | #include <qspinbox.h> |
34 | #include <qcombobox.h> | 33 | #include <qcombobox.h> |
35 | #include <qvaluestack.h> | 34 | #include <qvaluestack.h> |
36 | #include <qwhatsthis.h> | 35 | #include <qwhatsthis.h> |
37 | 36 | ||
38 | 37 | ||
39 | //--------------------------------------------------------------------------- | 38 | //--------------------------------------------------------------------------- |
40 | 39 | ||
41 | class ODateBookMonthTablePrivate | 40 | class ODateBookMonthTablePrivate |
42 | { | 41 | { |
43 | public: | 42 | public: |
44 | ODateBookMonthTablePrivate() {}; | 43 | ODateBookMonthTablePrivate() {}; |
45 | ~ODateBookMonthTablePrivate() { mMonthEvents.clear(); }; | 44 | ~ODateBookMonthTablePrivate() { mMonthEvents.clear(); }; |
46 | 45 | ||
47 | QValueList<EffectiveEvent> mMonthEvents; | 46 | QValueList<EffectiveEvent> mMonthEvents; |
48 | bool onMonday; | 47 | bool onMonday; |
49 | }; | 48 | }; |
50 | 49 | ||
51 | ODateBookMonthTable::ODateBookMonthTable( QWidget *parent, const char *name, | 50 | ODateBookMonthTable::ODateBookMonthTable( QWidget *parent, const char *name, |
52 | DateBookDBHoliday *newDb ) | 51 | DateBookDBHoliday *newDb ) |
53 | : QTable( 6, 7, parent, name ), | 52 | : QTable( 6, 7, parent, name ), |
54 | db( newDb ) | 53 | db( newDb ) |
55 | { | 54 | { |
56 | d = new ODateBookMonthTablePrivate(); | 55 | d = new ODateBookMonthTablePrivate(); |
57 | selYear = -1; | 56 | selYear = -1; |
58 | selMonth = -1; | 57 | selMonth = -1; |
59 | selDay = -1; | 58 | selDay = -1; |
60 | 59 | ||
61 | /* init these as well make valgrind happy and be consistent with Qtopia1.6 -zecke */ | 60 | /* init these as well make valgrind happy and be consistent with Qtopia1.6 -zecke */ |
62 | year = -1; | 61 | year = -1; |
63 | month = -1; | 62 | month = -1; |
64 | day = -1; | 63 | day = -1; |
65 | 64 | ||
66 | Config cfg( "qpe" ); | 65 | Config cfg( "qpe" ); |
67 | cfg.setGroup( "Time" ); | 66 | cfg.setGroup( "Time" ); |
68 | d->onMonday = cfg.readBoolEntry( "MONDAY" ); | 67 | d->onMonday = cfg.readBoolEntry( "MONDAY" ); |
69 | 68 | ||
70 | horizontalHeader()->setResizeEnabled( FALSE ); | 69 | horizontalHeader()->setResizeEnabled( FALSE ); |
71 | // we have to do this here... or suffer the consequences later... | 70 | // we have to do this here... or suffer the consequences later... |
72 | for ( int i = 0; i < 7; i++ ){ | 71 | for ( int i = 0; i < 7; i++ ){ |
73 | horizontalHeader()->resizeSection( i, 30 ); | 72 | horizontalHeader()->resizeSection( i, 30 ); |
74 | setColumnStretchable( i, TRUE ); | 73 | setColumnStretchable( i, TRUE ); |
75 | } | 74 | } |
76 | setupLabels(); | 75 | setupLabels(); |
77 | 76 | ||