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 | |||
@@ -23,13 +23,13 @@ | |||
23 | #include <qlistview.h> | 23 | #include <qlistview.h> |
24 | #include <qmainwindow.h> | 24 | #include <qmainwindow.h> |
25 | #include <qfileinfo.h> | 25 | #include <qfileinfo.h> |
26 | #include <qaction.h> | 26 | #include <qaction.h> |
27 | #include <qtimer.h> | 27 | #include <qtimer.h> |
28 | #include <qstringlist.h> | 28 | #include <qstringlist.h> |
29 | 29 | class QLabel; | |
30 | class InlineEdit; | 30 | class InlineEdit; |
31 | 31 | ||
32 | class FileItem : public QListViewItem | 32 | class FileItem : public QListViewItem |
33 | { | 33 | { |
34 | public: | 34 | public: |
35 | FileItem( QListView * parent, const QFileInfo & fi ); | 35 | FileItem( QListView * parent, const QFileInfo & fi ); |
@@ -55,12 +55,13 @@ class FileView : public QListView | |||
55 | public: | 55 | public: |
56 | FileView( const QString & dir, QWidget * parent = 0, | 56 | FileView( const QString & dir, QWidget * parent = 0, |
57 | const char * name = 0 ); | 57 | const char * name = 0 ); |
58 | void setDir( const QString & dir ); | 58 | void setDir( const QString & dir ); |
59 | QString cd(){ return currentDir; } | 59 | QString cd(){ return currentDir; } |
60 | QStringList history() const { return dirHistory; } | 60 | QStringList history() const { return dirHistory; } |
61 | bool showingHidden; | ||
61 | 62 | ||
62 | public slots: | 63 | public slots: |
63 | void updateDir(); | 64 | void updateDir(); |
64 | void parentDir(); | 65 | void parentDir(); |
65 | void lastDir(); | 66 | void lastDir(); |
66 | 67 | ||
@@ -111,12 +112,14 @@ class FileBrowser : public QMainWindow | |||
111 | 112 | ||
112 | public: | 113 | public: |
113 | FileBrowser( QWidget * parent = 0, | 114 | FileBrowser( QWidget * parent = 0, |
114 | const char * name = 0, WFlags f = 0 ); | 115 | const char * name = 0, WFlags f = 0 ); |
115 | FileBrowser( const QString & dir, QWidget * parent = 0, | 116 | FileBrowser( const QString & dir, QWidget * parent = 0, |
116 | const char * name = 0, WFlags f = 0 ); | 117 | const char * name = 0, WFlags f = 0 ); |
118 | public slots: | ||
119 | void changeCaption(const QString &); | ||
117 | private: | 120 | private: |
118 | void init(const QString & dir); | 121 | void init(const QString & dir); |
119 | QString fileToCopy; | 122 | QString fileToCopy; |
120 | QPopupMenu * dirMenu, * sortMenu; | 123 | QPopupMenu * dirMenu, * sortMenu; |
121 | FileView * fileView; | 124 | FileView * fileView; |
122 | QAction * pasteAction; | 125 | QAction * pasteAction; |
@@ -133,9 +136,10 @@ private slots: | |||
133 | void sortSize(); | 136 | void sortSize(); |
134 | void sortType(); | 137 | void sortType(); |
135 | void updateSorting(); | 138 | void updateSorting(); |
136 | 139 | ||
137 | void updateDirMenu(); | 140 | void updateDirMenu(); |
138 | void dirSelected( int id ); | 141 | void dirSelected( int id ); |
142 | void showHidden(); | ||
139 | }; | 143 | }; |
140 | 144 | ||
141 | #endif | 145 | #endif |