Diffstat (limited to 'noncore/apps/advancedfm/advancedfm.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.h | 42 |
1 files changed, 25 insertions, 17 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h index 42775ee..7478dcb 100644 --- a/noncore/apps/advancedfm/advancedfm.h +++ b/noncore/apps/advancedfm/advancedfm.h | |||
@@ -35,52 +35,36 @@ class QListView; | |||
35 | class QListviewItem; | 35 | class QListviewItem; |
36 | class QLabel; | 36 | class QLabel; |
37 | class QProgressBar; | 37 | class QProgressBar; |
38 | class QSpinBox; | 38 | class QSpinBox; |
39 | class QTabWidget; | 39 | class QTabWidget; |
40 | class QWidget; | 40 | class QWidget; |
41 | class QPEToolBar; | 41 | class QPEToolBar; |
42 | class QPEMenuBar; | 42 | class QPEMenuBar; |
43 | class QPopupMenu; | 43 | class QPopupMenu; |
44 | class QFile; | 44 | class QFile; |
45 | class QListViewItem; | 45 | class QListViewItem; |
46 | class QLineEdit; | 46 | class QLineEdit; |
47 | class MenuButton; | ||
47 | 48 | ||
48 | //class QPushButton; | 49 | //class QPushButton; |
49 | class QToolButton; | 50 | class QToolButton; |
50 | class Ir; | 51 | class Ir; |
51 | 52 | ||
52 | class AdvancedFm : public QMainWindow | 53 | class AdvancedFm : public QMainWindow |
53 | { | 54 | { |
54 | Q_OBJECT | 55 | Q_OBJECT |
55 | public: | 56 | public: |
56 | AdvancedFm(); | 57 | AdvancedFm(); |
57 | ~AdvancedFm(); | 58 | ~AdvancedFm(); |
58 | |||
59 | OTabWidget *TabWidget; | ||
60 | // QTabWidget *TabWidget; | ||
61 | QWidget *tab, *tab_2, *tab_3; | ||
62 | QListView *Local_View, *Remote_View; | ||
63 | |||
64 | QLineEdit *currentPathEdit; | ||
65 | QPopupMenu *fileMenu, *localMenu, *remoteMenu, *viewMenu; | ||
66 | QToolButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton; | ||
67 | // QPushButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton; | ||
68 | QDir currentDir, currentRemoteDir; | ||
69 | QComboBox *currentPathCombo; | ||
70 | QString filterStr; | ||
71 | QListViewItem * item; | ||
72 | bool b; | ||
73 | QStringList fileSystemTypeList, fsList; | ||
74 | int currentServerConfig; | ||
75 | protected slots: | 59 | protected slots: |
76 | void selectAll(); | 60 | void selectAll(); |
77 | void addToDocs(); | 61 | void addToDocs(); |
78 | void doLocalCd(); | 62 | void doLocalCd(); |
79 | void doRemoteCd(); | 63 | void doRemoteCd(); |
80 | // void copy(); | 64 | // void copy(); |
81 | void mkDir(); | 65 | void mkDir(); |
82 | void del(); | 66 | void del(); |
83 | void rn(); | 67 | void rn(); |
84 | void populateLocalView(); | 68 | void populateLocalView(); |
85 | void populateRemoteView(); | 69 | void populateRemoteView(); |
86 | void showHidden(); | 70 | void showHidden(); |
@@ -105,61 +89,85 @@ protected slots: | |||
105 | void runThis(); | 89 | void runThis(); |
106 | void runText(); | 90 | void runText(); |
107 | void filePerms(); | 91 | void filePerms(); |
108 | void doProperties(); | 92 | void doProperties(); |
109 | void runCommand(); | 93 | void runCommand(); |
110 | void runCommandStd(); | 94 | void runCommandStd(); |
111 | QStringList getPath(); | 95 | QStringList getPath(); |
112 | void mkSym(); | 96 | void mkSym(); |
113 | void switchToLocalTab(); | 97 | void switchToLocalTab(); |
114 | void switchToRemoteTab(); | 98 | void switchToRemoteTab(); |
115 | 99 | ||
116 | protected: | 100 | protected: |
101 | |||
102 | OTabWidget *TabWidget; | ||
103 | // QTabWidget *TabWidget; | ||
104 | QWidget *tab, *tab_2, *tab_3; | ||
105 | QListView *Local_View, *Remote_View; | ||
106 | |||
107 | QLineEdit *currentPathEdit; | ||
108 | QPopupMenu *fileMenu, *localMenu, *remoteMenu, *viewMenu /*, *customDirMenu*/; | ||
109 | QToolButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton; | ||
110 | // QPushButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton; | ||
111 | QDir currentDir, currentRemoteDir; | ||
112 | QComboBox *currentPathCombo; | ||
113 | QString filterStr, s_addBookmark, s_removeBookmark; | ||
114 | QListViewItem * item; | ||
115 | bool b; | ||
116 | QStringList fileSystemTypeList, fsList; | ||
117 | int currentServerConfig; | ||
117 | bool zaurusDevice; | 118 | bool zaurusDevice; |
118 | QGridLayout *tabLayout, *tabLayout_2, *tabLayout_3; | 119 | QGridLayout *tabLayout, *tabLayout_2, *tabLayout_3; |
119 | QStringList remoteDirPathStringList, localDirPathStringList; | 120 | QStringList remoteDirPathStringList, localDirPathStringList; |
120 | QLineEdit *renameBox; | 121 | QLineEdit *renameBox; |
121 | 122 | ||
122 | void init(); | 123 | void init(); |
123 | void initConnections(); | 124 | void initConnections(); |
124 | void keyReleaseEvent( QKeyEvent *); | 125 | void keyReleaseEvent( QKeyEvent *); |
125 | QString getFileSystemType(const QString &); | 126 | QString getFileSystemType(const QString &); |
126 | QString getDiskSpace(const QString &); | 127 | QString getDiskSpace(const QString &); |
127 | void parsetab(const QString &fileName); | 128 | void parsetab(const QString &fileName); |
128 | QString checkDiskSpace(const QString &); | 129 | QString checkDiskSpace(const QString &); |
129 | QString dealWithSymName(const QString &); | 130 | QString dealWithSymName(const QString &); |
130 | 131 | ||
131 | protected slots: | 132 | protected slots: |
133 | void dirMenuSelected(int); | ||
132 | void showFileMenu(); | 134 | void showFileMenu(); |
133 | void cancelMenuTimer(); | 135 | void cancelMenuTimer(); |
134 | void homeButtonPushed(); | 136 | void homeButtonPushed(); |
135 | void docButtonPushed(); | 137 | void docButtonPushed(); |
136 | void SDButtonPushed(); | 138 | void SDButtonPushed(); |
137 | void CFButtonPushed(); | 139 | void CFButtonPushed(); |
138 | void QPEButtonPushed(); | 140 | void QPEButtonPushed(); |
139 | void upDir(); | 141 | void upDir(); |
140 | void currentPathComboChanged(); | 142 | void currentPathComboChanged(); |
141 | void copy(); | 143 | void copy(); |
142 | void copyAs(); | 144 | void copyAs(); |
143 | void copySameDir(); | 145 | void copySameDir(); |
144 | void currentPathComboActivated(const QString &); | 146 | void currentPathComboActivated(const QString &); |
145 | void fillCombo(const QString &); | 147 | void fillCombo(const QString &); |
146 | bool copyFile( const QString & , const QString & ); | 148 | bool copyFile( const QString & , const QString & ); |
147 | void move(); | 149 | void move(); |
148 | void fileStatus(); | 150 | void fileStatus(); |
149 | void doAbout(); | 151 | void doAbout(); |
150 | void doBeam(); | 152 | void doBeam(); |
151 | void fileBeamFinished( Ir *); | 153 | void fileBeamFinished( Ir *); |
152 | 154 | ||
153 | private: | 155 | private: |
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(); |
164 | void customDirsToMenu(); | ||
165 | void addCustomDir(); | ||
166 | void removeCustomDir(); | ||
167 | |||
161 | private slots: | 168 | private slots: |
162 | void processEnded(); | 169 | void processEnded(); |
170 | void gotoCustomDir(const QString &); | ||
163 | }; | 171 | }; |
164 | 172 | ||
165 | #endif // ADVANCEDFM_H | 173 | #endif // ADVANCEDFM_H |