فهرست منبع

- clicking on the activity icon will replot all objects

Marius Stanciu 5 سال پیش
والد
کامیت
8d160a6d8c
4فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 3 1
      AppGUI/GUIElements.py
  2. 0 2
      AppGUI/MainGUI.py
  3. 0 1
      App_Main.py
  4. 1 0
      CHANGELOG.md

+ 3 - 1
AppGUI/GUIElements.py

@@ -3003,7 +3003,7 @@ class FlatCAMActivityView(QtWidgets.QWidget):
         self.movie_path = movie
         self.icon_path = icon
 
-        self.icon = QtWidgets.QLabel(self)
+        self.icon = FCLabel(self)
         self.icon.setGeometry(0, 0, 16, 12)
         self.movie = QtGui.QMovie(self.movie_path)
 
@@ -3022,6 +3022,8 @@ class FlatCAMActivityView(QtWidgets.QWidget):
 
         layout.addWidget(self.text)
 
+        self.icon.clicked.connect(self.app.on_toolbar_replot)
+
     def set_idle(self):
         self.movie.stop()
         self.text.setText(_("Idle."))

+ 0 - 2
AppGUI/MainGUI.py

@@ -3644,7 +3644,6 @@ class MainGUI(QtWidgets.QMainWindow):
             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("""
@@ -3654,7 +3653,6 @@ class MainGUI(QtWidgets.QMainWindow):
                                                       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()

+ 0 - 1
App_Main.py

@@ -5659,7 +5659,6 @@ class App(QtCore.QObject):
         :return: None
         """
 
-        self.defaults.report_usage("on_toolbar_replot")
         self.log.debug("on_toolbar_replot()")
 
         try:

+ 1 - 0
CHANGELOG.md

@@ -12,6 +12,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
+- clicking on the activity icon will replot all objects
 
 28.05.2020