- 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

@@ -539,6 +539,10 @@ class App(QtCore.QObject):
self.ui.menuhelp_home.triggered.connect(lambda: webbrowser.open(self.app_url))
self.ui.menuhelp_manual.triggered.connect(lambda: webbrowser.open(self.manual_url))
# Toolbar
self.ui.open_gerber_btn.triggered.connect(self.on_fileopengerber)
self.ui.open_exc_btn.triggered.connect(self.on_fileopenexcellon)
self.ui.open_gcode_btn.triggered.connect(self.on_fileopengcode)
self.ui.save_btn.triggered.connect(self.on_file_saveprojectas)
self.ui.zoom_fit_btn.triggered.connect(self.on_zoom_fit)
self.ui.zoom_in_btn.triggered.connect(lambda: self.plotcanvas.zoom(1.5))
self.ui.zoom_out_btn.triggered.connect(lambda: self.plotcanvas.zoom(1 / 1.5))
@@ -569,10 +573,12 @@ class App(QtCore.QObject):
### Tools and Plugins ###
#########################
self.dblsidedtool = DblSidedTool(self)
self.dblsidedtool.install()
self.dblsidedtool.install(icon=QtGui.QIcon('share:doubleside16.png'))
self.measeurement_tool = Measurement(self)
self.measeurement_tool.install()
self.measeurement_tool.install(icon=QtGui.QIcon('share:measure16.png'))
self.ui.measure_btn.triggered.connect(self.measeurement_tool.run)
self.draw = FlatCAMDraw(self, disabled=True)