Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/common/effectmodel.h
Show First 20 Lines • Show All 154 Lines • ▼ Show 20 Line(s) | 41 | public: | |||
---|---|---|---|---|---|
155 | * | 155 | * | ||
156 | * @param rowIndex An effect represented by the given index. | 156 | * @param rowIndex An effect represented by the given index. | ||
157 | * @param effectState The new state. | 157 | * @param effectState The new state. | ||
158 | * @note In order to actually apply the change, you have to call save(). | 158 | * @note In order to actually apply the change, you have to call save(). | ||
159 | **/ | 159 | **/ | ||
160 | void updateEffectStatus(const QModelIndex &rowIndex, Status effectState); | 160 | void updateEffectStatus(const QModelIndex &rowIndex, Status effectState); | ||
161 | 161 | | |||
162 | /** | 162 | /** | ||
163 | * This enum type is used to specify load options. | ||||
164 | **/ | ||||
165 | enum class LoadOptions { | ||||
166 | None, | ||||
167 | /** | ||||
168 | * Do not discard unsaved changes when reloading the model. | ||||
169 | **/ | ||||
170 | KeepDirty | ||||
171 | }; | ||||
172 | | ||||
173 | /** | ||||
163 | * Loads effects. | 174 | * Loads effects. | ||
164 | * | 175 | * | ||
165 | * You have to call this method in order to populate the model. | 176 | * You have to call this method in order to populate the model. | ||
166 | **/ | 177 | **/ | ||
167 | void load(); | 178 | void load(LoadOptions options = LoadOptions::None); | ||
168 | 179 | | |||
169 | /** | 180 | /** | ||
170 | * Saves status of each modified effect. | 181 | * Saves status of each modified effect. | ||
171 | **/ | 182 | **/ | ||
172 | void save(); | 183 | void save(); | ||
173 | 184 | | |||
174 | /** | 185 | /** | ||
175 | * Resets the status of each effect to the default state. | 186 | * Resets the status of each effect to the default state. | ||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |