Diffstat (limited to 'noncore/unsupported/filebrowser/filebrowser.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/filebrowser/filebrowser.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/unsupported/filebrowser/filebrowser.h b/noncore/unsupported/filebrowser/filebrowser.h index c214dbe..54856a0 100644 --- a/noncore/unsupported/filebrowser/filebrowser.h +++ b/noncore/unsupported/filebrowser/filebrowser.h @@ -17,25 +17,25 @@ ** not clear to you. ** **********************************************************************/ #ifndef FILEBROWSER_H #define FILEBROWSER_H #include <qlistview.h> #include <qmainwindow.h> #include <qfileinfo.h> #include <qaction.h> #include <qtimer.h> #include <qstringlist.h> - +class QLabel; class InlineEdit; class FileItem : public QListViewItem { public: FileItem( QListView * parent, const QFileInfo & fi ); QString key( int column, bool ascending = TRUE ) const; QString getFilePath(){ return fileInfo.filePath(); } QString getFileName(){ return fileInfo.fileName(); } bool isDir(){ return fileInfo.isDir(); } bool isExecutable(){ return fileInfo.isExecutable(); } @@ -49,24 +49,25 @@ private: class FileView : public QListView { Q_OBJECT public: FileView( const QString & dir, QWidget * parent = 0, const char * name = 0 ); void setDir( const QString & dir ); QString cd(){ return currentDir; } QStringList history() const { return dirHistory; } + bool showingHidden; public slots: void updateDir(); void parentDir(); void lastDir(); void rename(); void copy(); void paste(); void del(); void cut(); void newFolder(); @@ -105,37 +106,40 @@ signals: void textViewDeactivated(); }; class FileBrowser : public QMainWindow { Q_OBJECT public: FileBrowser( QWidget * parent = 0, const char * name = 0, WFlags f = 0 ); FileBrowser( const QString & dir, QWidget * parent = 0, const char * name = 0, WFlags f = 0 ); +public slots: + void changeCaption(const QString &); private: void init(const QString & dir); QString fileToCopy; QPopupMenu * dirMenu, * sortMenu; FileView * fileView; QAction * pasteAction; QAction *lastAction; QAction *upAction; bool copyFile( const QString & dest, const QString & src ); private slots: void pcmciaMessage( const QCString &msg, const QByteArray &); void sortName(); void sortDate(); void sortSize(); void sortType(); void updateSorting(); void updateDirMenu(); void dirSelected( int id ); + void showHidden(); }; #endif |