- fixed the Tcl command Plot_All that malfunctioned if there were any FlatCAM scripts (or FlatCAM documents) open

- updated the shortcuts list
This commit is contained in:
Marius Stanciu 2020-04-23 03:34:09 +03:00 committed by Marius
parent bfd938e577
commit 32ff35b4ff
3 changed files with 17 additions and 7 deletions

View File

@ -15,6 +15,8 @@ CHANGELOG for FlatCAM beta
- in App.on_mouse_move_over_plot() method no longer will be done a setFocus() on every move, only when it is needed
- added an extra check if old preferences files are detected, a check if the type of the values is the same with the type in the current preferences file. If the type is not the same then the current type is preferred.
- aligned the Tcl commands display when the Help Tcl command is run without parameters
- fixed the Tcl command Plot_All that malfunctioned if there were any FlatCAM scripts (or FlatCAM documents) open
- updated the shortcuts list
22.04.2020

View File

@ -384,13 +384,13 @@ class FlatCAMObj(QtCore.QObject):
pass
# self.app.log.warning("Failed to read option from field: %s" % option)
def plot(self):
def plot(self, kind=None) -> bool:
"""
Plot this object (Extend this method to implement the actual plotting).
Call this in descendants before doing the plotting.
:return: Whether to continue plotting or not depending on the "plot" option.
:rtype: bool
:param kind: Used by only some of the FlatCAM objects
:return: Whether to continue plotting or not depending on the "plot" option. Boolean
"""
FlatCAMApp.App.log.debug(str(inspect.stack()[1][3]) + " --> FlatCAMObj.plot()")
@ -1761,10 +1761,11 @@ class FlatCAMGerber(FlatCAMObj, Gerber):
# self.options['isotooldia'] = float(self.options['isotooldia']) * factor
# self.options['bboxmargin'] = float(self.options['bboxmargin']) * factor
def plot(self, **kwargs):
def plot(self, kind=None, **kwargs):
"""
:param kwargs: color and face_color
:param kind: Not used, for compatibility with the plot method for other objects
:param kwargs: Color and face_color, visible
:return:
"""
FlatCAMApp.App.log.debug(str(inspect.stack()[1][3]) + " --> FlatCAMGerber.plot()")

View File

@ -53,8 +53,8 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
self.shell_dock.setObjectName('Shell_DockWidget')
self.shell_dock.setAllowedAreas(QtCore.Qt.AllDockWidgetAreas)
self.shell_dock.setFeatures(QtWidgets.QDockWidget.DockWidgetMovable |
QtWidgets.QDockWidget.DockWidgetFloatable |
QtWidgets.QDockWidget.DockWidgetClosable)
QtWidgets.QDockWidget.DockWidgetFloatable |
QtWidgets.QDockWidget.DockWidgetClosable)
self.addDockWidget(QtCore.Qt.BottomDockWidgetArea, self.shell_dock)
# #######################################################################
@ -1656,6 +1656,11 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
<td height="20"><strong>Ctrl+Shift+S</strong></td>
<td>&nbsp;%s</td>
</tr>
</tr>
<tr height="20">
<td height="20"><strong>Ctrl+Shift+V</strong></td>
<td>&nbsp;%s</td>
</tr>
<tr height="20">
<td height="20">&nbsp;</td>
<td>&nbsp;</td>
@ -1715,6 +1720,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
_("Open Preferences Window"),
_("Rotate by 90 degree CCW"), _("Run a Script"), _("Toggle the workspace"), _("Skew on X axis"),
_("Skew on Y axis"),
# ALT section
_("Align Objects Tool"), _("Calculators Tool"), _("2-Sided PCB Tool"), _("Transformations Tool"),
_("Punch Gerber Tool"), _("Extract Drills Tool"), _("Fiducials Tool"),
@ -1730,6 +1736,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
# CTRL + SHIFT section
_("Save Project As"),
_("Paste Special. Will convert a Windows path style to the one required in Tcl Shell"),
# F keys section
_("Open Online Manual"),