~ubuntu-branches/ubuntu/quantal/kde-baseapps/quantal

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2012-05-25 17:26:17 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20120525172617-xr9bzhlugldbflvq
Tags: 4:4.8.80a-0ubuntu1
* Merge with debian git, remainging changes:
  - keep breaks/replaces
  - keep symbol files
  - keep kubuntu patches
  - dolphin suggests and not recommends ruby
  - add kfind, konsole and kompare to dolphin suggests
* konq-plugins breaks/replaces kde-baseapps-data << 4:4.8.80

* Drop squence numbers from kubuntu patches 

* New upstream beta release
  - refresh kubuntu_fix_systemsettings_about_me.diff
  - add new doc images to {konqueror,dolphin}.install

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
    void setGroupedSorting(bool grouped);
66
66
    bool groupedSorting() const;
67
67
 
68
 
    void setSorting(DolphinView::Sorting sorting);
69
 
    DolphinView::Sorting sorting() const;
 
68
    void setSortRole(const QByteArray& role);
 
69
    QByteArray sortRole() const;
70
70
 
71
71
    void setSortOrder(Qt::SortOrder sortOrder);
72
72
    Qt::SortOrder sortOrder() 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 setAdditionalInfoList(const QList<DolphinView::AdditionalInfo>& info);
 
82
    void setVisibleRoles(const QList<QByteArray>& 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
 
    QList<DolphinView::AdditionalInfo> additionalInfoList() const;
 
89
    QList<QByteArray> visibleRoles() const;
 
90
 
 
91
    void setHeaderColumnWidths(const QList<int>& widths);
 
92
    QList<int> headerColumnWidths() const;
90
93
 
91
94
    /**
92
95
     * Sets the directory properties view mode, show preview,
115
118
    void save();
116
119
 
117
120
    /**
118
 
     * Returns the URL of the directory, where the mirrored view properties
119
 
     * are stored into. Mirrored view properties are used if:
120
 
     * - there is no write access for storing the view properties into
121
 
     *   the original directory
122
 
     * - for non local directories
 
121
     * @return True if properties for the given URL exist:
 
122
     *         As soon as the properties for an URL have been saved with
 
123
     *         ViewProperties::save(), true will be returned. If false is
 
124
     *         returned, the default view-properties are used.
123
125
     */
124
 
    static KUrl mirroredDirectory();
 
126
    bool exist() const;
125
127
 
126
128
private:
127
129
    /**
138
140
    QString viewModePrefix() const;
139
141
 
140
142
    /**
 
143
     * Provides backward compatibility with .directory files created with
 
144
     * Dolphin < 2.0: Converts the old additionalInfo-property into
 
145
     * the visibleRoles-property and clears the additionalInfo-property.
 
146
     */
 
147
    void convertAdditionalInfo();
 
148
 
 
149
    /**
 
150
     * Provides backward compatibility with .directory files created with
 
151
     * Dolphin < 2.1: Converts the old name-role "name" to the generic
 
152
     * role "text".
 
153
     */
 
154
    void convertNameRoleToTextRole();
 
155
 
 
156
    /**
141
157
     * Returns true, if \a filePath is part of the home-path (see QDir::homePath()).
142
158
     */
143
159
    static bool isPartOfHome(const QString& filePath);
144
160
 
 
161
    /**
 
162
     * @return A hash-value for an URL that can be used as directory name.
 
163
     *         Is used to be able to remember view-properties for long nepomuksearch-URLs.
 
164
     */
 
165
    static QString directoryHashForUrl(const KUrl& url);
 
166
 
 
167
    /**
 
168
     * Returns the URL of the directory, where the mirrored view properties
 
169
     * are stored into. Mirrored view properties are used if:
 
170
     * - there is no write access for storing the view properties into
 
171
     *   the original directory
 
172
     * - for non local directories
 
173
     */
 
174
    static KUrl mirroredDirectory();
 
175
 
145
176
    Q_DISABLE_COPY(ViewProperties)
146
177
 
147
178
private: