┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2006-12-20 20:50:32 +0000
committerPeter Penz <[email protected]>2006-12-20 20:50:32 +0000
commitb0b162135dce2c6f5a7687a2928afb24a5b613ec (patch)
treefd91ddc0c566918fbfe5b15249ff489a2b234a58 /src/dolphinview.h
parent642110309ace0ec0da270615464d7d04944d5dcf (diff)
- 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
Diffstat (limited to 'src/dolphinview.h')
-rw-r--r--src/dolphinview.h31
1 files changed, 27 insertions, 4 deletions
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();