Sfoglia il codice sorgente

- added an icon and title text for the Toggle Units QMessageBox

Marius Stanciu 6 anni fa
parent
commit
9a2279708e
2 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 3 1
      FlatCAMApp.py
  2. 1 0
      README.md

+ 3 - 1
FlatCAMApp.py

@@ -3263,9 +3263,11 @@ class App(QtCore.QObject):
 
 
         # Changing project units. Warn user.
         # Changing project units. Warn user.
         msgbox = QtWidgets.QMessageBox()
         msgbox = QtWidgets.QMessageBox()
+        msgbox.setWindowTitle("Toggle Units")
+        msgbox.setWindowIcon(QtGui.QIcon('share/toggle_units32.png'))
         msgbox.setText("<B>Change project units ...</B>")
         msgbox.setText("<B>Change project units ...</B>")
         msgbox.setInformativeText("Changing the units of the project causes all geometrical "
         msgbox.setInformativeText("Changing the units of the project causes all geometrical "
-                                  "properties of all objects to be scaled accordingly. Continue?")
+                                  "properties of all objects to be scaled accordingly.\nContinue?")
         msgbox.setStandardButtons(QtWidgets.QMessageBox.Cancel | QtWidgets.QMessageBox.Ok)
         msgbox.setStandardButtons(QtWidgets.QMessageBox.Cancel | QtWidgets.QMessageBox.Ok)
         msgbox.setDefaultButton(QtWidgets.QMessageBox.Ok)
         msgbox.setDefaultButton(QtWidgets.QMessageBox.Ok)
 
 

+ 1 - 0
README.md

@@ -14,6 +14,7 @@ CAD program, and create G-Code for Isolation routing.
 - added autocomplete finish with ENTER key for the TCL Shell
 - added autocomplete finish with ENTER key for the TCL Shell
 - made sure that the autocomplete function works only for FlatCAM Scripts
 - made sure that the autocomplete function works only for FlatCAM Scripts
 - ESC key will trigger normal view if in full screen and the ESC key is pressed
 - ESC key will trigger normal view if in full screen and the ESC key is pressed
+- added an icon and title text for the Toggle Units QMessageBox
 
 
 19.03.2019
 19.03.2019