Diffstat (limited to 'noncore/apps/advancedfm/advancedfm.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h index bfefa77..547fa7c 100644 --- a/noncore/apps/advancedfm/advancedfm.h +++ b/noncore/apps/advancedfm/advancedfm.h | |||
@@ -1,91 +1,91 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | advancedfm.h | 2 | advancedfm.h |
3 | ------------------- | 3 | ------------------- |
4 | ** Created: Sat Mar 9 23:33:09 2002 | 4 | ** Created: Sat Mar 9 23:33:09 2002 |
5 | copyright : (C) 2002 by ljp | 5 | copyright : (C) 2002 by ljp |
6 | email : ljp@llornkcor.com | 6 | email : ljp@llornkcor.com |
7 | * This program is free software; you can redistribute it and/or modify * | 7 | * This program is free software; you can redistribute it and/or modify * |
8 | * it under the terms of the GNU General Public License as published by * | 8 | * it under the terms of the GNU General Public License as published by * |
9 | * the Free Software Foundation; either version 2 of the License, or * | 9 | * the Free Software Foundation; either version 2 of the License, or * |
10 | * (at your option) any later version. * | 10 | * (at your option) any later version. * |
11 | ***************************************************************************/ | 11 | ***************************************************************************/ |
12 | #ifndef ADVANCEDFM_H | 12 | #ifndef ADVANCEDFM_H |
13 | #define ADVANCEDFM_H | 13 | #define ADVANCEDFM_H |
14 | #define QTOPIA_INTERNAL_FSLP // to get access to fileproperties | 14 | #define QTOPIA_INTERNAL_FSLP // to get access to fileproperties |
15 | #define QT_QWS_OPIE | 15 | #define QT_QWS_OPIE |
16 | 16 | ||
17 | //#include <opie/otabwidget.h> | 17 | #include <opie2/oprocess.h> |
18 | #include <opie/oprocess.h> | 18 | #include <opie2/osplitter.h> |
19 | 19 | ||
20 | #include <qpe/ir.h> | 20 | #include <qpe/ir.h> |
21 | #include <qpe/qcopenvelope_qws.h> | 21 | #include <qpe/qcopenvelope_qws.h> |
22 | 22 | ||
23 | #include <qvariant.h> | 23 | #include <qvariant.h> |
24 | #include <qdialog.h> | 24 | #include <qdialog.h> |
25 | #include <qmainwindow.h> | 25 | #include <qmainwindow.h> |
26 | #include <qstringlist.h> | 26 | #include <qstringlist.h> |
27 | #include <qdir.h> | 27 | #include <qdir.h> |
28 | #include <qstring.h> | 28 | #include <qstring.h> |
29 | #include <qpoint.h> | 29 | #include <qpoint.h> |
30 | #include <qtimer.h> | 30 | #include <qtimer.h> |
31 | #include <qpixmap.h> | 31 | #include <qpixmap.h> |
32 | 32 | ||
33 | class OSplitter; | 33 | using Opie::OSplitter; |
34 | |||
34 | class QVBoxLayout; | 35 | class QVBoxLayout; |
35 | class QHBoxLayout; | 36 | class QHBoxLayout; |
36 | class QGridLayout; | 37 | class QGridLayout; |
37 | class QComboBox; | 38 | class QComboBox; |
38 | class QListView; | 39 | class QListView; |
39 | class QListviewItem; | 40 | class QListviewItem; |
40 | class QLabel; | 41 | class QLabel; |
41 | class QProgressBar; | 42 | class QProgressBar; |
42 | class QSpinBox; | 43 | class QSpinBox; |
43 | class QTabWidget; | ||
44 | class QWidget; | 44 | class QWidget; |
45 | class QPopupMenu; | 45 | class QPopupMenu; |
46 | class QFile; | 46 | class QFile; |
47 | class QListViewItem; | 47 | class QListViewItem; |
48 | class QLineEdit; | 48 | class QLineEdit; |
49 | class MenuButton; | 49 | class MenuButton; |
50 | 50 | ||
51 | class QToolButton; | 51 | class QToolButton; |
52 | class Ir; | 52 | class Ir; |
53 | 53 | ||
54 | class AdvancedFm : public QMainWindow | 54 | class AdvancedFm : public QMainWindow |
55 | { | 55 | { |
56 | Q_OBJECT | 56 | Q_OBJECT |
57 | public: | 57 | public: |
58 | static QString appName() { return QString::fromLatin1("advancedfm"); } | 58 | static QString appName() { return QString::fromLatin1("advancedfm"); } |
59 | #ifdef NOQUICKLAUNCH | 59 | #ifdef NOQUICKLAUNCH |
60 | AdvancedFm(); | 60 | AdvancedFm(); |
61 | #else | 61 | #else |
62 | AdvancedFm(QWidget *p = 0, const char* name = 0, WFlags fl = 0); | 62 | AdvancedFm(QWidget *p = 0, const char* name = 0, WFlags fl = 0); |
63 | #endif | 63 | #endif |
64 | ~AdvancedFm(); | 64 | ~AdvancedFm(); |
65 | protected slots: | 65 | protected slots: |
66 | void slotSwitchMenu(int); | 66 | void slotSwitchMenu(int); |
67 | void selectAll(); | 67 | void selectAll(); |
68 | void addToDocs(); | 68 | void addToDocs(); |
69 | void doDirChange(); | 69 | void doDirChange(); |
70 | void mkDir(); | 70 | void mkDir(); |
71 | void del(); | 71 | void del(); |
72 | void rn(); | 72 | void rn(); |
73 | void populateView(); | 73 | void populateView(); |
74 | void rePopulate(); | 74 | void rePopulate(); |
75 | void showHidden(); | 75 | void showHidden(); |
76 | void showMenuHidden(); | 76 | void showMenuHidden(); |
77 | void writeConfig(); | 77 | void writeConfig(); |
78 | void readConfig(); | 78 | void readConfig(); |
79 | void ListClicked(QListViewItem *); | 79 | void ListClicked(QListViewItem *); |
80 | void ListPressed( int, QListViewItem *, const QPoint&, int); | 80 | void ListPressed( int, QListViewItem *, const QPoint&, int); |
81 | void makeDir(); | 81 | void makeDir(); |
82 | void doDelete(); | 82 | void doDelete(); |
83 | void tabChanged(QWidget*); | 83 | void tabChanged(QWidget*); |
84 | void cleanUp(); | 84 | void cleanUp(); |
85 | void renameIt(); | 85 | void renameIt(); |
86 | void runThis(); | 86 | void runThis(); |
87 | void runText(); | 87 | void runText(); |
88 | void filePerms(); | 88 | void filePerms(); |
89 | void doProperties(); | 89 | void doProperties(); |
90 | void runCommand(); | 90 | void runCommand(); |
91 | void runCommandStd(); | 91 | void runCommandStd(); |
@@ -116,77 +116,77 @@ protected: | |||
116 | QStringList fileSystemTypeList, fsList; | 116 | QStringList fileSystemTypeList, fsList; |
117 | int currentServerConfig; | 117 | int currentServerConfig; |
118 | bool zaurusDevice; | 118 | bool zaurusDevice; |
119 | QGridLayout *tabLayout, *tabLayout_2, *tabLayout_3; | 119 | QGridLayout *tabLayout, *tabLayout_2, *tabLayout_3; |
120 | QStringList remoteDirPathStringList, localDirPathStringList; | 120 | QStringList remoteDirPathStringList, localDirPathStringList; |
121 | QLineEdit *renameBox; | 121 | QLineEdit *renameBox; |
122 | 122 | ||
123 | void init(); | 123 | void init(); |
124 | void initConnections(); | 124 | void initConnections(); |
125 | void keyReleaseEvent( QKeyEvent *); | 125 | void keyReleaseEvent( QKeyEvent *); |
126 | void keyPressEvent( QKeyEvent *); | 126 | void keyPressEvent( QKeyEvent *); |
127 | QString getFileSystemType(const QString &); | 127 | QString getFileSystemType(const QString &); |
128 | QString getDiskSpace(const QString &); | 128 | QString getDiskSpace(const QString &); |
129 | void parsetab(const QString &fileName); | 129 | void parsetab(const QString &fileName); |
130 | QString checkDiskSpace(const QString &); | 130 | QString checkDiskSpace(const QString &); |
131 | QString dealWithSymName(const QString &); | 131 | QString dealWithSymName(const QString &); |
132 | QDir *CurrentDir(); | 132 | QDir *CurrentDir(); |
133 | QDir *OtherDir(); | 133 | QDir *OtherDir(); |
134 | QListView *CurrentView(); | 134 | QListView *CurrentView(); |
135 | QListView *OtherView(); | 135 | QListView *OtherView(); |
136 | void setOtherTabCurrent(); | 136 | void setOtherTabCurrent(); |
137 | void dealWithSchmooSchmaa(QWidget *); | 137 | void dealWithSchmooSchmaa(QWidget *); |
138 | 138 | ||
139 | protected slots: | 139 | protected slots: |
140 | void openSearch(); | 140 | void openSearch(); |
141 | void dirMenuSelected(int); | 141 | void dirMenuSelected(int); |
142 | void showFileMenu(); | 142 | void showFileMenu(); |
143 | void cancelMenuTimer(); | 143 | void cancelMenuTimer(); |
144 | void homeButtonPushed(); | 144 | void homeButtonPushed(); |
145 | void docButtonPushed(); | 145 | void docButtonPushed(); |
146 | void SDButtonPushed(); | 146 | void SDButtonPushed(); |
147 | void CFButtonPushed(); | 147 | void CFButtonPushed(); |
148 | void QPEButtonPushed(); | 148 | void QPEButtonPushed(); |
149 | void upDir(); | 149 | void upDir(); |
150 | void currentPathComboChanged(); | 150 | void currentPathComboChanged(); |
151 | void copy(); | 151 | void copy(); |
152 | void copyAs(); | 152 | void copyAs(); |
153 | void copySameDir(); | 153 | void copySameDir(); |
154 | void currentPathComboActivated(const QString &); | 154 | void currentPathComboActivated(const QString &); |
155 | void fillCombo(const QString &); | 155 | void fillCombo(const QString &); |
156 | bool copyFile( const QString & , const QString & ); | 156 | bool copyFile( const QString & , const QString & ); |
157 | void move(); | 157 | void move(); |
158 | void fileStatus(); | 158 | void fileStatus(); |
159 | void doAbout(); | 159 | void doAbout(); |
160 | void doBeam(); | 160 | void doBeam(); |
161 | void fileBeamFinished( Ir *); | 161 | void fileBeamFinished( Ir *); |
162 | bool copyDirectory( const QString & , const QString & ); | 162 | bool copyDirectory( const QString & , const QString & ); |
163 | // void navigateToSelected(); | 163 | // void navigateToSelected(); |
164 | bool moveDirectory( const QString & , const QString & ); | 164 | bool moveDirectory( const QString & , const QString & ); |
165 | // void slotSwitchtoLocal(int); | 165 | // void slotSwitchtoLocal(int); |
166 | 166 | ||
167 | private: | 167 | private: |
168 | MenuButton *menuButton; | 168 | MenuButton *menuButton; |
169 | QString oldName; | 169 | QString oldName; |
170 | QTimer menuTimer; | 170 | QTimer menuTimer; |
171 | void startProcess(const QString &); | 171 | void startProcess(const QString &); |
172 | bool eventFilter( QObject * , QEvent * ); | 172 | bool eventFilter( QObject * , QEvent * ); |
173 | void cancelRename(); | 173 | void cancelRename(); |
174 | void doRename(QListView *); | 174 | void doRename(QListView *); |
175 | void okRename(); | 175 | void okRename(); |
176 | void customDirsToMenu(); | 176 | void customDirsToMenu(); |
177 | void addCustomDir(); | 177 | void addCustomDir(); |
178 | void removeCustomDir(); | 178 | void removeCustomDir(); |
179 | void gotoDirectory(const QString &); | 179 | void gotoDirectory(const QString &); |
180 | void navigateToSelected(); | 180 | void navigateToSelected(); |
181 | void findFile(const QString &); | 181 | void findFile(const QString &); |
182 | 182 | ||
183 | private slots: | 183 | private slots: |
184 | void processEnded(OProcess *); | 184 | void processEnded(OProcess *); |
185 | void oprocessStderr(OProcess *, char *, int); | 185 | void oprocessStderr(OProcess *, char *, int); |
186 | void gotoCustomDir(const QString &); | 186 | void gotoCustomDir(const QString &); |
187 | void qcopReceive(const QCString&, const QByteArray&); | 187 | void qcopReceive(const QCString&, const QByteArray&); |
188 | void setDocument(const QString &); | 188 | void setDocument(const QString &); |
189 | 189 | ||
190 | }; | 190 | }; |
191 | 191 | ||
192 | #endif // ADVANCEDFM_H | 192 | #endif // ADVANCEDFM_H |