summaryrefslogtreecommitdiff
path: root/noncore/unsupported/filebrowser/filebrowser.h
authorllornkcor <llornkcor>2002-03-24 21:58:35 (UTC)
committer llornkcor <llornkcor>2002-03-24 21:58:35 (UTC)
commit59e2a88589d8d3fce1a395d073516d99b4e46e78 (patch) (unidiff)
tree6bcad0ead84cdacca7a264d0bf0347c675103403 /noncore/unsupported/filebrowser/filebrowser.h
parente37311c84c3f14f947a4e28df809898d23cb2495 (diff)
downloadopie-59e2a88589d8d3fce1a395d073516d99b4e46e78.zip
opie-59e2a88589d8d3fce1a395d073516d99b4e46e78.tar.gz
opie-59e2a88589d8d3fce1a395d073516d99b4e46e78.tar.bz2
changes sent in by Max Weninger
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
@@ -54,12 +54,19 @@ class FileView : public QListView
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();
@@ -97,6 +104,9 @@ private:
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
@@ -120,7 +130,7 @@ public slots:
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;
@@ -136,10 +146,10 @@ private slots:
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