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 | |||
@@ -34,53 +34,49 @@ | |||
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(); |
@@ -117,75 +113,73 @@ protected: | |||
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 |