Menu icons location changes restored and will be addressed in future update with better mechanism. FCLabel calls updated where possible based on new method parameters

This commit is contained in:
Ali Khalil
2022-04-18 11:32:33 +03:00
parent 84cdc87030
commit ce4b43bd36
45 changed files with 323 additions and 385 deletions

View File

@@ -62,20 +62,6 @@ class MainGUI(QtWidgets.QMainWindow):
self.app = app
self.decimals = self.app.decimals
# The menu bar theming differs between operating systems
# Windows menu theme is controlled by the application
# MacOS menu theme is controlled by OS
if sys.platform == 'win32':
if self.app.options["global_theme"] == 'light':
self.menu_resource_location = 'assets/resources'
else:
self.menu_resource_location = 'assets/resources/dark_resources'
else:
if darkdetect.isLight():
self.menu_resource_location = 'assets/resources'
else:
self.menu_resource_location = 'assets/resources/dark_resources'
# Divine icon pack by Ipapun @ finicons.com
# #######################################################################
@@ -88,7 +74,7 @@ class MainGUI(QtWidgets.QMainWindow):
self.menu = self.menuBar()
self.menu_toggle_nb = QtGui.QAction(
QtGui.QIcon(self.menu_resource_location + '/notebook32.png'), _("Toggle Panel"))
QtGui.QIcon(self.app.resource_location + '/notebook32.png'), _("Toggle Panel"))
self.menu_toggle_nb.setToolTip(
_("Toggle Panel")
)
@@ -104,7 +90,7 @@ class MainGUI(QtWidgets.QMainWindow):
self.menufile.setToolTipsVisible(True)
# New Project
self.menufilenewproject = QtGui.QAction(QtGui.QIcon(self.menu_resource_location + '/file16.png'),
self.menufilenewproject = QtGui.QAction(QtGui.QIcon(self.app.resource_location + '/file16.png'),
'%s...\t%s' % (_('New Project'), _("Ctrl+N")), self)
self.menufilenewproject.setToolTip(
_("Will create a new, blank project")
@@ -112,88 +98,88 @@ class MainGUI(QtWidgets.QMainWindow):
self.menufile.addAction(self.menufilenewproject)
# New Category (Excellon, Geometry)
self.menufilenew = self.menufile.addMenu(QtGui.QIcon(self.menu_resource_location + '/file16.png'), _('New'))
self.menufilenew = self.menufile.addMenu(QtGui.QIcon(self.app.resource_location + '/file16.png'), _('New'))
self.menufilenew.setToolTipsVisible(True)
self.menufilenewgeo = self.menufilenew.addAction(
QtGui.QIcon(self.menu_resource_location + '/new_file_geo16.png'), '%s\t%s' % (_('Geometry'), _('N')))
QtGui.QIcon(self.app.resource_location + '/new_file_geo16.png'), '%s\t%s' % (_('Geometry'), _('N')))
self.menufilenewgeo.setToolTip(
_("Will create a new, empty Geometry Object.")
)
self.menufilenewgrb = self.menufilenew.addAction(
QtGui.QIcon(self.menu_resource_location + '/new_file_grb16.png'), '%s\t%s' % (_('Gerber'), _('B')))
QtGui.QIcon(self.app.resource_location + '/new_file_grb16.png'), '%s\t%s' % (_('Gerber'), _('B')))
self.menufilenewgrb.setToolTip(
_("Will create a new, empty Gerber Object.")
)
self.menufilenewexc = self.menufilenew.addAction(
QtGui.QIcon(self.menu_resource_location + '/new_file_exc16.png'), '%s\t%s' % (_('Excellon'), _('L')))
QtGui.QIcon(self.app.resource_location + '/new_file_exc16.png'), '%s\t%s' % (_('Excellon'), _('L')))
self.menufilenewexc.setToolTip(
_("Will create a new, empty Excellon Object.")
)
self.menufilenew.addSeparator()
self.menufilenewdoc = self.menufilenew.addAction(
QtGui.QIcon(self.menu_resource_location + '/notes16_1.png'), '%s\t%s' % (_('Document'), _('D')))
QtGui.QIcon(self.app.resource_location + '/notes16_1.png'), '%s\t%s' % (_('Document'), _('D')))
self.menufilenewdoc.setToolTip(
_("Will create a new, empty Document Object.")
)
self.menufile_open = self.menufile.addMenu(
QtGui.QIcon(self.menu_resource_location + '/folder32_bis.png'), '%s' % _('Open'))
QtGui.QIcon(self.app.resource_location + '/folder32_bis.png'), '%s' % _('Open'))
self.menufile_open.setToolTipsVisible(True)
# Open Project ...
self.menufileopenproject = QtGui.QAction(
QtGui.QIcon(self.menu_resource_location + '/folder16.png'), '%s...\t%s' % (_('Open Project'), _('Ctrl+O')),
QtGui.QIcon(self.app.resource_location + '/folder16.png'), '%s...\t%s' % (_('Open Project'), _('Ctrl+O')),
self)
self.menufile_open.addAction(self.menufileopenproject)
self.menufile_open.addSeparator()
# Open Gerber ...
self.menufileopengerber = QtGui.QAction(QtGui.QIcon(self.menu_resource_location + '/flatcam_icon24.png'),
self.menufileopengerber = QtGui.QAction(QtGui.QIcon(self.app.resource_location + '/flatcam_icon24.png'),
'%s...\t%s' % (_('Open Gerber'), _('Ctrl+G')), self)
self.menufile_open.addAction(self.menufileopengerber)
# Open Excellon ...
self.menufileopenexcellon = QtGui.QAction(QtGui.QIcon(self.menu_resource_location + '/open_excellon32.png'),
self.menufileopenexcellon = QtGui.QAction(QtGui.QIcon(self.app.resource_location + '/open_excellon32.png'),
'%s...\t%s' % (_('Open Excellon'), _('Ctrl+E')), self)
self.menufile_open.addAction(self.menufileopenexcellon)
# Open G-Code ...
self.menufileopengcode = QtGui.QAction(
QtGui.QIcon(self.menu_resource_location + '/code.png'), '%s...\t%s' % (_('Open G-Code'), ''), self)
QtGui.QIcon(self.app.resource_location + '/code.png'), '%s...\t%s' % (_('Open G-Code'), ''), self)
self.menufile_open.addAction(self.menufileopengcode)
self.menufile_open.addSeparator()
# Open Config File...
self.menufileopenconfig = QtGui.QAction(
QtGui.QIcon(self.menu_resource_location + '/folder16.png'), '%s...\t%s' % (_('Open Config'), ''), self)
QtGui.QIcon(self.app.resource_location + '/folder16.png'), '%s...\t%s' % (_('Open Config'), ''), self)
self.menufile_open.addAction(self.menufileopenconfig)
# Recent
self.recent_projects = self.menufile.addMenu(
QtGui.QIcon(self.menu_resource_location + '/recent_files.png'), _("Recent projects"))
QtGui.QIcon(self.app.resource_location + '/recent_files.png'), _("Recent projects"))
self.recent = self.menufile.addMenu(
QtGui.QIcon(self.menu_resource_location + '/recent_files.png'), _("Recent files"))
QtGui.QIcon(self.app.resource_location + '/recent_files.png'), _("Recent files"))
# SAVE category
self.menufile_save = self.menufile.addMenu(QtGui.QIcon(self.menu_resource_location + '/save_as.png'), _('Save'))
self.menufile_save = self.menufile.addMenu(QtGui.QIcon(self.app.resource_location + '/save_as.png'), _('Save'))
# Save Project
self.menufilesaveproject = QtGui.QAction(
QtGui.QIcon(self.menu_resource_location + '/floppy16.png'), '%s...\t%s' % (_('Save Project'), _('Ctrl+S')),
QtGui.QIcon(self.app.resource_location + '/floppy16.png'), '%s...\t%s' % (_('Save Project'), _('Ctrl+S')),
self)
self.menufile_save.addAction(self.menufilesaveproject)
# Save Project As ...
self.menufilesaveprojectas = QtGui.QAction(QtGui.QIcon(self.menu_resource_location + '/floppy16.png'),
self.menufilesaveprojectas = QtGui.QAction(QtGui.QIcon(self.app.resource_location + '/floppy16.png'),
'%s...\t%s' % (_('Save Project As'), _('Ctrl+Shift+S')), self)
self.menufile_save.addAction(self.menufilesaveprojectas)
# Save Project Copy ...
# self.menufilesaveprojectcopy = QtGui.QAction(
# QtGui.QIcon(self.menu_resource_location + '/floppy16.png'), _('Save Project Copy ...'), self)
# QtGui.QIcon(self.app.resource_location + '/floppy16.png'), _('Save Project Copy ...'), self)
# self.menufile_save.addAction(self.menufilesaveprojectcopy)
self.menufile_save.addSeparator()
@@ -203,18 +189,18 @@ class MainGUI(QtWidgets.QMainWindow):
# Scripting
self.menufile_scripting = self.menufile.addMenu(
QtGui.QIcon(self.menu_resource_location + '/script16.png'), _('Scripting'))
QtGui.QIcon(self.app.resource_location + '/script16.png'), _('Scripting'))
self.menufile_scripting.setToolTipsVisible(True)
self.menufilenewscript = QtGui.QAction(QtGui.QIcon(self.menu_resource_location + '/script_new16.png'),
self.menufilenewscript = QtGui.QAction(QtGui.QIcon(self.app.resource_location + '/script_new16.png'),
'%s...\t%s' % (_('New Script'), ''), self)
self.menufileopenscript = QtGui.QAction(QtGui.QIcon(self.menu_resource_location + '/open_script32.png'),
self.menufileopenscript = QtGui.QAction(QtGui.QIcon(self.app.resource_location + '/open_script32.png'),
'%s...\t%s' % (_('Open Script'), ''), self)
self.menufileopenscriptexample = QtGui.QAction(
QtGui.QIcon(self.menu_resource_location + '/open_script32.png'),
QtGui.QIcon(self.app.resource_location + '/open_script32.png'),
'%s...\t%s' % (_('Open Example'), ''), self)
self.menufilerunscript = QtGui.QAction(
QtGui.QIcon(self.menu_resource_location + '/script16.png'),
QtGui.QIcon(self.app.resource_location + '/script16.png'),
'%s...\t%s' % (_('Run Script'), _('Shift+S')), self)
self.menufilerunscript.setToolTip(
_("Will run the opened Tcl Script thus\n"
@@ -232,51 +218,51 @@ class MainGUI(QtWidgets.QMainWindow):
# Import ...
self.menufileimport = self.menufile.addMenu(
QtGui.QIcon(self.menu_resource_location + '/import.png'), _('Import'))
QtGui.QIcon(self.app.resource_location + '/import.png'), _('Import'))
self.menufileimportsvg = QtGui.QAction(
QtGui.QIcon(self.menu_resource_location + '/svg16.png'),
QtGui.QIcon(self.app.resource_location + '/svg16.png'),
'%s...\t%s' % (_('SVG as Geometry Object'), ''), self)
self.menufileimport.addAction(self.menufileimportsvg)
self.menufileimportsvg_as_gerber = QtGui.QAction(
QtGui.QIcon(self.menu_resource_location + '/svg16.png'),
QtGui.QIcon(self.app.resource_location + '/svg16.png'),
'%s...\t%s' % (_('SVG as Gerber Object'), ''), self)
self.menufileimport.addAction(self.menufileimportsvg_as_gerber)
self.menufileimport.addSeparator()
self.menufileimportdxf = QtGui.QAction(
QtGui.QIcon(self.menu_resource_location + '/dxf16.png'),
QtGui.QIcon(self.app.resource_location + '/dxf16.png'),
'%s...\t%s' % (_('DXF as Geometry Object'), ''), self)
self.menufileimport.addAction(self.menufileimportdxf)
self.menufileimportdxf_as_gerber = QtGui.QAction(
QtGui.QIcon(self.menu_resource_location + '/dxf16.png'),
QtGui.QIcon(self.app.resource_location + '/dxf16.png'),
'%s...\t%s' % (_('DXF as Gerber Object'), ''), self)
self.menufileimport.addAction(self.menufileimportdxf_as_gerber)
self.menufileimport.addSeparator()
self.menufileimport_hpgl2_as_geo = QtGui.QAction(
QtGui.QIcon(self.menu_resource_location + '/dxf16.png'),
QtGui.QIcon(self.app.resource_location + '/dxf16.png'),
'%s...\t%s' % (_('HPGL2 as Geometry Object'), ''), self)
self.menufileimport.addAction(self.menufileimport_hpgl2_as_geo)
self.menufileimport.addSeparator()
# Export ...
self.menufileexport = self.menufile.addMenu(
QtGui.QIcon(self.menu_resource_location + '/export.png'), _('Export'))
QtGui.QIcon(self.app.resource_location + '/export.png'), _('Export'))
self.menufileexport.setToolTipsVisible(True)
self.menufileexportsvg = QtGui.QAction(
QtGui.QIcon(self.menu_resource_location + '/export.png'),
QtGui.QIcon(self.app.resource_location + '/export.png'),
'%s...\t%s' % (_('Export SVG'), ''), self)
self.menufileexport.addAction(self.menufileexportsvg)
self.menufileexportdxf = QtGui.QAction(
QtGui.QIcon(self.menu_resource_location + '/export.png'),
QtGui.QIcon(self.app.resource_location + '/export.png'),
'%s...\t%s' % (_('Export DXF'), ''), self)
self.menufileexport.addAction(self.menufileexportdxf)
self.menufileexport.addSeparator()
self.menufileexportpng = QtGui.QAction(
QtGui.QIcon(self.menu_resource_location + '/export_png32.png'),
QtGui.QIcon(self.app.resource_location + '/export_png32.png'),
'%s...\t%s' % (_('Export PNG'), ''), self)
self.menufileexportpng.setToolTip(
_("Will export an image in PNG format,\n"
@@ -288,7 +274,7 @@ class MainGUI(QtWidgets.QMainWindow):
self.menufileexport.addSeparator()
self.menufileexportexcellon = QtGui.QAction(
QtGui.QIcon(self.menu_resource_location + '/drill32.png'),
QtGui.QIcon(self.app.resource_location + '/drill32.png'),
'%s...\t%s' % (_('Export Excellon'), ''), self)
self.menufileexportexcellon.setToolTip(
_("Will export an Excellon Object as Excellon file,\n"
@@ -298,7 +284,7 @@ class MainGUI(QtWidgets.QMainWindow):
self.menufileexport.addAction(self.menufileexportexcellon)
self.menufileexportgerber = QtGui.QAction(
QtGui.QIcon(self.menu_resource_location + '/flatcam_icon32.png'),
QtGui.QIcon(self.app.resource_location + '/flatcam_icon32.png'),
'%s...\t%s' % (_('Export Gerber'), ''), self)
self.menufileexportgerber.setToolTip(
_("Will export an Gerber Object as Gerber file,\n"
@@ -311,18 +297,18 @@ class MainGUI(QtWidgets.QMainWindow):
self.menufile.addSeparator()
self.menufile_backup = self.menufile.addMenu(
QtGui.QIcon(self.menu_resource_location + '/backup24.png'), _('Backup'))
QtGui.QIcon(self.app.resource_location + '/backup24.png'), _('Backup'))
# Import Preferences
self.menufileimportpref = QtGui.QAction(
QtGui.QIcon(self.menu_resource_location + '/backup_import24.png'),
QtGui.QIcon(self.app.resource_location + '/backup_import24.png'),
'%s...\t%s' % (_('Import Preferences from file'), ''), self
)
self.menufile_backup.addAction(self.menufileimportpref)
# Export Preferences
self.menufileexportpref = QtGui.QAction(
QtGui.QIcon(self.menu_resource_location + '/backup_export24.png'),
QtGui.QIcon(self.app.resource_location + '/backup_export24.png'),
'%s...\t%s' % (_('Export Preferences to file'), ''), self)
self.menufile_backup.addAction(self.menufileexportpref)
@@ -331,14 +317,14 @@ class MainGUI(QtWidgets.QMainWindow):
# Save Defaults
self.menufilesavedefaults = QtGui.QAction(
QtGui.QIcon(self.menu_resource_location + '/defaults.png'),
QtGui.QIcon(self.app.resource_location + '/defaults.png'),
'%s\t%s' % (_('Save Preferences'), ''), self)
self.menufile_backup.addAction(self.menufilesavedefaults)
# Separator
self.menufile.addSeparator()
self.menufile_print = QtGui.QAction(
QtGui.QIcon(self.menu_resource_location + '/printer32.png'),
QtGui.QIcon(self.app.resource_location + '/printer32.png'),
'%s\t%s' % (_('Print (PDF)'), _('Ctrl+P')))
self.menufile.addAction(self.menufile_print)
@@ -347,7 +333,7 @@ class MainGUI(QtWidgets.QMainWindow):
# Quit
self.menufile_exit = QtGui.QAction(
QtGui.QIcon(self.menu_resource_location + '/power16.png'),
QtGui.QIcon(self.app.resource_location + '/power16.png'),
'%s\t%s' % (_('Exit'), ''), self)
# exitAction.setShortcut('Ctrl+Q')
# exitAction.setStatusTip('Exit application')
@@ -360,10 +346,10 @@ class MainGUI(QtWidgets.QMainWindow):
# Separator
self.menuedit.addSeparator()
self.menueditedit = self.menuedit.addAction(
QtGui.QIcon(self.menu_resource_location + '/edit16.png'),
QtGui.QIcon(self.app.resource_location + '/edit16.png'),
'%s\t%s' % (_('Edit Object'), _('E')))
self.menueditok = self.menuedit.addAction(
QtGui.QIcon(self.menu_resource_location + '/power16.png'),
QtGui.QIcon(self.app.resource_location + '/power16.png'),
'%s\t%s' % (_('Exit Editor'), _('Ctrl+S')))
# adjust the initial state of the menu entries related to the editor
@@ -374,17 +360,17 @@ class MainGUI(QtWidgets.QMainWindow):
# Separator
self.menuedit.addSeparator()
self.menuedit_convert = self.menuedit.addMenu(
QtGui.QIcon(self.menu_resource_location + '/convert24.png'), _('Conversion'))
QtGui.QIcon(self.app.resource_location + '/convert24.png'), _('Conversion'))
self.menuedit_convert_sg2mg = self.menuedit_convert.addAction(
QtGui.QIcon(self.menu_resource_location + '/convert24.png'),
QtGui.QIcon(self.app.resource_location + '/convert24.png'),
'%s\t%s' % (_('Convert Single to MultiGeo'), ''))
self.menuedit_convert_sg2mg.setToolTip(
_("Will convert a Geometry object from single_geometry type\n"
"to a multi_geometry type.")
)
self.menuedit_convert_mg2sg = self.menuedit_convert.addAction(
QtGui.QIcon(self.menu_resource_location + '/convert24.png'),
QtGui.QIcon(self.app.resource_location + '/convert24.png'),
'%s\t%s' % (_('Convert Multi to SingleGeo'), ''))
self.menuedit_convert_mg2sg.setToolTip(
_("Will convert a Geometry object from multi_geometry type\n"
@@ -393,21 +379,21 @@ class MainGUI(QtWidgets.QMainWindow):
# Separator
self.menuedit_convert.addSeparator()
self.menueditconvert_any2geo = self.menuedit_convert.addAction(
QtGui.QIcon(self.menu_resource_location + '/copy_geo.png'),
QtGui.QIcon(self.app.resource_location + '/copy_geo.png'),
'%s\t%s' % (_('Convert Any to Geo'), ''))
self.menueditconvert_any2gerber = self.menuedit_convert.addAction(
QtGui.QIcon(self.menu_resource_location + '/copy_geo.png'),
QtGui.QIcon(self.app.resource_location + '/copy_geo.png'),
'%s\t%s' % (_('Convert Any to Gerber'), ''))
self.menueditconvert_any2excellon = self.menuedit_convert.addAction(
QtGui.QIcon(self.menu_resource_location + '/copy_geo.png'),
QtGui.QIcon(self.app.resource_location + '/copy_geo.png'),
'%s\t%s' % (_('Convert Any to Excellon'), ''))
self.menuedit_convert.setToolTipsVisible(True)
# ############################ EDIT -> JOIN ######################################################
self.menuedit_join = self.menuedit.addMenu(
QtGui.QIcon(self.menu_resource_location + '/join16.png'), _('Join Objects'))
QtGui.QIcon(self.app.resource_location + '/join16.png'), _('Join Objects'))
self.menuedit_join2geo = self.menuedit_join.addAction(
QtGui.QIcon(self.menu_resource_location + '/join16.png'),
QtGui.QIcon(self.app.resource_location + '/join16.png'),
'%s\t%s' % (_('Join Geo/Gerber/Exc -> Geo'), ''))
self.menuedit_join2geo.setToolTip(
_("Merge a selection of objects, which can be of type:\n"
@@ -417,13 +403,13 @@ class MainGUI(QtWidgets.QMainWindow):
"into a new combo Geometry object.")
)
self.menuedit_join_exc2exc = self.menuedit_join.addAction(
QtGui.QIcon(self.menu_resource_location + '/join16.png'),
QtGui.QIcon(self.app.resource_location + '/join16.png'),
'%s\t%s' % (_('Join Excellon(s) -> Excellon'), ''))
self.menuedit_join_exc2exc.setToolTip(
_("Merge a selection of Excellon objects into a new combo Excellon object.")
)
self.menuedit_join_grb2grb = self.menuedit_join.addAction(
QtGui.QIcon(self.menu_resource_location + '/join16.png'),
QtGui.QIcon(self.app.resource_location + '/join16.png'),
'%s\t%s' % (_('Join Gerber(s) -> Gerber'), ''))
self.menuedit_join_grb2grb.setToolTip(
_("Merge a selection of Gerber objects into a new combo Gerber object.")
@@ -434,50 +420,50 @@ class MainGUI(QtWidgets.QMainWindow):
# Separator
self.menuedit.addSeparator()
self.menueditcopyobject = self.menuedit.addAction(
QtGui.QIcon(self.menu_resource_location + '/copy.png'),
QtGui.QIcon(self.app.resource_location + '/copy.png'),
'%s\t%s' % (_('Copy'), _('Ctrl+C')))
# Separator
self.menuedit.addSeparator()
self.menueditdelete = self.menuedit.addAction(
QtGui.QIcon(self.menu_resource_location + '/trash16.png'),
QtGui.QIcon(self.app.resource_location + '/trash16.png'),
'%s\t%s' % (_('Delete'), _('DEL')))
# Separator
self.menuedit.addSeparator()
self.menuedit_numeric_move = self.menuedit.addAction(
QtGui.QIcon(self.menu_resource_location + '/move32_bis.png'),
QtGui.QIcon(self.app.resource_location + '/move32_bis.png'),
'%s\t%s' % (_('Num Move'), ''))
self.menueditorigin = self.menuedit.addAction(
QtGui.QIcon(self.menu_resource_location + '/origin16.png'),
QtGui.QIcon(self.app.resource_location + '/origin16.png'),
'%s\t%s' % (_('Set Origin'), _('O')))
self.menuedit_move2origin = self.menuedit.addAction(
QtGui.QIcon(self.menu_resource_location + '/origin2_16.png'),
QtGui.QIcon(self.app.resource_location + '/origin2_16.png'),
'%s\t%s' % (_('Move to Origin'), _('Shift+O')))
self.menuedit_center_in_origin = self.menuedit.addAction(
QtGui.QIcon(self.menu_resource_location + '/origin3_32.png'),
QtGui.QIcon(self.app.resource_location + '/origin3_32.png'),
'%s\t%s' % (_('Custom Origin'), ''))
self.menueditjump = self.menuedit.addAction(
QtGui.QIcon(self.menu_resource_location + '/jump_to16.png'),
QtGui.QIcon(self.app.resource_location + '/jump_to16.png'),
'%s\t%s' % (_('Jump to Location'), _('J')))
self.menueditlocate = self.menuedit.addAction(
QtGui.QIcon(self.menu_resource_location + '/locate16.png'),
QtGui.QIcon(self.app.resource_location + '/locate16.png'),
'%s\t%s' % (_('Locate in Object'), _('Shift+J')))
# Separator
self.menuedit.addSeparator()
self.menuedittoggleunits = self.menuedit.addAction(
QtGui.QIcon(self.menu_resource_location + '/toggle_units16.png'),
QtGui.QIcon(self.app.resource_location + '/toggle_units16.png'),
'%s\t%s' % (_('Toggle Units'), _('Q')))
self.menueditselectall = self.menuedit.addAction(
QtGui.QIcon(self.menu_resource_location + '/select_all.png'),
QtGui.QIcon(self.app.resource_location + '/select_all.png'),
'%s\t%s' % (_('Select All'), _('Ctrl+A')))
# Separator
self.menuedit.addSeparator()
self.menueditpreferences = self.menuedit.addAction(
QtGui.QIcon(self.menu_resource_location + '/pref.png'),
QtGui.QIcon(self.app.resource_location + '/pref.png'),
'%s\t%s' % (_('Preferences'), _('Shift+P')))
# #############################################################################################################
@@ -486,44 +472,44 @@ class MainGUI(QtWidgets.QMainWindow):
self.menuoptions = self.menu.addMenu(_('Options'))
self.menuoptions_transform_rotate = self.menuoptions.addAction(
QtGui.QIcon(self.menu_resource_location + '/rotate.png'),
QtGui.QIcon(self.app.resource_location + '/rotate.png'),
'%s\t%s' % (_("Rotate Selection"), _('Shift+(R)')))
# Separator
self.menuoptions.addSeparator()
self.menuoptions_transform_skewx = self.menuoptions.addAction(
QtGui.QIcon(self.menu_resource_location + '/skewX.png'),
QtGui.QIcon(self.app.resource_location + '/skewX.png'),
'%s\t%s' % (_("Skew on X axis"), _('Shift+X')))
self.menuoptions_transform_skewy = self.menuoptions.addAction(
QtGui.QIcon(self.menu_resource_location + '/skewY.png'),
QtGui.QIcon(self.app.resource_location + '/skewY.png'),
'%s\t%s' % (_("Skew on Y axis"), _('Shift+Y')))
# Separator
self.menuoptions.addSeparator()
self.menuoptions_transform_flipx = self.menuoptions.addAction(
QtGui.QIcon(self.menu_resource_location + '/flipx.png'),
QtGui.QIcon(self.app.resource_location + '/flipx.png'),
'%s\t%s' % (_("Flip on X axis"), _('X')))
self.menuoptions_transform_flipy = self.menuoptions.addAction(
QtGui.QIcon(self.menu_resource_location + '/flipy.png'),
QtGui.QIcon(self.app.resource_location + '/flipy.png'),
'%s\t%s' % (_("Flip on Y axis"), _('Y')))
# Separator
self.menuoptions.addSeparator()
self.menuoptions_view_source = self.menuoptions.addAction(
QtGui.QIcon(self.menu_resource_location + '/source32.png'),
QtGui.QIcon(self.app.resource_location + '/source32.png'),
'%s\t%s' % (_("View source"), _('Alt+S')))
self.menuoptions_tools_db = self.menuoptions.addAction(
QtGui.QIcon(self.menu_resource_location + '/database32.png'),
QtGui.QIcon(self.app.resource_location + '/database32.png'),
'%s\t%s' % (_("Tools Database"), _('Ctrl+D')))
# Separator
self.menuoptions.addSeparator()
# ########################### Options ->Experimental ##########################################################
self.menuoptions_experimental = self.menuoptions.addMenu(
QtGui.QIcon(self.menu_resource_location + '/experiment32.png'), _('Experimental'))
QtGui.QIcon(self.app.resource_location + '/experiment32.png'), _('Experimental'))
self.menuoptions_experimental_3D_area = self.menuoptions_experimental.addAction(
QtGui.QIcon(self.menu_resource_location + '/3D_area32.png'),
QtGui.QIcon(self.app.resource_location + '/3D_area32.png'),
'%s\t%s' % (_('3D Area'), ''))
# Separator
self.menuoptions.addSeparator()
@@ -533,71 +519,71 @@ class MainGUI(QtWidgets.QMainWindow):
# #############################################################################################################
self.menuview = self.menu.addMenu(_('View'))
self.menuviewenable = self.menuview.addAction(
QtGui.QIcon(self.menu_resource_location + '/replot16.png'),
QtGui.QIcon(self.app.resource_location + '/replot16.png'),
'%s\t%s' % (_('Enable all'), _('Alt+1')))
self.menuviewdisableall = self.menuview.addAction(
QtGui.QIcon(self.menu_resource_location + '/clear_plot16.png'),
QtGui.QIcon(self.app.resource_location + '/clear_plot16.png'),
'%s\t%s' % (_('Disable all'), _('Alt+2')))
self.menuviewenableother = self.menuview.addAction(
QtGui.QIcon(self.menu_resource_location + '/replot16.png'),
QtGui.QIcon(self.app.resource_location + '/replot16.png'),
'%s\t%s' % (_('Enable non-selected'), _('Alt+3')))
self.menuviewdisableother = self.menuview.addAction(
QtGui.QIcon(self.menu_resource_location + '/clear_plot16.png'),
QtGui.QIcon(self.app.resource_location + '/clear_plot16.png'),
'%s\t%s' % (_('Disable non-selected'), _('Alt+4')))
# Separator
self.menuview.addSeparator()
self.menuview_zoom_fit = self.menuview.addAction(
QtGui.QIcon(self.menu_resource_location + '/zoom_fit32.png'),
QtGui.QIcon(self.app.resource_location + '/zoom_fit32.png'),
'%s\t%s' % (_("Zoom Fit"), _('V')))
self.menuview_zoom_in = self.menuview.addAction(
QtGui.QIcon(self.menu_resource_location + '/zoom_in32.png'),
QtGui.QIcon(self.app.resource_location + '/zoom_in32.png'),
'%s\t%s' % (_("Zoom In"), _('=')))
self.menuview_zoom_out = self.menuview.addAction(
QtGui.QIcon(self.menu_resource_location + '/zoom_out32.png'),
QtGui.QIcon(self.app.resource_location + '/zoom_out32.png'),
'%s\t%s' % (_("Zoom Out"), _('-')))
self.menuview.addSeparator()
# Replot all
self.menuview_replot = self.menuview.addAction(
QtGui.QIcon(self.menu_resource_location + '/replot32.png'),
QtGui.QIcon(self.app.resource_location + '/replot32.png'),
'%s\t%s' % (_("Redraw All"), _('F5')))
self.menuview.addSeparator()
self.menuview_toggle_code_editor = self.menuview.addAction(
QtGui.QIcon(self.menu_resource_location + '/code_editor32.png'),
QtGui.QIcon(self.app.resource_location + '/code_editor32.png'),
'%s\t%s' % (_('Toggle Code Editor'), _('Shift+E')))
self.menuview.addSeparator()
self.menuview_toggle_fscreen = self.menuview.addAction(
QtGui.QIcon(self.menu_resource_location + '/fscreen32.png'),
QtGui.QIcon(self.app.resource_location + '/fscreen32.png'),
'%s\t%s' % (_("Toggle FullScreen"), _('Alt+F10')))
self.menuview_toggle_parea = self.menuview.addAction(
QtGui.QIcon(self.menu_resource_location + '/plot32.png'),
QtGui.QIcon(self.app.resource_location + '/plot32.png'),
'%s\t%s' % (_("Toggle Plot Area"), _('Ctrl+F10')))
self.menuview_toggle_notebook = self.menuview.addAction(
QtGui.QIcon(self.menu_resource_location + '/notebook32.png'),
QtGui.QIcon(self.app.resource_location + '/notebook32.png'),
'%s\t%s' % (_("Toggle Project/Properties/Tool"), _('`')))
self.menuview.addSeparator()
self.menuview_toggle_grid = self.menuview.addAction(
QtGui.QIcon(self.menu_resource_location + '/grid32.png'),
QtGui.QIcon(self.app.resource_location + '/grid32.png'),
'%s\t%s' % (_("Toggle Grid Snap"), _('G')))
self.menuview_toggle_grid_lines = self.menuview.addAction(
QtGui.QIcon(self.menu_resource_location + '/grid_lines32.png'),
QtGui.QIcon(self.app.resource_location + '/grid_lines32.png'),
'%s\t%s' % (_("Toggle Grid Lines"), _('Shift+G')))
self.menuview_toggle_axis = self.menuview.addAction(
QtGui.QIcon(self.menu_resource_location + '/axis32.png'),
QtGui.QIcon(self.app.resource_location + '/axis32.png'),
'%s\t%s' % (_("Toggle Axis"), _('Shift+A')))
self.menuview_toggle_workspace = self.menuview.addAction(
QtGui.QIcon(self.menu_resource_location + '/workspace24.png'),
QtGui.QIcon(self.app.resource_location + '/workspace24.png'),
'%s\t%s' % (_("Toggle Workspace"), _('Shift+W')))
self.menuview_toggle_hud = self.menuview.addAction(
QtGui.QIcon(self.menu_resource_location + '/hud_32.png'),
QtGui.QIcon(self.app.resource_location + '/hud_32.png'),
'%s\t%s' % (_("Toggle HUD"), _('Shift+H')))
self.menuview.addSeparator()
self.menuview_show_log = self.menuview.addAction(
QtGui.QIcon(self.menu_resource_location + '/log32.png'),
QtGui.QIcon(self.app.resource_location + '/log32.png'),
'%s\t%s' % (_("Error Log"), ''))
# ########################################################################
@@ -606,10 +592,10 @@ class MainGUI(QtWidgets.QMainWindow):
self.menuobjects = self.menu.addMenu(_('Objects'))
self.menuobjects.addSeparator()
self.menuobjects_selall = self.menuobjects.addAction(
QtGui.QIcon(self.menu_resource_location + '/select_all.png'),
QtGui.QIcon(self.app.resource_location + '/select_all.png'),
'%s\t%s' % (_('Select All'), ''))
self.menuobjects_unselall = self.menuobjects.addAction(
QtGui.QIcon(self.menu_resource_location + '/deselect_all32.png'),
QtGui.QIcon(self.app.resource_location + '/deselect_all32.png'),
'%s\t%s' % (_('Deselect All'), ''))
# ########################################################################
@@ -618,7 +604,7 @@ class MainGUI(QtWidgets.QMainWindow):
self.menu_plugins = QtWidgets.QMenu(_('Plugins'))
self.menu_plugins_action = self.menu.addMenu(self.menu_plugins)
self.menu_plugins_shell = self.menu_plugins.addAction(
QtGui.QIcon(self.menu_resource_location + '/shell16.png'),
QtGui.QIcon(self.app.resource_location + '/shell16.png'),
'%s\t%s' % (_('Command Line'), _('S')))
# ########################################################################
@@ -626,49 +612,49 @@ class MainGUI(QtWidgets.QMainWindow):
# ########################################################################
self.menuhelp = self.menu.addMenu(_('Help'))
self.menuhelp_manual = self.menuhelp.addAction(
QtGui.QIcon(self.menu_resource_location + '/globe16.png'),
QtGui.QIcon(self.app.resource_location + '/globe16.png'),
'%s\t%s' % (_('Online Help'), _('F1')))
self.menuhelp_bookmarks = self.menuhelp.addMenu(
QtGui.QIcon(self.menu_resource_location + '/bookmarks16.png'), _('Bookmarks'))
QtGui.QIcon(self.app.resource_location + '/bookmarks16.png'), _('Bookmarks'))
self.menuhelp_bookmarks.addSeparator()
self.menuhelp_bookmarks_manager = self.menuhelp_bookmarks.addAction(
QtGui.QIcon(self.menu_resource_location + '/bookmarks16.png'),
QtGui.QIcon(self.app.resource_location + '/bookmarks16.png'),
'%s\t%s' % (_('Bookmarks Manager'), ''))
self.menuhelp.addSeparator()
self.menuhelp_report_bug = self.menuhelp.addAction(
QtGui.QIcon(self.menu_resource_location + '/bug16.png'),
QtGui.QIcon(self.app.resource_location + '/bug16.png'),
'%s\t%s' % (_('Report a bug'), ''))
self.menuhelp.addSeparator()
self.menuhelp_exc_spec = self.menuhelp.addAction(
QtGui.QIcon(self.menu_resource_location + '/pdf_link16.png'),
QtGui.QIcon(self.app.resource_location + '/pdf_link16.png'),
'%s\t%s' % (_('Excellon Specification'), ''))
self.menuhelp_gerber_spec = self.menuhelp.addAction(
QtGui.QIcon(self.menu_resource_location + '/pdf_link16.png'),
QtGui.QIcon(self.app.resource_location + '/pdf_link16.png'),
'%s\t%s' % (_('Gerber Specification'), ''))
self.menuhelp.addSeparator()
self.menuhelp_shortcut_list = self.menuhelp.addAction(
QtGui.QIcon(self.menu_resource_location + '/shortcuts24.png'),
QtGui.QIcon(self.app.resource_location + '/shortcuts24.png'),
'%s\t%s' % (_('Shortcuts List'), _('F3')))
self.menuhelp_videohelp = self.menuhelp.addAction(
QtGui.QIcon(self.menu_resource_location + '/youtube32.png'),
QtGui.QIcon(self.app.resource_location + '/youtube32.png'),
'%s\t%s' % (_('YouTube Channel'), _('F4')))
self.menuhelp.addSeparator()
self.menuhelp_donate = self.menuhelp.addAction(
QtGui.QIcon(self.menu_resource_location + '/paypal32.png'),
QtGui.QIcon(self.app.resource_location + '/paypal32.png'),
'%s\t%s' % (_('Donate'), ''))
self.menuhelp_readme = self.menuhelp.addAction(
QtGui.QIcon(self.menu_resource_location + '/warning.png'),
QtGui.QIcon(self.app.resource_location + '/warning.png'),
'%s\t%s' % (_("How To"), ''))
self.menuhelp_about = self.menuhelp.addAction(
QtGui.QIcon(self.menu_resource_location + '/about32.png'),
QtGui.QIcon(self.app.resource_location + '/about32.png'),
'%s\t%s' % (_('About'), ''))
# ########################################################################
@@ -678,79 +664,79 @@ class MainGUI(QtWidgets.QMainWindow):
self.menu.addMenu(self.geo_editor_menu)
self.geo_add_circle_menuitem = self.geo_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/circle32.png'),
QtGui.QIcon(self.app.resource_location + '/circle32.png'),
'%s\t%s' % (_('Add Circle'), _('O'))
)
self.geo_add_arc_menuitem = self.geo_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/arc16.png'),
QtGui.QIcon(self.app.resource_location + '/arc16.png'),
'%s\t%s' % (_('Add Arc'), _('A')))
self.geo_editor_menu.addSeparator()
self.geo_add_rectangle_menuitem = self.geo_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/rectangle32.png'),
QtGui.QIcon(self.app.resource_location + '/rectangle32.png'),
'%s\t%s' % (_('Add Rectangle'), _('R'))
)
self.geo_add_polygon_menuitem = self.geo_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/polygon32.png'),
QtGui.QIcon(self.app.resource_location + '/polygon32.png'),
'%s\t%s' % (_('Add Polygon'), _('N'))
)
self.geo_add_path_menuitem = self.geo_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/path32.png'),
QtGui.QIcon(self.app.resource_location + '/path32.png'),
'%s\t%s' % (_('Add Path'), _('P')))
self.geo_editor_menu.addSeparator()
self.geo_add_text_menuitem = self.geo_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/text32.png'),
QtGui.QIcon(self.app.resource_location + '/text32.png'),
'%s\t%s' % (_('Add Text'), _('T')))
self.geo_editor_menu.addSeparator()
self.geo_union_menuitem = self.geo_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/union16.png'),
QtGui.QIcon(self.app.resource_location + '/union16.png'),
'%s\t%s' % (_('Polygon Union'), _('U')))
self.geo_intersection_menuitem = self.geo_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/intersection16.png'),
QtGui.QIcon(self.app.resource_location + '/intersection16.png'),
'%s\t%s' % (_('Polygon Intersection'), _('E')))
self.geo_subtract_menuitem = self.geo_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/subtract16.png'),
QtGui.QIcon(self.app.resource_location + '/subtract16.png'),
'%s\t%s' % (_('Polygon Subtraction'), _('S'))
)
self.geo_subtract_alt_menuitem = self.geo_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/subtract16.png'),
QtGui.QIcon(self.app.resource_location + '/subtract16.png'),
'%s\t%s' % (_('Alt Subtraction'), '')
)
self.geo_editor_menu.addSeparator()
self.geo_cutpath_menuitem = self.geo_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/cutpath16.png'),
QtGui.QIcon(self.app.resource_location + '/cutpath16.png'),
'%s\t%s' % (_('Cut Path'), _('X')))
# self.move_menuitem = self.menu.addAction(
# QtGui.QIcon(self.menu_resource_location + '/move16.png'), "Move Objects 'm'")
# QtGui.QIcon(self.app.resource_location + '/move16.png'), "Move Objects 'm'")
self.geo_copy_menuitem = self.geo_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/copy16.png'),
QtGui.QIcon(self.app.resource_location + '/copy16.png'),
'%s\t%s' % (_("Copy Geom"), _('C')))
self.geo_delete_menuitem = self.geo_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/deleteshape16.png'),
QtGui.QIcon(self.app.resource_location + '/deleteshape16.png'),
'%s\t%s' % (_("Delete Shape"), _('DEL'))
)
self.geo_editor_menu.addSeparator()
self.geo_move_menuitem = self.geo_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/move32.png'),
QtGui.QIcon(self.app.resource_location + '/move32.png'),
'%s\t%s' % (_("Move"), _('M')))
self.geo_buffer_menuitem = self.geo_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/buffer16.png'),
QtGui.QIcon(self.app.resource_location + '/buffer16.png'),
'%s\t%s' % (_("Buffer"), _('B'))
)
self.geo_simplification_menuitem = self.geo_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/simplify32.png'),
QtGui.QIcon(self.app.resource_location + '/simplify32.png'),
'%s\t%s' % (_("Simplification"), '')
)
self.geo_paint_menuitem = self.geo_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/paint20_1.png'),
QtGui.QIcon(self.app.resource_location + '/paint20_1.png'),
'%s\t%s' % (_("Paint"), _('I'))
)
self.geo_transform_menuitem = self.geo_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/transform.png'),
QtGui.QIcon(self.app.resource_location + '/transform.png'),
'%s\t%s' % (_("Transformation"), _('Alt+R'))
)
self.geo_editor_menu.addSeparator()
self.geo_cornersnap_menuitem = self.geo_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/corner32.png'),
QtGui.QIcon(self.app.resource_location + '/corner32.png'),
'%s\t%s' % (_("Toggle Corner Snap"), _('K'))
)
@@ -761,36 +747,36 @@ class MainGUI(QtWidgets.QMainWindow):
self.menu.addMenu(self.exc_editor_menu)
self.exc_add_array_drill_menuitem = self.exc_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/rectangle32.png'),
QtGui.QIcon(self.app.resource_location + '/rectangle32.png'),
'%s\t%s' % (_('Add Drill Array'), _('A')))
self.exc_add_drill_menuitem = self.exc_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/plus16.png'),
QtGui.QIcon(self.app.resource_location + '/plus16.png'),
'%s\t%s' % (_('Add Drill'), _('D')))
self.exc_editor_menu.addSeparator()
self.exc_add_array_slot_menuitem = self.exc_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/slot_array26.png'),
QtGui.QIcon(self.app.resource_location + '/slot_array26.png'),
'%s\t%s' % (_('Add Slot Array'), _('Q')))
self.exc_add_slot_menuitem = self.exc_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/slot26.png'),
QtGui.QIcon(self.app.resource_location + '/slot26.png'),
'%s\t%s' % (_('Add Slot'), _('W')))
self.exc_editor_menu.addSeparator()
self.exc_resize_drill_menuitem = self.exc_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/resize16.png'),
QtGui.QIcon(self.app.resource_location + '/resize16.png'),
'%s\t%s' % (_('Resize Drill(S)'), _('R'))
)
self.exc_copy_drill_menuitem = self.exc_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/copy32.png'),
QtGui.QIcon(self.app.resource_location + '/copy32.png'),
'%s\t%s' % (_('Copy'), _('C')))
self.exc_delete_drill_menuitem = self.exc_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/deleteshape32.png'),
QtGui.QIcon(self.app.resource_location + '/deleteshape32.png'),
'%s\t%s' % (_('Delete'), _('DEL'))
)
self.exc_editor_menu.addSeparator()
self.exc_move_drill_menuitem = self.exc_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/move32.png'),
QtGui.QIcon(self.app.resource_location + '/move32.png'),
'%s\t%s' % (_('Move Drill'), _('M')))
# ########################################################################
@@ -800,55 +786,55 @@ class MainGUI(QtWidgets.QMainWindow):
self.menu.addMenu(self.grb_editor_menu)
self.grb_add_pad_menuitem = self.grb_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/aperture16.png'),
QtGui.QIcon(self.app.resource_location + '/aperture16.png'),
'%s\t%s' % (_('Add Pad'), _('P')))
self.grb_add_pad_array_menuitem = self.grb_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/padarray32.png'),
QtGui.QIcon(self.app.resource_location + '/padarray32.png'),
'%s\t%s' % (_('Add Pad Array'), _('A')))
self.grb_add_track_menuitem = self.grb_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/track32.png'),
QtGui.QIcon(self.app.resource_location + '/track32.png'),
'%s\t%s' % (_('Add Track'), _('T')))
self.grb_add_region_menuitem = self.grb_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/rectangle32.png'),
QtGui.QIcon(self.app.resource_location + '/rectangle32.png'),
'%s\t%s' % (_('Add Region'), _('N')))
self.grb_editor_menu.addSeparator()
self.grb_convert_poly_menuitem = self.grb_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/poligonize32.png'),
QtGui.QIcon(self.app.resource_location + '/poligonize32.png'),
'%s\t%s' % (_("Poligonize"), _('Alt+N')))
self.grb_add_semidisc_menuitem = self.grb_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/semidisc32.png'),
QtGui.QIcon(self.app.resource_location + '/semidisc32.png'),
'%s\t%s' % (_("Add SemiDisc"), _('E')))
self.grb_add_disc_menuitem = self.grb_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/disc32.png'),
QtGui.QIcon(self.app.resource_location + '/disc32.png'),
'%s\t%s' % (_("Add Disc"), _('D')))
self.grb_add_buffer_menuitem = self.grb_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/buffer16-2.png'),
QtGui.QIcon(self.app.resource_location + '/buffer16-2.png'),
'%s\t%s' % (_('Buffer'), _('B')))
self.grb_add_scale_menuitem = self.grb_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/scale32.png'),
QtGui.QIcon(self.app.resource_location + '/scale32.png'),
'%s\t%s' % (_('Scale'), _('S')))
self.grb_add_markarea_menuitem = self.grb_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/markarea32.png'),
QtGui.QIcon(self.app.resource_location + '/markarea32.png'),
'%s\t%s' % (_('Mark Area'), _('Alt+A')))
self.grb_add_eraser_menuitem = self.grb_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/eraser26.png'),
QtGui.QIcon(self.app.resource_location + '/eraser26.png'),
'%s\t%s' % (_('Eraser'), _('Ctrl+E')))
self.grb_transform_menuitem = self.grb_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/transform.png'),
QtGui.QIcon(self.app.resource_location + '/transform.png'),
'%s\t%s' % (_("Transform"), _('Alt+R')))
self.grb_editor_menu.addSeparator()
self.grb_copy_menuitem = self.grb_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/copy32.png'),
QtGui.QIcon(self.app.resource_location + '/copy32.png'),
'%s\t%s' % (_('Copy'), _('C')))
self.grb_delete_menuitem = self.grb_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/deleteshape32.png'),
QtGui.QIcon(self.app.resource_location + '/deleteshape32.png'),
'%s\t%s' % (_('Delete'), _('DEL')))
self.grb_editor_menu.addSeparator()
self.grb_move_menuitem = self.grb_editor_menu.addAction(
QtGui.QIcon(self.menu_resource_location + '/move32.png'),
QtGui.QIcon(self.app.resource_location + '/move32.png'),
'%s\t%s' % (_('Move'), _('M')))
self.grb_editor_menu.menuAction().setVisible(False)
@@ -866,71 +852,71 @@ class MainGUI(QtWidgets.QMainWindow):
self.menuproject = QtWidgets.QMenu()
self.menuprojectenable = self.menuproject.addAction(
QtGui.QIcon(self.menu_resource_location + '/replot32.png'), _('Enable Plot'))
QtGui.QIcon(self.app.resource_location + '/replot32.png'), _('Enable Plot'))
self.menuprojectdisable = self.menuproject.addAction(
QtGui.QIcon(self.menu_resource_location + '/clear_plot32.png'), _('Disable Plot'))
QtGui.QIcon(self.app.resource_location + '/clear_plot32.png'), _('Disable Plot'))
self.menuproject.addSeparator()
self.menuprojectcolor = self.menuproject.addMenu(
QtGui.QIcon(self.menu_resource_location + '/set_color32.png'), _('Set Color'))
QtGui.QIcon(self.app.resource_location + '/set_color32.png'), _('Set Color'))
self.menuproject_red = self.menuprojectcolor.addAction(
QtGui.QIcon(self.menu_resource_location + '/red32.png'), _('Red'))
QtGui.QIcon(self.app.resource_location + '/red32.png'), _('Red'))
self.menuproject_blue = self.menuprojectcolor.addAction(
QtGui.QIcon(self.menu_resource_location + '/blue32.png'), _('Blue'))
QtGui.QIcon(self.app.resource_location + '/blue32.png'), _('Blue'))
self.menuproject_yellow = self.menuprojectcolor.addAction(
QtGui.QIcon(self.menu_resource_location + '/yellow32.png'), _('Yellow'))
QtGui.QIcon(self.app.resource_location + '/yellow32.png'), _('Yellow'))
self.menuproject_green = self.menuprojectcolor.addAction(
QtGui.QIcon(self.menu_resource_location + '/green32.png'), _('Green'))
QtGui.QIcon(self.app.resource_location + '/green32.png'), _('Green'))
self.menuproject_purple = self.menuprojectcolor.addAction(
QtGui.QIcon(self.menu_resource_location + '/violet32.png'), _('Purple'))
QtGui.QIcon(self.app.resource_location + '/violet32.png'), _('Purple'))
self.menuproject_brown = self.menuprojectcolor.addAction(
QtGui.QIcon(self.menu_resource_location + '/brown32.png'), _('Brown'))
QtGui.QIcon(self.app.resource_location + '/brown32.png'), _('Brown'))
self.menuproject_brown = self.menuprojectcolor.addAction(
QtGui.QIcon(self.menu_resource_location + '/indigo32.png'), _('Indigo'))
QtGui.QIcon(self.app.resource_location + '/indigo32.png'), _('Indigo'))
self.menuproject_brown = self.menuprojectcolor.addAction(
QtGui.QIcon(self.menu_resource_location + '/white32.png'), _('White'))
QtGui.QIcon(self.app.resource_location + '/white32.png'), _('White'))
self.menuproject_brown = self.menuprojectcolor.addAction(
QtGui.QIcon(self.menu_resource_location + '/black32.png'), _('Black'))
QtGui.QIcon(self.app.resource_location + '/black32.png'), _('Black'))
self.menuprojectcolor.addSeparator()
self.menuproject_custom = self.menuprojectcolor.addAction(
QtGui.QIcon(self.menu_resource_location + '/set_color32.png'), _('Custom'))
QtGui.QIcon(self.app.resource_location + '/set_color32.png'), _('Custom'))
self.menuprojectcolor.addSeparator()
self.menuproject_custom = self.menuprojectcolor.addAction(
QtGui.QIcon(self.menu_resource_location + '/set_color32.png'), _('Opacity'))
QtGui.QIcon(self.app.resource_location + '/set_color32.png'), _('Opacity'))
self.menuproject_custom = self.menuprojectcolor.addAction(
QtGui.QIcon(self.menu_resource_location + '/set_color32.png'), _('Default'))
QtGui.QIcon(self.app.resource_location + '/set_color32.png'), _('Default'))
self.menuproject.addSeparator()
self.menuprojectviewsource = self.menuproject.addAction(
QtGui.QIcon(self.menu_resource_location + '/source32.png'), _('View Source'))
QtGui.QIcon(self.app.resource_location + '/source32.png'), _('View Source'))
self.menuprojectedit = self.menuproject.addAction(
QtGui.QIcon(self.menu_resource_location + '/edit_ok32.png'), _('Edit'))
QtGui.QIcon(self.app.resource_location + '/edit_ok32.png'), _('Edit'))
self.menuprojectcopy = self.menuproject.addAction(
QtGui.QIcon(self.menu_resource_location + '/copy32.png'), _('Copy'))
QtGui.QIcon(self.app.resource_location + '/copy32.png'), _('Copy'))
self.menuprojectdelete = self.menuproject.addAction(
QtGui.QIcon(self.menu_resource_location + '/delete32.png'), _('Delete'))
QtGui.QIcon(self.app.resource_location + '/delete32.png'), _('Delete'))
self.menuprojectsave = self.menuproject.addAction(
QtGui.QIcon(self.menu_resource_location + '/save_as.png'), _('Save'))
QtGui.QIcon(self.app.resource_location + '/save_as.png'), _('Save'))
self.menuproject.addSeparator()
self.menuprojectproperties = self.menuproject.addAction(
QtGui.QIcon(self.menu_resource_location + '/properties32.png'), _('Properties'))
QtGui.QIcon(self.app.resource_location + '/properties32.png'), _('Properties'))
# ########################################################################
# ####################### Central Widget -> Splitter # ##################

