소스 검색

- optimized GUI in Alignment Tool

Marius Stanciu 5 년 전
부모
커밋
c915ea8f6d
2개의 변경된 파일5개의 추가작업 그리고 7개의 파일을 삭제
  1. 1 0
      CHANGELOG.md
  2. 4 7
      appTools/ToolAlignObjects.py

+ 1 - 0
CHANGELOG.md

@@ -19,6 +19,7 @@ CHANGELOG for FlatCAM beta
 - made sure the the GUI settings are cleared on each new install
 - added a new signal that is triggered by change in visibility for the Shell Dock and will change the status of the shell label in the status bar. In this way the label will really be changed each time the shell is toggled
 - optimized the GUI in Film Tool
+- optimized GUI in Alignment Tool
 
 6.06.2020
 

+ 4 - 7
appTools/ToolAlignObjects.py

@@ -72,7 +72,7 @@ class AlignObjects(AppTool):
         self.type_obj_radio = RadioSet([
             {"label": _("Gerber"), "value": "grb"},
             {"label": _("Excellon"), "value": "exc"},
-        ], orientation='vertical', stretch=False)
+        ])
 
         grid0.addWidget(self.type_obj_radio, 3, 0, 1, 2)
 
@@ -95,7 +95,7 @@ class AlignObjects(AppTool):
 
         grid0.addWidget(QtWidgets.QLabel(''), 6, 0, 1, 2)
 
-        self.aligned_label = QtWidgets.QLabel('<b>%s:</b>' % _("TARGET object"))
+        self.aligned_label = QtWidgets.QLabel('<b>%s:</b>' % _("DESTINATION object"))
         self.aligned_label.setToolTip(
             _("Specify the type of object to be aligned to.\n"
               "It can be of type: Gerber or Excellon.\n"
@@ -108,7 +108,7 @@ class AlignObjects(AppTool):
         self.type_aligner_obj_radio = RadioSet([
             {"label": _("Gerber"), "value": "grb"},
             {"label": _("Excellon"), "value": "exc"},
-        ], orientation='vertical', stretch=False)
+        ])
 
         grid0.addWidget(self.type_aligner_obj_radio, 8, 0, 1, 2)
 
@@ -142,10 +142,7 @@ class AlignObjects(AppTool):
             [
                 {'label': _('Single Point'), 'value': 'sp'},
                 {'label': _('Dual Point'), 'value': 'dp'}
-            ],
-            orientation='vertical',
-            stretch=False
-        )
+            ])
 
         grid0.addWidget(self.a_type_lbl, 12, 0, 1, 2)
         grid0.addWidget(self.a_type_radio, 13, 0, 1, 2)