diff options
| author | Peter Penz <[email protected]> | 2007-01-07 09:47:05 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-01-07 09:47:05 +0000 |
| commit | 445f0b64bdd34e39f0565ef870937ebd3d5dfa61 (patch) | |
| tree | d83ce3f22a65babf4131da3ffef2eba4e9381186 /src/viewproperties.h | |
| parent | 4a0a832ddb2e39142a313d0c1aeccc7c6fe8b97f (diff) | |
Allow that Dolphin can also be used with global view properties. Per default Dolphin remembers the view properties for each directory, but from the feedback I've got there is a not ignorable amount of people who prefer having global view properties instead.
svn path=/trunk/playground/utils/dolphin/; revision=620774
Diffstat (limited to 'src/viewproperties.h')
| -rw-r--r-- | src/viewproperties.h | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/src/viewproperties.h b/src/viewproperties.h index 992429241..1681b7890 100644 --- a/src/viewproperties.h +++ b/src/viewproperties.h @@ -67,6 +67,13 @@ public: Qt::SortOrder sortOrder() const; /** + * Sets the directory properties view mode, show preview, + * show hidden files, sorting and sort order like + * set in \a props. + */ + void setDirProperties(const ViewProperties& props); + + /** * If \a autoSave is true, the properties are automatically * saved when the destructor is called. Per default autosaving * is enabled. @@ -80,23 +87,27 @@ public: * Saves the view properties for the directory specified * in the constructor. The method is automatically * invoked in the destructor, if - * ViewProperties::isAutoSaveEnabled() returns true. - * - * Note that the saving of the properties will be ignored - * if GeneralSettings::globalViewProps() returns true: in - * this case view properties may not be remembered for - * each directory. + * ViewProperties::isAutoSaveEnabled() returns true and + * at least one property has been changed. */ void save(); private: + /** + * Returns the destination directory path where the view + * properties are stored. \a subDir specifies the used sub + * directory. + */ + QString destinationDir(const QString& subDir) const; + + ViewProperties(const ViewProperties& props); + ViewProperties& operator= (const ViewProperties& props); + +private: bool m_changedProps; bool m_autoSave; QString m_filepath; ViewPropertySettings* m_node; - - ViewProperties(const ViewProperties& props); - ViewProperties& operator= (const ViewProperties& props); }; #endif |
