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: bool rename( const QString & name ); private: QString sizeString( unsigned int size ); QFileInfo fileInfo; + QPixmap FileItem::drawThumbnail(const QFileInfo &file); }; class FileView : public QListView @@ -53,21 +54,24 @@ class FileView : public QListView Q_OBJECT public: FileView( const QString & dir, QWidget * parent = 0, - const char * name = 0, - bool hidden = FALSE, - bool symlinks = FALSE ); + const char * name = 0, + bool hidden = FALSE, + bool symlinks = FALSE, + bool thumbnails = 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); - + void setShowHidden(bool hidden); + void setShowSymlinks(bool symlinks); + void setShowThumbnails(bool thumbnails); + bool getShowThumbnails () const { return showThumbnails; } + void setMenuKeepsOpen(bool keepOpen); + public slots: void updateDir(); void parentDir(); void lastDir(); @@ -95,19 +99,19 @@ protected slots: void deselectAll(){ QListView::selectAll( FALSE ); } void addToDocuments(); void run(); void endRenaming(); - private: QString currentDir; QStringList dirHistory, flist; QTimer menuTimer; InlineEdit * le; FileItem * itemToRename; bool selected; - bool showHidden; - bool showSymlinks; - bool menuKeepsOpen; + bool showHidden; + bool showSymlinks; + bool showThumbnails; + bool menuKeepsOpen; bool copyFile( const QString & dest, const QString & src ); signals: @@ -145,11 +149,14 @@ private slots: void sortDate(); void sortSize(); void sortType(); void updateSorting(); - void updateShowHidden(); - void updateShowSymlinks(); + void updateShowHidden(); + void updateShowSymlinks(); + void updateShowThumbnails(); void updateDirMenu(); void dirSelected( int id ); + void cleanUp(); + }; #endif |