- 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

@@ -244,7 +244,7 @@ class GerberObjectUI(ObjectUI):
# Scale Button
self.scale_aperture_button = QtWidgets.QPushButton('Scale')
self.scale_aperture_button.setToolTip(
"Perform scaling operation."
"Perform scaling operation on the selected apertures."
)
self.scale_aperture_button.setFixedWidth(50)
self.transform_aperture_grid.addWidget(self.scale_aperture_button, 0, 2)
@@ -265,7 +265,7 @@ class GerberObjectUI(ObjectUI):
# Buffer Button
self.buffer_aperture_button = QtWidgets.QPushButton('Buffer')
self.buffer_aperture_button.setToolTip(
"Perform scaling operation."
"Perform buffer operation on the selected apertures."
)
self.buffer_aperture_button.setFixedWidth(50)
self.transform_aperture_grid.addWidget(self.buffer_aperture_button, 1, 2)
@@ -275,8 +275,7 @@ class GerberObjectUI(ObjectUI):
self.new_grb_label = QtWidgets.QLabel("<b>Generate new Gerber Object:</b>")
self.new_grb_label.setToolTip(
"Will generate a new Gerber object from the changed apertures.\n"
"This new object can then be isolated etc."
"Will generate a new Gerber object from the changed apertures."
)
new_hlay.addWidget(self.new_grb_label)