author | mickeyl <mickeyl> | 2006-05-25 22:24:28 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2006-05-25 22:24:28 (UTC) |
commit | 1004aa580c4f115b9959027deb7f19997adc9df8 (patch) (unidiff) | |
tree | fe45305ff09811d851f54db946746e5562cda839 | |
parent | 3939f306b734491e04ee3df7043302bd0990df05 (diff) | |
download | opie-1004aa580c4f115b9959027deb7f19997adc9df8.zip opie-1004aa580c4f115b9959027deb7f19997adc9df8.tar.gz opie-1004aa580c4f115b9959027deb7f19997adc9df8.tar.bz2 |
remove libslcompat
-rw-r--r-- | Rules.make | 2 | ||||
-rw-r--r-- | config.in | 1 | ||||
-rw-r--r-- | libslcompat/.cvsignore | 6 | ||||
-rw-r--r-- | libslcompat/README | 4 | ||||
-rw-r--r-- | libslcompat/config.in | 4 | ||||
-rw-r--r-- | libslcompat/libslcompat.pro | 16 | ||||
-rw-r--r-- | libslcompat/slcolorselector.cpp | 64 | ||||
-rw-r--r-- | libslcompat/slcolorselector.h | 112 | ||||
-rw-r--r-- | libslcompat/slfiledialog.h | 70 | ||||
-rw-r--r-- | libslcompat/slfileselector.cpp | 86 | ||||
-rw-r--r-- | libslcompat/slfileselector.h | 413 | ||||
-rw-r--r-- | libslcompat/slmisc.h | 135 | ||||
-rw-r--r-- | packages | 1 |
13 files changed, 0 insertions, 914 deletions
@@ -172,109 +172,107 @@ $(QTDIR)/stamp-headers-x11 : | |||
172 | $(OPIEDIR)/stamp-headers : | 172 | $(OPIEDIR)/stamp-headers : |
173 | @-rm -f $(OPIEDIR)/stamp-headers* | 173 | @-rm -f $(OPIEDIR)/stamp-headers* |
174 | mkdir -p $(TOPDIR)/include/qpe \ | 174 | mkdir -p $(TOPDIR)/include/qpe \ |
175 | $(TOPDIR)/include/qtopia \ | 175 | $(TOPDIR)/include/qtopia \ |
176 | $(TOPDIR)/include/opie \ | 176 | $(TOPDIR)/include/opie \ |
177 | $(TOPDIR)/include/opie2 \ | 177 | $(TOPDIR)/include/opie2 \ |
178 | $(TOPDIR)/include/opie2/private \ | 178 | $(TOPDIR)/include/opie2/private \ |
179 | $(TOPDIR)/include/qtopia/private \ | 179 | $(TOPDIR)/include/qtopia/private \ |
180 | $(TOPDIR)/include/sl \ | 180 | $(TOPDIR)/include/sl \ |
181 | $(TOPDIR)/include/opietooth | 181 | $(TOPDIR)/include/opietooth |
182 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) | 182 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
183 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) | 183 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
184 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) | 184 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
185 | # libopie2 | 185 | # libopie2 |
186 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) | 186 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) |
187 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) | 187 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) |
188 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/linux/*.h .; ) | 188 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/linux/*.h .; ) |
189 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) | 189 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) |
190 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) | 190 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) |
191 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) | 191 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) |
192 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) | 192 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) |
193 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) | 193 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) |
194 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; ) | 194 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; ) |
195 | ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; ) | 195 | ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; ) |
196 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) | 196 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) |
197 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) | 197 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) |
198 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) | 198 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) |
199 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) | 199 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) |
200 | ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) | 200 | ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) |
201 | ( cd include/opie2 && ln -sf ../../libopie2/opiebluez/*.h .; ) | 201 | ( cd include/opie2 && ln -sf ../../libopie2/opiebluez/*.h .; ) |
202 | # auxilliary libraries | 202 | # auxilliary libraries |
203 | ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) | 203 | ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) |
204 | ( cd include/sl && ln -sf ../../libslcompat/*.h .; ) | ||
205 | ( cd include/opietooth && ln -sf ../../noncore/net/opietooth/lib/*.h .; ) | 204 | ( cd include/opietooth && ln -sf ../../noncore/net/opietooth/lib/*.h .; ) |
206 | ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; ) | 205 | ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; ) |
207 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; ) | 206 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; ) |
208 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; ) | 207 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; ) |
209 | # all | 208 | # all |
210 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 209 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
211 | ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) | 210 | ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) |
212 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 211 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
213 | ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) | 212 | ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) |
214 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h | 213 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h |
215 | touch $@ | 214 | touch $@ |
216 | 215 | ||
217 | $(OPIEDIR)/stamp-headers-x11 : | 216 | $(OPIEDIR)/stamp-headers-x11 : |
218 | @-rm -f $(OPIEDIR)/stamp-headers* | 217 | @-rm -f $(OPIEDIR)/stamp-headers* |
219 | mkdir -p $(TOPDIR)/include/qpe \ | 218 | mkdir -p $(TOPDIR)/include/qpe \ |
220 | $(TOPDIR)/include/qtopia \ | 219 | $(TOPDIR)/include/qtopia \ |
221 | $(TOPDIR)/include/qtopia/private \ | 220 | $(TOPDIR)/include/qtopia/private \ |
222 | $(TOPDIR)/include/opie \ | 221 | $(TOPDIR)/include/opie \ |
223 | $(TOPDIR)/include/opie2 \ | 222 | $(TOPDIR)/include/opie2 \ |
224 | $(TOPDIR)/include/opie2/private \ | 223 | $(TOPDIR)/include/opie2/private \ |
225 | $(TOPDIR)/include/sl \ | 224 | $(TOPDIR)/include/sl \ |
226 | $(TOPDIR)/include/opietooth | 225 | $(TOPDIR)/include/opietooth |
227 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) | 226 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
228 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) | 227 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
229 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) | 228 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
230 | # libopie2 | 229 | # libopie2 |
231 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) | 230 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) |
232 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) | 231 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/device/*.h .; ) |
233 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) | 232 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) |
234 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) | 233 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) |
235 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) | 234 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) |
236 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) | 235 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) |
237 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) | 236 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; ) |
238 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; ) | 237 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/backend/*.h .; ) |
239 | ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; ) | 238 | ( cd include/opie2/private && ln -sf ../../../libopie2/opiepim/private/*.h .; ) |
240 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) | 239 | ( cd include/opie2 && ln -sf ../../libopie2/opiepim/ui/*.h .; ) |
241 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) | 240 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) |
242 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) | 241 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/fileselector/*.h .; ) |
243 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) | 242 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/big-screen/*.h .; ) |
244 | ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) | 243 | ( cd include/opie2 && ln -sf ../../libopie2/opiesecurity/*.h .; ) |
245 | ( cd include/opie2 && ln -sf ../../libopie2/opiebluez/*.h .; ) | 244 | ( cd include/opie2 && ln -sf ../../libopie2/opiebluez/*.h .; ) |
246 | # auxilliary libraries | 245 | # auxilliary libraries |
247 | ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) | 246 | ( cd include/opie2 && ln -sf ../../libqtaux/*.h .; ) |
248 | ( cd include/sl && ln -sf ../../libslcompat/*.h .; ) | ||
249 | ( cd include/opietooth && ln -s ../../noncore/net/opietooth/lib/*.h .; ) | 247 | ( cd include/opietooth && ln -s ../../noncore/net/opietooth/lib/*.h .; ) |
250 | ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; ) | 248 | ( cd include/ && ln -sf ../noncore/net/ftplib/*.h .; ) |
251 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; ) | 249 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardcfg.h .; ) |
252 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; ) | 250 | ( cd include/ && ln -sf ../inputmethods/pickboard/pickboardpicks.h .; ) |
253 | # all | 251 | # all |
254 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 252 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opieui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
255 | ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) | 253 | ln -sf ../../libopie2/opieui/$$generatedHeader $$generatedHeader; done ) |
256 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 254 | ( cd include/opie2; for generatedHeader in `cd ../../libopie2/opiepim/ui; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
257 | ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) | 255 | ln -sf ../../libopie2/opiepim/ui/$$generatedHeader $$generatedHeader; done ) |
258 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h | 256 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h |
259 | 257 | ||
260 | # Qtopia | 258 | # Qtopia |
261 | ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) | 259 | ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) |
262 | ( cd include/qtopia; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) | 260 | ( cd include/qtopia; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) |
263 | touch $@ | 261 | touch $@ |
264 | 262 | ||
265 | $(TOPDIR)/library/custom.h : $(TOPDIR)/.config | 263 | $(TOPDIR)/library/custom.h : $(TOPDIR)/.config |
266 | @-rm -f $@ | 264 | @-rm -f $@ |
267 | @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ | 265 | @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ |
268 | ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) | 266 | ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) |
269 | @touch $@ | 267 | @touch $@ |
270 | 268 | ||
271 | $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf $(TOPDIR)/scripts/kconfig/conf $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/qmake/qmake: | 269 | $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf $(TOPDIR)/scripts/kconfig/conf $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/qmake/qmake: |
272 | +$(call descend,$(shell dirname $@),$(shell basename $@)) | 270 | +$(call descend,$(shell dirname $@),$(shell basename $@)) |
273 | 271 | ||
274 | menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in | 272 | menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in |
275 | $(TOPDIR)/scripts/kconfig/mconf ./config.in | 273 | $(TOPDIR)/scripts/kconfig/mconf ./config.in |
276 | @touch ./.config.stamp | 274 | @touch ./.config.stamp |
277 | 275 | ||
278 | xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in | 276 | xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in |
279 | $(TOPDIR)/scripts/kconfig/qconf ./config.in | 277 | $(TOPDIR)/scripts/kconfig/qconf ./config.in |
280 | @touch .config.stamp | 278 | @touch .config.stamp |
@@ -263,35 +263,34 @@ endmenu | |||
263 | menu "Theming" | 263 | menu "Theming" |
264 | comment "Decorations ---" | 264 | comment "Decorations ---" |
265 | source noncore/decorations/config.in | 265 | source noncore/decorations/config.in |
266 | comment "Styles ---" | 266 | comment "Styles ---" |
267 | source noncore/styles/config.in | 267 | source noncore/styles/config.in |
268 | endmenu | 268 | endmenu |
269 | 269 | ||
270 | menu "Tools" | 270 | menu "Tools" |
271 | source noncore/tools/config.in | 271 | source noncore/tools/config.in |
272 | endmenu | 272 | endmenu |
273 | 273 | ||
274 | menu "Development" | 274 | menu "Development" |
275 | source development/keyview/config.in | 275 | source development/keyview/config.in |
276 | #source development/debugviewer/config.in | 276 | #source development/debugviewer/config.in |
277 | endmenu | 277 | endmenu |
278 | 278 | ||
279 | menu "Examples" | 279 | menu "Examples" |
280 | config EXAMPLES | 280 | config EXAMPLES |
281 | boolean "Compile Example Application" | 281 | boolean "Compile Example Application" |
282 | source examples/config.in | 282 | source examples/config.in |
283 | endmenu | 283 | endmenu |
284 | 284 | ||
285 | comment "" | 285 | comment "" |
286 | 286 | ||
287 | menu "Unsupported / Unmaintained" | 287 | menu "Unsupported / Unmaintained" |
288 | source noncore/unsupported/config.in | 288 | source noncore/unsupported/config.in |
289 | endmenu | 289 | endmenu |
290 | 290 | ||
291 | comment "" | 291 | comment "" |
292 | depends on EXPERIMENTAL | 292 | depends on EXPERIMENTAL |
293 | menu "Experimental" | 293 | menu "Experimental" |
294 | depends on EXPERIMENTAL | 294 | depends on EXPERIMENTAL |
295 | source libslcompat/config.in | ||
296 | source core/qws/config.in | 295 | source core/qws/config.in |
297 | endmenu | 296 | endmenu |
diff --git a/libslcompat/.cvsignore b/libslcompat/.cvsignore deleted file mode 100644 index 8f7300c..0000000 --- a/libslcompat/.cvsignore +++ b/dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | Makefile* | ||
2 | moc* | ||
3 | *moc | ||
4 | *.o | ||
5 | ~* | ||
6 | |||
diff --git a/libslcompat/README b/libslcompat/README deleted file mode 100644 index 1bed034..0000000 --- a/libslcompat/README +++ b/dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | Skeleton for a compat library for the Sharp closed source libsl. | ||
2 | Early stage and will probably never be useful except for getting | ||
3 | some of the japaneese apps to compile. | ||
4 | Better pester Sharp to open up their sources. | ||
diff --git a/libslcompat/config.in b/libslcompat/config.in deleted file mode 100644 index 87db3c2..0000000 --- a/libslcompat/config.in +++ b/dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | config LIBSLCOMPAT | ||
2 | boolean "Sharp libsl compatibility library" | ||
3 | default "n" | ||
4 | depends on LIBOPIE2UI && LIBQTAUX | ||
diff --git a/libslcompat/libslcompat.pro b/libslcompat/libslcompat.pro deleted file mode 100644 index 75c8ff5..0000000 --- a/libslcompat/libslcompat.pro +++ b/dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | TEMPLATE = lib | ||
2 | CONFIG += qte warn_on | ||
3 | |||
4 | HEADERS = slcolorselector.h \ | ||
5 | slfileselector.h \ | ||
6 | slmisc.h | ||
7 | |||
8 | SOURCES = slcolorselector.cpp \ | ||
9 | slfileselector.cpp | ||
10 | |||
11 | TARGET = slcompat | ||
12 | INCLUDEPATH += $(OPIEDIR)/include | ||
13 | DESTDIR = $(OPIEDIR)/lib | ||
14 | LIBS += -lopiecore2 -lopieui2 -lqtaux2 | ||
15 | |||
16 | include( $(OPIEDIR)/include.pro ) | ||
diff --git a/libslcompat/slcolorselector.cpp b/libslcompat/slcolorselector.cpp deleted file mode 100644 index 18b408f..0000000 --- a/libslcompat/slcolorselector.cpp +++ b/dev/null | |||
@@ -1,64 +0,0 @@ | |||
1 | #include "slcolorselector.h" | ||
2 | |||
3 | SlColorTable::SlColorTable( QWidget *parent, const char *name,WFlags f, | ||
4 | int r, int c, const QRgb *a ) | ||
5 | :QTableView( parent, name, f ) | ||
6 | { | ||
7 | } | ||
8 | |||
9 | SlColorTable::~SlColorTable() | ||
10 | { | ||
11 | } | ||
12 | |||
13 | QSize SlColorTable::sizeHint() const | ||
14 | { | ||
15 | } | ||
16 | |||
17 | void SlColorTable::paintCell(QPainter*,int,int) | ||
18 | { | ||
19 | } | ||
20 | |||
21 | void SlColorTable::mousePressEvent(QMouseEvent*) | ||
22 | { | ||
23 | } | ||
24 | |||
25 | void SlColorTable::mouseMoveEvent(QMouseEvent*) | ||
26 | { | ||
27 | } | ||
28 | |||
29 | void SlColorTable::mouseReleaseEvent(QMouseEvent*) | ||
30 | { | ||
31 | } | ||
32 | |||
33 | void SlColorTable::keyPressEvent(QKeyEvent*) | ||
34 | { | ||
35 | } | ||
36 | |||
37 | |||
38 | /*================================================================*/ | ||
39 | |||
40 | SlColorSelector::SlColorSelector(bool isTransparentAccept, QWidget *parent, const char *name, WFlags f) | ||
41 | :QVBox( parent, name, f ) | ||
42 | { | ||
43 | } | ||
44 | |||
45 | SlColorSelector::~SlColorSelector() | ||
46 | { | ||
47 | } | ||
48 | |||
49 | /*================================================================*/ | ||
50 | |||
51 | SlColorSelectorPopup::SlColorSelectorPopup(bool isTransparentAccept, QWidget *parent, const char *name, WFlags f) | ||
52 | :OColorPopupMenu( QColor(), parent, name ) | ||
53 | { | ||
54 | } | ||
55 | |||
56 | |||
57 | SlColorSelectorPopup::~SlColorSelectorPopup() | ||
58 | { | ||
59 | } | ||
60 | |||
61 | void SlColorSelectorPopup::setCurrentColor(QRgb) | ||
62 | { | ||
63 | } | ||
64 | |||
diff --git a/libslcompat/slcolorselector.h b/libslcompat/slcolorselector.h deleted file mode 100644 index e1ee1f2..0000000 --- a/libslcompat/slcolorselector.h +++ b/dev/null | |||
@@ -1,112 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2002 SHARP CORPORATION All rights reserved. | ||
3 | */ | ||
4 | #ifndef _SLCOLORSELECTOR_H_INCLUDED | ||
5 | #define _SLCOLORSELECTOR_H_INCLUDED | ||
6 | |||
7 | #include <opie2/ocolorpopupmenu.h> | ||
8 | using namespace Opie; | ||
9 | #include <qtableview.h> | ||
10 | #include <qpopupmenu.h> | ||
11 | #include <qvbox.h> | ||
12 | |||
13 | #define DEF_COLOR_R (6) | ||
14 | #define DEF_COLOR_C (8) | ||
15 | struct SlColorTablePrivate; | ||
16 | class SlColorTable : public QTableView | ||
17 | { | ||
18 | Q_OBJECT | ||
19 | public: | ||
20 | SlColorTable(QWidget *parent=0,const char *name=NULL,WFlags f=0, | ||
21 | int r=DEF_COLOR_R,int c=DEF_COLOR_C,const QRgb *a=NULL); | ||
22 | ~SlColorTable(); | ||
23 | void setCurrentColor(QRgb); | ||
24 | |||
25 | protected: | ||
26 | QSize sizeHint() const; | ||
27 | void paintCell(QPainter*,int,int); | ||
28 | void mousePressEvent(QMouseEvent*); | ||
29 | void mouseMoveEvent(QMouseEvent*); | ||
30 | void mouseReleaseEvent(QMouseEvent*); | ||
31 | void keyPressEvent(QKeyEvent*); | ||
32 | |||
33 | signals: | ||
34 | |||
35 | |||
36 | void selected(QRgb rgb); | ||
37 | |||
38 | |||
39 | void reSelected(QRgb rgb); | ||
40 | |||
41 | private: | ||
42 | SlColorTablePrivate *p; | ||
43 | void setCurrent(int,int); | ||
44 | void setSelected(int,int); | ||
45 | QRgb getRgbInCell(int,int); | ||
46 | }; | ||
47 | |||
48 | |||
49 | struct SlColorSelectorPrivate; | ||
50 | class SlColorSelector : public QVBox | ||
51 | { | ||
52 | Q_OBJECT | ||
53 | public: | ||
54 | SlColorSelector(bool isTransparentAccept, | ||
55 | QWidget *parent=0,const char *name=NULL,WFlags f=0); | ||
56 | ~SlColorSelector(); | ||
57 | void setCurrentColor(QRgb); | ||
58 | void setCurrentColorTransparent(); | ||
59 | |||
60 | signals: | ||
61 | |||
62 | |||
63 | void selected(QRgb rgb); | ||
64 | |||
65 | |||
66 | void reSelected(QRgb rgb); | ||
67 | |||
68 | |||
69 | void transparentSelected(); | ||
70 | |||
71 | |||
72 | void transparentReSelected(); | ||
73 | /* | ||
74 | private slots: | ||
75 | void slotTransparentToggled(int); | ||
76 | */ | ||
77 | private: | ||
78 | SlColorSelectorPrivate *p; | ||
79 | }; | ||
80 | |||
81 | struct SlColorSelectorPopupPrivate; | ||
82 | class SlColorSelectorPopup : public OColorPopupMenu //QPopupMenu | ||
83 | { | ||
84 | Q_OBJECT | ||
85 | public: | ||
86 | SlColorSelectorPopup(bool isTransparentAccept, | ||
87 | QWidget *parent=0,const char *name=NULL,WFlags f=0); | ||
88 | ~SlColorSelectorPopup(); | ||
89 | void setCurrentColor(QRgb); | ||
90 | void setCurrentColorTransparent(); | ||
91 | |||
92 | signals: | ||
93 | |||
94 | |||
95 | void selected(QRgb rgb); | ||
96 | |||
97 | |||
98 | void transparentSelected(); | ||
99 | /* | ||
100 | private slots: | ||
101 | void slotSelected(QRgb); | ||
102 | void slotReSelected(QRgb); | ||
103 | void slotTransparentSelected(); | ||
104 | void slotTransparentReSelected(); | ||
105 | */ | ||
106 | private: | ||
107 | SlColorSelectorPopupPrivate *p; | ||
108 | }; | ||
109 | |||
110 | #endif | ||
111 | |||
112 | |||
diff --git a/libslcompat/slfiledialog.h b/libslcompat/slfiledialog.h deleted file mode 100644 index 2ad105c..0000000 --- a/libslcompat/slfiledialog.h +++ b/dev/null | |||
@@ -1,70 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2002 SHARP CORPORATION All rights reserved. | ||
3 | */ | ||
4 | #ifndef __SLFILEDIALOG_H__ | ||
5 | #define __SLFILEDIALOG_H__ | ||
6 | |||
7 | #include <qdialog.h> | ||
8 | #include <qfileinfo.h> | ||
9 | #include <qvalidator.h> | ||
10 | #include <sl/slmisc.h> | ||
11 | |||
12 | class SlFileNameValidator : public QValidator | ||
13 | { | ||
14 | Q_OBJECT | ||
15 | public: | ||
16 | SlFileNameValidator( QWidget * parent, const char * name = 0 ) : QValidator(parent,name) {}; | ||
17 | virtual State validate(QString&,int&) const; | ||
18 | virtual void fixup(QString&) const; | ||
19 | }; | ||
20 | |||
21 | class SlFileDialogPrivate; | ||
22 | class SlFileDialog : public QDialog | ||
23 | { | ||
24 | Q_OBJECT | ||
25 | public: | ||
26 | |||
27 | |||
28 | SlFileDialog(bool bSaveAs = FALSE, QWidget * parent=0, const char * name=0, bool modal=TRUE, WFlags f=0 ); | ||
29 | |||
30 | |||
31 | virtual ~SlFileDialog(); | ||
32 | |||
33 | |||
34 | void setNewDirEnabled(bool); | ||
35 | |||
36 | |||
37 | void setDefaultFile( QString path ); | ||
38 | void setDefaultName( QString name ); | ||
39 | |||
40 | |||
41 | void setMimeType( QString mime ); | ||
42 | |||
43 | |||
44 | void setComplementExt( QString ext ); | ||
45 | |||
46 | |||
47 | void setIconViewType(bool isIcon); | ||
48 | |||
49 | |||
50 | QString &getFilePath(); | ||
51 | QString &getFileName(); | ||
52 | |||
53 | int exec(); | ||
54 | |||
55 | protected slots: | ||
56 | virtual void accept(); | ||
57 | |||
58 | void fileSelected(const QFileInfo &fInfo); | ||
59 | void slotNewDir(); | ||
60 | void rotateChanged(); | ||
61 | void keyPressed(QKeyEvent*,bool&); | ||
62 | |||
63 | protected: | ||
64 | void getDefaultColumnWidth(SlMisc::SlListColumnInfos &infos); | ||
65 | |||
66 | SlFileDialogPrivate *m_pD; | ||
67 | |||
68 | }; | ||
69 | |||
70 | #endif | ||
diff --git a/libslcompat/slfileselector.cpp b/libslcompat/slfileselector.cpp deleted file mode 100644 index 3189b51..0000000 --- a/libslcompat/slfileselector.cpp +++ b/dev/null | |||
@@ -1,86 +0,0 @@ | |||
1 | #include "slfileselector.h" | ||
2 | |||
3 | SlFileIconView::SlFileIconView( QWidget* parent, const char* name ) | ||
4 | :QIconView( parent, name ) | ||
5 | { | ||
6 | } | ||
7 | |||
8 | SlFileIconView::~SlFileIconView() | ||
9 | { | ||
10 | } | ||
11 | |||
12 | /*================================================================*/ | ||
13 | |||
14 | SlFileListView::SlFileListView( QWidget* parent, const char* name ) | ||
15 | :QListView( parent, name ) | ||
16 | { | ||
17 | } | ||
18 | |||
19 | SlFileListView::~SlFileListView() | ||
20 | { | ||
21 | } | ||
22 | |||
23 | /*================================================================*/ | ||
24 | |||
25 | SlFileSelector::SlFileSelector( const QString &dirPath, const QString &mimefilter, QWidget *parent, const char *name ) | ||
26 | :OFileSelector( dirPath, parent, name ) | ||
27 | { | ||
28 | } | ||
29 | |||
30 | SlFileSelector::~SlFileSelector() | ||
31 | { | ||
32 | } | ||
33 | |||
34 | bool SlFileSelector::isTopDir() | ||
35 | { | ||
36 | return false; | ||
37 | } | ||
38 | |||
39 | void SlFileSelector::setSelected() | ||
40 | { | ||
41 | } | ||
42 | |||
43 | void SlFileSelector::setSelected(const QString&) | ||
44 | { | ||
45 | int a; | ||
46 | } | ||
47 | |||
48 | void SlFileSelector::createFileList() | ||
49 | { | ||
50 | int a; | ||
51 | } | ||
52 | |||
53 | void SlFileSelector::createFileList(QDir&) | ||
54 | { | ||
55 | int a; | ||
56 | } | ||
57 | |||
58 | const QFileInfo* SlFileSelector::selected() | ||
59 | { | ||
60 | int a; | ||
61 | } | ||
62 | |||
63 | void SlFileSelector::setCurrentFile(const QString&) | ||
64 | { | ||
65 | int a; | ||
66 | } | ||
67 | |||
68 | const QString SlFileSelector::currentDir() | ||
69 | { | ||
70 | int a; | ||
71 | } | ||
72 | |||
73 | |||
74 | void SlFileSelector::focusInEvent(QFocusEvent*) | ||
75 | { | ||
76 | } | ||
77 | |||
78 | void SlFileSelector::show() | ||
79 | { | ||
80 | } | ||
81 | |||
82 | void SlFileSelector::keyPressEvent( QKeyEvent *e ) | ||
83 | { | ||
84 | } | ||
85 | |||
86 | |||
diff --git a/libslcompat/slfileselector.h b/libslcompat/slfileselector.h deleted file mode 100644 index 94ed3b7..0000000 --- a/libslcompat/slfileselector.h +++ b/dev/null | |||
@@ -1,413 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2002 SHARP CORPORATION All rights reserved. | ||
3 | */ | ||
4 | #ifndef _SLFILESELECTOR_H_INCLUDED | ||
5 | #define _SLFILESELECTOR_H_INCLUDED | ||
6 | |||
7 | #include <opie2/ofileselector.h> | ||
8 | #include <qhbox.h> | ||
9 | #include <qvbox.h> | ||
10 | #include <qlistview.h> | ||
11 | #include <qiconview.h> | ||
12 | #include <qtoolbutton.h> | ||
13 | #include <qfileinfo.h> | ||
14 | #include <qtableview.h> | ||
15 | #include <qwidgetstack.h> | ||
16 | #include <qvaluelist.h> | ||
17 | |||
18 | #include <qpe/applnk.h> | ||
19 | #include <qpe/mimetype.h> | ||
20 | #include <sl/slmisc.h> | ||
21 | |||
22 | class QComboBox; | ||
23 | class SlFileItemType; | ||
24 | class QCopChannel; | ||
25 | |||
26 | struct SlFileListItemPrivate; | ||
27 | class SlFileListItem | ||
28 | { | ||
29 | public: | ||
30 | SlFileListItem(const QFileInfo&,const MimeType&); | ||
31 | ~SlFileListItem(); | ||
32 | const QFileInfo &file() const; | ||
33 | const MimeType &mimeType() const; | ||
34 | const QString getItemIconFilePath() const; | ||
35 | const QString name() const; | ||
36 | void setName(const QString&); | ||
37 | const QString sortKey() const; | ||
38 | void setSortKey(const QString&); | ||
39 | QPixmap pixmap() const; | ||
40 | QPixmap bigPixmap() const; | ||
41 | const QString dateString() const; | ||
42 | const QString typeString() const; | ||
43 | const QString bytesString() const; | ||
44 | void setDevice(); | ||
45 | bool isDevice() const; | ||
46 | enum ColumnItem { | ||
47 | Name = 1, | ||
48 | Type, | ||
49 | Date, | ||
50 | Bytes, | ||
51 | Custom = 100 | ||
52 | }; | ||
53 | private: | ||
54 | SlFileListItemPrivate *p; | ||
55 | SlFileListItem(const SlFileListItem&); | ||
56 | }; | ||
57 | |||
58 | typedef QValueList<SlFileListItem*> SlFileList; | ||
59 | typedef QValueList<SlFileListItem::ColumnItem> SlFileListColumnConf; | ||
60 | |||
61 | class SlFileListViewItem; | ||
62 | |||
63 | struct SlFileListViewPrivate; | ||
64 | class SlFileListView : public QListView | ||
65 | { | ||
66 | Q_OBJECT | ||
67 | |||
68 | public: | ||
69 | SlFileListView(QWidget*, const char*); | ||
70 | ~SlFileListView(); | ||
71 | void createFileList(SlFileList&); | ||
72 | int fileCount() const; | ||
73 | void updateItem(SlFileListViewItem*); | ||
74 | void createItem(SlFileListItem*); | ||
75 | void deleteItem(const QString&); | ||
76 | void deleteItem(SlFileListViewItem*); | ||
77 | SlFileListViewItem* searchItem(const QString&); | ||
78 | SlFileListColumnConf columnConf(); | ||
79 | void setColumnConf(SlFileListColumnConf&); | ||
80 | void updateColumn(); | ||
81 | static const QString columnItemName(SlFileListItem::ColumnItem); | ||
82 | static const SlFileListColumnConf columnItemList(); | ||
83 | |||
84 | //virtual void takeItem( SlFileListViewItem * ); | ||
85 | |||
86 | SlMisc::SlListColumnInfos columnWidthInfos(); | ||
87 | |||
88 | protected: | ||
89 | //void keyPressEvent( QKeyEvent *e ); | ||
90 | |||
91 | signals: | ||
92 | void keyPressed(QKeyEvent *e,bool &isAccepted); | ||
93 | |||
94 | protected slots: | ||
95 | |||
96 | private: | ||
97 | friend class SlFileSelector; | ||
98 | SlFileListViewPrivate *p; | ||
99 | SlFileListView(const SlFileListView&); | ||
100 | }; | ||
101 | |||
102 | class SlFileIconViewItem; | ||
103 | |||
104 | struct SlFileIconViewPrivate; | ||
105 | class SlFileIconView : public QIconView | ||
106 | { | ||
107 | Q_OBJECT | ||
108 | |||
109 | public: | ||
110 | SlFileIconView(QWidget*, const char*); | ||
111 | ~SlFileIconView(); | ||
112 | void createFileList(SlFileList&); | ||
113 | int fileCount() const; | ||
114 | void updateItem(SlFileIconViewItem*); | ||
115 | void createItem(SlFileListItem*); | ||
116 | void deleteItem(const QString&); | ||
117 | void deleteItem(SlFileIconViewItem*); | ||
118 | SlFileIconViewItem* searchItem(const QString&); | ||
119 | void setSorting(int column,bool ascending); | ||
120 | int sortColumn() const; | ||
121 | void repaintItemsForce(); | ||
122 | SlFileListColumnConf columnConf(); | ||
123 | void setColumnConf(SlFileListColumnConf&); | ||
124 | |||
125 | //virtual void takeItem( SlFileIconViewItem * ); | ||
126 | |||
127 | protected: | ||
128 | //void keyPressEvent( QKeyEvent *e ); | ||
129 | |||
130 | protected slots: | ||
131 | |||
132 | signals: | ||
133 | void keyPressed(QKeyEvent *e,bool &isAccepted); | ||
134 | |||
135 | private: | ||
136 | friend class SlFileSelector; | ||
137 | SlFileIconViewPrivate *p; | ||
138 | SlFileIconView(const SlFileIconView&); | ||
139 | }; | ||
140 | |||
141 | class SlFileSelectorFilter : public QObject | ||
142 | { | ||
143 | public: | ||
144 | SlFileSelectorFilter(QWidget *parent,const char *name=0); | ||
145 | ~SlFileSelectorFilter(); | ||
146 | |||
147 | virtual bool isAddToList(QFileInfo&) const = 0; | ||
148 | private: | ||
149 | SlFileSelectorFilter(const SlFileSelectorFilter&); | ||
150 | }; | ||
151 | |||
152 | typedef QList<MimeType> SlFileMimeTypeList; | ||
153 | |||
154 | struct SlFileSelectorPrivate; | ||
155 | class SlFileSelector : public Opie::Ui::OFileSelector /*QVBox*/ | ||
156 | { | ||
157 | Q_OBJECT | ||
158 | |||
159 | public: | ||
160 | |||
161 | |||
162 | enum SlFileSelectorViewType { | ||
163 | |||
164 | ListView = 1, | ||
165 | |||
166 | IconView | ||
167 | }; | ||
168 | |||
169 | |||
170 | enum SlFileOverwirteMode { | ||
171 | |||
172 | Overwrite = 1, | ||
173 | |||
174 | NewName, | ||
175 | |||
176 | Error | ||
177 | }; | ||
178 | SlFileSelector(const QString &dirPath, | ||
179 | const QString &mimefilter, | ||
180 | QWidget *parent, | ||
181 | const char *name); | ||
182 | SlFileSelector(const QString ¤tFileName, | ||
183 | SlFileSelectorViewType type, | ||
184 | const QString &mimeFilter, | ||
185 | SlFileListColumnConf &items, | ||
186 | int sortColumn,bool sortAscending, | ||
187 | SlFileSelectorFilter *filter=NULL, | ||
188 | bool isRecursive=FALSE, | ||
189 | QWidget *parent=NULL, | ||
190 | const char *name=NULL, | ||
191 | WFlags f=0); | ||
192 | SlFileSelector(QWidget *parent=NULL,const char *name=NULL,WFlags f=0); | ||
193 | virtual ~SlFileSelector(); | ||
194 | void createFileList(); | ||
195 | void createFileList(QDir&); | ||
196 | int fileCount() const; | ||
197 | const QFileInfo* selected(); | ||
198 | void modifyItem(QFileInfo*,bool); | ||
199 | void createItem(QString&); | ||
200 | void deleteItem(const QString&); | ||
201 | void deleteItem(); | ||
202 | void updateItem(const QString&); | ||
203 | SlFileListItem* searchItem(const QString&); | ||
204 | void setSelected(); | ||
205 | void setSelected(const QString&); | ||
206 | void ensureItemVisible(); | ||
207 | SlFileListItem* selectedItem(); | ||
208 | bool setSelectedNext(bool); | ||
209 | bool setSelectedPrev(bool); | ||
210 | const QString currentDir(); | ||
211 | void setSorting(int,bool); | ||
212 | int sortColumn() const; | ||
213 | bool ascending() const; | ||
214 | SlFileSelectorViewType viewType(); | ||
215 | void setColumnItem(SlFileListColumnConf&); | ||
216 | void setViewType(SlFileSelectorViewType); | ||
217 | void setListView(); | ||
218 | void setIconView(); | ||
219 | int columnWidth(int); | ||
220 | void setColumnWidth(int,int); | ||
221 | static const QString columnItemName(SlFileListItem::ColumnItem); | ||
222 | static const SlFileListColumnConf columnItemList(); | ||
223 | |||
224 | int columns() const; | ||
225 | |||
226 | bool upDir(); | ||
227 | bool isTopDir(); | ||
228 | |||
229 | void setCurrentFile(const QString&); | ||
230 | const QString currentFile(bool isReal=FALSE); | ||
231 | static bool copyFile(const QString&,const QString&, | ||
232 | SlFileOverwirteMode m=Error, | ||
233 | QString *resultName=NULL); | ||
234 | |||
235 | static bool copyFileCreateDir(const QString &srcName, | ||
236 | const QString &dstName, | ||
237 | SlFileOverwirteMode m=Error, | ||
238 | QString *resultName=NULL); | ||
239 | static bool moveFile(const QString&,const QString&, | ||
240 | SlFileOverwirteMode m=Error, | ||
241 | QString *resultName=NULL); | ||
242 | static QString getCopyFileName(const QString&); | ||
243 | |||
244 | const QStringList& recent() const; | ||
245 | void setRecent(const QStringList&); | ||
246 | |||
247 | |||
248 | void setRecent(const QStringList&,bool isReplace); | ||
249 | void setRecentEnabled(bool); | ||
250 | |||
251 | const QStringList& history() const; | ||
252 | void setHistory(const QStringList&); | ||
253 | |||
254 | |||
255 | void setHistory(const QStringList&,bool isReplace); | ||
256 | bool isHistoryBackAvailable() const; | ||
257 | bool isHistoryForwardAvailable() const; | ||
258 | bool historyBack(); | ||
259 | bool historyForward(); | ||
260 | QPopupMenu *backHistoryPopupMenu() const; | ||
261 | QPopupMenu *forwardHistoryPopupMenu() const; | ||
262 | void setColumnConf(SlFileListColumnConf&); | ||
263 | |||
264 | void sendFileUpdateMessage(const QString&); | ||
265 | void updateView(); | ||
266 | void recreateIcon(); | ||
267 | void focusToNext(); | ||
268 | void focusToPrev(); | ||
269 | bool rename(); | ||
270 | bool newfolder(); | ||
271 | bool del(); | ||
272 | bool duplicate(); | ||
273 | bool cut(); | ||
274 | bool copy(); | ||
275 | bool paste(); | ||
276 | void setMimeFilter(const QString &); | ||
277 | void clearTmpFolder(); | ||
278 | |||
279 | void setRecursive(bool,bool); | ||
280 | bool recursive() const; | ||
281 | void setFilter(SlFileSelectorFilter *); | ||
282 | SlFileSelectorFilter *filter(); | ||
283 | bool isEnablePaste(); | ||
284 | |||
285 | static bool deleteFile(const QString&); | ||
286 | static bool deleteDir(const QDir&); | ||
287 | static bool copyDir(const QString &srcName,const QString &dstName, | ||
288 | SlFileOverwirteMode m=Error); | ||
289 | static bool moveDir(const QString&,const QString&, | ||
290 | SlFileOverwirteMode m=Error); | ||
291 | static QString getCopyDirName(const QString &); | ||
292 | static bool makeDir(const QString &path); | ||
293 | |||
294 | static uint size(const QString &fName); | ||
295 | static uint fileFree(const QString &fName); | ||
296 | |||
297 | |||
298 | |||
299 | enum DesktopMode { | ||
300 | |||
301 | HideDesktop = 1, | ||
302 | |||
303 | ShowAll, | ||
304 | |||
305 | FileTab | ||
306 | }; | ||
307 | void setDesktopMode(DesktopMode mode); | ||
308 | void setEnabledSystemChannel(bool); | ||
309 | void showUpDirBtn(bool); | ||
310 | void showWritableFile(bool); | ||
311 | |||
312 | |||
313 | void setEnableSD(bool); | ||
314 | void setEnableCF(bool); | ||
315 | bool getEnableSD(); | ||
316 | bool getEnableCF(); | ||
317 | |||
318 | |||
319 | |||
320 | |||
321 | void sendKeyPressEvent( QKeyEvent *e ); | ||
322 | |||
323 | void setScale(int scale); | ||
324 | int scale() const; | ||
325 | |||
326 | SlMisc::SlListColumnInfos columnWidthInfos(); | ||
327 | |||
328 | |||
329 | |||
330 | enum FocusMode { | ||
331 | |||
332 | Auto = 1, | ||
333 | |||
334 | ByTab, | ||
335 | |||
336 | ByCommand | ||
337 | }; | ||
338 | void setFocusMode(FocusMode mode); | ||
339 | |||
340 | void adjustContentsSize(); | ||
341 | |||
342 | static void updateFile(const QString &filename); | ||
343 | |||
344 | bool delFile(const QString &mymsg); | ||
345 | |||
346 | bool isIncludedFile(const QString &filename); | ||
347 | |||
348 | signals: | ||
349 | |||
350 | |||
351 | void selectionChanged(const QFileInfo &file,bool isDevice); | ||
352 | |||
353 | |||
354 | void fileSelected(const QFileInfo &file); | ||
355 | |||
356 | |||
357 | void dirOpened(const QDir &dir); | ||
358 | |||
359 | |||
360 | void enabledPaste(bool); | ||
361 | |||
362 | |||
363 | void columnWidthChanged(int column,int oldSize,int newSize); | ||
364 | |||
365 | |||
366 | void itemRightPressed(const QFileInfo &file,const QPoint &pos); | ||
367 | |||
368 | |||
369 | void selectionLost(); | ||
370 | |||
371 | |||
372 | //void keyPressed(QKeyEvent *e,bool &isAccepted); | ||
373 | /* | ||
374 | private slots: | ||
375 | void fileClicked(QListViewItem *); | ||
376 | void fileClicked(QIconViewItem *); | ||
377 | void selectionChanged(QListViewItem *); | ||
378 | void selectionChanged(QIconViewItem *); | ||
379 | void dMenuChanged(int); | ||
380 | void changeDirectory(int,bool isImmediate=TRUE); | ||
381 | void hMenuSelected(int); | ||
382 | void cardMessage( const QCString &, const QByteArray &); | ||
383 | void systemMessage( const QCString &, const QByteArray &); | ||
384 | void headerClicked(int); | ||
385 | void asyncHMenuSelected(); | ||
386 | void asyncDMenuChanged(); | ||
387 | void rightPressed(QIconViewItem *,const QPoint&); | ||
388 | void rightPressed(QListViewItem *,const QPoint&,int); | ||
389 | void upDirClicked(); | ||
390 | void slotKeyPressed(QKeyEvent *e,bool &isAccepted); | ||
391 | */ | ||
392 | protected: | ||
393 | void focusInEvent(QFocusEvent*); | ||
394 | void show(); | ||
395 | void keyPressEvent( QKeyEvent *e ); | ||
396 | |||
397 | private: | ||
398 | void openDirInside(QDir&); | ||
399 | void createMyPda(); | ||
400 | void init(); | ||
401 | SlFileSelectorPrivate *p; | ||
402 | SlFileSelector(const SlFileSelector&); | ||
403 | ulong focusWidgets() const; | ||
404 | QWidget* nextFocus(QWidget *,bool) const; | ||
405 | bool focusToTheWidget(QWidget *); | ||
406 | }; | ||
407 | |||
408 | #endif | ||
409 | |||
410 | |||
411 | |||
412 | |||
413 | |||
diff --git a/libslcompat/slmisc.h b/libslcompat/slmisc.h deleted file mode 100644 index 442b098..0000000 --- a/libslcompat/slmisc.h +++ b/dev/null | |||
@@ -1,135 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2002 SHARP CORPORATION All rights reserved. | ||
3 | */ | ||
4 | #ifndef _SLMISC_H_INCLUDED | ||
5 | #define _SLMISC_H_INCLUDED | ||
6 | |||
7 | #include <qpe/qpeapplication.h> | ||
8 | #include <qfileinfo.h> | ||
9 | #include <qpe/global.h> | ||
10 | #include <qmessagebox.h> | ||
11 | |||
12 | |||
13 | #define _SLPOWER | ||
14 | |||
15 | class QPopupMenu; | ||
16 | class QListView; | ||
17 | #if !defined(_SLPOWER) | ||
18 | class PowerStatus; | ||
19 | #else | ||
20 | class SlPowerStatus; | ||
21 | #endif | ||
22 | class Config; | ||
23 | |||
24 | typedef ulong SlResolutionScale; | ||
25 | |||
26 | class SlMisc { | ||
27 | public: | ||
28 | static bool isExecutable(const QString &c) { | ||
29 | QFileInfo exec(QPEApplication::qpeDir() + "bin/" + c); | ||
30 | return exec.isExecutable(); | ||
31 | }; | ||
32 | static ulong availableMemory(); | ||
33 | static bool invalidFileName(QString &fName); | ||
34 | static QString getValidFileName(const QString &baseName); | ||
35 | static QString getCanonicalPath(const QString &fName); | ||
36 | static void enableAutoPowerOff(bool isOn); | ||
37 | static void enableAutoPowerOff(bool isOn,bool DimAlso,bool ScreenSaverAlso=FALSE); | ||
38 | static void enableLockApplication(bool); | ||
39 | static bool isTheSmbShareFileHasWriteEntry(const QString &shareFName); | ||
40 | static bool isTheSmbShareFileNowCopy(const QString &shareFName); | ||
41 | static bool checkTheSmbShareFileMode(const QString &shareFName, | ||
42 | char modeMask, char checkMode, bool equality); | ||
43 | static bool isTheFileLockedBySmbd(const QString &fName); | ||
44 | static bool isSambaForked(); | ||
45 | static void startSamba(); | ||
46 | static void stopSamba(); | ||
47 | enum ListType { Pid, CmdLine, Both }; | ||
48 | static QStringList procList (const QRegExp& re, uint max = 0, enum ListType type = Pid); | ||
49 | static void dumpMemInfo(bool isShowHeap); | ||
50 | static bool canCreateTheFile(const QString&); | ||
51 | static QString getLanguage(); | ||
52 | static QSize getMaximizedWidgetInfo(); | ||
53 | static QSize SlMisc::getScrollbarMetrics(); | ||
54 | static int getDpi(); | ||
55 | static SlResolutionScale getResolutionScale(); | ||
56 | static int getMaximizedWidgetContentsWidth(); | ||
57 | static bool isLandscape(); | ||
58 | static void requestCloseFile(const QString&); | ||
59 | static void requestOpenFile(const QString&); | ||
60 | |||
61 | static void insertStandardFontMenu(QPopupMenu *pm); | ||
62 | static void insertAllFontMenu(QPopupMenu *pm); | ||
63 | static int getLogicalSizeFromMenuId(int id); | ||
64 | static void setFontSizeItemChecked(QPopupMenu *pm,int logicalSize); | ||
65 | static int getFontPointSize(int logicalSize); | ||
66 | static void toggleFontSize(QPopupMenu *pm,int &logicalSize,bool isLarge=true); | ||
67 | static void toggleAllFontSize(QPopupMenu *pm,int *fontSize,bool isLarge=true); | ||
68 | |||
69 | static void SlFontArrange (QWidget* widget); | ||
70 | static void SlLayoutSpaceArrange (QObject* object); | ||
71 | |||
72 | static bool checkBatteryError(const QString &module_name, bool force); | ||
73 | static bool checkBatteryErrorWithoutDialog(const QString &module_name, bool force); | ||
74 | |||
75 | |||
76 | enum InputDeviceType { | ||
77 | BuiltinKeyboard = 1, | ||
78 | SoftwareKeyboard = 2 | ||
79 | }; | ||
80 | static InputDeviceType defaultInputDevice(); | ||
81 | |||
82 | |||
83 | typedef struct SlListColumnInfo { | ||
84 | enum Type { | ||
85 | Fixed = 0, | ||
86 | StringLen, | ||
87 | Scale, | ||
88 | FixedDpiAware | ||
89 | }; | ||
90 | Type type; | ||
91 | QString str; | ||
92 | int val; | ||
93 | }; | ||
94 | typedef QValueList<SlListColumnInfo> SlListColumnInfos; | ||
95 | |||
96 | static void setListColumnsWidth(QWidget *w,SlListColumnInfos &infos, | ||
97 | Config &config); | ||
98 | static void writeListColumnsWidth(QWidget *w,SlListColumnInfos &infos, | ||
99 | Config &config); | ||
100 | static void writeListColumnsWidth(QWidget *w,SlListColumnInfos &infos, | ||
101 | Config &config,bool isLandscape); | ||
102 | static void rotateListColumnsWidth(QWidget *w,SlListColumnInfos &infos, | ||
103 | Config &config); | ||
104 | static void setListColumnsWidth(QWidget *w,SlListColumnInfos &infos, Config *config=NULL); | ||
105 | static void writeListColumnsWidth(QWidget *w,SlListColumnInfos &infos, Config *config=NULL); | ||
106 | static void writeListColumnsWidth(QWidget *w,SlListColumnInfos &infos, bool isLandscape, Config *config=NULL); | ||
107 | static void rotateListColumnsWidth(QWidget *w,SlListColumnInfos &infos, Config *config=NULL); | ||
108 | static void temporaryMessageBox(const QString &caption, const QString &text, int msec=10000, QMessageBox::Icon icon=QMessageBox::NoIcon, int button0=0, int button1=0, int button2=0, QWidget *parent=0, const char *name=0, QWidget::WFlags f=QWidget::WStyle_DialogBorder); | ||
109 | |||
110 | static QString defaultWallPaper(); | ||
111 | typedef enum AppCommand { | ||
112 | NoneCommand = 0, | ||
113 | NewCommand, | ||
114 | ModifyCommand, | ||
115 | DeleteCommand, | ||
116 | ZoomInCommand, | ||
117 | ZoomOutCommand, | ||
118 | CutCommand = 50, | ||
119 | CopyCommand, | ||
120 | PasteCommand | ||
121 | }; | ||
122 | static AppCommand appCommandFromKey(const QKeyEvent &e); | ||
123 | |||
124 | typedef enum RequiredSize { | ||
125 | SmallSize = 0, | ||
126 | LargeSize | ||
127 | }; | ||
128 | static const char* getTmpPath(RequiredSize); | ||
129 | static const char* getTmpPath(ulong); | ||
130 | static QString getObexTmpPath(); | ||
131 | static ulong availableInternalStorage(void); | ||
132 | static QString moduleNameFromPath(const QString &path); | ||
133 | }; | ||
134 | |||
135 | #endif | ||
@@ -75,65 +75,64 @@ CONFIG_JUMPX inputmethods/jumpx jumpx.pro | |||
75 | CONFIG_KBILL noncore/games/kbillkbill.pro | 75 | CONFIG_KBILL noncore/games/kbillkbill.pro |
76 | CONFIG_KCHECKERS noncore/games/kcheckerskcheckers.pro | 76 | CONFIG_KCHECKERS noncore/games/kcheckerskcheckers.pro |
77 | CONFIG_KEYBOARD inputmethods/keyboardkeyboard.pro | 77 | CONFIG_KEYBOARD inputmethods/keyboardkeyboard.pro |
78 | CONFIG_KEYHELPER noncore/applets/keyhelper keyhelper.pro | 78 | CONFIG_KEYHELPER noncore/applets/keyhelper keyhelper.pro |
79 | CONFIG_KEYPEBBLE noncore/comm/keypebblekeypebble.pro | 79 | CONFIG_KEYPEBBLE noncore/comm/keypebblekeypebble.pro |
80 | CONFIG_KEYVIEW development/keyviewkeyview.pro | 80 | CONFIG_KEYVIEW development/keyviewkeyview.pro |
81 | CONFIG_KJUMPX inputmethods/kjumpxkjumpx.pro | 81 | CONFIG_KJUMPX inputmethods/kjumpxkjumpx.pro |
82 | CONFIG_KPACMAN noncore/games/kpacmankpacman.pro | 82 | CONFIG_KPACMAN noncore/games/kpacmankpacman.pro |
83 | CONFIG_LANGUAGE noncore/settings/languagelanguage.pro | 83 | CONFIG_LANGUAGE noncore/settings/languagelanguage.pro |
84 | CONFIG_LAUNCHER core/launcherserver.pro | 84 | CONFIG_LAUNCHER core/launcherserver.pro |
85 | CONFIG_LAUNCHER-SETTINGS core/settings/launcherlauncher.pro | 85 | CONFIG_LAUNCHER-SETTINGS core/settings/launcherlauncher.pro |
86 | CONFIG_LIBFFMPEG core/multimedia/opieplayer/libffmpeglibffmpeg.pro | 86 | CONFIG_LIBFFMPEG core/multimedia/opieplayer/libffmpeglibffmpeg.pro |
87 | CONFIG_LIBFLASH core/multimedia/opieplayer/libflashlibflash.pro | 87 | CONFIG_LIBFLASH core/multimedia/opieplayer/libflashlibflash.pro |
88 | CONFIG_LIBMAD core/multimedia/opieplayer/libmadlibmad.pro | 88 | CONFIG_LIBMAD core/multimedia/opieplayer/libmadlibmad.pro |
89 | CONFIG_LIBMAIL noncore/unsupported/mail2/libmaillibmail.pro | 89 | CONFIG_LIBMAIL noncore/unsupported/mail2/libmaillibmail.pro |
90 | CONFIG_LIBMAILWRAPPER noncore/net/mail/libmailwrapper libmailwrapper.pro | 90 | CONFIG_LIBMAILWRAPPER noncore/net/mail/libmailwrapper libmailwrapper.pro |
91 | CONFIG_LIBMPEG3 core/multimedia/opieplayer/libmpeg3libmpeg3.pro | 91 | CONFIG_LIBMPEG3 core/multimedia/opieplayer/libmpeg3libmpeg3.pro |
92 | CONFIG_LIBOPIE2BLUEZ libopie2/opiebluezopiebluez.pro | 92 | CONFIG_LIBOPIE2BLUEZ libopie2/opiebluezopiebluez.pro |
93 | CONFIG_LIBOPIE2CORE libopie2/opiecoreopiecore.pro | 93 | CONFIG_LIBOPIE2CORE libopie2/opiecoreopiecore.pro |
94 | CONFIG_LIBOPIE2DB libopie2/opiedbopiedb.pro | 94 | CONFIG_LIBOPIE2DB libopie2/opiedbopiedb.pro |
95 | CONFIG_LIBOPIE2EXAMPLES libopie2/examplesexamples.pro | 95 | CONFIG_LIBOPIE2EXAMPLES libopie2/examplesexamples.pro |
96 | CONFIG_LIBOPIE2MM libopie2/opiemmopiemm.pro | 96 | CONFIG_LIBOPIE2MM libopie2/opiemmopiemm.pro |
97 | CONFIG_LIBOPIE2NET libopie2/opienetopienet.pro | 97 | CONFIG_LIBOPIE2NET libopie2/opienetopienet.pro |
98 | CONFIG_LIBOPIE2PIM libopie2/opiepimopiepim.pro | 98 | CONFIG_LIBOPIE2PIM libopie2/opiepimopiepim.pro |
99 | CONFIG_LIBOPIE2SECURITYlibopie2/opiesecurity opiesecurity.pro | 99 | CONFIG_LIBOPIE2SECURITYlibopie2/opiesecurity opiesecurity.pro |
100 | CONFIG_LIBOPIE2UI libopie2/opieuiopieui.pro | 100 | CONFIG_LIBOPIE2UI libopie2/opieuiopieui.pro |
101 | CONFIG_LIBOPIETOOTH noncore/net/opietooth/liblib.pro | 101 | CONFIG_LIBOPIETOOTH noncore/net/opietooth/liblib.pro |
102 | CONFIG_LIBOPIEnoncore/unsupported/libopie libopie.pro | 102 | CONFIG_LIBOPIEnoncore/unsupported/libopie libopie.pro |
103 | CONFIG_LIBQPE librarylibrary.pro | 103 | CONFIG_LIBQPE librarylibrary.pro |
104 | CONFIG_LIBQPE-X11 x11/libqpe-x11libqpe-x11.pro | 104 | CONFIG_LIBQPE-X11 x11/libqpe-x11libqpe-x11.pro |
105 | CONFIG_LIBQRSYNC rsync rsync.pro | 105 | CONFIG_LIBQRSYNC rsync rsync.pro |
106 | CONFIG_LIBQTAUX libqtauxlibqtaux.pro | 106 | CONFIG_LIBQTAUX libqtauxlibqtaux.pro |
107 | CONFIG_LIBSLCOMPAT libslcompatlibslcompat.pro | ||
108 | CONFIG_LIBSQL libsqllibsql.pro | 107 | CONFIG_LIBSQL libsqllibsql.pro |
109 | CONFIG_LIBTREMOR core/multimedia/opieplayer/vorbis/tremor tremor.pro | 108 | CONFIG_LIBTREMOR core/multimedia/opieplayer/vorbis/tremor tremor.pro |
110 | CONFIG_LIBTREMORPLUGIN core/multimedia/opieplayer/vorbis libtremor.pro | 109 | CONFIG_LIBTREMORPLUGIN core/multimedia/opieplayer/vorbis libtremor.pro |
111 | CONFIG_LIGHT-AND-POWER core/settings/light-and-powerlight-and-power.pro | 110 | CONFIG_LIGHT-AND-POWER core/settings/light-and-powerlight-and-power.pro |
112 | CONFIG_LIQUID noncore/styles/liquidliquid.pro | 111 | CONFIG_LIQUID noncore/styles/liquidliquid.pro |
113 | CONFIG_LOCKAPPLET core/applets/lockappletlockapplet.pro | 112 | CONFIG_LOCKAPPLET core/applets/lockappletlockapplet.pro |
114 | CONFIG_LOGOUTAPPLET core/applets/logoutappletlogoutapplet.pro | 113 | CONFIG_LOGOUTAPPLET core/applets/logoutappletlogoutapplet.pro |
115 | CONFIG_MAIL3 noncore/net/mail mail.pro | 114 | CONFIG_MAIL3 noncore/net/mail mail.pro |
116 | CONFIG_MAILAPPLET noncore/net/mail/taskbarapplet taskbarapplet.pro | 115 | CONFIG_MAILAPPLET noncore/net/mail/taskbarapplet taskbarapplet.pro |
117 | CONFIG_MAILIT noncore/unsupported/mailit mailit.pro | 116 | CONFIG_MAILIT noncore/unsupported/mailit mailit.pro |
118 | CONFIG_MAIN_TAB_EXAMPLE examples/main-tab main-tab.pro | 117 | CONFIG_MAIN_TAB_EXAMPLE examples/main-tab main-tab.pro |
119 | CONFIG_MEDIUMMOUNT noncore/settings/mediummountmediummount.pro | 118 | CONFIG_MEDIUMMOUNT noncore/settings/mediummountmediummount.pro |
120 | CONFIG_MEMORYAPPLET noncore/applets/memoryappletmemoryapplet.pro | 119 | CONFIG_MEMORYAPPLET noncore/applets/memoryappletmemoryapplet.pro |
121 | CONFIG_METAL noncore/styles/metalmetal.pro | 120 | CONFIG_METAL noncore/styles/metalmetal.pro |
122 | CONFIG_MINDBREAKER noncore/games/mindbreakermindbreaker.pro | 121 | CONFIG_MINDBREAKER noncore/games/mindbreakermindbreaker.pro |
123 | CONFIG_MINESWEEP noncore/games/minesweepminesweep.pro | 122 | CONFIG_MINESWEEP noncore/games/minesweepminesweep.pro |
124 | CONFIG_MOBILEMSG noncore/unsupported/mobilemsgmobilemsg.pro | 123 | CONFIG_MOBILEMSG noncore/unsupported/mobilemsgmobilemsg.pro |
125 | CONFIG_MODPLUG core/multimedia/opieplayer/modplugmodplug.pro | 124 | CONFIG_MODPLUG core/multimedia/opieplayer/modplugmodplug.pro |
126 | CONFIG_MULTIAUTH_BLUEPING noncore/securityplugins/blueping bluepingplugin.pro | 125 | CONFIG_MULTIAUTH_BLUEPING noncore/securityplugins/blueping bluepingplugin.pro |
127 | CONFIG_MULTIAUTH_DUMMY noncore/securityplugins/dummy dummyplugin.pro | 126 | CONFIG_MULTIAUTH_DUMMY noncore/securityplugins/dummy dummyplugin.pro |
128 | CONFIG_MULTIAUTH_NOTICE noncore/securityplugins/notice noticeplugin.pro | 127 | CONFIG_MULTIAUTH_NOTICE noncore/securityplugins/notice noticeplugin.pro |
129 | CONFIG_MULTIAUTH_PIN noncore/securityplugins/pin pinplugin.pro | 128 | CONFIG_MULTIAUTH_PIN noncore/securityplugins/pin pinplugin.pro |
130 | CONFIG_MULTIKEYAPPLET core/applets/multikeyappletmultikeyapplet.pro | 129 | CONFIG_MULTIKEYAPPLET core/applets/multikeyappletmultikeyapplet.pro |
131 | CONFIG_MULTIKEY inputmethods/multikeymultikey.pro | 130 | CONFIG_MULTIKEY inputmethods/multikeymultikey.pro |
132 | CONFIG_NETSYSTEMTIME noncore/settings/netsystemtimenetsystemtime.pro | 131 | CONFIG_NETSYSTEMTIME noncore/settings/netsystemtimenetsystemtime.pro |
133 | CONFIG_NETWORKAPPLET noncore/applets/networkappletnetworkapplet.pro | 132 | CONFIG_NETWORKAPPLET noncore/applets/networkappletnetworkapplet.pro |
134 | CONFIG_NETWORKSETUP noncore/settings/networksettingsnetworksettings.pro | 133 | CONFIG_NETWORKSETUP noncore/settings/networksettingsnetworksettings.pro |
135 | CONFIG_NOTES core/pim/notesopie-notes.pro | 134 | CONFIG_NOTES core/pim/notesopie-notes.pro |
136 | CONFIG_NOTESAPPLET noncore/applets/notesappletnotesapplet.pro | 135 | CONFIG_NOTESAPPLET noncore/applets/notesappletnotesapplet.pro |
137 | CONFIG_NS2BT noncore/settings/networksettings2/bluetoothbluetooth.pro | 136 | CONFIG_NS2BT noncore/settings/networksettings2/bluetoothbluetooth.pro |
138 | CONFIG_NS2GPRS noncore/settings/networksettings2/gprsGPRS.pro | 137 | CONFIG_NS2GPRS noncore/settings/networksettings2/gprsGPRS.pro |
139 | CONFIG_NS2CABLE noncore/settings/networksettings2/cablecable.pro | 138 | CONFIG_NS2CABLE noncore/settings/networksettings2/cablecable.pro |