Diffstat (limited to 'noncore/apps/advancedfm/advancedfm.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.h | 122 |
1 files changed, 60 insertions, 62 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 @@ -1,23 +1,23 @@ /*************************************************************************** advancedfm.h ------------------- -** Created: Sat Mar 9 23:33:09 2002 + ** 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. * - ***************************************************************************/ + * 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 #define QTOPIA_INTERNAL_FSLP // to get access to fileproperties #define QT_QWS_OPIE //#include <opie/otabwidget.h> #include <qpe/ir.h> #include <qvariant.h> #include <qdialog.h> #include <qmainwindow.h> #include <qstringlist.h> @@ -43,131 +43,129 @@ class QPEMenuBar; class QPopupMenu; class QFile; class QListViewItem; class QLineEdit; class MenuButton; //class QPushButton; class QToolButton; class Ir; class AdvancedFm : public QMainWindow { - Q_OBJECT + Q_OBJECT public: - AdvancedFm(); - ~AdvancedFm(); + AdvancedFm(); + ~AdvancedFm(); protected slots: - void selectAll(); - void addToDocs(); - void doLocalCd(); - void doRemoteCd(); -// void copy(); - void mkDir(); - void del(); - void rn(); - void populateLocalView(); - void populateRemoteView(); - void showHidden(); - void showMenuHidden(); - 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(); - QStringList getPath(); - void mkSym(); + void selectAll(); + void addToDocs(); + void doDirChange(); + void mkDir(); + void del(); + void rn(); + void populateLocalView(); + void populateRemoteView(); + void showHidden(); + void showMenuHidden(); +// void showRemoteHidden(); + void writeConfig(); + void readConfig(); + void ListClicked(QListViewItem *); + void ListPressed( int, QListViewItem *, const QPoint&, int); + void makeDir(); + void doDelete(); + void tabChanged(QWidget*); + void cleanUp(); + void renameIt(); + void runThis(); + void runText(); + void filePerms(); + void doProperties(); + void runCommand(); + void runCommandStd(); + QStringList getPath(); + void mkSym(); void switchToLocalTab(); void switchToRemoteTab(); protected: OTabWidget *TabWidget; + int whichTab; // QTabWidget *TabWidget; QWidget *tab, *tab_2, *tab_3; QListView *Local_View, *Remote_View; QLineEdit *currentPathEdit; QPopupMenu *fileMenu, *localMenu, *remoteMenu, *viewMenu /*, *customDirMenu*/; QToolButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton; // QPushButton *homeButton, *docButton, *cdUpButton, *sdButton, *cfButton, *qpeDirButton; QDir currentDir, currentRemoteDir; QComboBox *currentPathCombo; QString filterStr, s_addBookmark, s_removeBookmark; QListViewItem * item; bool b; QStringList fileSystemTypeList, fsList; int currentServerConfig; bool zaurusDevice; QGridLayout *tabLayout, *tabLayout_2, *tabLayout_3; QStringList remoteDirPathStringList, localDirPathStringList; QLineEdit *renameBox; - + void init(); void initConnections(); void keyReleaseEvent( QKeyEvent *); + void keyPressEvent( QKeyEvent *); QString getFileSystemType(const QString &); QString getDiskSpace(const QString &); void parsetab(const QString &fileName); QString checkDiskSpace(const QString &); QString dealWithSymName(const QString &); - + QDir *CurrentDir(); + QDir *OtherDir(); + QListView *CurrentView(); + QListView *OtherView(); + void PopulateView(); + protected slots: - void dirMenuSelected(int); + void dirMenuSelected(int); void showFileMenu(); void cancelMenuTimer(); void homeButtonPushed(); void docButtonPushed(); void SDButtonPushed(); void CFButtonPushed(); void QPEButtonPushed(); void upDir(); void currentPathComboChanged(); void copy(); void copyAs(); void copySameDir(); void currentPathComboActivated(const QString &); void fillCombo(const QString &); bool copyFile( const QString & , const QString & ); void move(); void fileStatus(); void doAbout(); void doBeam(); void fileBeamFinished( Ir *); private: - MenuButton *menuButton; - QString oldName; - QTimer menuTimer; - void startProcess(const QString &); - bool eventFilter( QObject * , QEvent * ); - void cancelRename(); - void doRename(QListView *); - void okRename(); - void customDirsToMenu(); - void addCustomDir(); - void removeCustomDir(); + MenuButton *menuButton; + QString oldName; + QTimer menuTimer; + void startProcess(const QString &); + bool eventFilter( QObject * , QEvent * ); + void cancelRename(); + void doRename(QListView *); + void okRename(); + void customDirsToMenu(); + void addCustomDir(); + void removeCustomDir(); private slots: - void processEnded(); - void gotoCustomDir(const QString &); + void processEnded(); + void gotoCustomDir(const QString &); }; #endif // ADVANCEDFM_H |