author | llornkcor <llornkcor> | 2002-05-14 22:02:16 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-05-14 22:02:16 (UTC) |
commit | e325f9cfb783010caa8618608a4d57884c0107c5 (patch) (unidiff) | |
tree | 92e5ad3d4df7e4da10c6a2f18a89bfa0887cd733 /noncore/unsupported/filebrowser/filebrowser.h | |
parent | 654f18b7201655379a515d12e30e06de4ae2e564 (diff) | |
download | opie-e325f9cfb783010caa8618608a4d57884c0107c5.zip opie-e325f9cfb783010caa8618608a4d57884c0107c5.tar.gz opie-e325f9cfb783010caa8618608a4d57884c0107c5.tar.bz2 |
thumbnail for images for 'hash', also added secret config [View] ThumbSize = 72 for specifying thumbnail size, and added cleanup for tmp dir
Diffstat (limited to 'noncore/unsupported/filebrowser/filebrowser.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/filebrowser/filebrowser.h | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/noncore/unsupported/filebrowser/filebrowser.h b/noncore/unsupported/filebrowser/filebrowser.h index 983e58e..549d463 100644 --- a/noncore/unsupported/filebrowser/filebrowser.h +++ b/noncore/unsupported/filebrowser/filebrowser.h | |||
@@ -44,8 +44,9 @@ public: | |||
44 | bool rename( const QString & name ); | 44 | bool rename( const QString & name ); |
45 | private: | 45 | private: |
46 | QString sizeString( unsigned int size ); | 46 | QString sizeString( unsigned int size ); |
47 | QFileInfo fileInfo; | 47 | QFileInfo fileInfo; |
48 | QPixmap FileItem::drawThumbnail(const QFileInfo &file); | ||
48 | }; | 49 | }; |
49 | 50 | ||
50 | 51 | ||
51 | class FileView : public QListView | 52 | class FileView : public QListView |
@@ -53,21 +54,24 @@ class FileView : public QListView | |||
53 | Q_OBJECT | 54 | Q_OBJECT |
54 | 55 | ||
55 | public: | 56 | public: |
56 | FileView( const QString & dir, QWidget * parent = 0, | 57 | FileView( const QString & dir, QWidget * parent = 0, |
57 | const char * name = 0, | 58 | const char * name = 0, |
58 | bool hidden = FALSE, | 59 | bool hidden = FALSE, |
59 | bool symlinks = FALSE ); | 60 | bool symlinks = FALSE, |
61 | bool thumbnails = FALSE ); | ||
60 | 62 | ||
61 | void setDir( const QString & dir ); | 63 | void setDir( const QString & dir ); |
62 | QString cd(){ return currentDir; } | 64 | QString cd(){ return currentDir; } |
63 | QStringList history() const { return dirHistory; } | 65 | QStringList history() const { return dirHistory; } |
64 | bool showingHidden; | 66 | bool showingHidden; |
65 | 67 | ||
66 | void setShowHidden(bool hidden); | 68 | void setShowHidden(bool hidden); |
67 | void setShowSymlinks(bool symlinks); | 69 | void setShowSymlinks(bool symlinks); |
68 | void setMenuKeepsOpen(bool keepOpen); | 70 | void setShowThumbnails(bool thumbnails); |
69 | 71 | bool getShowThumbnails () const { return showThumbnails; } | |
72 | void setMenuKeepsOpen(bool keepOpen); | ||
73 | |||
70 | public slots: | 74 | public slots: |
71 | void updateDir(); | 75 | void updateDir(); |
72 | void parentDir(); | 76 | void parentDir(); |
73 | void lastDir(); | 77 | void lastDir(); |
@@ -95,19 +99,19 @@ protected slots: | |||
95 | void deselectAll(){ QListView::selectAll( FALSE ); } | 99 | void deselectAll(){ QListView::selectAll( FALSE ); } |
96 | void addToDocuments(); | 100 | void addToDocuments(); |
97 | void run(); | 101 | void run(); |
98 | void endRenaming(); | 102 | void endRenaming(); |
99 | |||
100 | private: | 103 | private: |
101 | QString currentDir; | 104 | QString currentDir; |
102 | QStringList dirHistory, flist; | 105 | QStringList dirHistory, flist; |
103 | QTimer menuTimer; | 106 | QTimer menuTimer; |
104 | InlineEdit * le; | 107 | InlineEdit * le; |
105 | FileItem * itemToRename; | 108 | FileItem * itemToRename; |
106 | bool selected; | 109 | bool selected; |
107 | bool showHidden; | 110 | bool showHidden; |
108 | bool showSymlinks; | 111 | bool showSymlinks; |
109 | bool menuKeepsOpen; | 112 | bool showThumbnails; |
113 | bool menuKeepsOpen; | ||
110 | 114 | ||
111 | bool copyFile( const QString & dest, const QString & src ); | 115 | bool copyFile( const QString & dest, const QString & src ); |
112 | 116 | ||
113 | signals: | 117 | signals: |
@@ -145,11 +149,14 @@ private slots: | |||
145 | void sortDate(); | 149 | void sortDate(); |
146 | void sortSize(); | 150 | void sortSize(); |
147 | void sortType(); | 151 | void sortType(); |
148 | void updateSorting(); | 152 | void updateSorting(); |
149 | void updateShowHidden(); | 153 | void updateShowHidden(); |
150 | void updateShowSymlinks(); | 154 | void updateShowSymlinks(); |
155 | void updateShowThumbnails(); | ||
151 | void updateDirMenu(); | 156 | void updateDirMenu(); |
152 | void dirSelected( int id ); | 157 | void dirSelected( int id ); |
158 | void cleanUp(); | ||
159 | |||
153 | }; | 160 | }; |
154 | 161 | ||
155 | #endif | 162 | #endif |