diff --git a/AppGUI/MainGUI.py b/AppGUI/MainGUI.py index 97ae3067..574eb836 100644 --- a/AppGUI/MainGUI.py +++ b/AppGUI/MainGUI.py @@ -488,7 +488,7 @@ class MainGUI(QtWidgets.QMainWindow): self.menuview_toggle_grid = self.menuview.addAction( QtGui.QIcon(self.app.resource_location + '/grid32.png'), _("&Toggle Grid Snap\tG")) self.menuview_toggle_grid_lines = self.menuview.addAction( - QtGui.QIcon(self.app.resource_location + '/grid32.png'), _("&Toggle Grid Lines\tAlt+G")) + QtGui.QIcon(self.app.resource_location + '/grid_lines32.png'), _("&Toggle Grid Lines\tAlt+G")) self.menuview_toggle_axis = self.menuview.addAction( QtGui.QIcon(self.app.resource_location + '/axis32.png'), _("&Toggle Axis\tShift+G")) self.menuview_toggle_workspace = self.menuview.addAction( @@ -1095,17 +1095,21 @@ class MainGUI(QtWidgets.QMainWindow): self.grid_gap_x_entry.setToolTip(_("Grid X snapping distance")) self.snap_toolbar.addWidget(self.grid_gap_x_entry) + self.snap_toolbar.addWidget(QtWidgets.QLabel(" ")) + self.grid_gap_link_cb = FCCheckBox() + self.grid_gap_link_cb.setToolTip(_("When active, value on Grid_X\n" + "is copied to the Grid_Y value.")) + self.snap_toolbar.addWidget(self.grid_gap_link_cb) + self.snap_toolbar.addWidget(QtWidgets.QLabel(" ")) + self.grid_gap_y_entry = FCEntry2() self.grid_gap_y_entry.setMaximumWidth(70) self.grid_gap_y_entry.setToolTip(_("Grid Y snapping distance")) self.snap_toolbar.addWidget(self.grid_gap_y_entry) - self.grid_space_label = QtWidgets.QLabel(" ") - self.snap_toolbar.addWidget(self.grid_space_label) - self.grid_gap_link_cb = FCCheckBox() - self.grid_gap_link_cb.setToolTip(_("When active, value on Grid_X\n" - "is copied to the Grid_Y value.")) - self.snap_toolbar.addWidget(self.grid_gap_link_cb) + self.shell_status_label = FCLabel() + self.shell_status_label.setPixmap(QtGui.QPixmap(self.app.resource_location + '/shell20.png')) + self.snap_toolbar.addWidget(self.shell_status_label) self.ois_grid = OptionalInputSection(self.grid_gap_link_cb, [self.grid_gap_y_entry], logic=False) @@ -1656,7 +1660,7 @@ class MainGUI(QtWidgets.QMainWindow): self.wplace_label.clicked.connect(self.app.on_workspace_toggle) self.hud_label.clicked.connect(self.app.on_toggle_hud) - + self.shell_status_label.clicked.connect(self.toggle_shell_ui) # to be used in the future # self.plot_tab_area.tab_attached.connect(lambda x: print(x)) # self.plot_tab_area.tab_detached.connect(lambda x: print(x)) @@ -3639,8 +3643,18 @@ class MainGUI(QtWidgets.QMainWindow): if self.shell_dock.isVisible(): self.shell_dock.hide() self.app.plotcanvas.native.setFocus() + self.shell_status_label.setStyleSheet("") + self.app.inform.emit(_("Shell disabled.")) else: self.shell_dock.show() + self.shell_status_label.setStyleSheet(""" + QLabel + { + color: black; + background-color: lightcoral; + } + """) + self.app.inform.emit(_("Shell enabled.")) # I want to take the focus and give it to the Tcl Shell when the Tcl Shell is run # self.shell._edit.setFocus() diff --git a/AppTools/ToolIsolation.py b/AppTools/ToolIsolation.py index 2582da79..cc045665 100644 --- a/AppTools/ToolIsolation.py +++ b/AppTools/ToolIsolation.py @@ -2052,6 +2052,8 @@ class ToolIsolation(AppTool, Gerber): to_follow = tool_data['tools_iso_follow'] + # TODO what to do when the iso2geo param is not None but the Follow cb is checked + # for the case when limited area is used .... the follow geo should be clipped too work_geo = geometry if work_geo is None: work_geo = iso_obj.follow_geometry if to_follow else iso_obj.solid_geometry diff --git a/CHANGELOG.md b/CHANGELOG.md index 8329b435..84351064 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ CHANGELOG for FlatCAM beta - fixed the Tool Isolation when using the 'follow' parameter - in Isolation Tool when the Rest machining is checked the combine parameter is set True automatically because the rest machining concept make sense only when all tools are used together +- some changes in the UI; added in the status bar an icon to control the Shell Dock 28.05.2020 diff --git a/assets/resources/grid32.png b/assets/resources/grid32.png index 9cb197bf..b2d7ca1b 100644 Binary files a/assets/resources/grid32.png and b/assets/resources/grid32.png differ diff --git a/assets/resources/grid_lines32.png b/assets/resources/grid_lines32.png new file mode 100644 index 00000000..d2be39cd Binary files /dev/null and b/assets/resources/grid_lines32.png differ diff --git a/assets/resources/shell20.png b/assets/resources/shell20.png new file mode 100644 index 00000000..299cabf4 Binary files /dev/null and b/assets/resources/shell20.png differ