- minor UI changes for Gerber UI

- ~~after an object move, the apertures plotted shapes are deleted from canvas and the 'mark all' button is deselected~~
- after move tool action or any other transform (rotate, skew, scale, mirror, offset), the plotted apertures are kept plotted.
- changing units now will convert all the default values from one unit type to another
- prettified the selection shape and the moving shape
- initial work in object hovering shape
This commit is contained in:
Marius Stanciu
2019-03-04 03:47:19 +02:00
parent d79d6cf2bc
commit 06fb48eb6a
16 changed files with 373 additions and 182 deletions

View File

@@ -1952,10 +1952,10 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
# Change Units
if key == QtCore.Qt.Key_Q:
if self.app.options["units"] == 'MM':
self.app.ui.general_options_form.general_app_group.units_radio.set_value("IN")
if self.app.defaults["units"] == 'MM':
self.app.ui.general_defaults_form.general_app_group.units_radio.set_value("IN")
else:
self.app.ui.general_options_form.general_app_group.units_radio.set_value("MM")
self.app.ui.general_defaults_form.general_app_group.units_radio.set_value("MM")
self.app.on_toggle_units()
# Rotate Object by 90 degree CW
@@ -3096,6 +3096,7 @@ class GeneralGUISetGroupUI(OptionsGroupUI):
del settings
self.app.inform.emit("[success] GUI settings deleted ...")
class GeneralAppPrefGroupUI(OptionsGroupUI):
def __init__(self, parent=None):
super(GeneralAppPrefGroupUI, self).__init__(self)