|
@@ -373,6 +373,8 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
|
|
QtGui.QIcon(self.app.resource_location + '/origin16.png'), _('Se&t Origin\tO'))
|
|
QtGui.QIcon(self.app.resource_location + '/origin16.png'), _('Se&t Origin\tO'))
|
|
|
self.menueditjump = self.menuedit.addAction(
|
|
self.menueditjump = self.menuedit.addAction(
|
|
|
QtGui.QIcon(self.app.resource_location + '/jump_to16.png'), _('Jump to Location\tJ'))
|
|
QtGui.QIcon(self.app.resource_location + '/jump_to16.png'), _('Jump to Location\tJ'))
|
|
|
|
|
+ self.menueditlocate = self.menuedit.addAction(
|
|
|
|
|
+ QtGui.QIcon(self.app.resource_location + '/locate16.png'), _('Locate in Object\tSHIFT+J'))
|
|
|
|
|
|
|
|
# Separator
|
|
# Separator
|
|
|
self.menuedit.addSeparator()
|
|
self.menuedit.addSeparator()
|
|
@@ -825,6 +827,8 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
|
|
QtGui.QIcon(self.app.resource_location + '/origin32.png'), _('Set Origin'))
|
|
QtGui.QIcon(self.app.resource_location + '/origin32.png'), _('Set Origin'))
|
|
|
self.jmp_btn = self.toolbargeo.addAction(
|
|
self.jmp_btn = self.toolbargeo.addAction(
|
|
|
QtGui.QIcon(self.app.resource_location + '/jump_to16.png'), _('Jump to Location'))
|
|
QtGui.QIcon(self.app.resource_location + '/jump_to16.png'), _('Jump to Location'))
|
|
|
|
|
+ self.locate_btn = self.toolbargeo.addAction(
|
|
|
|
|
+ QtGui.QIcon(self.app.resource_location + '/locate32.png'), _('Locate in Object'))
|
|
|
|
|
|
|
|
# ########################################################################
|
|
# ########################################################################
|
|
|
# ########################## View Toolbar# ###############################
|
|
# ########################## View Toolbar# ###############################
|
|
@@ -859,6 +863,11 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
|
|
# ########################################################################
|
|
# ########################################################################
|
|
|
self.dblsided_btn = self.toolbartools.addAction(
|
|
self.dblsided_btn = self.toolbartools.addAction(
|
|
|
QtGui.QIcon(self.app.resource_location + '/doubleside32.png'), _("2Sided Tool"))
|
|
QtGui.QIcon(self.app.resource_location + '/doubleside32.png'), _("2Sided Tool"))
|
|
|
|
|
+ self.align_btn = self.toolbartools.addAction(
|
|
|
|
|
+ QtGui.QIcon(self.app.resource_location + '/align32.png'), _("Align Objects Tool"))
|
|
|
|
|
+ self.extract_btn = self.toolbartools.addAction(
|
|
|
|
|
+ QtGui.QIcon(self.app.resource_location + '/extract_drill32.png'), _("Extract Drills Tool"))
|
|
|
|
|
+
|
|
|
self.cutout_btn = self.toolbartools.addAction(
|
|
self.cutout_btn = self.toolbartools.addAction(
|
|
|
QtGui.QIcon(self.app.resource_location + '/cut16_bis.png'), _("Cutout Tool"))
|
|
QtGui.QIcon(self.app.resource_location + '/cut16_bis.png'), _("Cutout Tool"))
|
|
|
self.ncc_btn = self.toolbartools.addAction(
|
|
self.ncc_btn = self.toolbartools.addAction(
|
|
@@ -1474,6 +1483,10 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
|
|
<td height="20"><strong>SHIFT+G</strong></td>
|
|
<td height="20"><strong>SHIFT+G</strong></td>
|
|
|
<td> %s</td>
|
|
<td> %s</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
|
|
+ <tr height="20">
|
|
|
|
|
+ <td height="20"><strong>SHIFT+J</strong></td>
|
|
|
|
|
+ <td> %s</td>
|
|
|
|
|
+ </tr>
|
|
|
<tr height="20">
|
|
<tr height="20">
|
|
|
<td height="20"><strong>SHIFT+M</strong></td>
|
|
<td height="20"><strong>SHIFT+M</strong></td>
|
|
|
<td> %s</td>
|
|
<td> %s</td>
|
|
@@ -1506,6 +1519,10 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
|
|
<td height="20"> </td>
|
|
<td height="20"> </td>
|
|
|
<td> </td>
|
|
<td> </td>
|
|
|
</tr>
|
|
</tr>
|
|
|
|
|
+ <tr height="20">
|
|
|
|
|
+ <td height="20"><strong>ALT+A</strong></td>
|
|
|
|
|
+ <td> %s</td>
|
|
|
|
|
+ </tr>
|
|
|
<tr height="20">
|
|
<tr height="20">
|
|
|
<td height="20"><strong>ALT+C</strong></td>
|
|
<td height="20"><strong>ALT+C</strong></td>
|
|
|
<td> %s</td>
|
|
<td> %s</td>
|
|
@@ -1518,6 +1535,10 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
|
|
<td height="20"><strong>ALT+E</strong></td>
|
|
<td height="20"><strong>ALT+E</strong></td>
|
|
|
<td> %s</td>
|
|
<td> %s</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
|
|
+ <tr height="20">
|
|
|
|
|
+ <td height="20"><strong>ALT+I</strong></td>
|
|
|
|
|
+ <td> %s</td>
|
|
|
|
|
+ </tr>
|
|
|
<tr height="20">
|
|
<tr height="20">
|
|
|
<td height="20"><strong>ALT+J</strong></td>
|
|
<td height="20"><strong>ALT+J</strong></td>
|
|
|
<td> %s</td>
|
|
<td> %s</td>
|
|
@@ -1637,11 +1658,13 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
|
|
|
|
|
|
|
# SHIFT section
|
|
# SHIFT section
|
|
|
_("Copy Obj_Name"),
|
|
_("Copy Obj_Name"),
|
|
|
- _("Toggle Code Editor"), _("Toggle the axis"), _("Distance Minimum Tool"), _("Open Preferences Window"),
|
|
|
|
|
|
|
+ _("Toggle Code Editor"), _("Toggle the axis"), _("Locate in Object"), _("Distance Minimum Tool"),
|
|
|
|
|
+ _("Open Preferences Window"),
|
|
|
_("Rotate by 90 degree CCW"), _("Run a Script"), _("Toggle the workspace"), _("Skew on X axis"),
|
|
_("Rotate by 90 degree CCW"), _("Run a Script"), _("Toggle the workspace"), _("Skew on X axis"),
|
|
|
_("Skew on Y axis"),
|
|
_("Skew on Y axis"),
|
|
|
# ALT section
|
|
# ALT section
|
|
|
- _("Calculators Tool"), _("2-Sided PCB Tool"), _("Transformations Tool"), _("Fiducials Tool"),
|
|
|
|
|
|
|
+ _("Align Objects Tool"), _("Calculators Tool"), _("2-Sided PCB Tool"), _("Transformations Tool"),
|
|
|
|
|
+ _("Extract Drills Tool"), _("Fiducials Tool"),
|
|
|
_("Solder Paste Dispensing Tool"),
|
|
_("Solder Paste Dispensing Tool"),
|
|
|
_("Film PCB Tool"), _("Non-Copper Clearing Tool"), _("Optimal Tool"),
|
|
_("Film PCB Tool"), _("Non-Copper Clearing Tool"), _("Optimal Tool"),
|
|
|
_("Paint Area Tool"), _("QRCode Tool"), _("Rules Check Tool"),
|
|
_("Paint Area Tool"), _("QRCode Tool"), _("Rules Check Tool"),
|
|
@@ -2457,8 +2480,12 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
|
|
QtGui.QIcon(self.app.resource_location + '/origin32.png'), _('Set Origin'))
|
|
QtGui.QIcon(self.app.resource_location + '/origin32.png'), _('Set Origin'))
|
|
|
self.jmp_btn = self.toolbargeo.addAction(
|
|
self.jmp_btn = self.toolbargeo.addAction(
|
|
|
QtGui.QIcon(self.app.resource_location + '/jump_to16.png'), _('Jump to Location'))
|
|
QtGui.QIcon(self.app.resource_location + '/jump_to16.png'), _('Jump to Location'))
|
|
|
|
|
+ self.locate_btn = self.toolbargeo.addAction(
|
|
|
|
|
+ QtGui.QIcon(self.app.resource_location + '/locate32.png'), _('Locate in Object'))
|
|
|
|
|
|
|
|
- # ## View Toolbar # ##
|
|
|
|
|
|
|
+ # ########################################################################
|
|
|
|
|
+ # ########################## View Toolbar# ###############################
|
|
|
|
|
+ # ########################################################################
|
|
|
self.replot_btn = self.toolbarview.addAction(
|
|
self.replot_btn = self.toolbarview.addAction(
|
|
|
QtGui.QIcon(self.app.resource_location + '/replot32.png'), _("&Replot"))
|
|
QtGui.QIcon(self.app.resource_location + '/replot32.png'), _("&Replot"))
|
|
|
self.clear_plot_btn = self.toolbarview.addAction(
|
|
self.clear_plot_btn = self.toolbarview.addAction(
|
|
@@ -2470,9 +2497,9 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
|
|
self.zoom_fit_btn = self.toolbarview.addAction(
|
|
self.zoom_fit_btn = self.toolbarview.addAction(
|
|
|
QtGui.QIcon(self.app.resource_location + '/zoom_fit32.png'), _("Zoom Fit"))
|
|
QtGui.QIcon(self.app.resource_location + '/zoom_fit32.png'), _("Zoom Fit"))
|
|
|
|
|
|
|
|
- # self.toolbarview.setVisible(False)
|
|
|
|
|
-
|
|
|
|
|
- # ## Shell Toolbar # ##
|
|
|
|
|
|
|
+ # ########################################################################
|
|
|
|
|
+ # ########################## Shell Toolbar# ##############################
|
|
|
|
|
+ # ########################################################################
|
|
|
self.shell_btn = self.toolbarshell.addAction(
|
|
self.shell_btn = self.toolbarshell.addAction(
|
|
|
QtGui.QIcon(self.app.resource_location + '/shell32.png'), _("&Command Line"))
|
|
QtGui.QIcon(self.app.resource_location + '/shell32.png'), _("&Command Line"))
|
|
|
self.new_script_btn = self.toolbarshell.addAction(
|
|
self.new_script_btn = self.toolbarshell.addAction(
|
|
@@ -2485,6 +2512,11 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
|
|
# ## Tools Toolbar # ##
|
|
# ## Tools Toolbar # ##
|
|
|
self.dblsided_btn = self.toolbartools.addAction(
|
|
self.dblsided_btn = self.toolbartools.addAction(
|
|
|
QtGui.QIcon(self.app.resource_location + '/doubleside32.png'), _("2Sided Tool"))
|
|
QtGui.QIcon(self.app.resource_location + '/doubleside32.png'), _("2Sided Tool"))
|
|
|
|
|
+ self.align_btn = self.toolbartools.addAction(
|
|
|
|
|
+ QtGui.QIcon(self.app.resource_location + '/align32.png'), _("Align Objects Tool"))
|
|
|
|
|
+ self.extract_btn = self.toolbartools.addAction(
|
|
|
|
|
+ QtGui.QIcon(self.app.resource_location + '/extract_drill32.png'), _("Extract Drills Tool"))
|
|
|
|
|
+
|
|
|
self.cutout_btn = self.toolbartools.addAction(
|
|
self.cutout_btn = self.toolbartools.addAction(
|
|
|
QtGui.QIcon(self.app.resource_location + '/cut16_bis.png'), _("&Cutout Tool"))
|
|
QtGui.QIcon(self.app.resource_location + '/cut16_bis.png'), _("&Cutout Tool"))
|
|
|
self.ncc_btn = self.toolbartools.addAction(
|
|
self.ncc_btn = self.toolbartools.addAction(
|
|
@@ -2498,10 +2530,13 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
|
|
self.film_btn = self.toolbartools.addAction(
|
|
self.film_btn = self.toolbartools.addAction(
|
|
|
QtGui.QIcon(self.app.resource_location + '/film16.png'), _("Film Tool"))
|
|
QtGui.QIcon(self.app.resource_location + '/film16.png'), _("Film Tool"))
|
|
|
self.solder_btn = self.toolbartools.addAction(
|
|
self.solder_btn = self.toolbartools.addAction(
|
|
|
- QtGui.QIcon(self.app.resource_location + '/solderpastebis32.png'),
|
|
|
|
|
- _("SolderPaste Tool"))
|
|
|
|
|
|
|
+ QtGui.QIcon(self.app.resource_location + '/solderpastebis32.png'), _("SolderPaste Tool"))
|
|
|
self.sub_btn = self.toolbartools.addAction(
|
|
self.sub_btn = self.toolbartools.addAction(
|
|
|
QtGui.QIcon(self.app.resource_location + '/sub32.png'), _("Subtract Tool"))
|
|
QtGui.QIcon(self.app.resource_location + '/sub32.png'), _("Subtract Tool"))
|
|
|
|
|
+ self.rules_btn = self.toolbartools.addAction(
|
|
|
|
|
+ QtGui.QIcon(self.app.resource_location + '/rules32.png'), _("Rules Tool"))
|
|
|
|
|
+ self.optimal_btn = self.toolbartools.addAction(
|
|
|
|
|
+ QtGui.QIcon(self.app.resource_location + '/open_excellon32.png'), _("Optimal Tool"))
|
|
|
|
|
|
|
|
self.toolbartools.addSeparator()
|
|
self.toolbartools.addSeparator()
|
|
|
|
|
|
|
@@ -2834,6 +2869,10 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
|
|
if key == QtCore.Qt.Key_G:
|
|
if key == QtCore.Qt.Key_G:
|
|
|
self.app.on_toggle_axis()
|
|
self.app.on_toggle_axis()
|
|
|
|
|
|
|
|
|
|
+ # Locate in Object
|
|
|
|
|
+ if key == QtCore.Qt.Key_J:
|
|
|
|
|
+ self.app.on_locate(obj=self.app.collection.get_active())
|
|
|
|
|
+
|
|
|
# Run Distance Minimum Tool
|
|
# Run Distance Minimum Tool
|
|
|
if key == QtCore.Qt.Key_M:
|
|
if key == QtCore.Qt.Key_M:
|
|
|
self.app.distance_min_tool.run()
|
|
self.app.distance_min_tool.run()
|
|
@@ -2882,6 +2921,10 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
|
|
if key == Qt.Key_3:
|
|
if key == Qt.Key_3:
|
|
|
self.app.disable_other_plots()
|
|
self.app.disable_other_plots()
|
|
|
|
|
|
|
|
|
|
+ # Align in Object Tool
|
|
|
|
|
+ if key == QtCore.Qt.Key_A:
|
|
|
|
|
+ self.app.align_objects_tool.run(toggle=True)
|
|
|
|
|
+
|
|
|
# Calculator Tool
|
|
# Calculator Tool
|
|
|
if key == QtCore.Qt.Key_C:
|
|
if key == QtCore.Qt.Key_C:
|
|
|
self.app.calculator_tool.run(toggle=True)
|
|
self.app.calculator_tool.run(toggle=True)
|
|
@@ -2906,6 +2949,10 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
|
|
self.app.on_toggle_grid_lines()
|
|
self.app.on_toggle_grid_lines()
|
|
|
return
|
|
return
|
|
|
|
|
|
|
|
|
|
+ # Align in Object Tool
|
|
|
|
|
+ if key == QtCore.Qt.Key_I:
|
|
|
|
|
+ self.app.edrills_tool.run(toggle=True)
|
|
|
|
|
+
|
|
|
# Fiducials Tool
|
|
# Fiducials Tool
|
|
|
if key == QtCore.Qt.Key_J:
|
|
if key == QtCore.Qt.Key_J:
|
|
|
self.app.fiducial_tool.run(toggle=True)
|
|
self.app.fiducial_tool.run(toggle=True)
|