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.h8
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
@@ -10,182 +10,176 @@
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
33 33
34class QVBoxLayout; 34class QVBoxLayout;
35class QHBoxLayout; 35class QHBoxLayout;
36class QGridLayout; 36class QGridLayout;
37class QComboBox; 37class QComboBox;
38class QListView; 38class QListView;
39class QListviewItem; 39class QListviewItem;
40class QLabel; 40class QLabel;
41class QProgressBar; 41class QProgressBar;
42class QSpinBox; 42class QSpinBox;
43class QWidget; 43class QWidget;
44class QPopupMenu; 44class QPopupMenu;
45class QFile; 45class QFile;
46class QListViewItem; 46class QListViewItem;
47class QLineEdit; 47class QLineEdit;
48class MenuButton; 48class MenuButton;
49 49
50class QToolButton; 50class QToolButton;
51class Ir; 51class Ir;
52 52
53class AdvancedFm : public QMainWindow 53class AdvancedFm : public QMainWindow
54{ 54{
55 Q_OBJECT 55 Q_OBJECT
56public: 56public:
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();
64protected slots: 60protected 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();
87 void filePerms(); 83 void filePerms();
88 void doProperties(); 84 void doProperties();
89 void runCommand(); 85 void runCommand();
90 void runCommandStd(); 86 void runCommandStd();
91 QStringList getPath(); 87 QStringList getPath();
92 void mkSym(); 88 void mkSym();
93 void switchToLocalTab(); 89 void switchToLocalTab();
94 void switchToRemoteTab(); 90 void switchToRemoteTab();
95 91
96protected: 92protected:
97 93
98 Opie::Ui::OSplitter *TabWidget; 94 Opie::Ui::OSplitter *TabWidget;
99 QCopChannel * channel; 95 QCopChannel * channel;
100 QPixmap unknownXpm; 96 QPixmap unknownXpm;
101 int whichTab; 97 int whichTab;
102// QTabWidget *TabWidget; 98// QTabWidget *TabWidget;
103 QWidget *tab, *tab_2, *tab_3; 99 QWidget *tab, *tab_2, *tab_3;
104 QListView *Local_View, *Remote_View; 100 QListView *Local_View, *Remote_View;
105 101
106 QLineEdit *currentPathEdit; 102 QLineEdit *currentPathEdit;
107 QPopupMenu *fileMenu, *localMenu, *remoteMenu, *viewMenu /*, *customDirMenu*/; 103 QPopupMenu *fileMenu, *localMenu, *remoteMenu, *viewMenu /*, *customDirMenu*/;
108 QToolButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton; 104 QToolButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton;
109// QPushButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton; 105// QPushButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton;
110 QDir currentDir, currentRemoteDir; 106 QDir currentDir, currentRemoteDir;
111 QComboBox *currentPathCombo; 107 QComboBox *currentPathCombo;
112 QString filterStr, s_addBookmark, s_removeBookmark; 108 QString filterStr, s_addBookmark, s_removeBookmark;
113 QListViewItem * item; 109 QListViewItem * item;
114 bool b; 110 bool b;
115 QStringList fileSystemTypeList, fsList; 111 QStringList fileSystemTypeList, fsList;
116 int currentServerConfig; 112 int currentServerConfig;
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
138protected slots: 134protected 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
166private: 161private:
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
182private slots: 176private 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