Browse Source

Change name of some components to make them more indicative of what they
do.

Contributes to CURA-5772.

Diego Prado Gesto 6 years ago
parent
commit
93b04190f8

+ 19 - 4
plugins/PrepareStage/PrepareMenu.qml

@@ -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.MachineSelector
+        {
+            id: machineSelection
+            width: UM.Theme.getSize("sidebar").width
+            height: prepareMenu.height
         }
 
-        Cura.MachineAndConfigurationSelector
+        Cura.QuickConfigurationSelector
         {
+            id: configSelection
+            visible: isNetworkPrinter && printerConnected
+            width: visible ? Math.round(machineSelection.width * 0.15) : 0
+            panelWidth: machineSelection.width
+            height: prepareMenu.height
         }
 
-        Cura.MaterialAndVariantSelector
+        Cura.CustomConfigurationSelector
         {
             width: UM.Theme.getSize("sidebar").width
         }
 
-        Cura.ProfileAndSettingComponent
+        Cura.PrintSetupSelector
         {
             width: UM.Theme.getSize("sidebar").width
             onShowTooltip: prepareMenu.showTooltip(item, location, text)

+ 0 - 0
resources/qml/MaterialAndVariantSelector.qml → resources/qml/CustomConfigurationSelector.qml


+ 0 - 47
resources/qml/MachineAndConfigurationSelector.qml

@@ -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
-        }
-    }
-}

+ 0 - 0
resources/qml/MachineSelection.qml → resources/qml/MachineSelector.qml


+ 0 - 0
resources/qml/Menus/ConfigurationMenu/ConfigurationSelection.qml → resources/qml/Menus/ConfigurationMenu/QuickConfigurationSelector.qml


+ 0 - 0
resources/qml/ProfileAndSettingComponent.qml → resources/qml/PrintSetupSelector.qml


+ 4 - 3
resources/qml/qmldir

@@ -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