author | llornkcor <llornkcor> | 2003-02-24 01:37:16 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-02-24 01:37:16 (UTC) |
commit | 56b89312a374b62ee20f6ad2b62b6426183d4d26 (patch) (unidiff) | |
tree | f57607a3f7b9e267245e79ea38a43694ebdefbb3 /noncore/apps/advancedfm/advancedfm.h | |
parent | 041eda0d7482d60cd67731b81fd36104fcd3120f (diff) | |
download | opie-56b89312a374b62ee20f6ad2b62b6426183d4d26.zip opie-56b89312a374b62ee20f6ad2b62b6426183d4d26.tar.gz opie-56b89312a374b62ee20f6ad2b62b6426183d4d26.tar.bz2 |
first part refactoring simplify
Diffstat (limited to 'noncore/apps/advancedfm/advancedfm.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.h | 122 |
1 files changed, 60 insertions, 62 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h index 7478dcb..8eec6ba 100644 --- a/noncore/apps/advancedfm/advancedfm.h +++ b/noncore/apps/advancedfm/advancedfm.h | |||
@@ -3,10 +3,10 @@ | |||
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 |
@@ -54,44 +54,35 @@ class AdvancedFm : public QMainWindow | |||
54 | { | 54 | { |
55 | Q_OBJECT | 55 | Q_OBJECT |
56 | public: | 56 | public: |
57 | AdvancedFm(); | 57 | AdvancedFm(); |
58 | ~AdvancedFm(); | 58 | ~AdvancedFm(); |
59 | protected slots: | 59 | protected slots: |
60 | void selectAll(); | 60 | void selectAll(); |
61 | void addToDocs(); | 61 | void addToDocs(); |
62 | void doLocalCd(); | 62 | void doDirChange(); |
63 | void doRemoteCd(); | 63 | void mkDir(); |
64 | // void copy(); | 64 | void del(); |
65 | void mkDir(); | 65 | void rn(); |
66 | void del(); | 66 | void populateLocalView(); |
67 | void rn(); | 67 | void populateRemoteView(); |
68 | void populateLocalView(); | 68 | void showHidden(); |
69 | void populateRemoteView(); | 69 | void showMenuHidden(); |
70 | void showHidden(); | 70 | // void showRemoteHidden(); |
71 | void showMenuHidden(); | 71 | void writeConfig(); |
72 | void showRemoteHidden(); | 72 | void readConfig(); |
73 | void writeConfig(); | 73 | void ListClicked(QListViewItem *); |
74 | void readConfig(); | 74 | void ListPressed( int, QListViewItem *, const QPoint&, int); |
75 | void localListClicked(QListViewItem *); | 75 | void makeDir(); |
76 | void remoteListClicked(QListViewItem *); | 76 | void doDelete(); |
77 | void localListPressed( int, QListViewItem *, const QPoint&, int); | 77 | void tabChanged(QWidget*); |
78 | void remoteListPressed( int, QListViewItem *, const QPoint&, int); | 78 | void cleanUp(); |
79 | void localMakDir(); | 79 | void renameIt(); |
80 | void localDelete(); | 80 | void runThis(); |
81 | void remoteMakDir(); | 81 | void runText(); |
82 | void remoteDelete(); | 82 | void filePerms(); |
83 | /* bool remoteDirList(const QString &); */ | 83 | void doProperties(); |
84 | /* bool remoteChDir(const QString &); */ | 84 | void runCommand(); |
85 | void tabChanged(QWidget*); | 85 | void runCommandStd(); |
86 | void cleanUp(); | 86 | QStringList getPath(); |
87 | void remoteRename(); | 87 | void mkSym(); |
88 | void localRename(); | ||
89 | void runThis(); | ||
90 | void runText(); | ||
91 | void filePerms(); | ||
92 | void doProperties(); | ||
93 | void runCommand(); | ||
94 | void runCommandStd(); | ||
95 | QStringList getPath(); | ||
96 | void mkSym(); | ||
97 | void switchToLocalTab(); | 88 | void switchToLocalTab(); |
@@ -102,2 +93,3 @@ protected: | |||
102 | OTabWidget *TabWidget; | 93 | OTabWidget *TabWidget; |
94 | int whichTab; | ||
103 | // QTabWidget *TabWidget; | 95 | // QTabWidget *TabWidget; |
@@ -121,3 +113,3 @@ protected: | |||
121 | QLineEdit *renameBox; | 113 | QLineEdit *renameBox; |
122 | 114 | ||
123 | void init(); | 115 | void init(); |
@@ -125,2 +117,3 @@ protected: | |||
125 | void keyReleaseEvent( QKeyEvent *); | 117 | void keyReleaseEvent( QKeyEvent *); |
118 | void keyPressEvent( QKeyEvent *); | ||
126 | QString getFileSystemType(const QString &); | 119 | QString getFileSystemType(const QString &); |
@@ -130,5 +123,10 @@ protected: | |||
130 | QString dealWithSymName(const QString &); | 123 | QString dealWithSymName(const QString &); |
131 | 124 | QDir *CurrentDir(); | |
125 | QDir *OtherDir(); | ||
126 | QListView *CurrentView(); | ||
127 | QListView *OtherView(); | ||
128 | void PopulateView(); | ||
129 | |||
132 | protected slots: | 130 | protected slots: |
133 | void dirMenuSelected(int); | 131 | void dirMenuSelected(int); |
134 | void showFileMenu(); | 132 | void showFileMenu(); |
@@ -155,17 +153,17 @@ protected slots: | |||
155 | private: | 153 | private: |
156 | MenuButton *menuButton; | 154 | MenuButton *menuButton; |
157 | QString oldName; | 155 | QString oldName; |
158 | QTimer menuTimer; | 156 | QTimer menuTimer; |
159 | void startProcess(const QString &); | 157 | void startProcess(const QString &); |
160 | bool eventFilter( QObject * , QEvent * ); | 158 | bool eventFilter( QObject * , QEvent * ); |
161 | void cancelRename(); | 159 | void cancelRename(); |
162 | void doRename(QListView *); | 160 | void doRename(QListView *); |
163 | void okRename(); | 161 | void okRename(); |
164 | void customDirsToMenu(); | 162 | void customDirsToMenu(); |
165 | void addCustomDir(); | 163 | void addCustomDir(); |
166 | void removeCustomDir(); | 164 | void removeCustomDir(); |
167 | 165 | ||
168 | private slots: | 166 | private slots: |
169 | void processEnded(); | 167 | void processEnded(); |
170 | void gotoCustomDir(const QString &); | 168 | void gotoCustomDir(const QString &); |
171 | }; | 169 | }; |