- changes in the Preferences UI for NCC and Paint Tool in Tool Dia entry field
This commit is contained in:
parent
3674828b2a
commit
f7eaf62606
|
@ -15,6 +15,7 @@ CAD program, and create G-Code for Isolation routing.
|
|||
- in Transform Tool adjusted the GUI
|
||||
- fixed some decimals issues in NCC Tool, Paint Tool and Excellon Editor (they were still using the harcoded values)
|
||||
- some small updates in the NCC Tool
|
||||
- changes in the Preferences UI for NCC and Paint Tool in Tool Dia entry field
|
||||
|
||||
29.12.2019
|
||||
|
||||
|
|
|
@ -367,12 +367,15 @@ class IntEntry(QtWidgets.QLineEdit):
|
|||
|
||||
|
||||
class FCEntry(QtWidgets.QLineEdit):
|
||||
def __init__(self, decimals=None, alignment=None, parent=None):
|
||||
def __init__(self, decimals=None, alignment=None, border_color=None, parent=None):
|
||||
super(FCEntry, self).__init__(parent)
|
||||
self.readyToEdit = True
|
||||
self.editingFinished.connect(self.on_edit_finished)
|
||||
self.decimals = decimals if decimals is not None else 4
|
||||
|
||||
if border_color:
|
||||
self.setStyleSheet("QLineEdit {border: 1px solid %s;}" % border_color)
|
||||
|
||||
if alignment:
|
||||
if alignment == 'center':
|
||||
align_val = QtCore.Qt.AlignHCenter
|
||||
|
|
|
@ -5034,7 +5034,8 @@ class ToolsNCCPrefGroupUI(OptionsGroupUI):
|
|||
"Valid values: 0.3, 1.0")
|
||||
)
|
||||
grid0.addWidget(ncctdlabel, 0, 0)
|
||||
self.ncc_tool_dia_entry = FCEntry()
|
||||
self.ncc_tool_dia_entry = FCEntry(border_color='#0069A9')
|
||||
self.ncc_tool_dia_entry.setPlaceholderText(_("Comma separated values"))
|
||||
grid0.addWidget(self.ncc_tool_dia_entry, 0, 1)
|
||||
|
||||
# Tool Type Radio Button
|
||||
|
@ -5545,7 +5546,8 @@ class ToolsPaintPrefGroupUI(OptionsGroupUI):
|
|||
)
|
||||
grid0.addWidget(ptdlabel, 0, 0)
|
||||
|
||||
self.painttooldia_entry = FCEntry()
|
||||
self.painttooldia_entry = FCEntry(border_color='#0069A9')
|
||||
self.painttooldia_entry.setPlaceholderText(_("Comma separated values"))
|
||||
|
||||
grid0.addWidget(self.painttooldia_entry, 0, 1)
|
||||
|
||||
|
|
Loading…
Reference in New Issue