Просмотр исходного кода

Clean up the code

Remove all the references to the sidebar and use the term print_setup instead.

Contributes to CURA-5941.
Diego Prado Gesto 6 лет назад
Родитель
Сommit
1d33fe081f

+ 1 - 1
plugins/PostProcessingPlugin/PostProcessingPlugin.qml

@@ -412,7 +412,7 @@ UM.Dialog
             }
         }
 
-        Cura.SidebarTooltip
+        Cura.PrintSetupTooltip
         {
             id: tooltip
         }

+ 2 - 2
plugins/UM3NetworkPrinting/resources/qml/UM3InfoComponents.qml

@@ -29,7 +29,7 @@ Item {
         Button {
             height: UM.Theme.getSize("save_button_save_to_button").height;
             onClicked: Cura.MachineManager.printerOutputDevices[0].requestAuthentication();
-            style: UM.Theme.styles.sidebar_action_button;
+            style: UM.Theme.styles.print_setup_action_button;
             text: catalog.i18nc("@action:button", "Request Access");
             tooltip: catalog.i18nc("@info:tooltip", "Send access request to the printer");
             visible: printerConnected && !printerAcceptsCommands && !authenticationRequested;
@@ -38,7 +38,7 @@ Item {
         Button {
             height: UM.Theme.getSize("save_button_save_to_button").height;
             onClicked: connectActionDialog.show();
-            style: UM.Theme.styles.sidebar_action_button;
+            style: UM.Theme.styles.print_setup_action_button;
             text: catalog.i18nc("@action:button", "Connect");
             tooltip: catalog.i18nc("@info:tooltip", "Connect to a printer");
             visible: !printerConnected;

+ 1 - 1
resources/qml/Cura.qml

@@ -309,7 +309,7 @@ UM.MainWindow
             }
         }
 
-        SidebarTooltip
+        PrintSetupTooltip
         {
             id: tooltip
         }

+ 2 - 2
resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml

@@ -204,7 +204,7 @@ Item
                     height: UM.Theme.getSize("setting_control").height
                     width: selectors.controlWidth
 
-                    style: UM.Theme.styles.sidebar_header_button
+                    style: UM.Theme.styles.print_setup_header_button
                     activeFocusOnPress: true
                     menu: Cura.MaterialMenu
                     {
@@ -237,7 +237,7 @@ Item
 
                     height: UM.Theme.getSize("setting_control").height
                     width: selectors.controlWidth
-                    style: UM.Theme.styles.sidebar_header_button
+                    style: UM.Theme.styles.print_setup_header_button
                     activeFocusOnPress: true;
 
                     menu: Cura.NozzleMenu { extruderIndex: Cura.ExtruderManager.activeExtruderIndex }

+ 2 - 2
resources/qml/MonitorButton.qml

@@ -309,7 +309,7 @@ Item
                 }
             }
 
-            style: UM.Theme.styles.sidebar_action_button
+            style: UM.Theme.styles.print_setup_action_button
         }
 
         Button
@@ -325,7 +325,7 @@ Item
             text: catalog.i18nc("@label", "Abort Print")
             onClicked: confirmationDialog.visible = true
 
-            style: UM.Theme.styles.sidebar_action_button
+            style: UM.Theme.styles.print_setup_action_button
         }
 
         MessageDialog

+ 1 - 1
resources/qml/MonitorSidebar.qml

@@ -173,7 +173,7 @@ Rectangle
         anchors.bottom: parent.bottom
     }
 
-    SidebarTooltip
+    PrintSetupTooltip
     {
         id: tooltip
     }

+ 2 - 2
resources/qml/ObjectsList.qml

@@ -224,7 +224,7 @@ Rectangle
     {
         id: arrangeAllBuildPlatesButton;
         text: catalog.i18nc("@action:button","Arrange to all build plates");
-        style: UM.Theme.styles.sidebar_action_button
+        style: UM.Theme.styles.print_setup_action_button
         height: UM.Theme.getSize("objects_menu_button").height;
         tooltip: '';
         anchors
@@ -244,7 +244,7 @@ Rectangle
     {
         id: arrangeBuildPlateButton;
         text: catalog.i18nc("@action:button","Arrange current build plate");
-        style: UM.Theme.styles.sidebar_action_button
+        style: UM.Theme.styles.print_setup_action_button
         height: UM.Theme.getSize("objects_menu_button").height;
         tooltip: '';
         anchors

+ 1 - 1
resources/qml/PrintMonitor.qml

@@ -49,7 +49,7 @@ Rectangle
     property var activePrinter: connectedDevice != null ? connectedDevice.activePrinter : null
     property var activePrintJob: activePrinter != null ? activePrinter.activePrintJob: null
 
-    SidebarTooltip
+    PrintSetupTooltip
     {
         id: tooltip
     }

+ 1 - 1
resources/qml/PrintSetupSelector/Custom/GlobalProfileSelector.qml

@@ -43,7 +43,7 @@ Item
             right: parent.right
         }
         tooltip: Cura.MachineManager.activeQualityOrQualityChangesName
-        style: UM.Theme.styles.sidebar_header_button
+        style: UM.Theme.styles.print_setup_header_button
         activeFocusOnPress: true
         menu: Cura.ProfileMenu { }
 

+ 0 - 0
resources/qml/SidebarTooltip.qml → resources/qml/PrintSetupTooltip.qml


Некоторые файлы не были показаны из-за большого количества измененных файлов