From 1a56da464c73e3b6cd48433619a79ed110b5c1a1 Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Tue, 28 Jun 2016 17:42:04 +0200 Subject: [PATCH] Introduce a "Manage Materials" action Contributes to CURA-342 --- resources/qml/Actions.qml | 9 +++++++++ resources/qml/Cura.qml | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/resources/qml/Actions.qml b/resources/qml/Actions.qml index 7e03bd7102..45ba20c973 100644 --- a/resources/qml/Actions.qml +++ b/resources/qml/Actions.qml @@ -39,6 +39,8 @@ Item property alias resetProfile: resetProfileAction; property alias manageProfiles: manageProfilesAction; + property alias manageMaterials: manageMaterialsAction; + property alias preferences: preferencesAction; property alias showEngineLog: showEngineLogAction; @@ -107,6 +109,13 @@ Item iconName: "configure"; } + Action + { + id: manageMaterialsAction + text: catalog.i18nc("@action:inmenu", "Manage Materials...") + iconName: "configure" + } + Action { id: updateProfileAction; diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml index c41d80461a..b754d3a1d7 100644 --- a/resources/qml/Cura.qml +++ b/resources/qml/Cura.qml @@ -582,6 +582,16 @@ UM.MainWindow } } + Connections + { + target: Cura.Actions.manageMaterials + onTriggered: + { + preferences.visible = true; + preferences.setPage(3) + } + } + Connections { target: Cura.Actions.configureSettingVisibility