author | hakan <hakan> | 2002-05-07 10:43:49 (UTC) |
---|---|---|
committer | hakan <hakan> | 2002-05-07 10:43:49 (UTC) |
commit | cfe30703da090180b66bc571e85654c71a7ee8e0 (patch) (unidiff) | |
tree | d6954140f2208becb9a6beb5b8a21529bfd5bceb | |
parent | c9849cc04b668f1cda7a16d868299c436d1de042 (diff) | |
download | opie-cfe30703da090180b66bc571e85654c71a7ee8e0.zip opie-cfe30703da090180b66bc571e85654c71a7ee8e0.tar.gz opie-cfe30703da090180b66bc571e85654c71a7ee8e0.tar.bz2 |
Moved ClickableLabel to libopie/OClickableLabel
-rw-r--r-- | core/pim/datebook/datebook.pro | 4 | ||||
-rw-r--r-- | core/pim/datebook/datebookweeklst.cpp | 2 | ||||
-rw-r--r-- | core/pim/datebook/datebookweeklst.h | 4 | ||||
-rw-r--r-- | core/pim/datebook/datebookweeklstdayhdr.ui | 8 | ||||
-rw-r--r-- | core/pim/datebook/dateentryimpl.cpp | 8 | ||||
-rw-r--r-- | core/pim/datebook/opie-datebook.control | 2 | ||||
-rw-r--r-- | core/pim/datebook/timepicker.cpp | 19 | ||||
-rw-r--r-- | core/pim/datebook/timepicker.h | 6 | ||||
-rw-r--r-- | libopie/libopie.pro | 4 | ||||
-rw-r--r-- | libopie/oclickablelabel.cpp (renamed from core/pim/datebook/clickablelabel.cpp) | 18 | ||||
-rw-r--r-- | libopie/oclickablelabel.h (renamed from core/pim/datebook/clickablelabel.h) | 4 |
11 files changed, 40 insertions, 39 deletions
diff --git a/core/pim/datebook/datebook.pro b/core/pim/datebook/datebook.pro index a8a9285..9383053 100644 --- a/core/pim/datebook/datebook.pro +++ b/core/pim/datebook/datebook.pro | |||
@@ -13,3 +13,2 @@ HEADERS = datebookday.h \ | |||
13 | repeatentry.h \ | 13 | repeatentry.h \ |
14 | clickablelabel.h \ | ||
15 | timepicker.h | 14 | timepicker.h |
@@ -26,3 +25,2 @@ SOURCES = main.cpp \ | |||
26 | repeatentry.cpp \ | 25 | repeatentry.cpp \ |
27 | clickablelabel.cpp \ | ||
28 | timepicker.cpp | 26 | timepicker.cpp |
@@ -39,3 +37,3 @@ INCLUDEPATH += $(OPIEDIR)/include | |||
39 | DEPENDPATH+= $(OPIEDIR)/include | 37 | DEPENDPATH+= $(OPIEDIR)/include |
40 | LIBS += -lqpe | 38 | LIBS += -lqpe -lopie |
41 | 39 | ||
diff --git a/core/pim/datebook/datebookweeklst.cpp b/core/pim/datebook/datebookweeklst.cpp index 85c745a..8e88377 100644 --- a/core/pim/datebook/datebookweeklst.cpp +++ b/core/pim/datebook/datebookweeklst.cpp | |||
@@ -145,3 +145,3 @@ DateBookWeekLstEvent::DateBookWeekLstEvent(const EffectiveEvent &ev, | |||
145 | WFlags fl) : | 145 | WFlags fl) : |
146 | ClickableLabel(parent,name,fl), | 146 | OClickableLabel(parent,name,fl), |
147 | event(ev) | 147 | event(ev) |
diff --git a/core/pim/datebook/datebookweeklst.h b/core/pim/datebook/datebookweeklst.h index b0b0417..24f6c83 100644 --- a/core/pim/datebook/datebookweeklst.h +++ b/core/pim/datebook/datebookweeklst.h | |||
@@ -12,3 +12,3 @@ | |||
12 | 12 | ||
13 | #include "clickablelabel.h" | 13 | #include <opie/oclickablelabel.h> |
14 | 14 | ||
@@ -57,3 +57,3 @@ private: | |||
57 | 57 | ||
58 | class DateBookWeekLstEvent: public ClickableLabel | 58 | class DateBookWeekLstEvent: public OClickableLabel |
59 | { | 59 | { |
diff --git a/core/pim/datebook/datebookweeklstdayhdr.ui b/core/pim/datebook/datebookweeklstdayhdr.ui index 2b68754..9499726 100644 --- a/core/pim/datebook/datebookweeklstdayhdr.ui +++ b/core/pim/datebook/datebookweeklstdayhdr.ui | |||
@@ -62,3 +62,3 @@ | |||
62 | <widget> | 62 | <widget> |
63 | <class>ClickableLabel</class> | 63 | <class>OClickableLabel</class> |
64 | <property stdset="1"> | 64 | <property stdset="1"> |
@@ -107,3 +107,3 @@ | |||
107 | <widget> | 107 | <widget> |
108 | <class>ClickableLabel</class> | 108 | <class>OClickableLabel</class> |
109 | <property stdset="1"> | 109 | <property stdset="1"> |
@@ -124,4 +124,4 @@ | |||
124 | <customwidget> | 124 | <customwidget> |
125 | <class>ClickableLabel</class> | 125 | <class>OClickableLabel</class> |
126 | <header location="local">clickablelabel.h</header> | 126 | <header location="global">opie/oclickablelabel.h</header> |
127 | <sizehint> | 127 | <sizehint> |
diff --git a/core/pim/datebook/dateentryimpl.cpp b/core/pim/datebook/dateentryimpl.cpp index e14e2f5..c4f6c68 100644 --- a/core/pim/datebook/dateentryimpl.cpp +++ b/core/pim/datebook/dateentryimpl.cpp | |||
@@ -45,2 +45,3 @@ | |||
45 | #include <stdlib.h> | 45 | #include <stdlib.h> |
46 | #include <stdio.h> | ||
46 | 47 | ||
@@ -59,3 +60,4 @@ DateEntry::DateEntry( bool startOnMonday, const QDateTime &start, | |||
59 | ampm( whichClock ), | 60 | ampm( whichClock ), |
60 | startWeekOnMonday( startOnMonday ) | 61 | startWeekOnMonday( startOnMonday ), |
62 | m_showStart(true) | ||
61 | { | 63 | { |
@@ -115,3 +117,5 @@ DateEntry::DateEntry( bool startOnMonday, const Event &event, bool whichClock, | |||
115 | ampm( whichClock ), | 117 | ampm( whichClock ), |
116 | startWeekOnMonday( startOnMonday ) | 118 | startWeekOnMonday( startOnMonday ), |
119 | m_showStart(true) | ||
120 | |||
117 | { | 121 | { |
diff --git a/core/pim/datebook/opie-datebook.control b/core/pim/datebook/opie-datebook.control index 6566d50..9bef119 100644 --- a/core/pim/datebook/opie-datebook.control +++ b/core/pim/datebook/opie-datebook.control | |||
@@ -6,3 +6,3 @@ Architecture: arm | |||
6 | Version: $QPE_VERSION-$SUB_VERSION | 6 | Version: $QPE_VERSION-$SUB_VERSION |
7 | Depends: opie-base ($QPE_VERSION) | 7 | Depends: opie-base ($QPE_VERSION), libopie ($QPE_VERSION) |
8 | Description: A datebook/appointment manager | 8 | Description: A datebook/appointment manager |
diff --git a/core/pim/datebook/timepicker.cpp b/core/pim/datebook/timepicker.cpp index 43e05ad..f2cb71d 100644 --- a/core/pim/datebook/timepicker.cpp +++ b/core/pim/datebook/timepicker.cpp | |||
@@ -5,3 +5,2 @@ | |||
5 | #include <qlayout.h> | 5 | #include <qlayout.h> |
6 | #include "clickablelabel.h" | ||
7 | #include <qstring.h> | 6 | #include <qstring.h> |
@@ -15,3 +14,3 @@ TimePicker::TimePicker(QWidget* parent, const char* name, | |||
15 | 14 | ||
16 | ClickableLabel *r; | 15 | OClickableLabel *r; |
17 | QString s; | 16 | QString s; |
@@ -25,3 +24,3 @@ TimePicker::TimePicker(QWidget* parent, const char* name, | |||
25 | for (int i=0; i<24; i++) { | 24 | for (int i=0; i<24; i++) { |
26 | r=new ClickableLabel(row); | 25 | r=new OClickableLabel(row); |
27 | hourLst.append(r); | 26 | hourLst.append(r); |
@@ -48,3 +47,3 @@ TimePicker::TimePicker(QWidget* parent, const char* name, | |||
48 | for (int i=0; i<60; i+=5) { | 47 | for (int i=0; i<60; i+=5) { |
49 | r=new ClickableLabel(row); | 48 | r=new OClickableLabel(row); |
50 | minuteLst.append(r); | 49 | minuteLst.append(r); |
@@ -62,6 +61,6 @@ void TimePicker::slotHour(bool b) { | |||
62 | 61 | ||
63 | ClickableLabel *r = (ClickableLabel *) sender(); | 62 | OClickableLabel *r = (OClickableLabel *) sender(); |
64 | 63 | ||
65 | if (b) { | 64 | if (b) { |
66 | QValueListIterator<ClickableLabel *> it; | 65 | QValueListIterator<OClickableLabel *> it; |
67 | for (it=hourLst.begin(); it!=hourLst.end(); it++) { | 66 | for (it=hourLst.begin(); it!=hourLst.end(); it++) { |
@@ -79,6 +78,6 @@ void TimePicker::slotMinute(bool b) { | |||
79 | 78 | ||
80 | ClickableLabel *r = (ClickableLabel *) sender(); | 79 | OClickableLabel *r = (OClickableLabel *) sender(); |
81 | 80 | ||
82 | if (b) { | 81 | if (b) { |
83 | QValueListIterator<ClickableLabel *> it; | 82 | QValueListIterator<OClickableLabel *> it; |
84 | for (it=minuteLst.begin(); it!=minuteLst.end(); it++) { | 83 | for (it=minuteLst.begin(); it!=minuteLst.end(); it++) { |
@@ -99,3 +98,3 @@ void TimePicker::setMinute(int m) { | |||
99 | 98 | ||
100 | QValueListIterator<ClickableLabel *> it; | 99 | QValueListIterator<OClickableLabel *> it; |
101 | for (it=minuteLst.begin(); it!=minuteLst.end(); it++) { | 100 | for (it=minuteLst.begin(); it!=minuteLst.end(); it++) { |
@@ -113,3 +112,3 @@ void TimePicker::setHour(int h) { | |||
113 | 112 | ||
114 | QValueListIterator<ClickableLabel *> it; | 113 | QValueListIterator<OClickableLabel *> it; |
115 | for (it=hourLst.begin(); it!=hourLst.end(); it++) { | 114 | for (it=hourLst.begin(); it!=hourLst.end(); it++) { |
diff --git a/core/pim/datebook/timepicker.h b/core/pim/datebook/timepicker.h index 0acadcb..1c35600 100644 --- a/core/pim/datebook/timepicker.h +++ b/core/pim/datebook/timepicker.h | |||
@@ -5,3 +5,3 @@ | |||
5 | #include <qvaluelist.h> | 5 | #include <qvaluelist.h> |
6 | #include "clickablelabel.h" | 6 | #include <opie/oclickablelabel.h> |
7 | #include <qdatetime.h> | 7 | #include <qdatetime.h> |
@@ -18,4 +18,4 @@ class TimePicker: public QWidget { | |||
18 | private: | 18 | private: |
19 | QValueList<ClickableLabel *> hourLst; | 19 | QValueList<OClickableLabel *> hourLst; |
20 | QValueList<ClickableLabel *> minuteLst; | 20 | QValueList<OClickableLabel *> minuteLst; |
21 | QTime tm; | 21 | QTime tm; |
diff --git a/libopie/libopie.pro b/libopie/libopie.pro index ba64bda..337206a 100644 --- a/libopie/libopie.pro +++ b/libopie/libopie.pro | |||
@@ -2,4 +2,4 @@ TEMPLATE = lib | |||
2 | CONFIG += qte warn_on release | 2 | CONFIG += qte warn_on release |
3 | HEADERS = ofontmenu.h ofileselector.h ofiledialog.h ofileview.h tododb.h todoevent.h todoresource.h todovcalresource.h xmltree.h colordialog.h colorpopupmenu.h | 3 | HEADERS = ofontmenu.h ofileselector.h ofiledialog.h ofileview.h tododb.h todoevent.h todoresource.h todovcalresource.h xmltree.h colordialog.h colorpopupmenu.h oclickablelabel.h |
4 | SOURCES = ofontmenu.cc ofileselector.cc ofiledialog.cc xmltree.cc tododb.cpp todoevent.cpp todovcalresource.cpp colordialog.cpp colorpopupmenu.cpp | 4 | SOURCES = ofontmenu.cc ofileselector.cc ofiledialog.cc xmltree.cc tododb.cpp todoevent.cpp todovcalresource.cpp colordialog.cpp colorpopupmenu.cpp oclickablelabel.cpp |
5 | TARGET = opie | 5 | TARGET = opie |
diff --git a/core/pim/datebook/clickablelabel.cpp b/libopie/oclickablelabel.cpp index 128bebb..43a0524 100644 --- a/core/pim/datebook/clickablelabel.cpp +++ b/libopie/oclickablelabel.cpp | |||
@@ -1,5 +1,5 @@ | |||
1 | #include "clickablelabel.h" | 1 | #include "oclickablelabel.h" |
2 | #include <stdio.h> | 2 | #include <stdio.h> |
3 | 3 | ||
4 | ClickableLabel::ClickableLabel(QWidget* parent, | 4 | OClickableLabel::OClickableLabel(QWidget* parent, |
5 | const char* name, | 5 | const char* name, |
@@ -15,3 +15,3 @@ ClickableLabel::ClickableLabel(QWidget* parent, | |||
15 | 15 | ||
16 | void ClickableLabel::setToggleButton(bool t) { | 16 | void OClickableLabel::setToggleButton(bool t) { |
17 | isToggle=t; | 17 | isToggle=t; |
@@ -19,3 +19,3 @@ void ClickableLabel::setToggleButton(bool t) { | |||
19 | 19 | ||
20 | void ClickableLabel::mousePressEvent( QMouseEvent *e ) { | 20 | void OClickableLabel::mousePressEvent( QMouseEvent *e ) { |
21 | if (isToggle && isDown) { | 21 | if (isToggle && isDown) { |
@@ -27,3 +27,3 @@ void ClickableLabel::mousePressEvent( QMouseEvent *e ) { | |||
27 | 27 | ||
28 | void ClickableLabel::mouseReleaseEvent( QMouseEvent *e ) { | 28 | void OClickableLabel::mouseReleaseEvent( QMouseEvent *e ) { |
29 | if (rect().contains(e->pos()) && isToggle) isDown=!isDown; | 29 | if (rect().contains(e->pos()) && isToggle) isDown=!isDown; |
@@ -44,3 +44,3 @@ void ClickableLabel::mouseReleaseEvent( QMouseEvent *e ) { | |||
44 | 44 | ||
45 | void ClickableLabel::mouseMoveEvent( QMouseEvent *e ) { | 45 | void OClickableLabel::mouseMoveEvent( QMouseEvent *e ) { |
46 | if (rect().contains(e->pos())) { | 46 | if (rect().contains(e->pos())) { |
@@ -60,3 +60,3 @@ void ClickableLabel::mouseMoveEvent( QMouseEvent *e ) { | |||
60 | 60 | ||
61 | void ClickableLabel::showState(bool on) { | 61 | void OClickableLabel::showState(bool on) { |
62 | if (on) { | 62 | if (on) { |
@@ -73,3 +73,3 @@ void ClickableLabel::showState(bool on) { | |||
73 | 73 | ||
74 | void ClickableLabel::setInverted(bool on) { | 74 | void OClickableLabel::setInverted(bool on) { |
75 | if ( (!textInverted && on) || (textInverted && !on) ) { | 75 | if ( (!textInverted && on) || (textInverted && !on) ) { |
@@ -84,3 +84,3 @@ void ClickableLabel::setInverted(bool on) { | |||
84 | 84 | ||
85 | void ClickableLabel::setOn(bool on) { | 85 | void OClickableLabel::setOn(bool on) { |
86 | isDown=on; | 86 | isDown=on; |
diff --git a/core/pim/datebook/clickablelabel.h b/libopie/oclickablelabel.h index d00fee6..f65c440 100644 --- a/core/pim/datebook/clickablelabel.h +++ b/libopie/oclickablelabel.h | |||
@@ -5,3 +5,3 @@ | |||
5 | 5 | ||
6 | class ClickableLabel: public QLabel | 6 | class OClickableLabel: public QLabel |
7 | { | 7 | { |
@@ -9,3 +9,3 @@ class ClickableLabel: public QLabel | |||
9 | public: | 9 | public: |
10 | ClickableLabel(QWidget* parent = 0, const char* name = 0, | 10 | OClickableLabel(QWidget* parent = 0, const char* name = 0, |
11 | WFlags fl = 0); | 11 | WFlags fl = 0); |