Changeset View
Changeset View
Standalone View
Standalone View
wallpapers/image/imagepackage/contents/ui/config.qml
Show All 19 Lines | |||||
20 | 20 | | |||
21 | import QtQuick 2.5 | 21 | import QtQuick 2.5 | ||
22 | import QtQuick.Controls 2.3 as QtControls2 | 22 | import QtQuick.Controls 2.3 as QtControls2 | ||
23 | import QtQuick.Layouts 1.0 | 23 | import QtQuick.Layouts 1.0 | ||
24 | import QtQuick.Window 2.0 // for Screen | 24 | import QtQuick.Window 2.0 // for Screen | ||
25 | import org.kde.plasma.wallpapers.image 2.0 as Wallpaper | 25 | import org.kde.plasma.wallpapers.image 2.0 as Wallpaper | ||
26 | import org.kde.kquickcontrols 2.0 as KQuickControls | 26 | import org.kde.kquickcontrols 2.0 as KQuickControls | ||
27 | import org.kde.kquickcontrolsaddons 2.0 | 27 | import org.kde.kquickcontrolsaddons 2.0 | ||
28 | import org.kde.kconfig 1.0 // for KAuthorized | 28 | import org.kde.newstuff 1.62 as NewStuff | ||
29 | import org.kde.draganddrop 2.0 as DragDrop | 29 | import org.kde.draganddrop 2.0 as DragDrop | ||
30 | import org.kde.kcm 1.1 as KCM | 30 | import org.kde.kcm 1.1 as KCM | ||
31 | import org.kde.kirigami 2.5 as Kirigami | 31 | import org.kde.kirigami 2.5 as Kirigami | ||
32 | 32 | | |||
33 | ColumnLayout { | 33 | ColumnLayout { | ||
34 | id: root | 34 | id: root | ||
35 | property alias cfg_Color: colorButton.color | 35 | property alias cfg_Color: colorButton.color | ||
36 | property string cfg_Image | 36 | property string cfg_Image | ||
▲ Show 20 Lines • Show All 302 Lines • ▼ Show 20 Line(s) | 335 | Loader { | |||
339 | anchors.fill: undefined | 339 | anchors.fill: undefined | ||
340 | } | 340 | } | ||
341 | QtControls2.Button { | 341 | QtControls2.Button { | ||
342 | Layout.alignment: Qt.AlignRight | 342 | Layout.alignment: Qt.AlignRight | ||
343 | icon.name: "list-add" | 343 | icon.name: "list-add" | ||
344 | text: i18nd("plasma_wallpaper_org.kde.image","Add Folder...") | 344 | text: i18nd("plasma_wallpaper_org.kde.image","Add Folder...") | ||
345 | onClicked: imageWallpaper.showAddSlidePathsDialog() | 345 | onClicked: imageWallpaper.showAddSlidePathsDialog() | ||
346 | } | 346 | } | ||
347 | QtControls2.Button { | 347 | NewStuff.Button { | ||
348 | Layout.alignment: Qt.AlignRight | 348 | Layout.alignment: Qt.AlignRight | ||
349 | icon.name: "get-hot-new-stuff" | 349 | configFile: "wallpaper.knsrc" | ||
350 | text: i18nd("plasma_wallpaper_org.kde.image","Get New Wallpapers...") | 350 | downloadNewWhat: i18n("Wallpapers") | ||
351 | visible: KAuthorized.authorize("ghns") | 351 | viewMode: NewStuff.Page.ViewMode.Preview | ||
352 | onClicked: imageWallpaper.getNewWallpaper(this); | 352 | onChangedEntriesChanged: imageWallpaper.newStuffFinished(); | ||
353 | } | 353 | } | ||
354 | } | 354 | } | ||
355 | } | 355 | } | ||
356 | } | 356 | } | ||
357 | 357 | | |||
358 | Component { | 358 | Component { | ||
359 | id: thumbnailsComponent | 359 | id: thumbnailsComponent | ||
360 | KCM.GridView { | 360 | KCM.GridView { | ||
▲ Show 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | 437 | RowLayout { | |||
438 | id: buttonsRow | 438 | id: buttonsRow | ||
439 | Layout.alignment: Qt.AlignRight | Qt.AlignVCenter | 439 | Layout.alignment: Qt.AlignRight | Qt.AlignVCenter | ||
440 | visible: configDialog.currentWallpaper == "org.kde.image" | 440 | visible: configDialog.currentWallpaper == "org.kde.image" | ||
441 | QtControls2.Button { | 441 | QtControls2.Button { | ||
442 | icon.name: "list-add" | 442 | icon.name: "list-add" | ||
443 | text: i18nd("plasma_wallpaper_org.kde.image","Add Image...") | 443 | text: i18nd("plasma_wallpaper_org.kde.image","Add Image...") | ||
444 | onClicked: imageWallpaper.showFileDialog(); | 444 | onClicked: imageWallpaper.showFileDialog(); | ||
445 | } | 445 | } | ||
446 | QtControls2.Button { | 446 | NewStuff.Button { | ||
447 | icon.name: "get-hot-new-stuff" | 447 | Layout.alignment: Qt.AlignRight | ||
448 | text: i18nd("plasma_wallpaper_org.kde.image","Get New Wallpapers...") | 448 | configFile: "wallpaper.knsrc" | ||
449 | visible: KAuthorized.authorize("ghns") | 449 | downloadNewWhat: i18n("Wallpapers") | ||
450 | onClicked: imageWallpaper.getNewWallpaper(this); | 450 | viewMode: NewStuff.Page.ViewMode.Preview | ||
451 | onChangedEntriesChanged: imageWallpaper.newStuffFinished(); | ||||
451 | } | 452 | } | ||
452 | } | 453 | } | ||
453 | } | 454 | } |