Diffstat (limited to 'noncore/apps/advancedfm/advancedfm.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.h | 16 |
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 | ||
24 | class QVBoxLayout; | 26 | class QVBoxLayout; |
25 | class QHBoxLayout; | 27 | class QHBoxLayout; |
26 | class QGridLayout; | 28 | class QGridLayout; |
27 | class QComboBox; | 29 | class QComboBox; |
28 | class QListView; | 30 | class QListView; |
@@ -36,12 +38,13 @@ class QPEToolBar; | |||
36 | class QPEMenuBar; | 38 | class QPEMenuBar; |
37 | class QPopupMenu; | 39 | class QPopupMenu; |
38 | class QFile; | 40 | class QFile; |
39 | class QListViewItem; | 41 | class QListViewItem; |
40 | class QLineEdit; | 42 | class QLineEdit; |
41 | class QPushButton; | 43 | class QPushButton; |
44 | class Ir; | ||
42 | 45 | ||
43 | class AdvancedFm : public QMainWindow | 46 | class AdvancedFm : public QMainWindow |
44 | { | 47 | { |
45 | Q_OBJECT | 48 | Q_OBJECT |
46 | public: | 49 | public: |
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; |
64 | protected slots: | 67 | protected 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 | ||
104 | protected: | 105 | protected: |
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 | ||
111 | protected slots: | 113 | protected 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 *); |
133 | private: | ||
134 | QTimer menuTimer; | ||
129 | }; | 135 | }; |
130 | 136 | ||
131 | #endif // ADVANCEDFM_H | 137 | #endif // ADVANCEDFM_H |