mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 14:34:01 -06:00
Merge branch 'main' into CURA-11482_sentry
This commit is contained in:
commit
3abb5526ba
12 changed files with 96 additions and 40 deletions
|
@ -120,8 +120,8 @@ Item
|
|||
text: catalog.i18nc("@action:inmenu menubar:edit", "&Undo")
|
||||
icon.name: "edit-undo"
|
||||
shortcut: StandardKey.Undo
|
||||
onTriggered: UM.OperationStack.undo()
|
||||
enabled: UM.OperationStack.canUndo
|
||||
onTriggered: CuraActions.undo()
|
||||
enabled: CuraActions.canUndo
|
||||
}
|
||||
|
||||
Action
|
||||
|
@ -130,8 +130,8 @@ Item
|
|||
text: catalog.i18nc("@action:inmenu menubar:edit", "&Redo")
|
||||
icon.name: "edit-redo"
|
||||
shortcut: StandardKey.Redo
|
||||
onTriggered: UM.OperationStack.redo()
|
||||
enabled: UM.OperationStack.canRedo
|
||||
onTriggered: CuraActions.redo()
|
||||
enabled: CuraActions.canRedo
|
||||
}
|
||||
|
||||
Action
|
||||
|
|
|
@ -58,7 +58,7 @@ UM.Dialog
|
|||
UM.Label
|
||||
{
|
||||
id: version
|
||||
text: catalog.i18nc("@label","version: %1").arg(UM.Application.version)
|
||||
text: catalog.i18nc("@label","version: %1").arg(CuraApplication.version())
|
||||
font: UM.Theme.getFont("large_bold")
|
||||
color: UM.Theme.getColor("button_text")
|
||||
anchors.right : logo.right
|
||||
|
|
|
@ -12,6 +12,7 @@ import Cura 1.0 as Cura
|
|||
UM.ManagementPage
|
||||
{
|
||||
id: base
|
||||
property var machineActionManager: CuraApplication.getMachineActionManagerQml()
|
||||
Item { enabled: false; UM.I18nCatalog { id: catalog; name: "cura"} }
|
||||
|
||||
title: catalog.i18nc("@title:tab", "Printers")
|
||||
|
@ -58,10 +59,11 @@ UM.ManagementPage
|
|||
anchors.fill: parent
|
||||
spacing: UM.Theme.getSize("default_margin").height
|
||||
|
||||
|
||||
Repeater
|
||||
{
|
||||
id: machineActionRepeater
|
||||
model: base.currentItem ? Cura.MachineActionManager.getSupportedActions(Cura.MachineManager.getDefinitionByMachineId(base.currentItem.id)) : null
|
||||
model: base.currentItem ? machineActionManager.getSupportedActions(Cura.MachineManager.getDefinitionByMachineId(base.currentItem.id)) : null
|
||||
|
||||
Item
|
||||
{
|
||||
|
|
|
@ -160,7 +160,7 @@ Item
|
|||
ProfileWarningReset
|
||||
{
|
||||
id: profileWarningReset
|
||||
width: childrenRect.width
|
||||
width: parent.width
|
||||
anchors.right: parent.right
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
fullWarning: false
|
||||
|
|
|
@ -187,7 +187,7 @@ Popup
|
|||
//Add all the custom profiles.
|
||||
Repeater
|
||||
{
|
||||
model: Cura.CustomQualityProfilesDropDownMenuModel
|
||||
model: CuraApplication.getCustomQualityProfilesDropDownMenuModel()
|
||||
MenuButton
|
||||
{
|
||||
onClicked: Cura.MachineManager.setQualityChangesGroup(model.quality_changes_group)
|
||||
|
|
|
@ -11,7 +11,7 @@ import "../Dialogs"
|
|||
Item
|
||||
{
|
||||
property bool fullWarning: true // <- Can you see the warning icon and the text, or is it just the buttons?
|
||||
|
||||
property var simpleModeSettingsManager :CuraApplication.getSimpleModeSettingsManager()
|
||||
height: visible ? UM.Theme.getSize("action_button_icon").height : 0
|
||||
width: visible ? childrenRect.width: 0
|
||||
visible: Cura.MachineManager.hasUserSettings || (fullWarning && Cura.MachineManager.hasCustomQuality)
|
||||
|
@ -96,7 +96,7 @@ Item
|
|||
State
|
||||
{
|
||||
name: "custom settings changed"
|
||||
when: Cura.SimpleModeSettingsManager.isProfileCustomized
|
||||
when: simpleModeSettingsManager.isProfileCustomized
|
||||
PropertyChanges
|
||||
{
|
||||
target: warning
|
||||
|
|
|
@ -223,7 +223,7 @@ SettingItem
|
|||
|
||||
cursorShape: Qt.IBeamCursor
|
||||
|
||||
onPressed: {
|
||||
onPressed:(mouse)=> {
|
||||
if (!input.activeFocus)
|
||||
{
|
||||
base.focusGainedByClick = true
|
||||
|
|
|
@ -203,7 +203,7 @@ Item
|
|||
x: UM.Theme.getSize("default_margin").width
|
||||
y: UM.Theme.getSize("default_margin").height
|
||||
|
||||
source: UM.ActiveTool.valid ? UM.ActiveTool.activeToolPanel : ""
|
||||
source: UM.Controller.valid ? UM.Controller.activeToolPanel : ""
|
||||
enabled: UM.Controller.toolsEnabled
|
||||
}
|
||||
}
|
||||
|
@ -222,7 +222,7 @@ Item
|
|||
UM.Label
|
||||
{
|
||||
id: toolHint
|
||||
text: UM.ActiveTool.properties.getValue("ToolHint") != undefined ? UM.ActiveTool.properties.getValue("ToolHint") : ""
|
||||
text: UM.Controller.properties.getValue("ToolHint") != undefined ? UM.ActiveTool.properties.getValue("ToolHint") : ""
|
||||
color: UM.Theme.getColor("tooltip_text")
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue