From b0b162135dce2c6f5a7687a2928afb24a5b613ec Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 20 Dec 2006 20:50:32 +0000 Subject: - Performance optimization in DolphinView::loadDirectory() (don't store the view properties for each property individually) - Get rid of methods which are not used anymore due to moving to KDirModel. - Respect GeneralSettings::globalViewProps() setting when storing view properties. svn path=/trunk/playground/utils/dolphin/; revision=615255 --- src/dolphinview.h | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) (limited to 'src/dolphinview.h') diff --git a/src/dolphinview.h b/src/dolphinview.h index 297dd3bd8..cd3df38b3 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -129,13 +129,35 @@ public: void requestActivation(); bool isActive() const; + /** + * Changes the view mode for the current directory to \a mode. + * If the view properties should be remembered for each directory + * (GeneralSettings::globalViewProps() returns false), then the + * changed view mode will be be stored automatically. + */ void setMode(Mode mode); Mode mode() const; + + /** + * Turns on the file preview for the all files of the current directory, + * if \a show is true. + * If the view properties should be remembered for each directory + * (GeneralSettings::globalViewProps() returns false), then the + * preview setting will be be stored automatically. + */ + void setShowPreview(bool show); + bool showPreview() const; + + /** + * Shows all hidden files of the current directory, + * if \a show is true. + * If the view properties should be remembered for each directory + * (GeneralSettings::globalViewProps() returns false), then the + * show hidden file setting will be be stored automatically. + */ void setShowHiddenFiles(bool show); bool showHiddenFiles() const; - void setViewProperties(const ViewProperties& props); - /** * Triggers the renaming of the currently selected items, where * the user must input a new name for the items. @@ -347,6 +369,9 @@ signals: */ void modeChanged(); + /** Is emitted if the 'show preview' property has been changed. */ + void showPreviewChanged(); + /** Is emitted if the 'show hidden files' property has been changed. */ void showHiddenFilesChanged(); @@ -383,9 +408,7 @@ protected: private slots: void loadDirectory(const KUrl& kurl); - void triggerIconsViewItem(Q3IconViewItem *item); void triggerItem(const QModelIndex& index); - void updateUrl(); void slotPercent(int percent); void slotClear(); -- cgit v1.3