Diffstat (limited to 'core/pim/datebook/dateentryimpl.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/datebook/dateentryimpl.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/core/pim/datebook/dateentryimpl.cpp b/core/pim/datebook/dateentryimpl.cpp index 856837c..018bb5a 100644 --- a/core/pim/datebook/dateentryimpl.cpp +++ b/core/pim/datebook/dateentryimpl.cpp | |||
@@ -1,89 +1,78 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #include "dateentryimpl.h" | 21 | #include "dateentryimpl.h" |
22 | #include "repeatentry.h" | 22 | #include "repeatentry.h" |
23 | 23 | ||
24 | #include <qpe/qpeapplication.h> | 24 | #include <qpe/qpeapplication.h> |
25 | #include <qpe/categoryselect.h> | 25 | #include <qpe/categoryselect.h> |
26 | #include <qpe/datebookmonth.h> | 26 | #include <qpe/datebookmonth.h> |
27 | #include <qpe/global.h> | ||
28 | #include <qpe/timeconversion.h> | ||
29 | #include <qpe/timestring.h> | ||
30 | #include <qpe/tzselect.h> | 27 | #include <qpe/tzselect.h> |
31 | 28 | ||
32 | #include <qevent.h> | ||
33 | #include <qcheckbox.h> | ||
34 | #include <qcombobox.h> | ||
35 | #include <qlayout.h> | ||
36 | #include <qlineedit.h> | 29 | #include <qlineedit.h> |
37 | #include <qmultilineedit.h> | ||
38 | #include <qpopupmenu.h> | ||
39 | #include <qscrollview.h> | ||
40 | #include <qspinbox.h> | 30 | #include <qspinbox.h> |
41 | #include <qtoolbutton.h> | ||
42 | 31 | ||
43 | #include <opie/otimepicker.h> | 32 | #include <opie/otimepicker.h> |
44 | #include "onoteedit.h" | 33 | #include "onoteedit.h" |
45 | 34 | ||
46 | #include <stdlib.h> | 35 | #include <stdlib.h> |
47 | #include <stdio.h> | 36 | #include <stdio.h> |
48 | 37 | ||
49 | /* | 38 | /* |
50 | * Constructs a DateEntry which is a child of 'parent', with the | 39 | * Constructs a DateEntry which is a child of 'parent', with the |
51 | * name 'name' and widget flags set to 'f' | 40 | * name 'name' and widget flags set to 'f' |
52 | * | 41 | * |
53 | * The dialog will by default be modeless, unless you set 'modal' to | 42 | * The dialog will by default be modeless, unless you set 'modal' to |
54 | * TRUE to construct a modal dialog. | 43 | * TRUE to construct a modal dialog. |
55 | */ | 44 | */ |
56 | 45 | ||
57 | DateEntry::DateEntry( bool startOnMonday, const QDateTime &start, | 46 | DateEntry::DateEntry( bool startOnMonday, const QDateTime &start, |
58 | const QDateTime &end, bool whichClock, QWidget* parent, | 47 | const QDateTime &end, bool whichClock, QWidget* parent, |
59 | const char* name ) | 48 | const char* name ) |
60 | : DateEntryBase( parent, name ), | 49 | : DateEntryBase( parent, name ), |
61 | ampm( whichClock ), | 50 | ampm( whichClock ), |
62 | startWeekOnMonday( startOnMonday ), | 51 | startWeekOnMonday( startOnMonday ), |
63 | m_showStart(true) | 52 | m_showStart(true) |
64 | { | 53 | { |
65 | init(); | 54 | init(); |
66 | setDates(start,end); | 55 | setDates(start,end); |
67 | setFocusProxy(comboDescription); | 56 | setFocusProxy(comboDescription); |
68 | } | 57 | } |
69 | 58 | ||
70 | bool DateEntry::eventFilter(QObject *obj, QEvent *ev ) | 59 | bool DateEntry::eventFilter(QObject *obj, QEvent *ev ) |
71 | { | 60 | { |
72 | if( ev->type() == QEvent::FocusIn ){ | 61 | if( ev->type() == QEvent::FocusIn ){ |
73 | if( obj == comboStart ){ | 62 | if( obj == comboStart ){ |
74 | timePickerStart->setHour(startTime.hour()); | 63 | timePickerStart->setHour(startTime.hour()); |
75 | timePickerStart->setMinute(startTime.minute()); | 64 | timePickerStart->setMinute(startTime.minute()); |
76 | TimePickerLabel->setText( tr("Start Time" ) ); | 65 | TimePickerLabel->setText( tr("Start Time" ) ); |
77 | m_showStart= true; | 66 | m_showStart= true; |
78 | }else if( obj == comboEnd ){ | 67 | }else if( obj == comboEnd ){ |
79 | timePickerStart->setHour(endTime.hour()); | 68 | timePickerStart->setHour(endTime.hour()); |
80 | timePickerStart->setMinute(endTime.minute()); | 69 | timePickerStart->setMinute(endTime.minute()); |
81 | TimePickerLabel->setText( tr("End Time") ); | 70 | TimePickerLabel->setText( tr("End Time") ); |
82 | m_showStart = false; | 71 | m_showStart = false; |
83 | } | 72 | } |
84 | } else if( ev->type() == QEvent::FocusOut ){ | 73 | } else if( ev->type() == QEvent::FocusOut ){ |
85 | // if( obj == comboEnd ){ | 74 | // if( obj == comboEnd ){ |
86 | // QString s; | 75 | // QString s; |
87 | // s.sprintf("%.2d:%.2d",endTime.hour(), endTime.minute()); | 76 | // s.sprintf("%.2d:%.2d",endTime.hour(), endTime.minute()); |
88 | // comboEnd->setText(s); | 77 | // comboEnd->setText(s); |
89 | // } | 78 | // } |