summaryrefslogtreecommitdiff
path: root/noncore/unsupported/filebrowser/filebrowser.h
Unidiff
Diffstat (limited to 'noncore/unsupported/filebrowser/filebrowser.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/filebrowser/filebrowser.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/noncore/unsupported/filebrowser/filebrowser.h b/noncore/unsupported/filebrowser/filebrowser.h
index 54856a0..983e58e 100644
--- a/noncore/unsupported/filebrowser/filebrowser.h
+++ b/noncore/unsupported/filebrowser/filebrowser.h
@@ -51,18 +51,25 @@ private:
51class FileView : public QListView 51class FileView : public QListView
52{ 52{
53 Q_OBJECT 53 Q_OBJECT
54 54
55public: 55public:
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 bool hidden = FALSE,
59 bool symlinks = FALSE );
60
58 void setDir( const QString & dir ); 61 void setDir( const QString & dir );
59 QString cd(){ return currentDir; } 62 QString cd(){ return currentDir; }
60 QStringList history() const { return dirHistory; } 63 QStringList history() const { return dirHistory; }
61 bool showingHidden; 64 bool showingHidden;
62 65
66 void setShowHidden(bool hidden);
67 void setShowSymlinks(bool symlinks);
68 void setMenuKeepsOpen(bool keepOpen);
69
63public slots: 70public slots:
64 void updateDir(); 71 void updateDir();
65 void parentDir(); 72 void parentDir();
66 void lastDir(); 73 void lastDir();
67 74
68 void rename(); 75 void rename();
@@ -94,12 +101,15 @@ private:
94 QString currentDir; 101 QString currentDir;
95 QStringList dirHistory, flist; 102 QStringList dirHistory, flist;
96 QTimer menuTimer; 103 QTimer menuTimer;
97 InlineEdit * le; 104 InlineEdit * le;
98 FileItem * itemToRename; 105 FileItem * itemToRename;
99 bool selected; 106 bool selected;
107 bool showHidden;
108 bool showSymlinks;
109 bool menuKeepsOpen;
100 110
101 bool copyFile( const QString & dest, const QString & src ); 111 bool copyFile( const QString & dest, const QString & src );
102 112
103signals: 113signals:
104 void dirChanged(); 114 void dirChanged();
105 void textViewActivated( QWidget * w ); 115 void textViewActivated( QWidget * w );
@@ -117,13 +127,13 @@ public:
117 const char * name = 0, WFlags f = 0 ); 127 const char * name = 0, WFlags f = 0 );
118public slots: 128public slots:
119 void changeCaption(const QString &); 129 void changeCaption(const QString &);
120private: 130private:
121 void init(const QString & dir); 131 void init(const QString & dir);
122 QString fileToCopy; 132 QString fileToCopy;
123 QPopupMenu * dirMenu, * sortMenu; 133 QPopupMenu * dirMenu, * sortMenu, *viewMenu;
124 FileView * fileView; 134 FileView * fileView;
125 QAction * pasteAction; 135 QAction * pasteAction;
126 QAction *lastAction; 136 QAction *lastAction;
127 QAction *upAction; 137 QAction *upAction;
128 138
129 bool copyFile( const QString & dest, const QString & src ); 139 bool copyFile( const QString & dest, const QString & src );
@@ -133,13 +143,13 @@ private slots:
133 143
134 void sortName(); 144 void sortName();
135 void sortDate(); 145 void sortDate();
136 void sortSize(); 146 void sortSize();
137 void sortType(); 147 void sortType();
138 void updateSorting(); 148 void updateSorting();
139 149 void updateShowHidden();
150 void updateShowSymlinks();
140 void updateDirMenu(); 151 void updateDirMenu();
141 void dirSelected( int id ); 152 void dirSelected( int id );
142 void showHidden();
143}; 153};
144 154
145#endif 155#endif