┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.h
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2008-01-28 11:37:08 +0000
committerDavid Faure <[email protected]>2008-01-28 11:37:08 +0000
commita6f5c499ef9b1253415b3887eb51c76fee2ea5c4 (patch)
treef8654bab2b740b06527318445c75b18cc733f08d /src/dolphinview.h
parentf824a33461508603dbb6c399908684df0d139cc1 (diff)
keep in sync with 4.0 branch (767566)
svn path=/trunk/KDE/kdebase/apps/; revision=767567
Diffstat (limited to 'src/dolphinview.h')
-rw-r--r--src/dolphinview.h74
1 files changed, 49 insertions, 25 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h
index 6f2658569..201cc0785 100644
--- a/src/dolphinview.h
+++ b/src/dolphinview.h
@@ -164,39 +164,18 @@ public:
* 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.
+ * changed view mode will 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);
+ /** See setShowPreview */
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);
+ /** See setShowHiddenFiles */
bool showHiddenFiles() const;
- /**
- * Summarizes all sorted items by their category \a categorized
- * is true.
- * If the view properties should be remembered for each directory
- * (GeneralSettings::globalViewProps() returns false), then the
- * categorized sorting setting will be be stored automatically.
- */
- void setCategorizedSorting(bool categorized);
+ /** See setCategorizedSorting */
bool categorizedSorting() const;
/**
@@ -380,6 +359,24 @@ public:
static QActionGroup* createAdditionalInformationActionGroup(KActionCollection* collection);
/**
+ * Creates the "show preview" action.
+ * This code is here to share it between the mainwindow and the part
+ */
+ static KAction* createShowPreviewAction(KActionCollection* collection);
+
+ /**
+ * Creates the "show in groups" action.
+ * This code is here to share it between the mainwindow and the part
+ */
+ static KAction* createShowInGroupsAction(KActionCollection* collection);
+
+ /**
+ * Creates the "show hidden files" action.
+ * This code is here to share it between the mainwindow and the part
+ */
+ static KAction* createShowHiddenFilesAction(KActionCollection* collection);
+
+ /**
* Updates the state of the 'Additional Information' actions in \a collection.
*/
void updateAdditionalInfoActions(KActionCollection* collection);
@@ -439,6 +436,33 @@ public slots:
/** Pastes the clipboard data to this view. */
void paste();
+ /**
+ * 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 stored automatically.
+ */
+ void setShowPreview(bool show);
+
+ /**
+ * 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 stored automatically.
+ */
+ void setShowHiddenFiles(bool show);
+
+ /**
+ * Summarizes all sorted items by their category \a categorized
+ * is true.
+ * If the view properties should be remembered for each directory
+ * (GeneralSettings::globalViewProps() returns false), then the
+ * categorized sorting setting will be stored automatically.
+ */
+ void setCategorizedSorting(bool categorized);
+
/** Switches between an ascending and descending sorting order. */
void toggleSortOrder();