summaryrefslogtreecommitdiff
path: root/noncore/apps/advancedfm/advancedfm.h
Unidiff
Diffstat (limited to 'noncore/apps/advancedfm/advancedfm.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h
index 547fa7c..4eaa6d6 100644
--- a/noncore/apps/advancedfm/advancedfm.h
+++ b/noncore/apps/advancedfm/advancedfm.h
@@ -9,49 +9,48 @@
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 <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
33using Opie::OSplitter;
34 33
35class QVBoxLayout; 34class QVBoxLayout;
36class QHBoxLayout; 35class QHBoxLayout;
37class QGridLayout; 36class QGridLayout;
38class QComboBox; 37class QComboBox;
39class QListView; 38class QListView;
40class QListviewItem; 39class QListviewItem;
41class QLabel; 40class QLabel;
42class QProgressBar; 41class QProgressBar;
43class QSpinBox; 42class QSpinBox;
44class QWidget; 43class QWidget;
45class QPopupMenu; 44class QPopupMenu;
46class QFile; 45class QFile;
47class QListViewItem; 46class QListViewItem;
48class QLineEdit; 47class QLineEdit;
49class MenuButton; 48class MenuButton;
50 49
51class QToolButton; 50class QToolButton;
52class Ir; 51class Ir;
53 52
54class AdvancedFm : public QMainWindow 53class AdvancedFm : public QMainWindow
55{ 54{
56 Q_OBJECT 55 Q_OBJECT
57public: 56public:
@@ -75,49 +74,49 @@ protected slots:
75 void showHidden(); 74 void showHidden();
76 void showMenuHidden(); 75 void showMenuHidden();
77 void writeConfig(); 76 void writeConfig();
78 void readConfig(); 77 void readConfig();
79 void ListClicked(QListViewItem *); 78 void ListClicked(QListViewItem *);
80 void ListPressed( int, QListViewItem *, const QPoint&, int); 79 void ListPressed( int, QListViewItem *, const QPoint&, int);
81 void makeDir(); 80 void makeDir();
82 void doDelete(); 81 void doDelete();
83 void tabChanged(QWidget*); 82 void tabChanged(QWidget*);
84 void cleanUp(); 83 void cleanUp();
85 void renameIt(); 84 void renameIt();
86 void runThis(); 85 void runThis();
87 void runText(); 86 void runText();
88 void filePerms(); 87 void filePerms();
89 void doProperties(); 88 void doProperties();
90 void runCommand(); 89 void runCommand();
91 void runCommandStd(); 90 void runCommandStd();
92 QStringList getPath(); 91 QStringList getPath();
93 void mkSym(); 92 void mkSym();
94 void switchToLocalTab(); 93 void switchToLocalTab();
95 void switchToRemoteTab(); 94 void switchToRemoteTab();
96 95
97protected: 96protected:
98 97
99 OSplitter *TabWidget; 98 Opie::Ui::OSplitter *TabWidget;
100 QCopChannel * channel; 99 QCopChannel * channel;
101 QPixmap unknownXpm; 100 QPixmap unknownXpm;
102 int whichTab; 101 int whichTab;
103// QTabWidget *TabWidget; 102// QTabWidget *TabWidget;
104 QWidget *tab, *tab_2, *tab_3; 103 QWidget *tab, *tab_2, *tab_3;
105 QListView *Local_View, *Remote_View; 104 QListView *Local_View, *Remote_View;
106 105
107 QLineEdit *currentPathEdit; 106 QLineEdit *currentPathEdit;
108 QPopupMenu *fileMenu, *localMenu, *remoteMenu, *viewMenu /*, *customDirMenu*/; 107 QPopupMenu *fileMenu, *localMenu, *remoteMenu, *viewMenu /*, *customDirMenu*/;
109 QToolButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton; 108 QToolButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton;
110// QPushButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton; 109// QPushButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton;
111 QDir currentDir, currentRemoteDir; 110 QDir currentDir, currentRemoteDir;
112 QComboBox *currentPathCombo; 111 QComboBox *currentPathCombo;
113 QString filterStr, s_addBookmark, s_removeBookmark; 112 QString filterStr, s_addBookmark, s_removeBookmark;
114 QListViewItem * item; 113 QListViewItem * item;
115 bool b; 114 bool b;
116 QStringList fileSystemTypeList, fsList; 115 QStringList fileSystemTypeList, fsList;
117 int currentServerConfig; 116 int currentServerConfig;
118 bool zaurusDevice; 117 bool zaurusDevice;
119 QGridLayout *tabLayout, *tabLayout_2, *tabLayout_3; 118 QGridLayout *tabLayout, *tabLayout_2, *tabLayout_3;
120 QStringList remoteDirPathStringList, localDirPathStringList; 119 QStringList remoteDirPathStringList, localDirPathStringList;
121 QLineEdit *renameBox; 120 QLineEdit *renameBox;
122 121
123 void init(); 122 void init();
@@ -160,33 +159,33 @@ protected slots:
160 void doBeam(); 159 void doBeam();
161 void fileBeamFinished( Ir *); 160 void fileBeamFinished( Ir *);
162 bool copyDirectory( const QString & , const QString & ); 161 bool copyDirectory( const QString & , const QString & );
163// void navigateToSelected(); 162// void navigateToSelected();
164 bool moveDirectory( const QString & , const QString & ); 163 bool moveDirectory( const QString & , const QString & );
165// void slotSwitchtoLocal(int); 164// void slotSwitchtoLocal(int);
166 165
167private: 166private:
168 MenuButton *menuButton; 167 MenuButton *menuButton;
169 QString oldName; 168 QString oldName;
170 QTimer menuTimer; 169 QTimer menuTimer;
171 void startProcess(const QString &); 170 void startProcess(const QString &);
172 bool eventFilter( QObject * , QEvent * ); 171 bool eventFilter( QObject * , QEvent * );
173 void cancelRename(); 172 void cancelRename();
174 void doRename(QListView *); 173 void doRename(QListView *);
175 void okRename(); 174 void okRename();
176 void customDirsToMenu(); 175 void customDirsToMenu();
177 void addCustomDir(); 176 void addCustomDir();
178 void removeCustomDir(); 177 void removeCustomDir();
179 void gotoDirectory(const QString &); 178 void gotoDirectory(const QString &);
180 void navigateToSelected(); 179 void navigateToSelected();
181 void findFile(const QString &); 180 void findFile(const QString &);
182 181
183private slots: 182private slots:
184 void processEnded(OProcess *); 183 void processEnded(Opie::Core::OProcess *);
185 void oprocessStderr(OProcess *, char *, int); 184 void oprocessStderr(Opie::Core::OProcess *, char *, int);
186 void gotoCustomDir(const QString &); 185 void gotoCustomDir(const QString &);
187 void qcopReceive(const QCString&, const QByteArray&); 186 void qcopReceive(const QCString&, const QByteArray&);
188 void setDocument(const QString &); 187 void setDocument(const QString &);
189 188
190}; 189};
191 190
192#endif // ADVANCEDFM_H 191#endif // ADVANCEDFM_H