Explorar o código

- small GUI change

Marius Stanciu %!s(int64=7) %!d(string=hai) anos
pai
achega
c22d6766f4
Modificáronse 2 ficheiros con 30 adicións e 30 borrados
  1. 18 18
      FlatCAMGUI.py
  2. 12 12
      flatcamTools/ToolPanelize.py

+ 18 - 18
FlatCAMGUI.py

@@ -4850,6 +4850,19 @@ class ToolsPanelizePrefGroupUI(OptionsGroupUI):
         grid0.addWidget(self.rows_label, 3, 0)
         grid0.addWidget(self.rows_label, 3, 0)
         grid0.addWidget(self.prows, 3, 1)
         grid0.addWidget(self.prows, 3, 1)
 
 
+        ## Type of resulting Panel object
+        self.panel_type_radio = RadioSet([{'label': 'Gerber', 'value': 'gerber'},
+                                     {'label': 'Geo', 'value': 'geometry'}])
+        self.panel_type_label = QtWidgets.QLabel("Panel Type:")
+        self.panel_type_label.setToolTip(
+            "Choose the type of object for the panel object:\n"
+            "- Gerber\n"
+            "- Geometry"
+        )
+
+        grid0.addWidget(self.panel_type_label, 4, 0)
+        grid0.addWidget(self.panel_type_radio, 4, 1)
+
         ## Constrains
         ## Constrains
         self.pconstrain_cb = FCCheckBox("Constrain within:")
         self.pconstrain_cb = FCCheckBox("Constrain within:")
         self.pconstrain_cb.setToolTip(
         self.pconstrain_cb.setToolTip(
@@ -4859,7 +4872,7 @@ class ToolsPanelizePrefGroupUI(OptionsGroupUI):
             "the final panel will have as many columns and rows as\n"
             "the final panel will have as many columns and rows as\n"
             "they fit completely within selected area."
             "they fit completely within selected area."
         )
         )
-        grid0.addWidget(self.pconstrain_cb, 4, 0)
+        grid0.addWidget(self.pconstrain_cb, 5, 0)
 
 
         self.px_width_entry = FCEntry()
         self.px_width_entry = FCEntry()
         self.x_width_lbl = QtWidgets.QLabel("Width (DX):")
         self.x_width_lbl = QtWidgets.QLabel("Width (DX):")
@@ -4867,8 +4880,8 @@ class ToolsPanelizePrefGroupUI(OptionsGroupUI):
             "The width (DX) within which the panel must fit.\n"
             "The width (DX) within which the panel must fit.\n"
             "In current units."
             "In current units."
         )
         )
-        grid0.addWidget(self.x_width_lbl, 5, 0)
-        grid0.addWidget(self.px_width_entry, 5, 1)
+        grid0.addWidget(self.x_width_lbl, 6, 0)
+        grid0.addWidget(self.px_width_entry, 6, 1)
 
 
         self.py_height_entry = FCEntry()
         self.py_height_entry = FCEntry()
         self.y_height_lbl = QtWidgets.QLabel("Height (DY):")
         self.y_height_lbl = QtWidgets.QLabel("Height (DY):")
@@ -4876,21 +4889,8 @@ class ToolsPanelizePrefGroupUI(OptionsGroupUI):
             "The height (DY)within which the panel must fit.\n"
             "The height (DY)within which the panel must fit.\n"
             "In current units."
             "In current units."
         )
         )
-        grid0.addWidget(self.y_height_lbl, 6, 0)
-        grid0.addWidget(self.py_height_entry, 6, 1)
-
-        ## Type of resulting Panel object
-        self.panel_type_radio = RadioSet([{'label': 'Gerber', 'value': 'gerber'},
-                                     {'label': 'Geometry', 'value': 'geometry'}])
-        self.panel_type_label = QtWidgets.QLabel("Panel Type:")
-        self.panel_type_label.setToolTip(
-            "Choose the type of object for the panel object:\n"
-            "- Geometry\n"
-            "- Gerber"
-        )
-
-        grid0.addWidget(self.panel_type_label, 7, 0)
-        grid0.addWidget(self.panel_type_radio, 7, 1)
+        grid0.addWidget(self.y_height_lbl, 7, 0)
+        grid0.addWidget(self.py_height_entry, 7, 1)
 
 
         self.layout.addStretch()
         self.layout.addStretch()
 
 

+ 12 - 12
flatcamTools/ToolPanelize.py

@@ -126,6 +126,18 @@ class Panelize(FlatCAMTool):
         )
         )
         form_layout.addRow(self.rows_label, self.rows)
         form_layout.addRow(self.rows_label, self.rows)
 
 
+        ## Type of resulting Panel object
+        self.panel_type_radio = RadioSet([{'label': 'Gerber', 'value': 'gerber'},
+                                     {'label': 'Geometry', 'value': 'geometry'}])
+        self.panel_type_label = QtWidgets.QLabel("Panel Type:")
+        self.panel_type_label.setToolTip(
+            "Choose the type of object for the panel object:\n"
+            "- Geometry\n"
+            "- Gerber"
+        )
+        form_layout.addRow(self.panel_type_label)
+        form_layout.addRow(self.panel_type_radio)
+
         ## Constrains
         ## Constrains
         self.constrain_cb = FCCheckBox("Constrain panel within:")
         self.constrain_cb = FCCheckBox("Constrain panel within:")
         self.constrain_cb.setToolTip(
         self.constrain_cb.setToolTip(
@@ -156,18 +168,6 @@ class Panelize(FlatCAMTool):
         self.constrain_sel = OptionalInputSection(
         self.constrain_sel = OptionalInputSection(
             self.constrain_cb, [self.x_width_lbl, self.x_width_entry, self.y_height_lbl, self.y_height_entry])
             self.constrain_cb, [self.x_width_lbl, self.x_width_entry, self.y_height_lbl, self.y_height_entry])
 
 
-        ## Type of resulting Panel object
-        self.panel_type_radio = RadioSet([{'label': 'Gerber', 'value': 'gerber'},
-                                     {'label': 'Geo', 'value': 'geometry'}])
-        self.panel_type_label = QtWidgets.QLabel("Panel Type:")
-        self.panel_type_label.setToolTip(
-            "Choose the type of object for the panel object:\n"
-            "- Geometry\n"
-            "- Gerber"
-        )
-        form_layout.addRow(self.panel_type_label)
-        form_layout.addRow(self.panel_type_radio)
-
         ## Buttons
         ## Buttons
         hlay_2 = QtWidgets.QHBoxLayout()
         hlay_2 = QtWidgets.QHBoxLayout()
         self.layout.addLayout(hlay_2)
         self.layout.addLayout(hlay_2)