Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/package/contents/ui/ConfigIcons.qml
Show All 12 Lines | |||||
13 | * GNU General Public License for more details. * | 13 | * GNU General Public License for more details. * | ||
14 | * * | 14 | * * | ||
15 | * You should have received a copy of the GNU General Public License * | 15 | * You should have received a copy of the GNU General Public License * | ||
16 | * along with this program; if not, write to the * | 16 | * along with this program; if not, write to the * | ||
17 | * Free Software Foundation, Inc., * | 17 | * Free Software Foundation, Inc., * | ||
18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * | 18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * | ||
19 | ***************************************************************************/ | 19 | ***************************************************************************/ | ||
20 | 20 | | |||
21 | import QtQuick 2.4 | 21 | import QtQuick 2.5 | ||
22 | import QtQuick.Controls 1.0 | 22 | import QtQuick.Controls 2.5 | ||
23 | import QtQuick.Dialogs 1.1 | 23 | import QtQuick.Dialogs 1.1 | ||
24 | import QtQuick.Layouts 1.0 | 24 | import QtQuick.Layouts 1.0 | ||
25 | 25 | | |||
26 | import org.kde.plasma.plasmoid 2.0 | 26 | import org.kde.plasma.plasmoid 2.0 | ||
27 | import org.kde.plasma.core 2.0 as PlasmaCore | 27 | import org.kde.plasma.core 2.0 as PlasmaCore | ||
28 | import org.kde.plasma.components 2.0 as PlasmaComponents | 28 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
29 | import org.kde.kquickcontrolsaddons 2.0 | 29 | import org.kde.kquickcontrolsaddons 2.0 | ||
30 | import org.kde.kconfig 1.0 // for KAuthorized | 30 | import org.kde.kconfig 1.0 // for KAuthorized | ||
31 | import org.kde.kirigami 2.4 as Kirigami | 31 | import org.kde.kirigami 2.5 as Kirigami | ||
32 | 32 | | |||
33 | import org.kde.private.desktopcontainment.desktop 0.1 as Desktop | 33 | import org.kde.private.desktopcontainment.desktop 0.1 as Desktop | ||
34 | import org.kde.private.desktopcontainment.folder 0.1 as Folder | 34 | import org.kde.private.desktopcontainment.folder 0.1 as Folder | ||
35 | 35 | | |||
36 | Item { | 36 | Item { | ||
37 | id: configIcons | 37 | id: configIcons | ||
38 | 38 | | |||
39 | width: childrenRect.width | 39 | width: childrenRect.width | ||
▲ Show 20 Lines • Show All 104 Lines • ▼ Show 20 Line(s) | 139 | ComboBox { | |||
144 | 144 | | |||
145 | model: [i18n("Rows"), i18n("Columns")] | 145 | model: [i18n("Rows"), i18n("Columns")] | ||
146 | } | 146 | } | ||
147 | 147 | | |||
148 | ComboBox { | 148 | ComboBox { | ||
149 | id: alignment | 149 | id: alignment | ||
150 | Layout.fillWidth: true | 150 | Layout.fillWidth: true | ||
151 | 151 | | |||
152 | model: [i18n("Align Left"), i18n("Align Right")] | 152 | model: [i18n("Align left"), i18n("Align right")] | ||
153 | } | 153 | } | ||
154 | 154 | | |||
155 | CheckBox { | 155 | CheckBox { | ||
156 | id: locked | 156 | id: locked | ||
157 | visible: ("containmentType" in plasmoid) | 157 | visible: ("containmentType" in plasmoid) | ||
158 | checked: cfg_locked || lockedByKiosk | 158 | checked: cfg_locked || lockedByKiosk | ||
159 | enabled: !lockedByKiosk | 159 | enabled: !lockedByKiosk | ||
160 | 160 | | |||
▲ Show 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | |||||
228 | Slider { | 228 | Slider { | ||
229 | id: iconSize | 229 | id: iconSize | ||
230 | 230 | | |||
231 | Layout.fillWidth: true | 231 | Layout.fillWidth: true | ||
232 | visible: !isPopup || viewMode.currentIndex === 1 | 232 | visible: !isPopup || viewMode.currentIndex === 1 | ||
233 | 233 | | |||
234 | Kirigami.FormData.label: i18n("Icon size:") | 234 | Kirigami.FormData.label: i18n("Icon size:") | ||
235 | 235 | | |||
236 | minimumValue: 0 | 236 | from: 0 | ||
237 | maximumValue: 5 | 237 | to: 5 | ||
238 | stepSize: 1 | 238 | stepSize: 1 | ||
239 | tickmarksEnabled: true | 239 | snapMode: Slider.SnapAlways | ||
240 | } | 240 | } | ||
241 | 241 | | |||
242 | RowLayout { | 242 | RowLayout { | ||
243 | Layout.fillWidth: true | 243 | Layout.fillWidth: true | ||
244 | 244 | | |||
245 | Label { | 245 | Label { | ||
246 | Layout.alignment: Qt.AlignLeft | 246 | Layout.alignment: Qt.AlignLeft | ||
247 | visible: !isPopup || viewMode.currentIndex === 1 | 247 | visible: !isPopup || viewMode.currentIndex === 1 | ||
Show All 25 Lines | |||||
273 | } | 273 | } | ||
274 | 274 | | |||
275 | SpinBox { | 275 | SpinBox { | ||
276 | id: textLines | 276 | id: textLines | ||
277 | visible: !isPopup || viewMode.currentIndex === 1 | 277 | visible: !isPopup || viewMode.currentIndex === 1 | ||
278 | 278 | | |||
279 | Kirigami.FormData.label: i18n("Text lines:") | 279 | Kirigami.FormData.label: i18n("Text lines:") | ||
280 | 280 | | |||
281 | minimumValue: 1 | 281 | from: 1 | ||
282 | maximumValue: 10 | 282 | to: 10 | ||
283 | stepSize: 1 | 283 | stepSize: 1 | ||
284 | } | 284 | } | ||
285 | 285 | | |||
286 | Item { | 286 | Item { | ||
287 | Kirigami.FormData.isSection: true | 287 | Kirigami.FormData.isSection: true | ||
288 | } | 288 | } | ||
289 | 289 | | |||
290 | 290 | | |||
Show All 24 Lines | 314 | CheckBox { | |||
315 | id: previews | 315 | id: previews | ||
316 | 316 | | |||
317 | text: i18n("Preview thumbnails") | 317 | text: i18n("Preview thumbnails") | ||
318 | } | 318 | } | ||
319 | 319 | | |||
320 | Button { | 320 | Button { | ||
321 | id: previewSettings | 321 | id: previewSettings | ||
322 | 322 | | |||
323 | text: i18n("More Preview Options...") | 323 | icon.name: "configure" | ||
324 | text: i18n("Configure Preview Plugins...") | ||||
324 | 325 | | |||
325 | onClicked: { | 326 | onClicked: { | ||
326 | previewPluginsDialog.visible = true; | 327 | previewPluginsDialog.visible = true; | ||
327 | } | 328 | } | ||
328 | } | 329 | } | ||
329 | } | 330 | } | ||
330 | 331 | | |||
331 | FolderItemPreviewPluginsDialog { | 332 | FolderItemPreviewPluginsDialog { | ||
332 | id: previewPluginsDialog | 333 | id: previewPluginsDialog | ||
333 | } | 334 | } | ||
334 | } | 335 | } |