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.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h
index 5817fca..0cf94c6 100644
--- a/noncore/apps/advancedfm/advancedfm.h
+++ b/noncore/apps/advancedfm/advancedfm.h
@@ -9,20 +9,22 @@
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 14
15#include <qpe/ir.h>
16
15#include <qvariant.h> 17#include <qvariant.h>
16#include <qdialog.h> 18#include <qdialog.h>
17#include <qmainwindow.h> 19#include <qmainwindow.h>
20#include <qstringlist.h>
18#include <qdir.h> 21#include <qdir.h>
19#include <qstring.h> 22#include <qstring.h>
20#include <qpoint.h> 23#include <qpoint.h>
21#include <qstringlist.h> 24#include <qtimer.h>
22#include <qpe/ir.h>
23 25
24class QVBoxLayout; 26class QVBoxLayout;
25class QHBoxLayout; 27class QHBoxLayout;
26class QGridLayout; 28class QGridLayout;
27class QComboBox; 29class QComboBox;
28class QListView; 30class QListView;
@@ -36,12 +38,13 @@ class QPEToolBar;
36class QPEMenuBar; 38class QPEMenuBar;
37class QPopupMenu; 39class QPopupMenu;
38class QFile; 40class QFile;
39class QListViewItem; 41class QListViewItem;
40class QLineEdit; 42class QLineEdit;
41class QPushButton; 43class QPushButton;
44class Ir;
42 45
43class AdvancedFm : public QMainWindow 46class AdvancedFm : public QMainWindow
44{ 47{
45 Q_OBJECT 48 Q_OBJECT
46public: 49public:
47 AdvancedFm(); 50 AdvancedFm();
@@ -59,14 +62,12 @@ public:
59 QString filterStr; 62 QString filterStr;
60 QListViewItem * item; 63 QListViewItem * item;
61 bool b; 64 bool b;
62 QStringList fileSystemTypeList, fsList; 65 QStringList fileSystemTypeList, fsList;
63 int currentServerConfig; 66 int currentServerConfig;
64protected slots: 67protected slots:
65 void showLocalMenu( QListViewItem *);
66 void showRemoteMenu( QListViewItem *);
67 void doLocalCd(); 68 void doLocalCd();
68 void doRemoteCd(); 69 void doRemoteCd();
69// void copy(); 70// void copy();
70 void mkDir(); 71 void mkDir();
71 void del(); 72 void del();
72 void rn(); 73 void rn();
@@ -101,17 +102,20 @@ protected slots:
101 void switchToLocalTab(); 102 void switchToLocalTab();
102 void switchToRemoteTab(); 103 void switchToRemoteTab();
103 104
104protected: 105protected:
105 QGridLayout *tabLayout, *tabLayout_2, *tabLayout_3; 106 QGridLayout *tabLayout, *tabLayout_2, *tabLayout_3;
106 QStringList remoteDirPathStringList, localDirPathStringList; 107 QStringList remoteDirPathStringList, localDirPathStringList;
108
107 void keyReleaseEvent( QKeyEvent *); 109 void keyReleaseEvent( QKeyEvent *);
108 QString getFileSystemType(const QString &); 110 QString getFileSystemType(const QString &);
109 void parsetab(const QString &fileName); 111 void parsetab(const QString &fileName);
110 112
111protected slots: 113protected slots:
114 void showFileMenu();
115 void cancelMenuTimer();
112 void homeButtonPushed(); 116 void homeButtonPushed();
113 void docButtonPushed(); 117 void docButtonPushed();
114 void SDButtonPushed(); 118 void SDButtonPushed();
115 void CFButtonPushed(); 119 void CFButtonPushed();
116 void QPEButtonPushed(); 120 void QPEButtonPushed();
117 void upDir(); 121 void upDir();
@@ -122,10 +126,12 @@ protected slots:
122 void fillCombo(const QString &); 126 void fillCombo(const QString &);
123 bool copyFile( const QString & , const QString & ); 127 bool copyFile( const QString & , const QString & );
124 void move(); 128 void move();
125 void fileStatus(); 129 void fileStatus();
126 void doAbout(); 130 void doAbout();
127 void doBeam(); 131 void doBeam();
128 void fileBeamFinished( Ir *ir); 132 void fileBeamFinished( Ir *);
133private:
134 QTimer menuTimer;
129}; 135};
130 136
131#endif // ADVANCEDFM_H 137#endif // ADVANCEDFM_H