- fixed tools shortcuts not working anymore due of the new toogle parameter for the .run().
This commit is contained in:
parent
a4ae0f65ca
commit
ebdcf0bbba
@ -1822,36 +1822,36 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
|||||||
|
|
||||||
# Calculator Tool
|
# Calculator Tool
|
||||||
if key == QtCore.Qt.Key_C:
|
if key == QtCore.Qt.Key_C:
|
||||||
self.app.calculator_tool.run()
|
self.app.calculator_tool.run(toggle=True)
|
||||||
|
|
||||||
# 2-Sided PCB Tool
|
# 2-Sided PCB Tool
|
||||||
if key == QtCore.Qt.Key_D:
|
if key == QtCore.Qt.Key_D:
|
||||||
self.app.dblsidedtool.run()
|
self.app.dblsidedtool.run(toggle=True)
|
||||||
return
|
return
|
||||||
|
|
||||||
# Solder Paste Dispensing Tool
|
# Solder Paste Dispensing Tool
|
||||||
if key == QtCore.Qt.Key_K:
|
if key == QtCore.Qt.Key_K:
|
||||||
self.app.paste_tool.run()
|
self.app.paste_tool.run(toggle=True)
|
||||||
return
|
return
|
||||||
|
|
||||||
# Film Tool
|
# Film Tool
|
||||||
if key == QtCore.Qt.Key_L:
|
if key == QtCore.Qt.Key_L:
|
||||||
self.app.film_tool.run()
|
self.app.film_tool.run(toggle=True)
|
||||||
return
|
return
|
||||||
|
|
||||||
# Non-Copper Clear Tool
|
# Non-Copper Clear Tool
|
||||||
if key == QtCore.Qt.Key_N:
|
if key == QtCore.Qt.Key_N:
|
||||||
self.app.ncclear_tool.run()
|
self.app.ncclear_tool.run(toggle=True)
|
||||||
return
|
return
|
||||||
|
|
||||||
# Paint Tool
|
# Paint Tool
|
||||||
if key == QtCore.Qt.Key_P:
|
if key == QtCore.Qt.Key_P:
|
||||||
self.app.paint_tool.run()
|
self.app.paint_tool.run(toggle=True)
|
||||||
return
|
return
|
||||||
|
|
||||||
# Transformation Tool
|
# Transformation Tool
|
||||||
if key == QtCore.Qt.Key_R:
|
if key == QtCore.Qt.Key_R:
|
||||||
self.app.transform_tool.run()
|
self.app.transform_tool.run(toggle=True)
|
||||||
return
|
return
|
||||||
|
|
||||||
# View Source Object Content
|
# View Source Object Content
|
||||||
@ -1861,12 +1861,12 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
|||||||
|
|
||||||
# Cutout Tool
|
# Cutout Tool
|
||||||
if key == QtCore.Qt.Key_U:
|
if key == QtCore.Qt.Key_U:
|
||||||
self.app.cutout_tool.run()
|
self.app.cutout_tool.run(toggle=True)
|
||||||
return
|
return
|
||||||
|
|
||||||
# Panelize Tool
|
# Panelize Tool
|
||||||
if key == QtCore.Qt.Key_Z:
|
if key == QtCore.Qt.Key_Z:
|
||||||
self.app.panelize_tool.run()
|
self.app.panelize_tool.run(toggle=True)
|
||||||
return
|
return
|
||||||
|
|
||||||
# Toggle Fullscreen
|
# Toggle Fullscreen
|
||||||
|
@ -15,6 +15,7 @@ CAD program, and create G-Code for Isolation routing.
|
|||||||
- further work in internationalization, added a fallback to English language in case there is no translation for a string
|
- further work in internationalization, added a fallback to English language in case there is no translation for a string
|
||||||
- fix for issue #262: when doing Edit-> Save & Close Editor on a Geometry that is not generated through first entering into an Editor, the geometry disappear
|
- fix for issue #262: when doing Edit-> Save & Close Editor on a Geometry that is not generated through first entering into an Editor, the geometry disappear
|
||||||
- finished preparing for internationalization for the files: camlib and objectColletion
|
- finished preparing for internationalization for the files: camlib and objectColletion
|
||||||
|
- fixed tools shortcuts not working anymore due of the new toogle parameter for the .run().
|
||||||
|
|
||||||
7.03.2019
|
7.03.2019
|
||||||
|
|
||||||
|
@ -393,7 +393,7 @@ class ToolTransform(FlatCAMTool):
|
|||||||
self.app.ui.notebook.setTabText(2, _tr("Transform Tool"))
|
self.app.ui.notebook.setTabText(2, _tr("Transform Tool"))
|
||||||
|
|
||||||
def install(self, icon=None, separator=None, **kwargs):
|
def install(self, icon=None, separator=None, **kwargs):
|
||||||
FlatCAMTool.install(self, icon, separator, shortcut='ALT+T', **kwargs)
|
FlatCAMTool.install(self, icon, separator, shortcut='ALT+R', **kwargs)
|
||||||
|
|
||||||
def set_tool_ui(self):
|
def set_tool_ui(self):
|
||||||
## Initialize form
|
## Initialize form
|
||||||
|
Loading…
Reference in New Issue
Block a user