~ubuntu-branches/debian/sid/kde-baseapps/sid

« back to all changes in this revision

Viewing changes to dolphin/src/views/viewproperties.h

  • Committer: Package Import Robot
  • Author(s): Modestas Vainius, Eshat Cakar, Pino Toscano
  • Date: 2012-06-09 22:18:08 UTC
  • mfrom: (4.2.1) (6.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20120609221808-h1l0ekd5qmb8nefr
Tags: 4:4.8.4-1
* New upstream release.

[ Eshat Cakar ]
* Add watch file.
* Bump kde-sc-dev-latest build dependency to version 4:4.8.4.
* Update installed files.

[ Pino Toscano ]
* Move files of the konqueror documentation from kde-baseapps-data to
  konqueror itself.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 * \code
38
38
 * ViewProperties props(KUrl("/home/peter/Documents"));
39
39
 * const DolphinView::Mode mode = props.viewMode();
40
 
 * const bool showHiddenFiles = props.isShowHiddenFilesEnabled();
 
40
 * const bool hiddenFilesShown = props.hiddenFilesShown();
41
41
 * \endcode
42
42
 *
43
43
 * When modifying a view property, the '.directory' file is automatically updated
56
56
    void setViewMode(DolphinView::Mode mode);
57
57
    DolphinView::Mode viewMode() const;
58
58
 
59
 
    void setShowPreview(bool show);
60
 
    bool showPreview() const;
61
 
 
62
 
    void setShowHiddenFiles(bool show);
63
 
    bool showHiddenFiles() const;
64
 
 
65
 
    void setCategorizedSorting(bool categorized);
66
 
    bool categorizedSorting() const;
 
59
    void setPreviewsShown(bool show);
 
60
    bool previewsShown() const;
 
61
 
 
62
    void setHiddenFilesShown(bool show);
 
63
    bool hiddenFilesShown() const;
 
64
 
 
65
    void setGroupedSorting(bool grouped);
 
66
    bool groupedSorting() const;
67
67
 
68
68
    void setSorting(DolphinView::Sorting sorting);
69
69
    DolphinView::Sorting sorting() const;
79
79
     * Note that the additional-info property is the only property where
80
80
     * the value is dependent from another property (in this case the view-mode).
81
81
     */
82
 
    void setAdditionalInfo(const KFileItemDelegate::InformationList& info);
 
82
    void setAdditionalInfoList(const QList<DolphinView::AdditionalInfo>& info);
83
83
 
84
84
    /**
85
85
     * Returns the additional information for the current set view-mode.
86
86
     * Note that the additional-info property is the only property where
87
87
     * the value is dependent from another property (in this case the view-mode).
88
88
     */
89
 
    KFileItemDelegate::InformationList additionalInfo() const;
 
89
    QList<DolphinView::AdditionalInfo> additionalInfoList() const;
90
90
 
91
91
    /**
92
92
     * Sets the directory properties view mode, show preview,
132
132
    QString destinationDir(const QString& subDir) const;
133
133
 
134
134
    /**
135
 
     * Helper method for ViewProperties::additionalInfo(): Returns
136
 
     * the additional info for the outdated version 1 of the view-properties.
137
 
     */
138
 
    KFileItemDelegate::InformationList additionalInfoV1() const;
139
 
 
140
 
    /**
141
 
     * Helper method for ViewProperties::additionalInfo(): Returns
142
 
     * the additional info for the current version 2 of the view-properties.
143
 
     */
144
 
    KFileItemDelegate::InformationList additionalInfoV2() const;
145
 
 
146
 
    /**
147
135
     * Returns the view-mode prefix when storing additional properties for
148
136
     * a view-mode.
149
137
     */