mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Change name of some components to make them more indicative of what they
do. Contributes to CURA-5772.
This commit is contained in:
parent
8df3eb33d4
commit
93b04190f8
7 changed files with 23 additions and 54 deletions
|
@ -13,6 +13,9 @@ Item
|
|||
signal showTooltip(Item item, point location, string text)
|
||||
signal hideTooltip()
|
||||
|
||||
property bool isNetworkPrinter: Cura.MachineManager.activeMachineNetworkKey != ""
|
||||
property bool printerConnected: Cura.MachineManager.printerConnected
|
||||
|
||||
UM.I18nCatalog
|
||||
{
|
||||
id: catalog
|
||||
|
@ -37,19 +40,31 @@ Item
|
|||
{
|
||||
id: spacing
|
||||
width: UM.Theme.getSize("default_margin").width
|
||||
height: parent.height
|
||||
height: prepareMenu.height
|
||||
}
|
||||
|
||||
Cura.MachineAndConfigurationSelector
|
||||
Cura.MachineSelector
|
||||
{
|
||||
id: machineSelection
|
||||
width: UM.Theme.getSize("sidebar").width
|
||||
height: prepareMenu.height
|
||||
}
|
||||
|
||||
Cura.MaterialAndVariantSelector
|
||||
Cura.QuickConfigurationSelector
|
||||
{
|
||||
id: configSelection
|
||||
visible: isNetworkPrinter && printerConnected
|
||||
width: visible ? Math.round(machineSelection.width * 0.15) : 0
|
||||
panelWidth: machineSelection.width
|
||||
height: prepareMenu.height
|
||||
}
|
||||
|
||||
Cura.CustomConfigurationSelector
|
||||
{
|
||||
width: UM.Theme.getSize("sidebar").width
|
||||
}
|
||||
|
||||
Cura.ProfileAndSettingComponent
|
||||
Cura.PrintSetupSelector
|
||||
{
|
||||
width: UM.Theme.getSize("sidebar").width
|
||||
onShowTooltip: prepareMenu.showTooltip(item, location, text)
|
||||
|
|
|
@ -1,47 +0,0 @@
|
|||
// Copyright (c) 2017 Ultimaker B.V.
|
||||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.7
|
||||
|
||||
import UM 1.2 as UM
|
||||
import Cura 1.0 as Cura
|
||||
import "Menus"
|
||||
import "Menus/ConfigurationMenu"
|
||||
|
||||
Rectangle
|
||||
{
|
||||
color: UM.Theme.getColor("sidebar_lining_thin")
|
||||
|
||||
implicitHeight: UM.Theme.getSize("sidebar_header").height
|
||||
implicitWidth: UM.Theme.getSize("sidebar").width
|
||||
|
||||
property bool isNetworkPrinter: Cura.MachineManager.activeMachineNetworkKey != ""
|
||||
property bool printerConnected: Cura.MachineManager.printerConnected
|
||||
|
||||
MachineSelection
|
||||
{
|
||||
id: machineSelection
|
||||
anchors
|
||||
{
|
||||
left: parent.left
|
||||
right: configSelection.left
|
||||
rightMargin: UM.Theme.getSize("sidebar_lining_thin").height / 2
|
||||
top: parent.top
|
||||
bottom: parent.bottom
|
||||
}
|
||||
}
|
||||
|
||||
ConfigurationSelection
|
||||
{
|
||||
id: configSelection
|
||||
visible: isNetworkPrinter && printerConnected
|
||||
width: visible ? Math.round(parent.width * 0.15) : 0
|
||||
panelWidth: parent.width
|
||||
anchors
|
||||
{
|
||||
right: parent.right
|
||||
top: parent.top
|
||||
bottom: parent.bottom
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
module Cura
|
||||
|
||||
MachineAndConfigurationSelector 1.0 MachineAndConfigurationSelector.qml
|
||||
MaterialAndVariantSelector 1.0 MaterialAndVariantSelector.qml
|
||||
ProfileAndSettingComponent 1.0 ProfileAndSettingComponent.qml
|
||||
MachineSelector 1.0 MachineSelector.qml
|
||||
QuickConfigurationSelector 1.0 QuickConfigurationSelector.qml
|
||||
CustomConfigurationSelector 1.0 CustomConfigurationSelector.qml
|
||||
PrintSetupSelector 1.0 PrintSetupSelector.qml
|
||||
ActionButton 1.0 ActionButton.qml
|
Loading…
Add table
Add a link
Reference in a new issue