- fixed issues in the Tools Database due of recent changes in how the data structure is created
- made sure that the right tools go only to the intended use, in Tools Database otherwise an error status message is created and Tools DB is closed on adding a wrong tool - fixed the usage for Tools Database in Unix-like OS's - done some modest refactoring - fixed the Search and Add feature in Geometry Object UI
This commit is contained in:
@@ -1093,9 +1093,9 @@ class GeometryObjectUI(ObjectUI):
|
||||
|
||||
bhlay = QtWidgets.QHBoxLayout()
|
||||
|
||||
self.addtool_btn = QtWidgets.QPushButton(_('Search and Add'))
|
||||
self.addtool_btn.setIcon(QtGui.QIcon(self.app.resource_location + '/plus16.png'))
|
||||
self.addtool_btn.setToolTip(
|
||||
self.search_and_add_btn = QtWidgets.QPushButton(_('Search and Add'))
|
||||
self.search_and_add_btn.setIcon(QtGui.QIcon(self.app.resource_location + '/plus16.png'))
|
||||
self.search_and_add_btn.setToolTip(
|
||||
_("Add a new tool to the Tool Table\n"
|
||||
"with the diameter specified above.")
|
||||
)
|
||||
@@ -1109,7 +1109,7 @@ class GeometryObjectUI(ObjectUI):
|
||||
"Menu: Options -> Tools Database")
|
||||
)
|
||||
|
||||
bhlay.addWidget(self.addtool_btn)
|
||||
bhlay.addWidget(self.search_and_add_btn)
|
||||
bhlay.addWidget(self.addtool_from_db_btn)
|
||||
|
||||
grid1.addLayout(bhlay, 5, 0, 1, 2)
|
||||
|
||||
Reference in New Issue
Block a user