summaryrefslogtreecommitdiff
path: root/noncore/apps/advancedfm/advancedfm.h
Unidiff
Diffstat (limited to 'noncore/apps/advancedfm/advancedfm.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h
index 4480051..c9a5525 100644
--- a/noncore/apps/advancedfm/advancedfm.h
+++ b/noncore/apps/advancedfm/advancedfm.h
@@ -7,25 +7,27 @@
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 <opie/otabwidget.h>
18#include <opie/oprocess.h> 18#include <opie/oprocess.h>
19
19#include <qpe/ir.h> 20#include <qpe/ir.h>
21#include <qpe/qcopenvelope_qws.h>
20 22
21#include <qvariant.h> 23#include <qvariant.h>
22#include <qdialog.h> 24#include <qdialog.h>
23#include <qmainwindow.h> 25#include <qmainwindow.h>
24#include <qstringlist.h> 26#include <qstringlist.h>
25#include <qdir.h> 27#include <qdir.h>
26#include <qstring.h> 28#include <qstring.h>
27#include <qpoint.h> 29#include <qpoint.h>
28#include <qtimer.h> 30#include <qtimer.h>
29#include <qpixmap.h> 31#include <qpixmap.h>
30 32
31class OTabWidget; 33class OTabWidget;
@@ -80,24 +82,25 @@ protected slots:
80 void filePerms(); 82 void filePerms();
81 void doProperties(); 83 void doProperties();
82 void runCommand(); 84 void runCommand();
83 void runCommandStd(); 85 void runCommandStd();
84 QStringList getPath(); 86 QStringList getPath();
85 void mkSym(); 87 void mkSym();
86 void switchToLocalTab(); 88 void switchToLocalTab();
87 void switchToRemoteTab(); 89 void switchToRemoteTab();
88 90
89protected: 91protected:
90 92
91 OTabWidget *TabWidget; 93 OTabWidget *TabWidget;
94 QCopChannel * channel;
92 QPixmap unknownXpm; 95 QPixmap unknownXpm;
93 int whichTab; 96 int whichTab;
94// QTabWidget *TabWidget; 97// QTabWidget *TabWidget;
95 QWidget *tab, *tab_2, *tab_3; 98 QWidget *tab, *tab_2, *tab_3;
96 QListView *Local_View, *Remote_View; 99 QListView *Local_View, *Remote_View;
97 100
98 QLineEdit *currentPathEdit; 101 QLineEdit *currentPathEdit;
99 QPopupMenu *fileMenu, *localMenu, *remoteMenu, *viewMenu /*, *customDirMenu*/; 102 QPopupMenu *fileMenu, *localMenu, *remoteMenu, *viewMenu /*, *customDirMenu*/;
100 QToolButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton; 103 QToolButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton;
101// QPushButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton; 104// QPushButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton;
102 QDir currentDir, currentRemoteDir; 105 QDir currentDir, currentRemoteDir;
103 QComboBox *currentPathCombo; 106 QComboBox *currentPathCombo;
@@ -152,20 +155,24 @@ protected slots:
152private: 155private:
153 MenuButton *menuButton; 156 MenuButton *menuButton;
154 QString oldName; 157 QString oldName;
155 QTimer menuTimer; 158 QTimer menuTimer;
156 void startProcess(const QString &); 159 void startProcess(const QString &);
157 bool eventFilter( QObject * , QEvent * ); 160 bool eventFilter( QObject * , QEvent * );
158 void cancelRename(); 161 void cancelRename();
159 void doRename(QListView *); 162 void doRename(QListView *);
160 void okRename(); 163 void okRename();
161 void customDirsToMenu(); 164 void customDirsToMenu();
162 void addCustomDir(); 165 void addCustomDir();
163 void removeCustomDir(); 166 void removeCustomDir();
167 void gotoDirectory(const QString &);
164 168
165private slots: 169private slots:
166 void processEnded(OProcess *); 170 void processEnded(OProcess *);
167 void oprocessStderr(OProcess *, char *, int); 171 void oprocessStderr(OProcess *, char *, int);
168 void gotoCustomDir(const QString &); 172 void gotoCustomDir(const QString &);
173 void qcopReceive(const QCString&, const QByteArray&);
174 void setDocument(const QString &);
175
169}; 176};
170 177
171#endif // ADVANCEDFM_H 178#endif // ADVANCEDFM_H