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 @@ -40,36 +40,40 @@ public: bool isDir(){ return fileInfo.isDir(); } bool isExecutable(){ return fileInfo.isExecutable(); } bool isLib(); int launch(); bool rename( const QString & name ); private: QString sizeString( unsigned int size ); QFileInfo fileInfo; + QPixmap FileItem::drawThumbnail(const QFileInfo &file); }; class FileView : public QListView { Q_OBJECT 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; } QStringList history() const { return dirHistory; } bool showingHidden; 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(); void rename(); @@ -91,26 +95,26 @@ protected slots: void itemDblClicked( QListViewItem * i ); void showFileMenu(); void cancelMenuTimer(); void selectAll(){ QListView::selectAll( TRUE ); } 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 showThumbnails; bool menuKeepsOpen; bool copyFile( const QString & dest, const QString & src ); signals: void dirChanged(); void textViewActivated( QWidget * w ); void textViewDeactivated(); @@ -143,13 +147,16 @@ private slots: void sortName(); void sortDate(); void sortSize(); void sortType(); void updateSorting(); void updateShowHidden(); void updateShowSymlinks(); + void updateShowThumbnails(); void updateDirMenu(); void dirSelected( int id ); + void cleanUp(); + }; #endif |