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.h30
1 files changed, 14 insertions, 16 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h
index 7478dcb..8eec6ba 100644
--- a/noncore/apps/advancedfm/advancedfm.h
+++ b/noncore/apps/advancedfm/advancedfm.h
@@ -50,93 +50,91 @@ class MenuButton;
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 AdvancedFm(); 57 AdvancedFm();
58 ~AdvancedFm(); 58 ~AdvancedFm();
59protected slots: 59protected slots:
60 void selectAll(); 60 void selectAll();
61 void addToDocs(); 61 void addToDocs();
62 void doLocalCd(); 62 void doDirChange();
63 void doRemoteCd();
64// void copy();
65 void mkDir(); 63 void mkDir();
66 void del(); 64 void del();
67 void rn(); 65 void rn();
68 void populateLocalView(); 66 void populateLocalView();
69 void populateRemoteView(); 67 void populateRemoteView();
70 void showHidden(); 68 void showHidden();
71 void showMenuHidden(); 69 void showMenuHidden();
72 void showRemoteHidden(); 70// void showRemoteHidden();
73 void writeConfig(); 71 void writeConfig();
74 void readConfig(); 72 void readConfig();
75 void localListClicked(QListViewItem *); 73 void ListClicked(QListViewItem *);
76 void remoteListClicked(QListViewItem *); 74 void ListPressed( int, QListViewItem *, const QPoint&, int);
77 void localListPressed( int, QListViewItem *, const QPoint&, int); 75 void makeDir();
78 void remoteListPressed( int, QListViewItem *, const QPoint&, int); 76 void doDelete();
79 void localMakDir();
80 void localDelete();
81 void remoteMakDir();
82 void remoteDelete();
83/* bool remoteDirList(const QString &); */
84/* bool remoteChDir(const QString &); */
85 void tabChanged(QWidget*); 77 void tabChanged(QWidget*);
86 void cleanUp(); 78 void cleanUp();
87 void remoteRename(); 79 void renameIt();
88 void localRename();
89 void runThis(); 80 void runThis();
90 void runText(); 81 void runText();
91 void filePerms(); 82 void filePerms();
92 void doProperties(); 83 void doProperties();
93 void runCommand(); 84 void runCommand();
94 void runCommandStd(); 85 void runCommandStd();
95 QStringList getPath(); 86 QStringList getPath();
96 void mkSym(); 87 void mkSym();
97 void switchToLocalTab(); 88 void switchToLocalTab();
98 void switchToRemoteTab(); 89 void switchToRemoteTab();
99 90
100protected: 91protected:
101 92
102 OTabWidget *TabWidget; 93 OTabWidget *TabWidget;
94 int whichTab;
103// QTabWidget *TabWidget; 95// QTabWidget *TabWidget;
104 QWidget *tab, *tab_2, *tab_3; 96 QWidget *tab, *tab_2, *tab_3;
105 QListView *Local_View, *Remote_View; 97 QListView *Local_View, *Remote_View;
106 98
107 QLineEdit *currentPathEdit; 99 QLineEdit *currentPathEdit;
108 QPopupMenu *fileMenu, *localMenu, *remoteMenu, *viewMenu /*, *customDirMenu*/; 100 QPopupMenu *fileMenu, *localMenu, *remoteMenu, *viewMenu /*, *customDirMenu*/;
109 QToolButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton; 101 QToolButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton;
110// QPushButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton; 102// QPushButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton;
111 QDir currentDir, currentRemoteDir; 103 QDir currentDir, currentRemoteDir;
112 QComboBox *currentPathCombo; 104 QComboBox *currentPathCombo;
113 QString filterStr, s_addBookmark, s_removeBookmark; 105 QString filterStr, s_addBookmark, s_removeBookmark;
114 QListViewItem * item; 106 QListViewItem * item;
115 bool b; 107 bool b;
116 QStringList fileSystemTypeList, fsList; 108 QStringList fileSystemTypeList, fsList;
117 int currentServerConfig; 109 int currentServerConfig;
118 bool zaurusDevice; 110 bool zaurusDevice;
119 QGridLayout *tabLayout, *tabLayout_2, *tabLayout_3; 111 QGridLayout *tabLayout, *tabLayout_2, *tabLayout_3;
120 QStringList remoteDirPathStringList, localDirPathStringList; 112 QStringList remoteDirPathStringList, localDirPathStringList;
121 QLineEdit *renameBox; 113 QLineEdit *renameBox;
122 114
123 void init(); 115 void init();
124 void initConnections(); 116 void initConnections();
125 void keyReleaseEvent( QKeyEvent *); 117 void keyReleaseEvent( QKeyEvent *);
118 void keyPressEvent( QKeyEvent *);
126 QString getFileSystemType(const QString &); 119 QString getFileSystemType(const QString &);
127 QString getDiskSpace(const QString &); 120 QString getDiskSpace(const QString &);
128 void parsetab(const QString &fileName); 121 void parsetab(const QString &fileName);
129 QString checkDiskSpace(const QString &); 122 QString checkDiskSpace(const QString &);
130 QString dealWithSymName(const QString &); 123 QString dealWithSymName(const QString &);
124 QDir *CurrentDir();
125 QDir *OtherDir();
126 QListView *CurrentView();
127 QListView *OtherView();
128 void PopulateView();
131 129
132protected slots: 130protected slots:
133 void dirMenuSelected(int); 131 void dirMenuSelected(int);
134 void showFileMenu(); 132 void showFileMenu();
135 void cancelMenuTimer(); 133 void cancelMenuTimer();
136 void homeButtonPushed(); 134 void homeButtonPushed();
137 void docButtonPushed(); 135 void docButtonPushed();
138 void SDButtonPushed(); 136 void SDButtonPushed();
139 void CFButtonPushed(); 137 void CFButtonPushed();
140 void QPEButtonPushed(); 138 void QPEButtonPushed();
141 void upDir(); 139 void upDir();
142 void currentPathComboChanged(); 140 void currentPathComboChanged();