X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/954e8c47906c12edaaf6e6aebdd41516eceb0d44..f1da070fd5845dbbdd5e20addffafe8c9929b3c9:/src/views/viewproperties.h diff --git a/src/views/viewproperties.h b/src/views/viewproperties.h index a9daafc87..0c0452d7a 100644 --- a/src/views/viewproperties.h +++ b/src/views/viewproperties.h @@ -38,7 +38,7 @@ class ViewPropertySettings; class DOLPHIN_EXPORT ViewProperties { public: - explicit ViewProperties(const QUrl& url); + explicit ViewProperties(const QUrl &url); virtual ~ViewProperties(); void setViewMode(DolphinView::Mode mode); @@ -53,21 +53,30 @@ public: void setGroupedSorting(bool grouped); bool groupedSorting() const; - void setSortRole(const QByteArray& role); + void setSortRole(const QByteArray &role); QByteArray sortRole() const; void setSortOrder(Qt::SortOrder sortOrder); Qt::SortOrder sortOrder() const; + void setGroupRole(const QByteArray &role); + QByteArray groupRole() const; + + void setGroupOrder(Qt::SortOrder groupOrder); + Qt::SortOrder groupOrder() const; + void setSortFoldersFirst(bool foldersFirst); bool sortFoldersFirst() const; + void setSortHiddenLast(bool hiddenLast); + bool sortHiddenLast() const; + /** * Sets the additional information for the current set view-mode. * Note that the additional-info property is the only property where * the value is dependent from another property (in this case the view-mode). */ - void setVisibleRoles(const QList& info); + void setVisibleRoles(const QList &info); /** * Returns the additional information for the current set view-mode. @@ -76,7 +85,7 @@ public: */ QList visibleRoles() const; - void setHeaderColumnWidths(const QList& widths); + void setHeaderColumnWidths(const QList &widths); QList headerColumnWidths() const; /** @@ -84,7 +93,7 @@ public: * show hidden files, sorting and sort order like * set in \a props. */ - void setDirProperties(const ViewProperties& props); + void setDirProperties(const ViewProperties &props); /** * If \a autoSave is true, the properties are automatically @@ -119,7 +128,7 @@ private: * properties are stored. \a subDir specifies the used sub * directory. */ - QString destinationDir(const QString& subDir) const; + QString destinationDir(const QString &subDir) const; /** * Returns the view-mode prefix when storing additional properties for @@ -150,7 +159,7 @@ private: /** * Returns true, if \a filePath is part of the home-path (see QDir::homePath()). */ - static bool isPartOfHome(const QString& filePath); + static bool isPartOfHome(const QString &filePath); /** * @return A hash-value for an URL that can be used as directory name. @@ -164,7 +173,7 @@ private: bool m_changedProps; bool m_autoSave; QString m_filePath; - ViewPropertySettings* m_node; + ViewPropertySettings *m_node; }; #endif