- 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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user