- added option to run a script from the context menu of the sys tray icon. Changed the color of the sys tray icon to a green one so it will be visible on light and dark themes
This commit is contained in:
parent
2f9ad61819
commit
04b3b8585f
|
@ -400,7 +400,8 @@ class App(QtCore.QObject):
|
||||||
# #################################################################
|
# #################################################################
|
||||||
|
|
||||||
self.parent_w = QtWidgets.QWidget()
|
self.parent_w = QtWidgets.QWidget()
|
||||||
self.trayIcon = FlatCAMSystemTray(app=self, icon=QtGui.QIcon('share/flatcam_icon32.png'), parent=self.parent_w)
|
self.trayIcon = FlatCAMSystemTray(app=self, icon=QtGui.QIcon('share/flatcam_icon32_green.png'),
|
||||||
|
parent=self.parent_w)
|
||||||
|
|
||||||
# #############################################################################
|
# #############################################################################
|
||||||
# ############################## Data #########################################
|
# ############################## Data #########################################
|
||||||
|
|
|
@ -18,6 +18,7 @@ CAD program, and create G-Code for Isolation routing.
|
||||||
- added possibility to edit the custom keywords used by the autocompleter (in Tcl Shell and in the Code Editor). It is done in the Edit -> Preferences -> Utilities
|
- added possibility to edit the custom keywords used by the autocompleter (in Tcl Shell and in the Code Editor). It is done in the Edit -> Preferences -> Utilities
|
||||||
- added a new setting in Edit -> Preferences -> General -> GUI Settings -> Textbox Font which control the font on the texbox GUI elements
|
- added a new setting in Edit -> Preferences -> General -> GUI Settings -> Textbox Font which control the font on the texbox GUI elements
|
||||||
- fixed issue with the sys tray icon not hiding after application close
|
- fixed issue with the sys tray icon not hiding after application close
|
||||||
|
- added option to run a script from the context menu of the sys tray icon. Changed the color of the sys tray icon to a green one so it will be visible on light and dark themes
|
||||||
|
|
||||||
17.09.2019
|
17.09.2019
|
||||||
|
|
||||||
|
|
|
@ -8211,6 +8211,16 @@ class FlatCAMSystemTray(QtWidgets.QSystemTrayIcon):
|
||||||
|
|
||||||
menu = QtWidgets.QMenu(parent)
|
menu = QtWidgets.QMenu(parent)
|
||||||
|
|
||||||
|
menu_runscript = QtWidgets.QAction(QtGui.QIcon('share/script16.png'), '%s' % _('Run Script ...'), self)
|
||||||
|
menu_runscript.setToolTip(
|
||||||
|
_("Will run the opened Tcl Script thus\n"
|
||||||
|
"enabling the automation of certain\n"
|
||||||
|
"functions of FlatCAM.")
|
||||||
|
)
|
||||||
|
menu.addAction(menu_runscript)
|
||||||
|
|
||||||
|
menu.addSeparator()
|
||||||
|
|
||||||
menu_open = menu.addMenu(QtGui.QIcon('share/folder32_bis.png'), _('Open'))
|
menu_open = menu.addMenu(QtGui.QIcon('share/folder32_bis.png'), _('Open'))
|
||||||
|
|
||||||
# Open Project ...
|
# Open Project ...
|
||||||
|
@ -8238,6 +8248,7 @@ class FlatCAMSystemTray(QtWidgets.QSystemTrayIcon):
|
||||||
exitAction.setIcon(QtGui.QIcon('share/power16.png'))
|
exitAction.setIcon(QtGui.QIcon('share/power16.png'))
|
||||||
self.setContextMenu(menu)
|
self.setContextMenu(menu)
|
||||||
|
|
||||||
|
menu_runscript.triggered.connect(self.app.on_filerunscript)
|
||||||
menu_openproject.triggered.connect(self.app.on_file_openproject)
|
menu_openproject.triggered.connect(self.app.on_file_openproject)
|
||||||
menu_opengerber.triggered.connect(self.app.on_fileopengerber)
|
menu_opengerber.triggered.connect(self.app.on_fileopengerber)
|
||||||
menu_openexcellon.triggered.connect(self.app.on_fileopenexcellon)
|
menu_openexcellon.triggered.connect(self.app.on_fileopenexcellon)
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 831 B |
Loading…
Reference in New Issue