- 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:
@@ -229,7 +229,7 @@ class FloatEntry(QtWidgets.QLineEdit):
|
||||
|
||||
def set_value(self, val):
|
||||
if val is not None:
|
||||
self.setText("%.6f" % val)
|
||||
self.setText("%.4f" % val)
|
||||
else:
|
||||
self.setText("")
|
||||
|
||||
@@ -267,7 +267,7 @@ class FloatEntry2(QtWidgets.QLineEdit):
|
||||
return float(evaled)
|
||||
|
||||
def set_value(self, val):
|
||||
self.setText("%.6f" % val)
|
||||
self.setText("%.4f" % val)
|
||||
|
||||
def sizeHint(self):
|
||||
default_hint_size = super(FloatEntry2, self).sizeHint()
|
||||
@@ -337,7 +337,10 @@ class FCEntry(QtWidgets.QLineEdit):
|
||||
return str(self.text())
|
||||
|
||||
def set_value(self, val):
|
||||
self.setText(str(val))
|
||||
if type(val) is float:
|
||||
self.setText('%.4f' % val)
|
||||
else:
|
||||
self.setText(str(val))
|
||||
|
||||
def sizeHint(self):
|
||||
default_hint_size = super(FCEntry, self).sizeHint()
|
||||
|
||||
Reference in New Issue
Block a user