- in TCL Shell removed the line that setFocus after the item is disabled

(this is pointless)
- added separators between groups of menu items
- added icons for the Drawing -> Paint and for the Drawing - > Buffer
- added ability to add icons for the Tools
- added icons to the current tools (Dblsided Tool, Measurement Tool)
- added buttons in the toolbar for: Open Gerber, Open Excellon,
Open Gcode and Save Project As
- added button in Tools toolbar for Measurement tool
- added separators in the toolbar
- organized the toolbar buttons in multiple toolbars that can be disabled
with right click on the toolbar
- added names for the toolbars where they were not present
This commit is contained in:
Marius Stanciu
2018-05-29 16:48:06 +03:00
parent b85c490256
commit e1c8eaafa9
11 changed files with 77 additions and 28 deletions

View File

@@ -32,8 +32,11 @@ class FlatCAMTool(QtGui.QWidget):
self.menuAction = None
def install(self):
self.menuAction = self.app.ui.menutool.addAction(self.toolName)
def install(self, icon=None):
if icon is None:
self.menuAction = self.app.ui.menutool.addAction(self.toolName)
else:
self.menuAction = self.app.ui.menutool.addAction(icon, self.toolName)
self.menuAction.triggered.connect(self.run)
def run(self):