-rw-r--r-- | core/pim/datebook/datebook.pro | 4 | ||||
-rw-r--r-- | core/pim/datebook/datebookweeklst.cpp | 1 | ||||
-rw-r--r-- | core/pim/datebook/datebookweeklstdayhdr.ui | 8 | ||||
-rw-r--r-- | core/pim/datebook/dateentry.ui | 6 | ||||
-rw-r--r-- | core/pim/datebook/dateentryimpl.cpp | 1 | ||||
-rw-r--r-- | core/pim/datebook/namespace_hack.h | 20 |
6 files changed, 31 insertions, 9 deletions
diff --git a/core/pim/datebook/datebook.pro b/core/pim/datebook/datebook.pro index 2b2efaa..dbdd31b 100644 --- a/core/pim/datebook/datebook.pro +++ b/core/pim/datebook/datebook.pro | |||
@@ -1,40 +1,40 @@ | |||
1 | CONFIG += qt warn_on release quick-app | 1 | CONFIG += qt warn_on release quick-app |
2 | HEADERS= datebookday.h \ | 2 | HEADERS= datebookday.h \ |
3 | datebook.h \ | 3 | datebook.h \ |
4 | dateentryimpl.h \ | 4 | dateentryimpl.h \ |
5 | datebookdayheaderimpl.h \ | 5 | datebookdayheaderimpl.h \ |
6 | datebooksettings.h \ | 6 | datebooksettings.h \ |
7 | datebookweek.h \ | 7 | datebookweek.h \ |
8 | datebookweeklst.h \ | 8 | datebookweeklst.h \ |
9 | datebookweekheaderimpl.h \ | 9 | datebookweekheaderimpl.h \ |
10 | repeatentry.h \ | 10 | repeatentry.h \ |
11 | noteentryimpl.h \ | 11 | noteentryimpl.h \ |
12 | onoteedit.h \ | 12 | onoteedit.h \ |
13 | datebookdayallday.h | 13 | datebookdayallday.h |
14 | SOURCES= main.cpp \ | 14 | SOURCES= main.cpp \ |
15 | datebookday.cpp \ | 15 | datebookday.cpp \ |
16 | datebook.cpp \ | 16 | datebook.cpp \ |
17 | dateentryimpl.cpp \ | 17 | dateentryimpl.cpp \ |
18 | datebookdayheaderimpl.cpp \ | 18 | datebookdayheaderimpl.cpp \ |
19 | datebooksettings.cpp \ | 19 | datebooksettings.cpp \ |
20 | datebookweek.cpp \ | 20 | datebookweek.cpp \ |
21 | datebookweeklst.cpp \ | 21 | datebookweeklst.cpp \ |
22 | datebookweekheaderimpl.cpp \ | 22 | datebookweekheaderimpl.cpp \ |
23 | repeatentry.cpp \ | 23 | repeatentry.cpp \ |
24 | noteentryimpl.cpp \ | 24 | noteentryimpl.cpp \ |
25 | onoteedit.cpp \ | 25 | onoteedit.cpp \ |
26 | datebookdayallday.cpp | 26 | datebookdayallday.cpp |
27 | INTERFACES= dateentry.ui \ | 27 | INTERFACES= dateentry.ui \ |
28 | datebookdayheader.ui \ | 28 | datebookdayheader.ui \ |
29 | datebookweekheader.ui \ | 29 | datebookweekheader.ui \ |
30 | datebookweeklstheader.ui \ | 30 | datebookweeklstheader.ui \ |
31 | datebookweeklstdayhdr.ui \ | 31 | datebookweeklstdayhdr.ui \ |
32 | repeatentrybase.ui \ | 32 | repeatentrybase.ui \ |
33 | datebooksettingsbase.ui \ | 33 | datebooksettingsbase.ui \ |
34 | noteentry.ui | 34 | noteentry.ui |
35 | INCLUDEPATH += $(OPIEDIR)/include | 35 | INCLUDEPATH += $(OPIEDIR)/include |
36 | DEPENDPATH+= $(OPIEDIR)/include | 36 | DEPENDPATH+= $(OPIEDIR)/include |
37 | LIBS += -lqpe -lopieui2 | 37 | LIBS += -lqpe -lopieui2 |
38 | TARGET = datebook | 38 | TARGET = datebook |
39 | 39 | ||
40 | include ( $(OPIEDIR)/include.pro ) | 40 | include ( $(OPIEDIR)/include.pro ) |
diff --git a/core/pim/datebook/datebookweeklst.cpp b/core/pim/datebook/datebookweeklst.cpp index 30c925d..abaf3ea 100644 --- a/core/pim/datebook/datebookweeklst.cpp +++ b/core/pim/datebook/datebookweeklst.cpp | |||
@@ -1,48 +1,49 @@ | |||
1 | #include "namespace_hack.h" | ||
1 | #include "datebookweeklst.h" | 2 | #include "datebookweeklst.h" |
2 | 3 | ||
3 | 4 | ||
4 | #include "datebook.h" | 5 | #include "datebook.h" |
5 | 6 | ||
6 | #include <qpe/datebookmonth.h> | 7 | #include <qpe/datebookmonth.h> |
7 | #include <qpe/config.h> | 8 | #include <qpe/config.h> |
8 | #include <qpe/resource.h> | 9 | #include <qpe/resource.h> |
9 | 10 | ||
10 | #include <qlayout.h> | 11 | #include <qlayout.h> |
11 | #include <qtoolbutton.h> | 12 | #include <qtoolbutton.h> |
12 | #include <qtl.h> | 13 | #include <qtl.h> |
13 | 14 | ||
14 | bool calcWeek(const QDate &d, int &week, int &year,bool startOnMonday = false); | 15 | bool calcWeek(const QDate &d, int &week, int &year,bool startOnMonday = false); |
15 | 16 | ||
16 | using namespace Opie::Ui; | 17 | using namespace Opie::Ui; |
17 | DateBookWeekLstHeader::DateBookWeekLstHeader(bool onM, QWidget* parent, const char* name, WFlags fl) | 18 | DateBookWeekLstHeader::DateBookWeekLstHeader(bool onM, QWidget* parent, const char* name, WFlags fl) |
18 | : DateBookWeekLstHeaderBase(parent, name, fl) | 19 | : DateBookWeekLstHeaderBase(parent, name, fl) |
19 | { | 20 | { |
20 | setBackgroundMode( PaletteButton ); | 21 | setBackgroundMode( PaletteButton ); |
21 | labelDate->setBackgroundMode( PaletteButton ); | 22 | labelDate->setBackgroundMode( PaletteButton ); |
22 | forwardweek->setBackgroundMode( PaletteButton ); | 23 | forwardweek->setBackgroundMode( PaletteButton ); |
23 | forwardweek->setPixmap( Resource::loadPixmap("forward") ); | 24 | forwardweek->setPixmap( Resource::loadPixmap("forward") ); |
24 | forwardmonth->setBackgroundMode( PaletteButton ); | 25 | forwardmonth->setBackgroundMode( PaletteButton ); |
25 | forwardmonth->setPixmap( Resource::loadPixmap("fastforward") ); | 26 | forwardmonth->setPixmap( Resource::loadPixmap("fastforward") ); |
26 | backweek->setBackgroundMode( PaletteButton ); | 27 | backweek->setBackgroundMode( PaletteButton ); |
27 | backweek->setPixmap( Resource::loadPixmap("back") ); | 28 | backweek->setPixmap( Resource::loadPixmap("back") ); |
28 | backmonth->setBackgroundMode( PaletteButton ); | 29 | backmonth->setBackgroundMode( PaletteButton ); |
29 | backmonth->setPixmap( Resource::loadPixmap("fastback") ); | 30 | backmonth->setPixmap( Resource::loadPixmap("fastback") ); |
30 | DateBookWeekLstHeaderBaseLayout->setSpacing(0); | 31 | DateBookWeekLstHeaderBaseLayout->setSpacing(0); |
31 | DateBookWeekLstHeaderBaseLayout->setMargin(0); | 32 | DateBookWeekLstHeaderBaseLayout->setMargin(0); |
32 | //setSizePolicy(QSizePolicy(QSizePolicy::Fixed,QSizePolicy::Expanding)); | 33 | //setSizePolicy(QSizePolicy(QSizePolicy::Fixed,QSizePolicy::Expanding)); |
33 | setSizePolicy(QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Fixed)); | 34 | setSizePolicy(QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Fixed)); |
34 | 35 | ||
35 | connect(backmonth, SIGNAL(clicked()), this, SLOT(prevMonth())); | 36 | connect(backmonth, SIGNAL(clicked()), this, SLOT(prevMonth())); |
36 | connect(backweek, SIGNAL(clicked()), this, SLOT(prevWeek())); | 37 | connect(backweek, SIGNAL(clicked()), this, SLOT(prevWeek())); |
37 | connect(forwardweek, SIGNAL(clicked()), this, SLOT(nextWeek())); | 38 | connect(forwardweek, SIGNAL(clicked()), this, SLOT(nextWeek())); |
38 | connect(forwardmonth, SIGNAL(clicked()), this, SLOT(nextMonth())); | 39 | connect(forwardmonth, SIGNAL(clicked()), this, SLOT(nextMonth())); |
39 | connect(labelDate, SIGNAL(clicked()), this, SLOT(pickDate())); | 40 | connect(labelDate, SIGNAL(clicked()), this, SLOT(pickDate())); |
40 | connect(dbl, SIGNAL(toggled(bool)), this, SIGNAL(setDbl(bool))); | 41 | connect(dbl, SIGNAL(toggled(bool)), this, SIGNAL(setDbl(bool))); |
41 | bStartOnMonday=onM; | 42 | bStartOnMonday=onM; |
42 | } | 43 | } |
43 | DateBookWeekLstHeader::~DateBookWeekLstHeader(){} | 44 | DateBookWeekLstHeader::~DateBookWeekLstHeader(){} |
44 | 45 | ||
45 | void DateBookWeekLstHeader::setDate(const QDate &d) { | 46 | void DateBookWeekLstHeader::setDate(const QDate &d) { |
46 | int year,week,dayofweek; | 47 | int year,week,dayofweek; |
47 | date=d; | 48 | date=d; |
48 | dayofweek=d.dayOfWeek(); | 49 | dayofweek=d.dayOfWeek(); |
diff --git a/core/pim/datebook/datebookweeklstdayhdr.ui b/core/pim/datebook/datebookweeklstdayhdr.ui index 9499726..74ea584 100644 --- a/core/pim/datebook/datebookweeklstdayhdr.ui +++ b/core/pim/datebook/datebookweeklstdayhdr.ui | |||
@@ -15,131 +15,131 @@ | |||
15 | <height>5</height> | 15 | <height>5</height> |
16 | </rect> | 16 | </rect> |
17 | </property> | 17 | </property> |
18 | <property stdset="1"> | 18 | <property stdset="1"> |
19 | <name>sizePolicy</name> | 19 | <name>sizePolicy</name> |
20 | <sizepolicy> | 20 | <sizepolicy> |
21 | <hsizetype>7</hsizetype> | 21 | <hsizetype>7</hsizetype> |
22 | <vsizetype>0</vsizetype> | 22 | <vsizetype>0</vsizetype> |
23 | </sizepolicy> | 23 | </sizepolicy> |
24 | </property> | 24 | </property> |
25 | <property> | 25 | <property> |
26 | <name>layoutMargin</name> | 26 | <name>layoutMargin</name> |
27 | </property> | 27 | </property> |
28 | <hbox> | 28 | <hbox> |
29 | <property stdset="1"> | 29 | <property stdset="1"> |
30 | <name>margin</name> | 30 | <name>margin</name> |
31 | <number>0</number> | 31 | <number>0</number> |
32 | </property> | 32 | </property> |
33 | <property stdset="1"> | 33 | <property stdset="1"> |
34 | <name>spacing</name> | 34 | <name>spacing</name> |
35 | <number>6</number> | 35 | <number>6</number> |
36 | </property> | 36 | </property> |
37 | <widget> | 37 | <widget> |
38 | <class>Line</class> | 38 | <class>Line</class> |
39 | <property stdset="1"> | 39 | <property stdset="1"> |
40 | <name>name</name> | 40 | <name>name</name> |
41 | <cstring>Line1</cstring> | 41 | <cstring>Line1</cstring> |
42 | </property> | 42 | </property> |
43 | <property stdset="1"> | 43 | <property stdset="1"> |
44 | <name>minimumSize</name> | 44 | <name>minimumSize</name> |
45 | <size> | 45 | <size> |
46 | <width>0</width> | 46 | <width>0</width> |
47 | <height>0</height> | 47 | <height>0</height> |
48 | </size> | 48 | </size> |
49 | </property> | 49 | </property> |
50 | <property stdset="1"> | 50 | <property stdset="1"> |
51 | <name>maximumSize</name> | 51 | <name>maximumSize</name> |
52 | <size> | 52 | <size> |
53 | <width>32767</width> | 53 | <width>32767</width> |
54 | <height>32767</height> | 54 | <height>32767</height> |
55 | </size> | 55 | </size> |
56 | </property> | 56 | </property> |
57 | <property stdset="1"> | 57 | <property stdset="1"> |
58 | <name>orientation</name> | 58 | <name>orientation</name> |
59 | <enum>Horizontal</enum> | 59 | <enum>Horizontal</enum> |
60 | </property> | 60 | </property> |
61 | </widget> | 61 | </widget> |
62 | <widget> | 62 | <widget> |
63 | <class>OClickableLabel</class> | 63 | <class>ClickableLabel</class> |
64 | <property stdset="1"> | 64 | <property stdset="1"> |
65 | <name>name</name> | 65 | <name>name</name> |
66 | <cstring>label</cstring> | 66 | <cstring>label</cstring> |
67 | </property> | 67 | </property> |
68 | <property stdset="1"> | 68 | <property stdset="1"> |
69 | <name>sizePolicy</name> | 69 | <name>sizePolicy</name> |
70 | <sizepolicy> | 70 | <sizepolicy> |
71 | <hsizetype>0</hsizetype> | 71 | <hsizetype>0</hsizetype> |
72 | <vsizetype>0</vsizetype> | 72 | <vsizetype>0</vsizetype> |
73 | </sizepolicy> | 73 | </sizepolicy> |
74 | </property> | 74 | </property> |
75 | <property stdset="1"> | 75 | <property stdset="1"> |
76 | <name>font</name> | 76 | <name>font</name> |
77 | <font> | 77 | <font> |
78 | <bold>1</bold> | 78 | <bold>1</bold> |
79 | </font> | 79 | </font> |
80 | </property> | 80 | </property> |
81 | </widget> | 81 | </widget> |
82 | <widget> | 82 | <widget> |
83 | <class>Line</class> | 83 | <class>Line</class> |
84 | <property stdset="1"> | 84 | <property stdset="1"> |
85 | <name>name</name> | 85 | <name>name</name> |
86 | <cstring>Line1_2</cstring> | 86 | <cstring>Line1_2</cstring> |
87 | </property> | 87 | </property> |
88 | <property stdset="1"> | 88 | <property stdset="1"> |
89 | <name>minimumSize</name> | 89 | <name>minimumSize</name> |
90 | <size> | 90 | <size> |
91 | <width>0</width> | 91 | <width>0</width> |
92 | <height>0</height> | 92 | <height>0</height> |
93 | </size> | 93 | </size> |
94 | </property> | 94 | </property> |
95 | <property stdset="1"> | 95 | <property stdset="1"> |
96 | <name>maximumSize</name> | 96 | <name>maximumSize</name> |
97 | <size> | 97 | <size> |
98 | <width>32767</width> | 98 | <width>32767</width> |
99 | <height>32767</height> | 99 | <height>32767</height> |
100 | </size> | 100 | </size> |
101 | </property> | 101 | </property> |
102 | <property stdset="1"> | 102 | <property stdset="1"> |
103 | <name>orientation</name> | 103 | <name>orientation</name> |
104 | <enum>Horizontal</enum> | 104 | <enum>Horizontal</enum> |
105 | </property> | 105 | </property> |
106 | </widget> | 106 | </widget> |
107 | <widget> | 107 | <widget> |
108 | <class>OClickableLabel</class> | 108 | <class>ClickableLabel</class> |
109 | <property stdset="1"> | 109 | <property stdset="1"> |
110 | <name>name</name> | 110 | <name>name</name> |
111 | <cstring>add</cstring> | 111 | <cstring>add</cstring> |
112 | </property> | 112 | </property> |
113 | <property stdset="1"> | 113 | <property stdset="1"> |
114 | <name>sizePolicy</name> | 114 | <name>sizePolicy</name> |
115 | <sizepolicy> | 115 | <sizepolicy> |
116 | <hsizetype>0</hsizetype> | 116 | <hsizetype>0</hsizetype> |
117 | <vsizetype>0</vsizetype> | 117 | <vsizetype>0</vsizetype> |
118 | </sizepolicy> | 118 | </sizepolicy> |
119 | </property> | 119 | </property> |
120 | </widget> | 120 | </widget> |
121 | </hbox> | 121 | </hbox> |
122 | </widget> | 122 | </widget> |
123 | <customwidgets> | 123 | <customwidgets> |
124 | <customwidget> | 124 | <customwidget> |
125 | <class>OClickableLabel</class> | 125 | <class>ClickableLabel</class> |
126 | <header location="global">opie/oclickablelabel.h</header> | 126 | <header location="local">namespace_hack.h</header> |
127 | <sizehint> | 127 | <sizehint> |
128 | <width>-1</width> | 128 | <width>-1</width> |
129 | <height>-1</height> | 129 | <height>-1</height> |
130 | </sizehint> | 130 | </sizehint> |
131 | <container>0</container> | 131 | <container>0</container> |
132 | <sizepolicy> | 132 | <sizepolicy> |
133 | <hordata>5</hordata> | 133 | <hordata>5</hordata> |
134 | <verdata>5</verdata> | 134 | <verdata>5</verdata> |
135 | </sizepolicy> | 135 | </sizepolicy> |
136 | <pixmap>image0</pixmap> | 136 | <pixmap>image0</pixmap> |
137 | </customwidget> | 137 | </customwidget> |
138 | </customwidgets> | 138 | </customwidgets> |
139 | <images> | 139 | <images> |
140 | <image> | 140 | <image> |
141 | <name>image0</name> | 141 | <name>image0</name> |
142 | <data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1ddec44f503c0ae2a154410f53d0ed20e2bf6bdb656dd6861dd23d9a66591b0587fd1654235ebded6f0edcd53e419d87ae7b1f4f9b8f906d0bfe012317426a70b07bdc2f3ec77f8ed6b89559061a0343d06a124cc105596482585094bc0ae599b04646c9018926491b2205e140c485cace25755c175d0a967b622ff900b8cc9c7d29af594ea722d589167f813aa852ba07d94b9dce296e883fe7bb163f23896753</data> | 142 | <data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1ddec44f503c0ae2a154410f53d0ed20e2bf6bdb656dd6861dd23d9a66591b0587fd1654235ebded6f0edcd53e419d87ae7b1f4f9b8f906d0bfe012317426a70b07bdc2f3ec77f8ed6b89559061a0343d06a124cc105596482585094bc0ae599b04646c9018926491b2205e140c485cace25755c175d0a967b622ff900b8cc9c7d29af594ea722d589167f813aa852ba07d94b9dce296e883fe7bb163f23896753</data> |
143 | </image> | 143 | </image> |
144 | </images> | 144 | </images> |
145 | </UI> | 145 | </UI> |
diff --git a/core/pim/datebook/dateentry.ui b/core/pim/datebook/dateentry.ui index acc607c..f776911 100644 --- a/core/pim/datebook/dateentry.ui +++ b/core/pim/datebook/dateentry.ui | |||
@@ -256,97 +256,97 @@ | |||
256 | <hsizetype>3</hsizetype> | 256 | <hsizetype>3</hsizetype> |
257 | <vsizetype>0</vsizetype> | 257 | <vsizetype>0</vsizetype> |
258 | </sizepolicy> | 258 | </sizepolicy> |
259 | </property> | 259 | </property> |
260 | <property stdset="1"> | 260 | <property stdset="1"> |
261 | <name>minimumSize</name> | 261 | <name>minimumSize</name> |
262 | <size> | 262 | <size> |
263 | <width>70</width> | 263 | <width>70</width> |
264 | <height>0</height> | 264 | <height>0</height> |
265 | </size> | 265 | </size> |
266 | </property> | 266 | </property> |
267 | <property stdset="1"> | 267 | <property stdset="1"> |
268 | <name>maximumSize</name> | 268 | <name>maximumSize</name> |
269 | <size> | 269 | <size> |
270 | <width>70</width> | 270 | <width>70</width> |
271 | <height>32767</height> | 271 | <height>32767</height> |
272 | </size> | 272 | </size> |
273 | </property> | 273 | </property> |
274 | <property stdset="1"> | 274 | <property stdset="1"> |
275 | <name>alignment</name> | 275 | <name>alignment</name> |
276 | <set>AlignHCenter</set> | 276 | <set>AlignHCenter</set> |
277 | </property> | 277 | </property> |
278 | <property> | 278 | <property> |
279 | <name>hAlign</name> | 279 | <name>hAlign</name> |
280 | </property> | 280 | </property> |
281 | </widget> | 281 | </widget> |
282 | <spacer row="3" column="2" rowspan="2" colspan="1" > | 282 | <spacer row="3" column="2" rowspan="2" colspan="1" > |
283 | <property> | 283 | <property> |
284 | <name>name</name> | 284 | <name>name</name> |
285 | <cstring>Spacer1_2</cstring> | 285 | <cstring>Spacer1_2</cstring> |
286 | </property> | 286 | </property> |
287 | <property stdset="1"> | 287 | <property stdset="1"> |
288 | <name>orientation</name> | 288 | <name>orientation</name> |
289 | <enum>Horizontal</enum> | 289 | <enum>Horizontal</enum> |
290 | </property> | 290 | </property> |
291 | <property stdset="1"> | 291 | <property stdset="1"> |
292 | <name>sizeType</name> | 292 | <name>sizeType</name> |
293 | <enum>Expanding</enum> | 293 | <enum>Expanding</enum> |
294 | </property> | 294 | </property> |
295 | <property> | 295 | <property> |
296 | <name>sizeHint</name> | 296 | <name>sizeHint</name> |
297 | <size> | 297 | <size> |
298 | <width>20</width> | 298 | <width>20</width> |
299 | <height>20</height> | 299 | <height>20</height> |
300 | </size> | 300 | </size> |
301 | </property> | 301 | </property> |
302 | </spacer> | 302 | </spacer> |
303 | <widget row="5" column="1" rowspan="1" colspan="3" > | 303 | <widget row="5" column="1" rowspan="1" colspan="3" > |
304 | <class>OTimePicker</class> | 304 | <class>TimePicker</class> |
305 | <property stdset="1"> | 305 | <property stdset="1"> |
306 | <name>name</name> | 306 | <name>name</name> |
307 | <cstring>timePickerStart</cstring> | 307 | <cstring>timePickerStart</cstring> |
308 | </property> | 308 | </property> |
309 | <property stdset="1"> | 309 | <property stdset="1"> |
310 | <name>sizePolicy</name> | 310 | <name>sizePolicy</name> |
311 | <sizepolicy> | 311 | <sizepolicy> |
312 | <hsizetype>3</hsizetype> | 312 | <hsizetype>3</hsizetype> |
313 | <vsizetype>1</vsizetype> | 313 | <vsizetype>1</vsizetype> |
314 | </sizepolicy> | 314 | </sizepolicy> |
315 | </property> | 315 | </property> |
316 | </widget> | 316 | </widget> |
317 | <widget row="3" column="3" > | 317 | <widget row="3" column="3" > |
318 | <class>QPushButton</class> | 318 | <class>QPushButton</class> |
319 | <property stdset="1"> | 319 | <property stdset="1"> |
320 | <name>name</name> | 320 | <name>name</name> |
321 | <cstring>buttonEnd</cstring> | 321 | <cstring>buttonEnd</cstring> |
322 | </property> | 322 | </property> |
323 | <property stdset="1"> | 323 | <property stdset="1"> |
324 | <name>minimumSize</name> | 324 | <name>minimumSize</name> |
325 | <size> | 325 | <size> |
326 | <width>70</width> | 326 | <width>70</width> |
327 | <height>0</height> | 327 | <height>0</height> |
328 | </size> | 328 | </size> |
329 | </property> | 329 | </property> |
330 | <property stdset="1"> | 330 | <property stdset="1"> |
331 | <name>maximumSize</name> | 331 | <name>maximumSize</name> |
332 | <size> | 332 | <size> |
333 | <width>70</width> | 333 | <width>70</width> |
334 | <height>32767</height> | 334 | <height>32767</height> |
335 | </size> | 335 | </size> |
336 | </property> | 336 | </property> |
337 | <property stdset="1"> | 337 | <property stdset="1"> |
338 | <name>text</name> | 338 | <name>text</name> |
339 | <string>Jan 02 00</string> | 339 | <string>Jan 02 00</string> |
340 | </property> | 340 | </property> |
341 | </widget> | 341 | </widget> |
342 | <widget row="4" column="3" > | 342 | <widget row="4" column="3" > |
343 | <class>QLineEdit</class> | 343 | <class>QLineEdit</class> |
344 | <property stdset="1"> | 344 | <property stdset="1"> |
345 | <name>name</name> | 345 | <name>name</name> |
346 | <cstring>comboEnd</cstring> | 346 | <cstring>comboEnd</cstring> |
347 | </property> | 347 | </property> |
348 | <property stdset="1"> | 348 | <property stdset="1"> |
349 | <name>sizePolicy</name> | 349 | <name>sizePolicy</name> |
350 | <sizepolicy> | 350 | <sizepolicy> |
351 | <hsizetype>3</hsizetype> | 351 | <hsizetype>3</hsizetype> |
352 | <vsizetype>0</vsizetype> | 352 | <vsizetype>0</vsizetype> |
@@ -529,98 +529,98 @@ | |||
529 | <property stdset="1"> | 529 | <property stdset="1"> |
530 | <name>text</name> | 530 | <name>text</name> |
531 | <string>No Repeat...</string> | 531 | <string>No Repeat...</string> |
532 | </property> | 532 | </property> |
533 | </widget> | 533 | </widget> |
534 | <widget row="10" column="0" rowspan="1" colspan="4" > | 534 | <widget row="10" column="0" rowspan="1" colspan="4" > |
535 | <class>QToolButton</class> | 535 | <class>QToolButton</class> |
536 | <property stdset="1"> | 536 | <property stdset="1"> |
537 | <name>name</name> | 537 | <name>name</name> |
538 | <cstring>editNote</cstring> | 538 | <cstring>editNote</cstring> |
539 | </property> | 539 | </property> |
540 | <property stdset="1"> | 540 | <property stdset="1"> |
541 | <name>text</name> | 541 | <name>text</name> |
542 | <string>Note...</string> | 542 | <string>Note...</string> |
543 | </property> | 543 | </property> |
544 | </widget> | 544 | </widget> |
545 | </grid> | 545 | </grid> |
546 | </widget> | 546 | </widget> |
547 | <customwidgets> | 547 | <customwidgets> |
548 | <customwidget> | 548 | <customwidget> |
549 | <class>TimeZoneSelector</class> | 549 | <class>TimeZoneSelector</class> |
550 | <header location="global">qpe/tzselect.h</header> | 550 | <header location="global">qpe/tzselect.h</header> |
551 | <sizehint> | 551 | <sizehint> |
552 | <width>21</width> | 552 | <width>21</width> |
553 | <height>10</height> | 553 | <height>10</height> |
554 | </sizehint> | 554 | </sizehint> |
555 | <container>0</container> | 555 | <container>0</container> |
556 | <sizepolicy> | 556 | <sizepolicy> |
557 | <hordata>7</hordata> | 557 | <hordata>7</hordata> |
558 | <verdata>1</verdata> | 558 | <verdata>1</verdata> |
559 | </sizepolicy> | 559 | </sizepolicy> |
560 | <pixmap>image0</pixmap> | 560 | <pixmap>image0</pixmap> |
561 | </customwidget> | 561 | </customwidget> |
562 | <customwidget> | 562 | <customwidget> |
563 | <class>CategorySelect</class> | 563 | <class>CategorySelect</class> |
564 | <header location="global">qpe/categoryselect.h</header> | 564 | <header location="global">qpe/categoryselect.h</header> |
565 | <sizehint> | 565 | <sizehint> |
566 | <width>-1</width> | 566 | <width>-1</width> |
567 | <height>-1</height> | 567 | <height>-1</height> |
568 | </sizehint> | 568 | </sizehint> |
569 | <container>0</container> | 569 | <container>0</container> |
570 | <sizepolicy> | 570 | <sizepolicy> |
571 | <hordata>7</hordata> | 571 | <hordata>7</hordata> |
572 | <verdata>1</verdata> | 572 | <verdata>1</verdata> |
573 | </sizepolicy> | 573 | </sizepolicy> |
574 | <pixmap>image1</pixmap> | 574 | <pixmap>image1</pixmap> |
575 | </customwidget> | 575 | </customwidget> |
576 | <customwidget> | 576 | <customwidget> |
577 | <class>OTimePicker</class> | 577 | <class>TimePicker</class> |
578 | <header location="local">opie/otimepicker.h</header> | 578 | <header location="local">namespace_hack.h</header> |
579 | <sizehint> | 579 | <sizehint> |
580 | <width>-1</width> | 580 | <width>-1</width> |
581 | <height>-1</height> | 581 | <height>-1</height> |
582 | </sizehint> | 582 | </sizehint> |
583 | <container>0</container> | 583 | <container>0</container> |
584 | <sizepolicy> | 584 | <sizepolicy> |
585 | <hordata>7</hordata> | 585 | <hordata>7</hordata> |
586 | <verdata>1</verdata> | 586 | <verdata>1</verdata> |
587 | </sizepolicy> | 587 | </sizepolicy> |
588 | <pixmap>image1</pixmap> | 588 | <pixmap>image1</pixmap> |
589 | </customwidget> | 589 | </customwidget> |
590 | </customwidgets> | 590 | </customwidgets> |
591 | <images> | 591 | <images> |
592 | <image> | 592 | <image> |
593 | <name>image0</name> | 593 | <name>image0</name> |
594 | <data format="XPM.GZ" length="45">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523250004143a55a6b2e0026630c4f</data> | 594 | <data format="XPM.GZ" length="45">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523250004143a55a6b2e0026630c4f</data> |
595 | </image> | 595 | </image> |
596 | <image> | 596 | <image> |
597 | <name>image1</name> | 597 | <name>image1</name> |
598 | <data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758</data> | 598 | <data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758</data> |
599 | </image> | 599 | </image> |
600 | </images> | 600 | </images> |
601 | <connections> | 601 | <connections> |
602 | <connection> | 602 | <connection> |
603 | <sender>checkAlarm</sender> | 603 | <sender>checkAlarm</sender> |
604 | <signal>toggled(bool)</signal> | 604 | <signal>toggled(bool)</signal> |
605 | <receiver>spinAlarm</receiver> | 605 | <receiver>spinAlarm</receiver> |
606 | <slot>setEnabled(bool)</slot> | 606 | <slot>setEnabled(bool)</slot> |
607 | </connection> | 607 | </connection> |
608 | <connection> | 608 | <connection> |
609 | <sender>comboEnd</sender> | 609 | <sender>comboEnd</sender> |
610 | <signal>textChanged(const QString&)</signal> | 610 | <signal>textChanged(const QString&)</signal> |
611 | <receiver>DateEntryBase</receiver> | 611 | <receiver>DateEntryBase</receiver> |
612 | <slot>endTimeChanged( const QString & )</slot> | 612 | <slot>endTimeChanged( const QString & )</slot> |
613 | </connection> | 613 | </connection> |
614 | <connection> | 614 | <connection> |
615 | <sender>cmdRepeat</sender> | 615 | <sender>cmdRepeat</sender> |
616 | <signal>clicked()</signal> | 616 | <signal>clicked()</signal> |
617 | <receiver>DateEntryBase</receiver> | 617 | <receiver>DateEntryBase</receiver> |
618 | <slot>slotRepeat()</slot> | 618 | <slot>slotRepeat()</slot> |
619 | </connection> | 619 | </connection> |
620 | <connection> | 620 | <connection> |
621 | <sender>comboStart</sender> | 621 | <sender>comboStart</sender> |
622 | <signal>textChanged(const QString &)</signal> | 622 | <signal>textChanged(const QString &)</signal> |
623 | <receiver>DateEntryBase</receiver> | 623 | <receiver>DateEntryBase</receiver> |
624 | <slot>startTimeEdited( const QString & )</slot> | 624 | <slot>startTimeEdited( const QString & )</slot> |
625 | </connection> | 625 | </connection> |
626 | <connection> | 626 | <connection> |
diff --git a/core/pim/datebook/dateentryimpl.cpp b/core/pim/datebook/dateentryimpl.cpp index dbff18f..7b4716f 100644 --- a/core/pim/datebook/dateentryimpl.cpp +++ b/core/pim/datebook/dateentryimpl.cpp | |||
@@ -1,68 +1,69 @@ | |||
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 "namespace_hack.h" | ||
21 | #include "dateentryimpl.h" | 22 | #include "dateentryimpl.h" |
22 | #include "repeatentry.h" | 23 | #include "repeatentry.h" |
23 | 24 | ||
24 | #include <qpe/qpeapplication.h> | 25 | #include <qpe/qpeapplication.h> |
25 | #include <qpe/categoryselect.h> | 26 | #include <qpe/categoryselect.h> |
26 | #include <qpe/datebookmonth.h> | 27 | #include <qpe/datebookmonth.h> |
27 | #include <qpe/tzselect.h> | 28 | #include <qpe/tzselect.h> |
28 | 29 | ||
29 | #include <qlineedit.h> | 30 | #include <qlineedit.h> |
30 | #include <qspinbox.h> | 31 | #include <qspinbox.h> |
31 | 32 | ||
32 | #include <opie2/otimepicker.h> | 33 | #include <opie2/otimepicker.h> |
33 | #include "onoteedit.h" | 34 | #include "onoteedit.h" |
34 | 35 | ||
35 | #include <stdlib.h> | 36 | #include <stdlib.h> |
36 | #include <stdio.h> | 37 | #include <stdio.h> |
37 | 38 | ||
38 | /* | 39 | /* |
39 | * Constructs a DateEntry which is a child of 'parent', with the | 40 | * Constructs a DateEntry which is a child of 'parent', with the |
40 | * name 'name' and widget flags set to 'f' | 41 | * name 'name' and widget flags set to 'f' |
41 | * | 42 | * |
42 | * The dialog will by default be modeless, unless you set 'modal' to | 43 | * The dialog will by default be modeless, unless you set 'modal' to |
43 | * TRUE to construct a modal dialog. | 44 | * TRUE to construct a modal dialog. |
44 | */ | 45 | */ |
45 | 46 | ||
46 | DateEntry::DateEntry( bool startOnMonday, const QDateTime &start, | 47 | DateEntry::DateEntry( bool startOnMonday, const QDateTime &start, |
47 | const QDateTime &end, bool whichClock, QWidget* parent, | 48 | const QDateTime &end, bool whichClock, QWidget* parent, |
48 | const char* name ) | 49 | const char* name ) |
49 | : DateEntryBase( parent, name ), | 50 | : DateEntryBase( parent, name ), |
50 | ampm( whichClock ), | 51 | ampm( whichClock ), |
51 | startWeekOnMonday( startOnMonday ), | 52 | startWeekOnMonday( startOnMonday ), |
52 | m_showStart(true) | 53 | m_showStart(true) |
53 | { | 54 | { |
54 | init(); | 55 | init(); |
55 | setDates(start,end); | 56 | setDates(start,end); |
56 | setFocusProxy(comboDescription); | 57 | setFocusProxy(comboDescription); |
57 | } | 58 | } |
58 | 59 | ||
59 | bool DateEntry::eventFilter(QObject *obj, QEvent *ev ) | 60 | bool DateEntry::eventFilter(QObject *obj, QEvent *ev ) |
60 | { | 61 | { |
61 | if( ev->type() == QEvent::FocusIn ){ | 62 | if( ev->type() == QEvent::FocusIn ){ |
62 | if( obj == comboStart ){ | 63 | if( obj == comboStart ){ |
63 | timePickerStart->setHour(startTime.hour()); | 64 | timePickerStart->setHour(startTime.hour()); |
64 | timePickerStart->setMinute(startTime.minute()); | 65 | timePickerStart->setMinute(startTime.minute()); |
65 | TimePickerLabel->setText( tr("Start Time" ) ); | 66 | TimePickerLabel->setText( tr("Start Time" ) ); |
66 | m_showStart= true; | 67 | m_showStart= true; |
67 | }else if( obj == comboEnd ){ | 68 | }else if( obj == comboEnd ){ |
68 | timePickerStart->setHour(endTime.hour()); | 69 | timePickerStart->setHour(endTime.hour()); |
diff --git a/core/pim/datebook/namespace_hack.h b/core/pim/datebook/namespace_hack.h new file mode 100644 index 0000000..c15b5ed --- a/dev/null +++ b/core/pim/datebook/namespace_hack.h | |||
@@ -0,0 +1,20 @@ | |||
1 | #ifndef NAME_SPACE_HACK_H | ||
2 | #define NAME_SPACE_HACK_H | ||
3 | |||
4 | #include <opie2/otimepicker.h> | ||
5 | #include <opie2/oclickablelabel.h> | ||
6 | |||
7 | class TimePicker : public Opie::Ui::OTimePicker { | ||
8 | public: | ||
9 | TimePicker( QWidget* p = 0, const char* name = 0, WFlags fl = 0 ) | ||
10 | : Opie::Ui::OTimePicker(p,name,fl){} | ||
11 | |||
12 | }; | ||
13 | class ClickableLabel : public Opie::Ui::OClickableLabel { | ||
14 | public: | ||
15 | ClickableLabel(QWidget *p=0,const char* name=0, WFlags fl = 0 ) | ||
16 | : Opie::Ui::OClickableLabel(p,name,fl){} | ||
17 | }; | ||
18 | |||
19 | |||
20 | #endif | ||