mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-01 23:01:10 -07:00
Add initial menu stub
This commit is contained in:
parent
4bb67fbd82
commit
078fd074e5
2 changed files with 100 additions and 16 deletions
55
resources/qml/Menus/SettingVisibilityProfilesMenu.qml
Normal file
55
resources/qml/Menus/SettingVisibilityProfilesMenu.qml
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
// Copyright (c) 2017 Ultimaker B.V.
|
||||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.2
|
||||
import QtQuick.Controls 1.1
|
||||
|
||||
import UM 1.2 as UM
|
||||
import Cura 1.0 as Cura
|
||||
|
||||
Menu
|
||||
{
|
||||
id: menu
|
||||
title: "Visible Settings"
|
||||
|
||||
property bool showingSearchResults
|
||||
property bool showingAllSettings
|
||||
|
||||
signal showAllSettings()
|
||||
signal showSettingVisibilityProfile()
|
||||
|
||||
MenuItem
|
||||
{
|
||||
text: catalog.i18nc("@action:inmenu", "Normal Set")
|
||||
checkable: true
|
||||
checked: !showingSearchResults && !showingAllSettings
|
||||
exclusiveGroup: group
|
||||
onTriggered: showAllSettings()
|
||||
}
|
||||
MenuSeparator {}
|
||||
MenuItem
|
||||
{
|
||||
text: catalog.i18nc("@action:inmenu", "Search Results")
|
||||
checkable: true
|
||||
visible: showingSearchResults
|
||||
checked: showingSearchResults
|
||||
exclusiveGroup: group
|
||||
}
|
||||
MenuItem
|
||||
{
|
||||
text: catalog.i18nc("@action:inmenu", "All Settings")
|
||||
checkable: true
|
||||
checked: showingAllSettings
|
||||
exclusiveGroup: group
|
||||
onTriggered: showAllSettings()
|
||||
}
|
||||
MenuSeparator {}
|
||||
MenuItem
|
||||
{
|
||||
text: catalog.i18nc("@action:inmenu", "Manage Visibility Profiles...")
|
||||
iconName: "configure"
|
||||
onTriggered: Cura.Actions.configureSettingVisibility.trigger()
|
||||
}
|
||||
|
||||
ExclusiveGroup { id: group }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue