-rw-r--r-- | libopie2/README | 57 | ||||
-rw-r--r-- | libopie2/ROADMAP | 7 | ||||
-rw-r--r-- | libopie2/STATUS | 68 | ||||
-rw-r--r-- | libopie2/opiecore/config.in | 2 | ||||
-rw-r--r-- | libopie2/opiedb/config.in | 2 | ||||
-rw-r--r-- | libopie2/opiemm/config.in | 2 | ||||
-rw-r--r-- | libopie2/opiepim/config.in | 2 | ||||
-rw-r--r-- | libopie2/opieui/config.in | 2 | ||||
-rw-r--r-- | libopie2/opieui/otimepicker.h | 4 |
9 files changed, 28 insertions, 118 deletions
diff --git a/libopie2/README b/libopie2/README index daf6b27..5643d25 100644 --- a/libopie2/README +++ b/libopie2/README | |||
@@ -1,188 +1,165 @@ | |||
1 | /******************************************************************** | 1 | /******************************************************************** |
2 | /* This is an overview of the opielibs2 project | 2 | /* This is an overview of the opielibs2 project |
3 | /********************************************************************/ | 3 | /********************************************************************/ |
4 | 4 | ||
5 | Origin: opielibs is about creating classes to | 5 | Origin: opielibs is about creating classes to |
6 | * optimize Qt classes for the embedded environment | 6 | * optimize Qt classes for the embedded environment |
7 | * provide sophisticated abstractions for developers | 7 | * provide sophisticated abstractions for developers |
8 | * provide complete documentation and working examples | 8 | * provide complete documentation and working examples |
9 | * provide end users with a common look and feel | 9 | * provide end users with a common look and feel |
10 | * reduce memory footprint through sharing code | 10 | * reduce memory footprint through sharing code |
11 | * reduce possible bugs through reusing tested code | 11 | * reduce possible bugs through reusing tested code |
12 | * improve the architecture of applications with design patterns | ||
12 | 13 | ||
13 | -------------------------------------------------------- | 14 | -------------------------------------------------------- |
14 | 0. Building | 15 | 0. Building |
15 | -------------------------------------------------------- | 16 | -------------------------------------------------------- |
16 | 17 | ||
17 | * for QPE run: | 18 | * for QPE run: |
18 | qmake libopie2.pro | 19 | qmake libopie2.pro |
19 | make | 20 | make |
20 | 21 | ||
21 | OR (even better) | 22 | OR (even better) |
22 | cd $OPIEDIR | 23 | cd $OPIEDIR |
23 | make menuconfig | 24 | make menuconfig |
24 | make -k | 25 | make -k |
25 | 26 | ||
26 | * for QT/X11 run: | 27 | * for QT/X11 run: |
27 | qmake "platform=x11" libopie2.pro | 28 | qmake "platform=x11" libopie2.pro |
28 | make | 29 | make |
29 | 30 | ||
30 | Make sure you have set $PLATFORM=x86-linux | 31 | Make sure you have set $PLATFORM=x86-linux |
31 | 32 | ||
32 | -------------------------------------------------------- | 33 | -------------------------------------------------------- |
33 | 1. General Overview | 34 | 1. General Overview |
34 | -------------------------------------------------------- | 35 | -------------------------------------------------------- |
35 | 36 | ||
36 | libopie is functionally seperated into the following libraries: | 37 | libopie is functionally seperated into the following libraries: |
37 | - libopiecore | 38 | - libopiecore |
38 | - libopieui | 39 | - libopieui |
39 | - libopiepim | 40 | - libopiepim |
40 | - libopiedb | 41 | - libopiedb |
41 | - libopienet | 42 | - libopienet |
42 | - libopiemm | 43 | - libopiemm |
43 | 44 | ||
44 | 1.1 Contents of libopiecore [ opiecore ] | 45 | 1.1 Contents of libopiecore [ opiecore ] |
45 | -------------------------------------------------------- | 46 | -------------------------------------------------------- |
46 | 47 | ||
48 | - oapplication | ||
49 | - ostorage | ||
50 | |||
47 | - odbgstream | 51 | - odbgstream |
48 | - ondbgstream | 52 | - ondbgstream |
49 | 53 | ||
50 | - oprocctrl | 54 | - oprocctrl |
51 | - oprocess | 55 | - oprocess |
52 | - odevice | 56 | - odevice |
53 | - odevicebutton | 57 | - odevicebutton |
54 | 58 | ||
55 | - oconfig | 59 | - oconfig |
56 | - oconfiggroupsaver | 60 | - oconfiggroupsaver |
57 | 61 | ||
58 | - ocompletionbase | ||
59 | - ocompletion | ||
60 | - ocomptreenodelist | ||
61 | - ocomptreenode | ||
62 | - ocompletionwrapper | ||
63 | |||
64 | - oglobal | 62 | - oglobal |
65 | - oglobalsettings | 63 | - oglobalsettings |
66 | 64 | ||
67 | - osortableitem | ||
68 | - osortablevaluelist | ||
69 | |||
70 | 1.2 Contents of libopieui [ opieui ] | 65 | 1.2 Contents of libopieui [ opieui ] |
71 | -------------------------------------------------------- | 66 | -------------------------------------------------------- |
72 | 67 | ||
73 | - oapplication | ||
74 | |||
75 | - ofiledialog | 68 | - ofiledialog |
76 | - colordialog | ||
77 | - oclickablelabel | 69 | - oclickablelabel |
78 | - ocolorbutton | 70 | - ocolorbutton |
79 | - colorpopupmenu | ||
80 | - otabinfo | 71 | - otabinfo |
81 | - otabbar | 72 | - otabbar |
82 | - otabwidget | 73 | - otabwidget |
83 | - ofontmenu | 74 | - ofontmenu |
84 | - ofontselector | 75 | - ofontselector |
85 | - ofileview | 76 | - ofileview |
86 | - oticker | 77 | - oticker |
87 | 78 | ||
88 | - olistview | 79 | - olistview |
89 | - olistviewitem | 80 | - olistviewitem |
90 | - oversatileview | 81 | - oversatileview |
91 | - oversatileviewitem | 82 | - oversatileviewitem |
92 | - ocompletionbox | ||
93 | - olineedit | ||
94 | - ocombobox | ||
95 | - ohistorycombo | ||
96 | 83 | ||
97 | - omessagebox | 84 | - omessagebox |
98 | - odialogbase | 85 | - odialogbase |
99 | 86 | ||
100 | - todayconfigwidget (rather into opiepim?) | 87 | - okeyconfigwidget |
101 | - orecurrancewidget (rather into opiepim?) | 88 | - otaskbarapplet |
102 | - otimepicker (rather into opiepim?) | 89 | - otimepicker |
103 | 90 | ||
104 | 1.3 Contents of libopiepim [ opiepim ] | 91 | 1.3 Contents of libopiepim [ opiepim ] |
105 | -------------------------------------------------------- | 92 | -------------------------------------------------------- |
106 | 93 | ||
107 | - ocheckitem | 94 | ... |
108 | - todayplugininterface | ||
109 | |||
110 | THIS STUFF IS OUTDATED/DEPRICATED AND SCHOULD NOT | ||
111 | BE MOVED IN THE NEW LIBRARY !! | ||
112 | USE THE CLASSES IN libopie/pim INSTEAD !(eilers) | ||
113 | |||
114 | - todoresource | ||
115 | - todoevent | ||
116 | - todovcalresource | ||
117 | 95 | ||
118 | 1.4 Contents of libopiedb [ opiedb ] | 96 | 1.4 Contents of libopiedb [ opiedb ] |
119 | -------------------------------------------------------- | 97 | -------------------------------------------------------- |
120 | 98 | ||
121 | - xmltree | 99 | ... |
122 | |||
123 | THIS STUFF IS OUTDATED/DEPRICATED AND SCHOULD NOT | ||
124 | BE MOVED IN THE NEW LIBRARY !! | ||
125 | USE THE CLASSES IN libopie/pim INSTEAD !(eilers) | ||
126 | - tododb | ||
127 | 100 | ||
128 | 1.5 Contents of libopienet [ opienet ] | 101 | 1.5 Contents of libopienet [ opienet ] |
129 | -------------------------------------------------------- | 102 | -------------------------------------------------------- |
130 | 103 | ||
131 | - onetwork | 104 | - onetwork |
132 | - onetworkinterface | 105 | - onetworkinterface |
133 | - owirelessnetworkinterface | 106 | - owirelessnetworkinterface |
134 | - ochannelhopper | 107 | - ochannelhopper |
135 | 108 | ||
136 | - omonitoring | 109 | - omonitoring |
137 | - ociscomonitoring | 110 | - ociscomonitoring |
138 | - owlanngmonitoring | 111 | - owlanngmonitoring |
139 | - ohostapmonitoring | 112 | - ohostapmonitoring |
140 | - oorinocomonitoring | 113 | - oorinocomonitoring |
141 | 114 | ||
142 | - opacketcapturer | 115 | - opacketcapturer |
143 | - opacket | 116 | - opacket |
144 | - oethernetpacket | 117 | - oethernetpacket |
145 | - owavelanpacket | 118 | - owavelanpacket |
146 | - ollcpacket | 119 | - ollcpacket |
147 | - oippacket | 120 | - oippacket |
148 | - oudppacket | 121 | - oudppacket |
149 | - otcppacket | 122 | - otcppacket |
150 | 123 | ||
151 | <libmail stuff> | ||
152 | <libbend stuff> | ||
153 | <libftp stuff> | ||
154 | |||
155 | 1.6 Contents of libopiemm [ opiemm ] | 124 | 1.6 Contents of libopiemm [ opiemm ] |
156 | -------------------------------------------------------- | 125 | -------------------------------------------------------- |
157 | 126 | ||
158 | - osoundsystem | 127 | - osoundsystem |
159 | - oaudiointerface | 128 | - oaudiointerface |
160 | - osoundserver | 129 | - osoundserver |
161 | 130 | ||
162 | -------------------------------------------------------- | 131 | -------------------------------------------------------- |
163 | 2.0 Feature Description | 132 | 2.0 Feature Description |
164 | -------------------------------------------------------- | 133 | -------------------------------------------------------- |
165 | 134 | ||
166 | 2.1 libopiecore | 135 | 2.1 libopiecore |
167 | 136 | ||
168 | ... | 137 | ... |
169 | 138 | ||
170 | 2.2 libopieui | 139 | 2.2 libopieui |
171 | 140 | ||
172 | ... | 141 | ... |
173 | 142 | ||
174 | 2.3 libopiepim | 143 | 2.3 libopiepim |
175 | 144 | ||
176 | ... | 145 | ... |
177 | 146 | ||
178 | 2.4 libopiedb | 147 | 2.4 libopiedb |
179 | 148 | ||
180 | ... | 149 | ... |
181 | 150 | ||
182 | 2.5 libopienet | 151 | 2.5 libopienet |
183 | 152 | ||
184 | ... | 153 | ... |
185 | 154 | ||
186 | 2.6 libopiemm | 155 | 2.6 libopiemm |
187 | 156 | ||
188 | ... | 157 | ... |
158 | |||
159 | -------------------------------------------------------- | ||
160 | 3.0 Usage | ||
161 | -------------------------------------------------------- | ||
162 | |||
163 | 3.1 Namespaces | ||
164 | |||
165 | |||
diff --git a/libopie2/ROADMAP b/libopie2/ROADMAP index 966b67d..1685ba2 100644 --- a/libopie2/ROADMAP +++ b/libopie2/ROADMAP | |||
@@ -1,6 +1,7 @@ | |||
1 | [done] * import current status of opiecore, opienet and opieui | 1 | [done] * import current status of opiecore, opienet and opieui |
2 | * add contents of libopie1 to libopie2 and functionally split it | 2 | [done] * add contents of libopie1 to libopie2 and functionally split it |
3 | * make libopie2 a drop-in-replacement for libopie1 | 3 | [done] * make libopie2 a drop-in-replacement for libopie1 |
4 | * add doxygen documentation to all classes | 4 | * add doxygen documentation to all classes |
5 | * backport qt3-only stuff (?) | 5 | * add functionality from libqpe to libopie2 |
6 | * make libopie2 a drop-in-replacement for libqpe1 | ||
6 | 7 | ||
diff --git a/libopie2/STATUS b/libopie2/STATUS deleted file mode 100644 index eb3442c..0000000 --- a/libopie2/STATUS +++ b/dev/null | |||
@@ -1,68 +0,0 @@ | |||
1 | |||
2 | ================================================================== | ||
3 | March 2003 - Initial checkin into the Opie CVS: | ||
4 | ================================================================== | ||
5 | |||
6 | So, this is what I have been working on over the last months. | ||
7 | It's a part of what I think could migrate into our next generation | ||
8 | opielibs. | ||
9 | Of course this won't happen after we released Opie 1.0 and switched | ||
10 | to Qt3-Embedded and gcc 3. | ||
11 | |||
12 | Right now, there is content only in opiecore, opienet and opieui. | ||
13 | A good part of code has been adapted from the kdelibs, which overall | ||
14 | are pretty good however in details of heterogenous quality. I'm also | ||
15 | not sure if all I ported should be kept, e.g. the pixmapeffect stuff | ||
16 | seems unnecesary to me. However, we should not forget that Opie will | ||
17 | make its debut on more powerful devices with greater display | ||
18 | resolution, e.g. the Sharp C700, so we shouldn't limit ourselves in | ||
19 | what should go into the libraries. | ||
20 | |||
21 | Generally spoken, a lot of things are still very rough and messy, | ||
22 | but I will keep improving this. Some details about what is usable | ||
23 | and what is not follows: | ||
24 | (everything compiles of course, otherwise I wouldn't have checked in :-) | ||
25 | |||
26 | [-----------] | ||
27 | [ opiecore ] | ||
28 | [-----------] | ||
29 | oapplication, oconfig, oglobal seem to be usable yet, oglobalsettings | ||
30 | is still very messy and should be revised. A lot more thinking about how | ||
31 | we should keep opie preferences, especially when moving to multi-user, has to be made. | ||
32 | This will affect what goes into oglobalsettings and what configuration data | ||
33 | format we will use. If we switch to Qt3 we will have to decide if we stay | ||
34 | with OConfig deriving from Config or rewrite it using QSettings. | ||
35 | |||
36 | [-----------] | ||
37 | [ opiedb ] | ||
38 | [-----------] | ||
39 | There is nothing here yet. The sqlite stuff should be here. | ||
40 | |||
41 | [-----------] | ||
42 | [ opienet ] | ||
43 | [-----------] | ||
44 | onetwork*, omonitoring* and the opacket stuff are pretty usable and not | ||
45 | very far from being complete. documentation for these will come... | ||
46 | Over the next days, opie-wellenreiter, opie-wirelessapplet and the | ||
47 | forthcoming new opie-networkapplet will be using the | ||
48 | new network classes. | ||
49 | I think all the other network libraries spread throught opie, e.g. | ||
50 | libbend, libmail, ftplib should be revised and become part of | ||
51 | opienet eventually. | ||
52 | |||
53 | [-----------] | ||
54 | [ opiepim ] | ||
55 | [-----------] | ||
56 | Nothing here yet. The stuff currently in libopie/pim should be here. | ||
57 | |||
58 | [-----------] | ||
59 | [ opieui ] | ||
60 | [-----------] | ||
61 | Pretty messy yet, but some things are usable. Unfortunately, the UI | ||
62 | stuff is very hard to backport to Qt2, so some things only work | ||
63 | if compiled against Qt3, especially all the popupcompletion stuff. | ||
64 | OListView however works nice and is currently used in opie-wellenreiter. | ||
65 | |||
66 | ================================================================== | ||
67 | October 2002 - Started work on cornucopia aka opielib2 | ||
68 | ================================================================== \ No newline at end of file | ||
diff --git a/libopie2/opiecore/config.in b/libopie2/opiecore/config.in index f4483a2..0acde26 100644 --- a/libopie2/opiecore/config.in +++ b/libopie2/opiecore/config.in | |||
@@ -1,6 +1,6 @@ | |||
1 | config LIBOPIE2CORE | 1 | config LIBOPIE2CORE |
2 | boolean "libopie2core (application, configuration and debug related classes)" | 2 | boolean "libopie2core (application, configuration and debug related classes)" |
3 | default "n" | 3 | default "y" |
4 | depends ( LIBQPE || LIBQPE-X11 ) | 4 | depends ( LIBQPE || LIBQPE-X11 ) |
5 | comment "libopie2core needs a libqpe (yet)" | 5 | comment "libopie2core needs a libqpe (yet)" |
6 | depends !( LIBQPE || LIBQPE-X11 ) | 6 | depends !( LIBQPE || LIBQPE-X11 ) |
diff --git a/libopie2/opiedb/config.in b/libopie2/opiedb/config.in index 0205a83..8039f9c 100644 --- a/libopie2/opiedb/config.in +++ b/libopie2/opiedb/config.in | |||
@@ -1,7 +1,7 @@ | |||
1 | config LIBOPIE2DB | 1 | config LIBOPIE2DB |
2 | boolean "libopie2db (database related classes)" | 2 | boolean "libopie2db (database related classes)" |
3 | default "n" | 3 | default "y" |
4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE | 4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE |
5 | comment "libopie2db needs a libqpe and libopie2core" | 5 | comment "libopie2db needs a libqpe and libopie2core" |
6 | depends !(( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE) | 6 | depends !(( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE) |
7 | 7 | ||
diff --git a/libopie2/opiemm/config.in b/libopie2/opiemm/config.in index c95d14b..c32e06c 100644 --- a/libopie2/opiemm/config.in +++ b/libopie2/opiemm/config.in | |||
@@ -1,7 +1,7 @@ | |||
1 | config LIBOPIE2MM | 1 | config LIBOPIE2MM |
2 | boolean "libopie2mm (audio and video related classes)" | 2 | boolean "libopie2mm (audio and video related classes)" |
3 | default "n" | 3 | default "y" |
4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE | 4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE |
5 | comment "libopie2mm needs a libqpe and libopie2core" | 5 | comment "libopie2mm needs a libqpe and libopie2core" |
6 | depends !(( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE) | 6 | depends !(( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE) |
7 | 7 | ||
diff --git a/libopie2/opiepim/config.in b/libopie2/opiepim/config.in index 2c920bb..33ef9b2 100644 --- a/libopie2/opiepim/config.in +++ b/libopie2/opiepim/config.in | |||
@@ -1,21 +1,21 @@ | |||
1 | config LIBOPIE2PIM | 1 | config LIBOPIE2PIM |
2 | boolean "libopie2pim (pim related classes)" | 2 | boolean "libopie2pim (pim related classes)" |
3 | default "n" | 3 | default "y" |
4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE | 4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE |
5 | comment "libopie2pim needs a libqpe and libopie2core" | 5 | comment "libopie2pim needs a libqpe and libopie2core" |
6 | depends !(( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE ) | 6 | depends !(( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE ) |
7 | 7 | ||
8 | config SQL_PIM_BACKEND | 8 | config SQL_PIM_BACKEND |
9 | boolean "Enable SQL Backend for libopie2pim" | 9 | boolean "Enable SQL Backend for libopie2pim" |
10 | default n | 10 | default n |
11 | help | 11 | help |
12 | This adds the SQL-Support, using SQLite. Which database is used | 12 | This adds the SQL-Support, using SQLite. Which database is used |
13 | by the backends is defined by the file "pimaccess.conf" in the | 13 | by the backends is defined by the file "pimaccess.conf" in the |
14 | directory "Settings". | 14 | directory "Settings". |
15 | There currently do exist to groups "[contact]" and "[todo]". You can | 15 | There currently do exist to groups "[contact]" and "[todo]". You can |
16 | select the used backend by the variable "usebackend=<type>", where | 16 | select the used backend by the variable "usebackend=<type>", where |
17 | <type> is "sql" or "xml". "xml" is the default ! | 17 | <type> is "sql" or "xml". "xml" is the default ! |
18 | Important: The SQLite-library "libsqlite.so" must be installed ! | 18 | Important: The SQLite-library "libsqlite.so" must be installed ! |
19 | depends ( LIBOPIE2DB ) | 19 | depends ( LIBOPIE2DB ) |
20 | comment "SQL-Support needs libopie2db (and libsqlite)" | 20 | comment "SQL-Support needs libopie2db (and libsqlite)" |
21 | depends !( LIBOPIE2DB ) | 21 | depends !( LIBOPIE2DB ) |
diff --git a/libopie2/opieui/config.in b/libopie2/opieui/config.in index d40b5d9..9d157a5 100644 --- a/libopie2/opieui/config.in +++ b/libopie2/opieui/config.in | |||
@@ -1,7 +1,7 @@ | |||
1 | config LIBOPIE2UI | 1 | config LIBOPIE2UI |
2 | boolean "libopie2ui (user interface related classes)" | 2 | boolean "libopie2ui (user interface related classes)" |
3 | default "n" | 3 | default "y" |
4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE | 4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE |
5 | comment "libopie2ui needs a libqpe and libopie2core" | 5 | comment "libopie2ui needs a libqpe and libopie2core" |
6 | depends !(( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE) | 6 | depends !(( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE) |
7 | 7 | ||
diff --git a/libopie2/opieui/otimepicker.h b/libopie2/opieui/otimepicker.h index fb20781..894fbef 100644 --- a/libopie2/opieui/otimepicker.h +++ b/libopie2/opieui/otimepicker.h | |||
@@ -1,83 +1,83 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the Opie Project | 2 | This file is part of the Opie Project |
3 | Copyright (C) Stefan Eilers <eilers.stefan@epost.de> | 3 | Copyright (C) Stefan Eilers <eilers.stefan@epost.de> |
4 | =. Copyright (C) The Opie Team <opie-devel@handhelds.org> | 4 | =. Copyright (C) The Opie Team <opie-devel@handhelds.org> |
5 | .=l. | 5 | .=l. |
6 | .>+-= | 6 | .>+-= |
7 | _;:, .> :=|. This program is free software; you can | 7 | _;:, .> :=|. This program is free software; you can |
8 | .> <`_, > . <= redistribute it and/or modify it under | 8 | .> <`_, > . <= redistribute it and/or modify it under |
9 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | 9 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public |
10 | .="- .-=="i, .._ License as published by the Free Software | 10 | .="- .-=="i, .._ License as published by the Free Software |
11 | - . .-<_> .<> Foundation; either version 2 of the License, | 11 | - . .-<_> .<> Foundation; either version 2 of the License, |
12 | ._= =} : or (at your option) any later version. | 12 | ._= =} : or (at your option) any later version. |
13 | .%`+i> _;_. | 13 | .%`+i> _;_. |
14 | .i_,=:_. -<s. This program is distributed in the hope that | 14 | .i_,=:_. -<s. This program is distributed in the hope that |
15 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 15 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
16 | : .. .:, . . . without even the implied warranty of | 16 | : .. .:, . . . without even the implied warranty of |
17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
19 | ..}^=.= = ; Library General Public License for more | 19 | ..}^=.= = ; Library General Public License for more |
20 | ++= -. .` .: details. | 20 | ++= -. .` .: details. |
21 | : = ...= . :.=- | 21 | : = ...= . :.=- |
22 | -. .:....=;==+<; You should have received a copy of the GNU | 22 | -. .:....=;==+<; You should have received a copy of the GNU |
23 | -_. . . )=. = Library General Public License along with | 23 | -_. . . )=. = Library General Public License along with |
24 | -- :-=` this library; see the file COPYING.LIB. | 24 | -- :-=` this library; see the file COPYING.LIB. |
25 | If not, write to the Free Software Foundation, | 25 | If not, write to the Free Software Foundation, |
26 | Inc., 59 Temple Place - Suite 330, | 26 | Inc., 59 Temple Place - Suite 330, |
27 | Boston, MA 02111-1307, USA. | 27 | Boston, MA 02111-1307, USA. |
28 | */ | 28 | */ |
29 | 29 | ||
30 | #ifndef OTIMEPICKER_H | 30 | #ifndef OTIMEPICKER_H |
31 | #define OTIMEPICKER_H | 31 | #define OTIMEPICKER_H |
32 | 32 | ||
33 | /* OPIE */ | 33 | /* OPIE */ |
34 | #include <opie2/oclickablelabel.h> | 34 | #include "oclickablelabel.h" |
35 | #include <opie2/otimepickerbase.h> | 35 | #include "otimepickerbase.h" |
36 | 36 | ||
37 | /* QT */ | 37 | /* QT */ |
38 | #include <qwidget.h> | 38 | #include <qwidget.h> |
39 | #include <qvaluelist.h> | 39 | #include <qvaluelist.h> |
40 | #include <qdatetime.h> | 40 | #include <qdatetime.h> |
41 | #include <qdialog.h> | 41 | #include <qdialog.h> |
42 | 42 | ||
43 | 43 | ||
44 | namespace Opie { | 44 | namespace Opie { |
45 | namespace Ui { | 45 | namespace Ui { |
46 | 46 | ||
47 | /** | 47 | /** |
48 | * A class to pick time. It uses clickable labels | 48 | * A class to pick time. It uses clickable labels |
49 | * internally to allow a quick selection of a time. | 49 | * internally to allow a quick selection of a time. |
50 | * A time can be selected by two clicks of a user | 50 | * A time can be selected by two clicks of a user |
51 | * | 51 | * |
52 | * @short A widget to quickly pick a QTime | 52 | * @short A widget to quickly pick a QTime |
53 | * @version 1.0 | 53 | * @version 1.0 |
54 | * @see QWidget | 54 | * @see QWidget |
55 | * @see QTime | 55 | * @see QTime |
56 | * @author Hakan Ardo, Stefan Eilers | 56 | * @author Hakan Ardo, Stefan Eilers |
57 | */ | 57 | */ |
58 | class OTimePicker : public QWidget | 58 | class OTimePicker : public QWidget |
59 | { | 59 | { |
60 | Q_OBJECT | 60 | Q_OBJECT |
61 | 61 | ||
62 | public: | 62 | public: |
63 | OTimePicker(QWidget* parent = 0, const char* name = 0, WFlags fl = 0); | 63 | OTimePicker(QWidget* parent = 0, const char* name = 0, WFlags fl = 0); |
64 | 64 | ||
65 | public slots: | 65 | public slots: |
66 | void setHour(int h); | 66 | void setHour(int h); |
67 | void setMinute(int m); | 67 | void setMinute(int m); |
68 | void setTime( const QTime& ); | 68 | void setTime( const QTime& ); |
69 | void setTime( int h, int m ); | 69 | void setTime( int h, int m ); |
70 | 70 | ||
71 | public: | 71 | public: |
72 | QTime time()const; | 72 | QTime time()const; |
73 | 73 | ||
74 | private: | 74 | private: |
75 | QValueList<OClickableLabel *> hourLst; | 75 | QValueList<OClickableLabel *> hourLst; |
76 | QValueList<OClickableLabel *> minuteLst; | 76 | QValueList<OClickableLabel *> minuteLst; |
77 | QTime tm; | 77 | QTime tm; |
78 | struct Private; | 78 | struct Private; |
79 | Private *d; | 79 | Private *d; |
80 | 80 | ||
81 | private slots: | 81 | private slots: |
82 | void slotHour(bool b); | 82 | void slotHour(bool b); |
83 | void slotMinute(bool b); | 83 | void slotMinute(bool b); |