From 65748a36a621a19078789cc277a89c8a1f341351 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Thu, 18 Apr 2002 03:02:37 +0000 Subject: initial offering --- (limited to 'noncore/apps/advancedfm/advancedfm.h') 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 @@ +/*************************************************************************** + opieftp.h + ------------------- +** Created: Sat Mar 9 23:33:09 2002 + copyright : (C) 2002 by ljp + email : ljp@llornkcor.com + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + ***************************************************************************/ +#ifndef ADVANCEDFM_H +#define ADVANCEDFM_H + +#include +#include +#include +#include +#include +#include + +class QVBoxLayout; +class QHBoxLayout; +class QGridLayout; +class QComboBox; +class QListView; +class QListviewItem; +class QLabel; +class QProgressBar; +class QSpinBox; +class QTabWidget; +class QWidget; +class QPEToolBar; +class QPEMenuBar; +class QPopupMenu; +class QFile; +class QListViewItem; +class QLineEdit; +class QPushButton; + +class AdvancedFm : public QMainWindow +{ + Q_OBJECT +public: + AdvancedFm(); + ~AdvancedFm(); + + QTabWidget *TabWidget; + QWidget *tab, *tab_2, *tab_3; + QListView *Local_View, *Remote_View; + + QLineEdit *currentPathEdit; + QPopupMenu *fileMenu, *localMenu, *remoteMenu, *viewMenu; + QPushButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton; + QDir currentDir, currentRemoteDir; + QComboBox *currentPathCombo; + QString filterStr; + QListViewItem * item; + bool b; + int currentServerConfig; +protected slots: + void showLocalMenu( QListViewItem *); + void showRemoteMenu( QListViewItem *); + void doLocalCd(); + void doRemoteCd(); +// void copy(); + + void populateLocalView(); + void populateRemoteView(); + void showHidden(); + void showRemoteHidden(); + void writeConfig(); + void readConfig(); + void localListClicked(QListViewItem *); + void remoteListClicked(QListViewItem *); + void localListPressed( int, QListViewItem *, const QPoint&, int); + void remoteListPressed( int, QListViewItem *, const QPoint&, int); + void localMakDir(); + void localDelete(); + void remoteMakDir(); + void remoteDelete(); +/* bool remoteDirList(const QString &); */ +/* bool remoteChDir(const QString &); */ + void tabChanged(QWidget*); + void cleanUp(); + void remoteRename(); + void localRename(); + void runThis(); + void runText(); + void filePerms(); + void doProperties(); + void runCommand(); + void runCommandStd(); + QString getPath(); + void switchToLocalTab(); + void switchToRemoteTab(); + +protected: + QGridLayout *tabLayout, *tabLayout_2, *tabLayout_3; + QStringList remoteDirPathStringList, localDirPathStringList; + +protected slots: + void homeButtonPushed(); + void docButtonPushed(); + void SDButtonPushed(); + void CFButtonPushed(); + void upDir(); + void currentPathComboChanged(); + void copy(); + void copyAs(); + void currentPathComboActivated(const QString &); + void fillCombo(const QString &); + bool copyFile( const QString & , const QString & ); + void move(); + void fileStatus(); +}; + +#endif // ADVANCEDFM_H -- cgit v0.9.0.2