summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2006-05-25 22:24:28 (UTC)
committer mickeyl <mickeyl>2006-05-25 22:24:28 (UTC)
commit1004aa580c4f115b9959027deb7f19997adc9df8 (patch) (unidiff)
treefe45305ff09811d851f54db946746e5562cda839
parent3939f306b734491e04ee3df7043302bd0990df05 (diff)
downloadopie-1004aa580c4f115b9959027deb7f19997adc9df8.zip
opie-1004aa580c4f115b9959027deb7f19997adc9df8.tar.gz
opie-1004aa580c4f115b9959027deb7f19997adc9df8.tar.bz2
remove libslcompat
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Rules.make2
-rw-r--r--config.in1
-rw-r--r--libslcompat/.cvsignore6
-rw-r--r--libslcompat/README4
-rw-r--r--libslcompat/config.in4
-rw-r--r--libslcompat/libslcompat.pro16
-rw-r--r--libslcompat/slcolorselector.cpp64
-rw-r--r--libslcompat/slcolorselector.h112
-rw-r--r--libslcompat/slfiledialog.h70
-rw-r--r--libslcompat/slfileselector.cpp86
-rw-r--r--libslcompat/slfileselector.h413
-rw-r--r--libslcompat/slmisc.h135
-rw-r--r--packages1
13 files changed, 0 insertions, 914 deletions
diff --git a/Rules.make b/Rules.make
index 17ad159..2ce61f1 100644
--- a/Rules.make
+++ b/Rules.make
@@ -201,7 +201,6 @@ $(OPIEDIR)/stamp-headers :
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 .; )
@@ -245,7 +244,6 @@ $(OPIEDIR)/stamp-headers-x11 :
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 .; )
diff --git a/config.in b/config.in
index 93bdcb2..3b89bcc 100644
--- a/config.in
+++ b/config.in
@@ -292,6 +292,5 @@ comment ""
292 depends on EXPERIMENTAL 292 depends on EXPERIMENTAL
293menu "Experimental" 293menu "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
297endmenu 296endmenu
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 @@
1Makefile*
2moc*
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 @@
1Skeleton for a compat library for the Sharp closed source libsl.
2Early stage and will probably never be useful except for getting
3some of the japaneese apps to compile.
4Better 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 @@
1TEMPLATE = lib
2CONFIG += qte warn_on
3
4HEADERS = slcolorselector.h \
5 slfileselector.h \
6 slmisc.h
7
8SOURCES = slcolorselector.cpp \
9 slfileselector.cpp
10
11TARGET = slcompat
12INCLUDEPATH += $(OPIEDIR)/include
13DESTDIR = $(OPIEDIR)/lib
14LIBS += -lopiecore2 -lopieui2 -lqtaux2
15
16include( $(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
3SlColorTable::SlColorTable( QWidget *parent, const char *name,WFlags f,
4 int r, int c, const QRgb *a )
5 :QTableView( parent, name, f )
6{
7}
8
9SlColorTable::~SlColorTable()
10{
11}
12
13QSize SlColorTable::sizeHint() const
14{
15}
16
17void SlColorTable::paintCell(QPainter*,int,int)
18{
19}
20
21void SlColorTable::mousePressEvent(QMouseEvent*)
22{
23}
24
25void SlColorTable::mouseMoveEvent(QMouseEvent*)
26{
27}
28
29void SlColorTable::mouseReleaseEvent(QMouseEvent*)
30{
31}
32
33void SlColorTable::keyPressEvent(QKeyEvent*)
34{
35}
36
37
38/*================================================================*/
39
40SlColorSelector::SlColorSelector(bool isTransparentAccept, QWidget *parent, const char *name, WFlags f)
41 :QVBox( parent, name, f )
42{
43}
44
45SlColorSelector::~SlColorSelector()
46{
47}
48
49/*================================================================*/
50
51SlColorSelectorPopup::SlColorSelectorPopup(bool isTransparentAccept, QWidget *parent, const char *name, WFlags f)
52 :OColorPopupMenu( QColor(), parent, name )
53{
54}
55
56
57SlColorSelectorPopup::~SlColorSelectorPopup()
58{
59}
60
61void 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>
8using 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)
15struct SlColorTablePrivate;
16class SlColorTable : public QTableView
17{
18 Q_OBJECT
19public:
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
25protected:
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
33signals:
34
35
36 void selected(QRgb rgb);
37
38
39 void reSelected(QRgb rgb);
40
41private:
42 SlColorTablePrivate *p;
43 void setCurrent(int,int);
44 void setSelected(int,int);
45 QRgb getRgbInCell(int,int);
46};
47
48
49struct SlColorSelectorPrivate;
50class SlColorSelector : public QVBox
51{
52 Q_OBJECT
53public:
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
60signals:
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/*
74private slots:
75 void slotTransparentToggled(int);
76*/
77private:
78 SlColorSelectorPrivate *p;
79};
80
81struct SlColorSelectorPopupPrivate;
82class SlColorSelectorPopup : public OColorPopupMenu //QPopupMenu
83{
84 Q_OBJECT
85public:
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
92signals:
93
94
95 void selected(QRgb rgb);
96
97
98 void transparentSelected();
99/*
100private slots:
101 void slotSelected(QRgb);
102 void slotReSelected(QRgb);
103 void slotTransparentSelected();
104 void slotTransparentReSelected();
105*/
106private:
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
12class SlFileNameValidator : public QValidator
13{
14 Q_OBJECT
15public:
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
21class SlFileDialogPrivate;
22class SlFileDialog : public QDialog
23{
24 Q_OBJECT
25public:
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
55protected slots:
56 virtual void accept();
57
58 void fileSelected(const QFileInfo &fInfo);
59 void slotNewDir();
60 void rotateChanged();
61 void keyPressed(QKeyEvent*,bool&);
62
63protected:
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
3SlFileIconView::SlFileIconView( QWidget* parent, const char* name )
4 :QIconView( parent, name )
5{
6}
7
8SlFileIconView::~SlFileIconView()
9{
10}
11
12/*================================================================*/
13
14SlFileListView::SlFileListView( QWidget* parent, const char* name )
15 :QListView( parent, name )
16{
17}
18
19SlFileListView::~SlFileListView()
20{
21}
22
23/*================================================================*/
24
25SlFileSelector::SlFileSelector( const QString &dirPath, const QString &mimefilter, QWidget *parent, const char *name )
26 :OFileSelector( dirPath, parent, name )
27{
28}
29
30SlFileSelector::~SlFileSelector()
31{
32}
33
34bool SlFileSelector::isTopDir()
35{
36 return false;
37}
38
39void SlFileSelector::setSelected()
40{
41}
42
43void SlFileSelector::setSelected(const QString&)
44{
45 int a;
46}
47
48void SlFileSelector::createFileList()
49{
50 int a;
51}
52
53void SlFileSelector::createFileList(QDir&)
54{
55 int a;
56}
57
58const QFileInfo* SlFileSelector::selected()
59{
60 int a;
61}
62
63void SlFileSelector::setCurrentFile(const QString&)
64{
65 int a;
66}
67
68const QString SlFileSelector::currentDir()
69{
70 int a;
71}
72
73
74void SlFileSelector::focusInEvent(QFocusEvent*)
75{
76}
77
78void SlFileSelector::show()
79{
80}
81
82void 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
22class QComboBox;
23class SlFileItemType;
24class QCopChannel;
25
26struct SlFileListItemPrivate;
27class SlFileListItem
28{
29public:
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 };
53private:
54 SlFileListItemPrivate *p;
55 SlFileListItem(const SlFileListItem&);
56};
57
58typedef QValueList<SlFileListItem*> SlFileList;
59typedef QValueList<SlFileListItem::ColumnItem> SlFileListColumnConf;
60
61class SlFileListViewItem;
62
63struct SlFileListViewPrivate;
64class SlFileListView : public QListView
65{
66 Q_OBJECT
67
68public:
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
88protected:
89 //void keyPressEvent( QKeyEvent *e );
90
91signals:
92 void keyPressed(QKeyEvent *e,bool &isAccepted);
93
94protected slots:
95
96private:
97 friend class SlFileSelector;
98 SlFileListViewPrivate *p;
99 SlFileListView(const SlFileListView&);
100};
101
102class SlFileIconViewItem;
103
104struct SlFileIconViewPrivate;
105class SlFileIconView : public QIconView
106{
107 Q_OBJECT
108
109public:
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
127protected:
128 //void keyPressEvent( QKeyEvent *e );
129
130protected slots:
131
132signals:
133 void keyPressed(QKeyEvent *e,bool &isAccepted);
134
135private:
136 friend class SlFileSelector;
137 SlFileIconViewPrivate *p;
138 SlFileIconView(const SlFileIconView&);
139};
140
141class SlFileSelectorFilter : public QObject
142{
143public:
144 SlFileSelectorFilter(QWidget *parent,const char *name=0);
145 ~SlFileSelectorFilter();
146
147 virtual bool isAddToList(QFileInfo&) const = 0;
148private:
149 SlFileSelectorFilter(const SlFileSelectorFilter&);
150};
151
152typedef QList<MimeType> SlFileMimeTypeList;
153
154struct SlFileSelectorPrivate;
155class SlFileSelector : public Opie::Ui::OFileSelector /*QVBox*/
156{
157 Q_OBJECT
158
159public:
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 &currentFileName,
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
348signals:
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/*
374private 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*/
392protected:
393 void focusInEvent(QFocusEvent*);
394 void show();
395 void keyPressEvent( QKeyEvent *e );
396
397private:
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
15class QPopupMenu;
16class QListView;
17#if !defined(_SLPOWER)
18class PowerStatus;
19#else
20class SlPowerStatus;
21#endif
22class Config;
23
24typedef ulong SlResolutionScale;
25
26class SlMisc {
27public:
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
diff --git a/packages b/packages
index 0e2b0f7..08e1ea9 100644
--- a/packages
+++ b/packages
@@ -104,7 +104,6 @@ CONFIG_LIBQPE library library.pro
104 CONFIG_LIBQPE-X11 x11/libqpe-x11libqpe-x11.pro 104 CONFIG_LIBQPE-X11 x11/libqpe-x11libqpe-x11.pro
105CONFIG_LIBQRSYNC rsync rsync.pro 105CONFIG_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
109CONFIG_LIBTREMOR core/multimedia/opieplayer/vorbis/tremor tremor.pro 108CONFIG_LIBTREMOR core/multimedia/opieplayer/vorbis/tremor tremor.pro
110CONFIG_LIBTREMORPLUGIN core/multimedia/opieplayer/vorbis libtremor.pro 109CONFIG_LIBTREMORPLUGIN core/multimedia/opieplayer/vorbis libtremor.pro