View File

@@ -197,7 +197,7 @@ class GerberObjectUI(ObjectUI):
plot_grid.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeft | QtCore.Qt.AlignmentFlag.AlignVCenter)
gen_frame.setLayout(plot_grid)
self.plot_options_label = FCLabel("<b>%s:</b>" % _("Plot Options"))
self.plot_options_label = FCLabel('%s:' % _("Plot Options"), bold=True)
plot_grid.addWidget(self.plot_options_label, 0, 0)
@@ -219,7 +219,7 @@ class GerberObjectUI(ObjectUI):
self.name_hlay = QtWidgets.QHBoxLayout()
plot_grid.addLayout(self.name_hlay, 1, 0, 1, 3)
name_label = FCLabel("<b>%s:</b>" % _("Name"))
name_label = FCLabel('%s:' % _("Name"), bold=True)
self.name_entry = FCEntry()
self.name_entry.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus)
self.name_hlay.addWidget(name_label)
@@ -482,7 +482,7 @@ class GerberObjectUI(ObjectUI):
# Non-Copper Regions Frame
# #############################################################################################################
# ## Non-copper regions
self.noncopper_label = FCLabel("<b>%s</b>" % _("Non-copper regions"))
self.noncopper_label = FCLabel('%s' % _("Non-copper regions"), bold=True)
self.noncopper_label.setToolTip(
_("Create polygons covering the\n"
"areas without copper on the PCB.\n"
@@ -530,7 +530,7 @@ class GerberObjectUI(ObjectUI):
# Bounding Box Frame
# #############################################################################################################
# ## Bounding box
self.boundingbox_label = FCLabel('<b>%s</b>' % _('Bounding Box'))
self.boundingbox_label = FCLabel('%s' % _('Bounding Box'), bold=True)
self.boundingbox_label.setToolTip(
_("Create a geometry surrounding the Gerber object.\n"
"Square shape.")
@@ -617,7 +617,7 @@ class ExcellonObjectUI(ObjectUI):
gen_frame.setLayout(plot_grid)
# Plot options
self.plot_options_label = FCLabel("<b>%s: </b>" % _("Plot Options"))
self.plot_options_label = FCLabel('%s: ' % _("Plot Options"), bold=True)
# Solid CB
self.solid_cb = FCCheckBox(label=_('Solid'))
@@ -638,7 +638,7 @@ class ExcellonObjectUI(ObjectUI):
# ## Object name
self.name_hlay = QtWidgets.QHBoxLayout()
name_label = FCLabel("<b>%s: </b>" % _("Name"))
name_label = FCLabel('%s: ' % _("Name"), bold=True)
self.name_entry = FCEntry()
self.name_entry.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus)
self.name_hlay.addWidget(name_label)
@@ -844,7 +844,7 @@ class ExcellonObjectUI(ObjectUI):
# #############################################################################################################
# Milling Drill Holes Frame
# #############################################################################################################
self.mill_hole_label = FCLabel('<b>%s</b>' % _('Milling Geometry'))
self.mill_hole_label = FCLabel('%s' % _('Milling Geometry'), bold=True)
self.mill_hole_label.setToolTip(
_("Create Geometry for milling holes.\n"
"Select from the Tools Table above the hole dias to be\n"
@@ -953,7 +953,7 @@ class GeometryObjectUI(ObjectUI):
plot_grid.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeft | QtCore.Qt.AlignmentFlag.AlignVCenter)
gen_frame.setLayout(plot_grid)
self.plot_options_label = FCLabel("<b>%s:</b>" % _("Plot Options"))
self.plot_options_label = FCLabel('%s:' % _("Plot Options"), bold=True)
self.plot_options_label.setMinimumWidth(90)
plot_grid.addWidget(self.plot_options_label, 0, 0)
@@ -970,7 +970,7 @@ class GeometryObjectUI(ObjectUI):
self.name_hlay = QtWidgets.QHBoxLayout()
plot_grid.addLayout(self.name_hlay, 2, 0, 1, 3)
name_label = FCLabel("<b>%s:</b>" % _("Name"))
name_label = FCLabel('%s:' % _("Name"), bold=True)
self.name_entry = FCEntry()
self.name_entry.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus)
self.name_hlay.addWidget(name_label)
@@ -1033,7 +1033,7 @@ class GeometryObjectUI(ObjectUI):
self.tt_frame.setLayout(tt_grid)
# ### Tools ####
self.tools_table_label = FCLabel('<b>%s:</b>' % _('Tools Table'))
self.tools_table_label = FCLabel('%s:' % _('Tools Table'), bold=True)
self.tools_table_label.setToolTip(
_("Tools in this Geometry object used for cutting.\n"
"The 'Offset' entry will set an offset for the cut.\n"
@@ -1182,7 +1182,7 @@ class GeometryObjectUI(ObjectUI):
# Simplification Frame
# #############################################################################################################
# Simplification Title
simplif_lbl = FCLabel('<b>%s</b>:' % _("Simplification"))
simplif_lbl = FCLabel('%s' % _("Simplification"), bold=True)
simplif_lbl.setToolTip(
_("Simplify a geometry by reducing its vertex points number.")
)
@@ -1296,7 +1296,7 @@ class CNCObjectUI(ObjectUI):
gen_frame.setLayout(grid0)
# Plot Options
self.cncplot_method_label = FCLabel("<b>%s: </b>" % _("Plot Options"))
self.cncplot_method_label = FCLabel('%s: ' % _("Plot Options"), bold=True)
self.cncplot_method_label.setToolTip(
_(
"This selects the kind of geometries on the canvas to plot.\n"
@@ -1319,7 +1319,7 @@ class CNCObjectUI(ObjectUI):
grid0.addLayout(self.name_hlay, 2, 0, 1, 3)
# ## Object name
name_label = FCLabel("<b>%s: </b>" % _("Name"))
name_label = FCLabel('%s: ' % _("Name"), bold=True)
self.name_entry = FCEntry()
self.name_entry.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus)
@@ -1387,7 +1387,7 @@ class CNCObjectUI(ObjectUI):
grid_par.addWidget(self.estimated_frame, 4, 0, 1, 3)
# Travelled Distance
self.t_distance_label = FCLabel("<b>%s:</b>" % _("Travelled distance"))
self.t_distance_label = FCLabel('%s:' % _("Travelled distance"), bold=True)
self.t_distance_label.setToolTip(
_("This is the total travelled distance on X-Y plane.\n"
"In current units.")
@@ -1400,7 +1400,7 @@ class CNCObjectUI(ObjectUI):
estimated_grid.addWidget(self.units_label, 0, 2)
# Estimated Time
self.t_time_label = FCLabel("<b>%s:</b>" % _("Estimated time"))
self.t_time_label = FCLabel('%s:' % _("Estimated time"), bold=True)
self.t_time_label.setToolTip(
_("This is the estimated time to do the routing/drilling,\n"
"without the time spent in ToolChange events.")
@@ -1456,7 +1456,7 @@ class CNCObjectUI(ObjectUI):
grid1.addLayout(hlay, 0, 0, 1, 2)
# CNC Tools Table for plot
self.cnc_tools_table_label = FCLabel('<b>%s</b>' % _('CNC Tools Table'))
self.cnc_tools_table_label = FCLabel('%s' % _('CNC Tools Table'), bold=True)
self.cnc_tools_table_label.setToolTip(
_(
"Tools in this CNCJob object used for cutting.\n"
@@ -1602,7 +1602,7 @@ class ScriptObjectUI(ObjectUI):
self.name_hlay = QtWidgets.QHBoxLayout()
self.custom_box.addLayout(self.name_hlay)
name_label = FCLabel("<b>%s:</b>" % _("Name"))
name_label = FCLabel('%s:' % _("Name"), bold=True)
self.name_entry = FCEntry()
self.name_entry.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus)
self.name_hlay.addWidget(name_label)
@@ -1669,7 +1669,7 @@ class DocumentObjectUI(ObjectUI):
self.name_hlay = QtWidgets.QHBoxLayout()
self.custom_box.addLayout(self.name_hlay)
name_label = FCLabel("<b>%s:</b>" % _("Name"))
name_label = FCLabel('%s:' % _("Name"), bold=True)
self.name_entry = FCEntry()
self.name_entry.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus)
self.name_hlay.addWidget(name_label)

View File

@@ -38,7 +38,7 @@ class ExcellonOptPrefGroupUI(OptionsGroupUI):
param_frame.setLayout(param_grid)
# ### Milling Holes ## ##
self.mill_hole_label = FCLabel('<b>%s</b>' % _('Mill Holes'))
self.mill_hole_label = FCLabel('%s' % _('Mill Holes'), bold=True)
self.mill_hole_label.setToolTip(
_("Create Geometry for milling holes.")
)

View File

@@ -408,7 +408,7 @@ class GeneralAPPSetGroupUI(OptionsGroupUI):
# #############################################################################################################
# Parameters Frame
# #############################################################################################################
self.par_label = FCLabel('<b><font color="%s">%s</font></b>' % (self.app.theme_safe_color('blue'), _('Parameters')))
self.par_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True)
self.layout.addWidget(self.par_label)
par_frame = FCFrame()

View File

@@ -89,7 +89,7 @@ class GeneralAppPrefGroupUI(OptionsGroupUI):
grid1_frame.setLayout(grid1)
# Graphic Engine for FlatCAM
self.ge_label = FCLabel('<b>%s:</b>' % _('Graphic Engine'))
self.ge_label = FCLabel('%s:' % _('Graphic Engine'), bold=True)
self.ge_label.setToolTip(_("Choose what graphic engine to use in FlatCAM.\n"
"Legacy(2D) -> reduced functionality, slow performance but enhanced compatibility.\n"
"OpenGL(3D) -> full functionality, high performance\n"

View File

@@ -35,7 +35,7 @@ class GeneralGUIPrefGroupUI(OptionsGroupUI):
par_frame.setLayout(grid0)
# Theme selection
self.appearance_label = FCLabel('<b>%s</b>' % _('Theme'))
self.appearance_label = FCLabel('%s' % _('Theme'), bold=True)
self.appearance_label.setToolTip(
_("Select a theme for the application.\n"
"It will theme the plot area.")
@@ -161,7 +161,7 @@ class GeneralGUIPrefGroupUI(OptionsGroupUI):
color_frame.setLayout(grid1)
# Plot Selection (left - right) Color
self.sel_lr_label = FCLabel('<b>%s</b>' % _('Left-Right Selection Color'))
self.sel_lr_label = FCLabel('%s' % _('Left-Right Selection Color'), bold=True)
grid1.addWidget(self.sel_lr_label, 0, 0, 1, 2)
self.sl_color_label = FCLabel('%s:' % _('Outline'))
@@ -201,7 +201,7 @@ class GeneralGUIPrefGroupUI(OptionsGroupUI):
grid1.addWidget(separator_line, 8, 0, 1, 2)
# Plot Selection (left - right) Color
self.sel_rl_label = FCLabel('<b>%s</b>' % _('Right-Left Selection Color'))
self.sel_rl_label = FCLabel('%s' % _('Right-Left Selection Color'), bold=True)
grid1.addWidget(self.sel_rl_label, 10, 0, 1, 2)
# Plot Selection (right - left) Line Color
@@ -246,7 +246,7 @@ class GeneralGUIPrefGroupUI(OptionsGroupUI):
# ----------------------- Editor Color -----------------------------
# ------------------------------------------------------------------
self.editor_color_label = FCLabel('<b>%s</b>' % _('Editor Color'))
self.editor_color_label = FCLabel('%s' % _('Editor Color'), bold=True)
grid1.addWidget(self.editor_color_label, 20, 0, 1, 2)
# Editor Draw Color
@@ -278,7 +278,7 @@ class GeneralGUIPrefGroupUI(OptionsGroupUI):
# ----------------------- Project Settings -----------------------------
# ------------------------------------------------------------------
# Light Theme
self.proj_settings_l_label = FCLabel('<b>%s</b> - %s' % (_('Project Items Color'), _("Light")))
self.proj_settings_l_label = FCLabel('%s' % _("Light"), bold=True)
grid1.addWidget(self.proj_settings_l_label, 28, 0, 1, 2)
# Project Tab items color
@@ -310,7 +310,7 @@ class GeneralGUIPrefGroupUI(OptionsGroupUI):
grid1.addWidget(separator_line, 33, 0, 1, 2)
# Dark Theme
self.proj_settings_d_label = FCLabel('<b>%s</b> - %s' % (_('Project Items Color'), _("Dark")))
self.proj_settings_d_label = FCLabel('%s' % _("Dark"), bold=True)
grid1.addWidget(self.proj_settings_d_label, 34, 0, 1, 2)
# Project Tab items color

View File

@@ -142,7 +142,7 @@ class Tools2CThievingPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# DOTS Grid Parameters Frame
# #############################################################################################################
self.dots_label = FCLabel('<b>%s</b>:' % _("Dots Grid Parameters"))
self.dots_label = FCLabel('%s' % _("Dots Grid Parameters"), bold=True)
self.layout.addWidget(self.dots_label)
dots_frame = FCFrame()
@@ -181,7 +181,7 @@ class Tools2CThievingPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Squares Grid Parameters Frame
# #############################################################################################################
self.squares_label = FCLabel('<b>%s</b>:' % _("Squares Grid Parameters"))
self.squares_label = FCLabel('%s' % _("Squares Grid Parameters"), bold=True)
self.layout.addWidget(self.squares_label)
square_frame = FCFrame()
@@ -220,7 +220,7 @@ class Tools2CThievingPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Lines Grid Parameters Frame
# #############################################################################################################
self.lines_label = FCLabel('<b>%s</b>:' % _("Lines Grid Parameters"))
self.lines_label = FCLabel('%s' % _("Lines Grid Parameters"), bold=True)
self.layout.addWidget(self.lines_label)
line_frame = FCFrame()

View File

@@ -39,7 +39,7 @@ class ToolsISOPrefGroupUI(OptionsGroupUI):
par_frame.setLayout(par_grid)
# Tool Dias
isotdlabel = FCLabel('<b><font color="green">%s:</font></b>' % _('Tools Dia'))
isotdlabel = FCLabel('%s:' % _('Tools Dia'), color='green', bold=True)
isotdlabel.setToolTip(
_("Diameters of the tools, separated by comma.\n"
"The value of the diameter has to use the dot decimals separator.\n"

View File

@@ -38,7 +38,7 @@ class ToolsMillPrefGroupUI(OptionsGroupUI):
param_frame.setLayout(param_grid)
# Tooldia
tdlabel = FCLabel('<b><font color="green">%s:</font></b>' % _('Tools Dia'))
tdlabel = FCLabel('%s:' % _('Tools Dia'), color='green', bold=True)
tdlabel.setToolTip(
_("Diameters of the tools, separated by comma.\n"
"The value of the diameter has to use the dot decimals separator.\n"

View File

@@ -40,7 +40,7 @@ class ToolsNCCPrefGroupUI(OptionsGroupUI):
par_frame.setLayout(par_grid)
# Tools Diameters
ncctdlabel = FCLabel('<b><font color="green">%s:</font></b>' % _('Tools Dia'))
ncctdlabel = FCLabel('%s:' % _('Tools Dia'), color='green', bold=True)
ncctdlabel.setToolTip(
_("Diameters of the tools, separated by comma.\n"
"The value of the diameter has to use the dot decimals separator.\n"

View File

@@ -42,7 +42,7 @@ class ToolsPaintPrefGroupUI(OptionsGroupUI):
par_frame.setLayout(param_grid)
# Tool dia
ptdlabel = FCLabel('<b><font color="green">%s:</font></b>' % _('Tools Dia'))
ptdlabel = FCLabel('%s:' % _('Tools Dia'), color='green', bold=True)
ptdlabel.setToolTip(
_("Diameters of the tools, separated by comma.\n"
"The value of the diameter has to use the dot decimals separator.\n"

View File

@@ -39,7 +39,7 @@ class ToolsSolderpastePrefGroupUI(OptionsGroupUI):
param_frame.setLayout(param_grid)
# Nozzle Tool Diameters
nozzletdlabel = FCLabel('<b><font color="green">%s:</font></b>' % _('Tools Dia'))
nozzletdlabel = FCLabel('%s:' % _('Tools Dia'), color='green', bold=True)
nozzletdlabel.setToolTip(
_("Diameters of the tools, separated by comma.\n"
"The value of the diameter has to use the dot decimals separator.\n"
@@ -51,7 +51,7 @@ class ToolsSolderpastePrefGroupUI(OptionsGroupUI):
param_grid.addWidget(self.nozzle_tool_dia_entry, 0, 1)
# New Nozzle Tool Dia
self.addtool_entry_lbl = FCLabel('<b>%s:</b>' % _('New Nozzle Dia'))
self.addtool_entry_lbl = FCLabel('%s:' % _('New Nozzle Dia'), bold=True)
self.addtool_entry_lbl.setToolTip(
_("Diameter for the new tool to add in the Tool Table")
)

View File

@@ -33,7 +33,7 @@ class AutoCompletePrefGroupUI(OptionsGroupUI):
hlay0.addWidget(self.del_all_btn)
# ## Gerber associations
self.grb_list_label = FCLabel("<b>%s:</b>" % _("Keywords list"))
self.grb_list_label = FCLabel('%s:' % _("Keywords list"), bold=True)
self.grb_list_label.setToolTip(
_("List of keywords used by\n"
"the autocompleter in FlatCAM.\n"

View File

@@ -43,7 +43,7 @@ class FAExcPrefGroupUI(OptionsGroupUI):
self.vertical_lay.addLayout(hlay0)
# # ## Excellon associations
list_label = FCLabel("<b>%s:</b>" % _("Extensions list"))
list_label = FCLabel('%s:' % _("Extensions list"), bold=True)
list_label.setToolTip(
_("List of file extensions to be\n"
"associated with FlatCAM.")

View File

@@ -34,7 +34,7 @@ class FAGcoPrefGroupUI(OptionsGroupUI):
hlay0.addWidget(self.del_all_btn)
# ## G-Code associations
self.gco_list_label = FCLabel("<b>%s:</b>" % _("Extensions list"))
self.gco_list_label = FCLabel('%s:' % _("Extensions list"), bold=True)
self.gco_list_label.setToolTip(
_("List of file extensions to be\n"
"associated with FlatCAM.")

View File

@@ -33,7 +33,7 @@ class FAGrbPrefGroupUI(OptionsGroupUI):
hlay0.addWidget(self.del_all_btn)
# ## Gerber associations
self.grb_list_label = FCLabel("<b>%s:</b>" % _("Extensions list"))
self.grb_list_label = FCLabel('%s:' % _("Extensions list"), bold=True)
self.grb_list_label.setToolTip(
_("List of file extensions to be\n"
"associated with FlatCAM.")