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.h118
1 files changed, 118 insertions, 0 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h
new file mode 100644
index 0000000..2ca45b1
--- a/dev/null
+++ b/noncore/apps/advancedfm/advancedfm.h
@@ -0,0 +1,118 @@
1/***************************************************************************
2 opieftp.h
3 -------------------
4** Created: Sat Mar 9 23:33:09 2002
5 copyright : (C) 2002 by ljp
6 email : ljp@llornkcor.com
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
11 ***************************************************************************/
12#ifndef ADVANCEDFM_H
13#define ADVANCEDFM_H
14
15#include <qvariant.h>
16#include <qdialog.h>
17#include <qmainwindow.h>
18#include <qdir.h>
19#include <qstring.h>
20#include <qpoint.h>
21
22class QVBoxLayout;
23class QHBoxLayout;
24class QGridLayout;
25class QComboBox;
26class QListView;
27class QListviewItem;
28class QLabel;
29class QProgressBar;
30class QSpinBox;
31class QTabWidget;
32class QWidget;
33class QPEToolBar;
34class QPEMenuBar;
35class QPopupMenu;
36class QFile;
37class QListViewItem;
38class QLineEdit;
39class QPushButton;
40
41class AdvancedFm : public QMainWindow
42{
43 Q_OBJECT
44public:
45 AdvancedFm();
46 ~AdvancedFm();
47
48 QTabWidget *TabWidget;
49 QWidget *tab, *tab_2, *tab_3;
50 QListView *Local_View, *Remote_View;
51
52 QLineEdit *currentPathEdit;
53 QPopupMenu *fileMenu, *localMenu, *remoteMenu, *viewMenu;
54 QPushButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton;
55 QDir currentDir, currentRemoteDir;
56 QComboBox *currentPathCombo;
57 QString filterStr;
58 QListViewItem * item;
59 bool b;
60 int currentServerConfig;
61protected slots:
62 void showLocalMenu( QListViewItem *);
63 void showRemoteMenu( QListViewItem *);
64 void doLocalCd();
65 void doRemoteCd();
66// void copy();
67
68 void populateLocalView();
69 void populateRemoteView();
70 void showHidden();
71 void showRemoteHidden();
72 void writeConfig();
73 void readConfig();
74 void localListClicked(QListViewItem *);
75 void remoteListClicked(QListViewItem *);
76 void localListPressed( int, QListViewItem *, const QPoint&, int);
77 void remoteListPressed( int, QListViewItem *, const QPoint&, int);
78 void localMakDir();
79 void localDelete();
80 void remoteMakDir();
81 void remoteDelete();
82/* bool remoteDirList(const QString &); */
83/* bool remoteChDir(const QString &); */
84 void tabChanged(QWidget*);
85 void cleanUp();
86 void remoteRename();
87 void localRename();
88 void runThis();
89 void runText();
90 void filePerms();
91 void doProperties();
92 void runCommand();
93 void runCommandStd();
94 QString getPath();
95 void switchToLocalTab();
96 void switchToRemoteTab();
97
98protected:
99 QGridLayout *tabLayout, *tabLayout_2, *tabLayout_3;
100 QStringList remoteDirPathStringList, localDirPathStringList;
101
102protected slots:
103 void homeButtonPushed();
104 void docButtonPushed();
105 void SDButtonPushed();
106 void CFButtonPushed();
107 void upDir();
108 void currentPathComboChanged();
109 void copy();
110 void copyAs();
111 void currentPathComboActivated(const QString &);
112 void fillCombo(const QString &);
113 bool copyFile( const QString & , const QString & );
114 void move();
115 void fileStatus();
116};
117
118#endif // ADVANCEDFM_H