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) (side-by-side diff)
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) (show 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:
class FileView : public QListView
{
Q_OBJECT
public:
FileView( const QString & dir, QWidget * parent = 0,
- const char * name = 0 );
+ const char * name = 0,
+ bool hidden = FALSE,
+ bool symlinks = FALSE );
+
void setDir( const QString & dir );
QString cd(){ return currentDir; }
QStringList history() const { return dirHistory; }
bool showingHidden;
+ void setShowHidden(bool hidden);
+ void setShowSymlinks(bool symlinks);
+ void setMenuKeepsOpen(bool keepOpen);
+
public slots:
void updateDir();
void parentDir();
void lastDir();
void rename();
@@ -94,12 +101,15 @@ private:
QString currentDir;
QStringList dirHistory, flist;
QTimer menuTimer;
InlineEdit * le;
FileItem * itemToRename;
bool selected;
+ bool showHidden;
+ bool showSymlinks;
+ bool menuKeepsOpen;
bool copyFile( const QString & dest, const QString & src );
signals:
void dirChanged();
void textViewActivated( QWidget * w );
@@ -117,13 +127,13 @@ public:
const char * name = 0, WFlags f = 0 );
public slots:
void changeCaption(const QString &);
private:
void init(const QString & dir);
QString fileToCopy;
- QPopupMenu * dirMenu, * sortMenu;
+ QPopupMenu * dirMenu, * sortMenu, *viewMenu;
FileView * fileView;
QAction * pasteAction;
QAction *lastAction;
QAction *upAction;
bool copyFile( const QString & dest, const QString & src );
@@ -133,13 +143,13 @@ private slots:
void sortName();
void sortDate();
void sortSize();
void sortType();
void updateSorting();
-
+ void updateShowHidden();
+ void updateShowSymlinks();
void updateDirMenu();
void dirSelected( int id );
- void showHidden();
};
#endif