author | zecke <zecke> | 2004-08-18 22:07:30 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-08-18 22:07:30 (UTC) |
commit | 50636a24f8ec2e603f1888a18dba044a1045bf0b (patch) (unidiff) | |
tree | 9f69140b2449aaefe263e7acab3b6b147c7fadf7 /noncore/apps/advancedfm/advancedfm.h | |
parent | eb0a70826bc77c8b4008bd0444218da7612d32a9 (diff) | |
download | opie-50636a24f8ec2e603f1888a18dba044a1045bf0b.zip opie-50636a24f8ec2e603f1888a18dba044a1045bf0b.tar.gz opie-50636a24f8ec2e603f1888a18dba044a1045bf0b.tar.bz2 |
-Remove #ifdef for NOQUICKLAUNCH as OPIE_EXPORT_APP works for
both cases already.
-Use QPEApplication::setStylusOperation for RightOnHold feature
instead of custom code
Diffstat (limited to 'noncore/apps/advancedfm/advancedfm.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h index 4eaa6d6..effda0b 100644 --- a/noncore/apps/advancedfm/advancedfm.h +++ b/noncore/apps/advancedfm/advancedfm.h | |||
@@ -10,182 +10,176 @@ | |||
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 <opie2/oprocess.h> | 17 | #include <opie2/oprocess.h> |
18 | #include <opie2/osplitter.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 | 33 | ||
34 | class QVBoxLayout; | 34 | class QVBoxLayout; |
35 | class QHBoxLayout; | 35 | class QHBoxLayout; |
36 | class QGridLayout; | 36 | class QGridLayout; |
37 | class QComboBox; | 37 | class QComboBox; |
38 | class QListView; | 38 | class QListView; |
39 | class QListviewItem; | 39 | class QListviewItem; |
40 | class QLabel; | 40 | class QLabel; |
41 | class QProgressBar; | 41 | class QProgressBar; |
42 | class QSpinBox; | 42 | class QSpinBox; |
43 | class QWidget; | 43 | class QWidget; |
44 | class QPopupMenu; | 44 | class QPopupMenu; |
45 | class QFile; | 45 | class QFile; |
46 | class QListViewItem; | 46 | class QListViewItem; |
47 | class QLineEdit; | 47 | class QLineEdit; |
48 | class MenuButton; | 48 | class MenuButton; |
49 | 49 | ||
50 | class QToolButton; | 50 | class QToolButton; |
51 | class Ir; | 51 | class Ir; |
52 | 52 | ||
53 | class AdvancedFm : public QMainWindow | 53 | class AdvancedFm : public QMainWindow |
54 | { | 54 | { |
55 | Q_OBJECT | 55 | Q_OBJECT |
56 | public: | 56 | public: |
57 | static QString appName() { return QString::fromLatin1("advancedfm"); } | 57 | static QString appName() { return QString::fromLatin1("advancedfm"); } |
58 | #ifdef NOQUICKLAUNCH | ||
59 | AdvancedFm(); | ||
60 | #else | ||
61 | AdvancedFm(QWidget *p = 0, const char* name = 0, WFlags fl = 0); | 58 | AdvancedFm(QWidget *p = 0, const char* name = 0, WFlags fl = 0); |
62 | #endif | ||
63 | ~AdvancedFm(); | 59 | ~AdvancedFm(); |
64 | protected slots: | 60 | protected slots: |
65 | void slotSwitchMenu(int); | 61 | void slotSwitchMenu(int); |
66 | void selectAll(); | 62 | void selectAll(); |
67 | void addToDocs(); | 63 | void addToDocs(); |
68 | void doDirChange(); | 64 | void doDirChange(); |
69 | void mkDir(); | 65 | void mkDir(); |
70 | void del(); | 66 | void del(); |
71 | void rn(); | 67 | void rn(); |
72 | void populateView(); | 68 | void populateView(); |
73 | void rePopulate(); | 69 | void rePopulate(); |
74 | void showHidden(); | 70 | void showHidden(); |
75 | void showMenuHidden(); | 71 | void showMenuHidden(); |
76 | void writeConfig(); | 72 | void writeConfig(); |
77 | void readConfig(); | 73 | void readConfig(); |
78 | void ListClicked(QListViewItem *); | 74 | void ListClicked(QListViewItem *); |
79 | void ListPressed( int, QListViewItem *, const QPoint&, int); | 75 | void ListPressed( int, QListViewItem *, const QPoint&, int); |
80 | void makeDir(); | 76 | void makeDir(); |
81 | void doDelete(); | 77 | void doDelete(); |
82 | void tabChanged(QWidget*); | 78 | void tabChanged(QWidget*); |
83 | void cleanUp(); | 79 | void cleanUp(); |
84 | void renameIt(); | 80 | void renameIt(); |
85 | void runThis(); | 81 | void runThis(); |
86 | void runText(); | 82 | void runText(); |
87 | void filePerms(); | 83 | void filePerms(); |
88 | void doProperties(); | 84 | void doProperties(); |
89 | void runCommand(); | 85 | void runCommand(); |
90 | void runCommandStd(); | 86 | void runCommandStd(); |
91 | QStringList getPath(); | 87 | QStringList getPath(); |
92 | void mkSym(); | 88 | void mkSym(); |
93 | void switchToLocalTab(); | 89 | void switchToLocalTab(); |
94 | void switchToRemoteTab(); | 90 | void switchToRemoteTab(); |
95 | 91 | ||
96 | protected: | 92 | protected: |
97 | 93 | ||
98 | Opie::Ui::OSplitter *TabWidget; | 94 | Opie::Ui::OSplitter *TabWidget; |
99 | QCopChannel * channel; | 95 | QCopChannel * channel; |
100 | QPixmap unknownXpm; | 96 | QPixmap unknownXpm; |
101 | int whichTab; | 97 | int whichTab; |
102 | // QTabWidget *TabWidget; | 98 | // QTabWidget *TabWidget; |
103 | QWidget *tab, *tab_2, *tab_3; | 99 | QWidget *tab, *tab_2, *tab_3; |
104 | QListView *Local_View, *Remote_View; | 100 | QListView *Local_View, *Remote_View; |
105 | 101 | ||
106 | QLineEdit *currentPathEdit; | 102 | QLineEdit *currentPathEdit; |
107 | QPopupMenu *fileMenu, *localMenu, *remoteMenu, *viewMenu /*, *customDirMenu*/; | 103 | QPopupMenu *fileMenu, *localMenu, *remoteMenu, *viewMenu /*, *customDirMenu*/; |
108 | QToolButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton; | 104 | QToolButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton; |
109 | // QPushButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton; | 105 | // QPushButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton; |
110 | QDir currentDir, currentRemoteDir; | 106 | QDir currentDir, currentRemoteDir; |
111 | QComboBox *currentPathCombo; | 107 | QComboBox *currentPathCombo; |
112 | QString filterStr, s_addBookmark, s_removeBookmark; | 108 | QString filterStr, s_addBookmark, s_removeBookmark; |
113 | QListViewItem * item; | 109 | QListViewItem * item; |
114 | bool b; | 110 | bool b; |
115 | QStringList fileSystemTypeList, fsList; | 111 | QStringList fileSystemTypeList, fsList; |
116 | int currentServerConfig; | 112 | int currentServerConfig; |
117 | bool zaurusDevice; | 113 | bool zaurusDevice; |
118 | QGridLayout *tabLayout, *tabLayout_2, *tabLayout_3; | 114 | QGridLayout *tabLayout, *tabLayout_2, *tabLayout_3; |
119 | QStringList remoteDirPathStringList, localDirPathStringList; | 115 | QStringList remoteDirPathStringList, localDirPathStringList; |
120 | QLineEdit *renameBox; | 116 | QLineEdit *renameBox; |
121 | 117 | ||
122 | void init(); | 118 | void init(); |
123 | void initConnections(); | 119 | void initConnections(); |
124 | void keyReleaseEvent( QKeyEvent *); | 120 | void keyReleaseEvent( QKeyEvent *); |
125 | void keyPressEvent( QKeyEvent *); | 121 | void keyPressEvent( QKeyEvent *); |
126 | QString getFileSystemType(const QString &); | 122 | QString getFileSystemType(const QString &); |
127 | QString getDiskSpace(const QString &); | 123 | QString getDiskSpace(const QString &); |
128 | void parsetab(const QString &fileName); | 124 | void parsetab(const QString &fileName); |
129 | QString checkDiskSpace(const QString &); | 125 | QString checkDiskSpace(const QString &); |
130 | QString dealWithSymName(const QString &); | 126 | QString dealWithSymName(const QString &); |
131 | QDir *CurrentDir(); | 127 | QDir *CurrentDir(); |
132 | QDir *OtherDir(); | 128 | QDir *OtherDir(); |
133 | QListView *CurrentView(); | 129 | QListView *CurrentView(); |
134 | QListView *OtherView(); | 130 | QListView *OtherView(); |
135 | void setOtherTabCurrent(); | 131 | void setOtherTabCurrent(); |
136 | void dealWithSchmooSchmaa(QWidget *); | 132 | void dealWithSchmooSchmaa(QWidget *); |
137 | 133 | ||
138 | protected slots: | 134 | protected slots: |
139 | void openSearch(); | 135 | void openSearch(); |
140 | void dirMenuSelected(int); | 136 | void dirMenuSelected(int); |
141 | void showFileMenu(); | 137 | void showFileMenu(); |
142 | void cancelMenuTimer(); | ||
143 | void homeButtonPushed(); | 138 | void homeButtonPushed(); |
144 | void docButtonPushed(); | 139 | void docButtonPushed(); |
145 | void SDButtonPushed(); | 140 | void SDButtonPushed(); |
146 | void CFButtonPushed(); | 141 | void CFButtonPushed(); |
147 | void QPEButtonPushed(); | 142 | void QPEButtonPushed(); |
148 | void upDir(); | 143 | void upDir(); |
149 | void currentPathComboChanged(); | 144 | void currentPathComboChanged(); |
150 | void copy(); | 145 | void copy(); |
151 | void copyAs(); | 146 | void copyAs(); |
152 | void copySameDir(); | 147 | void copySameDir(); |
153 | void currentPathComboActivated(const QString &); | 148 | void currentPathComboActivated(const QString &); |
154 | void fillCombo(const QString &); | 149 | void fillCombo(const QString &); |
155 | bool copyFile( const QString & , const QString & ); | 150 | bool copyFile( const QString & , const QString & ); |
156 | void move(); | 151 | void move(); |
157 | void fileStatus(); | 152 | void fileStatus(); |
158 | void doAbout(); | 153 | void doAbout(); |
159 | void doBeam(); | 154 | void doBeam(); |
160 | void fileBeamFinished( Ir *); | 155 | void fileBeamFinished( Ir *); |
161 | bool copyDirectory( const QString & , const QString & ); | 156 | bool copyDirectory( const QString & , const QString & ); |
162 | // void navigateToSelected(); | 157 | // void navigateToSelected(); |
163 | bool moveDirectory( const QString & , const QString & ); | 158 | bool moveDirectory( const QString & , const QString & ); |
164 | // void slotSwitchtoLocal(int); | 159 | // void slotSwitchtoLocal(int); |
165 | 160 | ||
166 | private: | 161 | private: |
167 | MenuButton *menuButton; | 162 | MenuButton *menuButton; |
168 | QString oldName; | 163 | QString oldName; |
169 | QTimer menuTimer; | ||
170 | void startProcess(const QString &); | 164 | void startProcess(const QString &); |
171 | bool eventFilter( QObject * , QEvent * ); | 165 | bool eventFilter( QObject * , QEvent * ); |
172 | void cancelRename(); | 166 | void cancelRename(); |
173 | void doRename(QListView *); | 167 | void doRename(QListView *); |
174 | void okRename(); | 168 | void okRename(); |
175 | void customDirsToMenu(); | 169 | void customDirsToMenu(); |
176 | void addCustomDir(); | 170 | void addCustomDir(); |
177 | void removeCustomDir(); | 171 | void removeCustomDir(); |
178 | void gotoDirectory(const QString &); | 172 | void gotoDirectory(const QString &); |
179 | void navigateToSelected(); | 173 | void navigateToSelected(); |
180 | void findFile(const QString &); | 174 | void findFile(const QString &); |
181 | 175 | ||
182 | private slots: | 176 | private slots: |
183 | void processEnded(Opie::Core::OProcess *); | 177 | void processEnded(Opie::Core::OProcess *); |
184 | void oprocessStderr(Opie::Core::OProcess *, char *, int); | 178 | void oprocessStderr(Opie::Core::OProcess *, char *, int); |
185 | void gotoCustomDir(const QString &); | 179 | void gotoCustomDir(const QString &); |
186 | void qcopReceive(const QCString&, const QByteArray&); | 180 | void qcopReceive(const QCString&, const QByteArray&); |
187 | void setDocument(const QString &); | 181 | void setDocument(const QString &); |
188 | 182 | ||
189 | }; | 183 | }; |
190 | 184 | ||
191 | #endif // ADVANCEDFM_H | 185 | #endif // ADVANCEDFM_H |