Diffstat (limited to 'noncore/unsupported/filebrowser/filebrowser.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/unsupported/filebrowser/filebrowser.h | 11 |
1 files changed, 9 insertions, 2 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 @@ -45,6 +45,7 @@ public: private: QString sizeString( unsigned int size ); QFileInfo fileInfo; + QPixmap FileItem::drawThumbnail(const QFileInfo &file); }; @@ -56,7 +57,8 @@ public: FileView( const QString & dir, QWidget * parent = 0, const char * name = 0, bool hidden = FALSE, - bool symlinks = FALSE ); + bool symlinks = FALSE, + bool thumbnails = FALSE ); void setDir( const QString & dir ); QString cd(){ return currentDir; } @@ -65,6 +67,8 @@ public: void setShowHidden(bool hidden); void setShowSymlinks(bool symlinks); + void setShowThumbnails(bool thumbnails); + bool getShowThumbnails () const { return showThumbnails; } void setMenuKeepsOpen(bool keepOpen); public slots: @@ -96,7 +100,6 @@ protected slots: void addToDocuments(); void run(); void endRenaming(); - private: QString currentDir; QStringList dirHistory, flist; @@ -106,6 +109,7 @@ private: bool selected; bool showHidden; bool showSymlinks; + bool showThumbnails; bool menuKeepsOpen; bool copyFile( const QString & dest, const QString & src ); @@ -148,8 +152,11 @@ private slots: void updateSorting(); void updateShowHidden(); void updateShowSymlinks(); + void updateShowThumbnails(); void updateDirMenu(); void dirSelected( int id ); + void cleanUp(); + }; #endif |