author | llornkcor <llornkcor> | 2004-09-25 01:51:26 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-09-25 01:51:26 (UTC) |
commit | 40e681bf20db4f1e02212ae6e42a349ee000cf14 (patch) (unidiff) | |
tree | 86eea5377011775ff87ca50e1fd125ff8f30622f /noncore/apps/advancedfm/advancedfm.h | |
parent | 0fe000754035c737ff0de97e5b2bd2cf03c16337 (diff) | |
download | opie-40e681bf20db4f1e02212ae6e42a349ee000cf14.zip opie-40e681bf20db4f1e02212ae6e42a349ee000cf14.tar.gz opie-40e681bf20db4f1e02212ae6e42a349ee000cf14.tar.bz2 |
fix stuff
Diffstat (limited to 'noncore/apps/advancedfm/advancedfm.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.h | 77 |
1 files changed, 43 insertions, 34 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h index def6fe2..2234b3c 100644 --- a/noncore/apps/advancedfm/advancedfm.h +++ b/noncore/apps/advancedfm/advancedfm.h | |||
@@ -48,56 +48,24 @@ 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 | AdvancedFm(QWidget *p = 0, const char* name = 0, WFlags fl = 0); | 58 | AdvancedFm(QWidget *p = 0, const char* name = 0, WFlags fl = 0); |
59 | ~AdvancedFm(); | 59 | ~AdvancedFm(); |
60 | protected slots: | ||
61 | void slotSwitchMenu(int); | ||
62 | void selectAll(); | ||
63 | void addToDocs(); | ||
64 | void doDirChange(); | ||
65 | void mkDir(); | ||
66 | void del(); | ||
67 | void rn(); | ||
68 | void populateView(); | ||
69 | void rePopulate(); | ||
70 | void showHidden(); | ||
71 | void showMenuHidden(); | ||
72 | void writeConfig(); | ||
73 | void readConfig(); | ||
74 | void ListClicked(QListViewItem *); | ||
75 | void ListPressed( int, QListViewItem *, const QPoint&, int); | ||
76 | void makeDir(); | ||
77 | void doDelete(); | ||
78 | void tabChanged(QWidget*); | ||
79 | void cleanUp(); | ||
80 | void renameIt(); | ||
81 | void runThis(); | ||
82 | void runText(); | ||
83 | void filePerms(); | ||
84 | void doProperties(); | ||
85 | void runCommand(); | ||
86 | void runCommandStd(); | ||
87 | QStringList getPath(); | ||
88 | void mkSym(); | ||
89 | void switchToLocalTab(); | ||
90 | void switchToRemoteTab(); | ||
91 | void refreshCurrentTab(); | ||
92 | protected: | 60 | protected: |
93 | 61 | ||
94 | Opie::Ui::OSplitter *TabWidget; | 62 | Opie::Ui::OSplitter *TabWidget; |
95 | QCopChannel * channel; | 63 | QCopChannel * channel; |
96 | QPixmap unknownXpm; | 64 | QPixmap unknownXpm; |
97 | int whichTab; | 65 | int whichTab; |
98 | // QTabWidget *TabWidget; | 66 | // QTabWidget *TabWidget; |
99 | QWidget *tab, *tab_2, *tab_3; | 67 | QWidget *tab, *tab_2, *tab_3; |
100 | QListView *Local_View, *Remote_View; | 68 | QListView *Local_View, *Remote_View; |
101 | 69 | ||
102 | QLineEdit *currentPathEdit; | 70 | QLineEdit *currentPathEdit; |
103 | QPopupMenu *fileMenu, *localMenu, *remoteMenu, *viewMenu /*, *customDirMenu*/; | 71 | QPopupMenu *fileMenu, *localMenu, *remoteMenu, *viewMenu /*, *customDirMenu*/; |
@@ -121,66 +89,107 @@ protected: | |||
121 | void keyPressEvent( QKeyEvent *); | 89 | void keyPressEvent( QKeyEvent *); |
122 | QString getFileSystemType(const QString &); | 90 | QString getFileSystemType(const QString &); |
123 | QString getDiskSpace(const QString &); | 91 | QString getDiskSpace(const QString &); |
124 | void parsetab(const QString &fileName); | 92 | void parsetab(const QString &fileName); |
125 | QString checkDiskSpace(const QString &); | 93 | QString checkDiskSpace(const QString &); |
126 | QString dealWithSymName(const QString &); | 94 | QString dealWithSymName(const QString &); |
127 | QDir *CurrentDir(); | 95 | QDir *CurrentDir(); |
128 | QDir *OtherDir(); | 96 | QDir *OtherDir(); |
129 | QListView *CurrentView(); | 97 | QListView *CurrentView(); |
130 | QListView *OtherView(); | 98 | QListView *OtherView(); |
131 | void setOtherTabCurrent(); | 99 | void setOtherTabCurrent(); |
132 | 100 | ||
101 | //protected signals: | ||
102 | // void newPath(QString); | ||
103 | |||
133 | protected slots: | 104 | protected slots: |
105 | void slotSwitchMenu(int); | ||
106 | void selectAll(); | ||
107 | void addToDocs(); | ||
108 | void doDirChange(); | ||
109 | void mkDir(); | ||
110 | void del(); | ||
111 | void rn(); | ||
112 | void populateView(); | ||
113 | void rePopulate(); | ||
114 | void showHidden(); | ||
115 | void showMenuHidden(); | ||
116 | void writeConfig(); | ||
117 | void readConfig(); | ||
118 | void ListClicked(QListViewItem *); | ||
119 | void ListPressed( int, QListViewItem *, const QPoint&, int); | ||
120 | void makeDir(); | ||
121 | void doDelete(); | ||
122 | void tabChanged(QWidget*); | ||
123 | void cleanUp(); | ||
124 | void renameIt(); | ||
125 | void runThis(); | ||
126 | void runText(); | ||
127 | void filePerms(); | ||
128 | void doProperties(); | ||
129 | void runCommand(); | ||
130 | void runCommandStd(); | ||
131 | QStringList getPath(); | ||
132 | void mkSym(); | ||
133 | void switchToLocalTab(); | ||
134 | void switchToRemoteTab(); | ||
135 | void refreshCurrentTab(); | ||
134 | 136 | ||
135 | void openSearch(); | 137 | void openSearch(); |
136 | void dirMenuSelected(int); | 138 | void dirMenuSelected(int); |
137 | void showFileMenu(); | 139 | void showFileMenu(); |
138 | void homeButtonPushed(); | 140 | void homeButtonPushed(); |
139 | void docButtonPushed(); | 141 | void docButtonPushed(); |
140 | void SDButtonPushed(); | 142 | void SDButtonPushed(); |
141 | void CFButtonPushed(); | 143 | void CFButtonPushed(); |
142 | void QPEButtonPushed(); | 144 | void QPEButtonPushed(); |
143 | void upDir(); | 145 | void upDir(); |
144 | void currentPathComboChanged(); | 146 | void currentPathComboChanged(); |
147 | |||
145 | void copy(); | 148 | void copy(); |
149 | void copyTimer(); | ||
146 | void copyAs(); | 150 | void copyAs(); |
151 | void copyAsTimer(); | ||
147 | void copySameDir(); | 152 | void copySameDir(); |
153 | void copySameDirTimer(); | ||
154 | void move(); | ||
155 | void moveTimer(); | ||
156 | |||
148 | void currentPathComboActivated(const QString &); | 157 | void currentPathComboActivated(const QString &); |
149 | void fillCombo(const QString &); | 158 | void fillCombo(const QString &); |
150 | bool copyFile( const QString & , const QString & ); | 159 | bool copyFile( const QString & , const QString & ); |
151 | void move(); | ||
152 | void fileStatus(); | 160 | void fileStatus(); |
153 | void doAbout(); | 161 | void doAbout(); |
154 | void doBeam(); | 162 | void doBeam(); |
155 | void fileBeamFinished( Ir *); | 163 | void fileBeamFinished( Ir *); |
156 | bool copyDirectory( const QString & , const QString & ); | 164 | bool copyDirectory( const QString & , const QString & ); |
157 | // void navigateToSelected(); | 165 | // void navigateToSelected(); |
158 | bool moveDirectory( const QString & , const QString & ); | 166 | bool moveDirectory( const QString & , const QString & ); |
159 | 167 | ||
160 | // void slotSwitchtoLocal(int); | 168 | // void slotSwitchtoLocal(int); |
161 | 169 | ||
162 | private: | 170 | private: |
163 | MenuButton *menuButton; | 171 | MenuButton *menuButton; |
164 | QString oldName; | 172 | QString oldName, localViewDir, remoteViewDir; |
165 | void startProcess(const QString &); | 173 | void startProcess(const QString &); |
166 | bool eventFilter( QObject * , QEvent * ); | 174 | bool eventFilter( QObject * , QEvent * ); |
167 | void cancelRename(); | 175 | void cancelRename(); |
168 | void doRename(QListView *); | 176 | void doRename(QListView *); |
169 | void okRename(); | 177 | void okRename(); |
170 | void customDirsToMenu(); | 178 | void customDirsToMenu(); |
171 | void addCustomDir(); | 179 | void addCustomDir(); |
172 | void removeCustomDir(); | 180 | void removeCustomDir(); |
173 | void gotoDirectory(const QString &); | 181 | void gotoDirectory(const QString &); |
174 | void navigateToSelected(); | 182 | void navigateToSelected(); |
175 | void findFile(const QString &); | 183 | void findFile(const QString &); |
176 | 184 | ||
177 | private slots: | 185 | private slots: |
178 | void processEnded(Opie::Core::OProcess *); | 186 | void processEnded(Opie::Core::OProcess *); |
179 | void oprocessStderr(Opie::Core::OProcess *, char *, int); | 187 | void oprocessStderr(Opie::Core::OProcess *, char *, int); |
180 | void gotoCustomDir(const QString &); | 188 | void gotoCustomDir(const QString &); |
181 | void qcopReceive(const QCString&, const QByteArray&); | 189 | void qcopReceive(const QCString&, const QByteArray&); |
182 | void setDocument(const QString &); | 190 | void setDocument(const QString &); |
191 | // void doMenu(int | ||
183 | 192 | ||
184 | }; | 193 | }; |
185 | 194 | ||
186 | #endif // ADVANCEDFM_H | 195 | #endif // ADVANCEDFM_H |