Procházet zdrojové kódy

- added some icons to more push buttons inside the app
- a change of layout in Tools Database

Marius Stanciu před 5 roky
rodič
revize
0fc6f41177

+ 5 - 3
CHANGELOG.md

@@ -14,9 +14,11 @@ CHANGELOG for FlatCAM beta
 - added Editor Push buttons in Geometry and CNCJob UI's
 - added Editor Push buttons in Geometry and CNCJob UI's
 - Tool Drilling - brushing through code and solved the report on estimation of execution time
 - Tool Drilling - brushing through code and solved the report on estimation of execution time
 - Tool Drilling - more optimizations regarding of using Toolchange as opposed to not using it
 - Tool Drilling - more optimizations regarding of using Toolchange as opposed to not using it
-- modfied the preprocessors to work with the new properties for Excellon objects
+- modified the preprocessors to work with the new properties for Excellon objects
 - added to preprocessors information regarding the X,Y position at the end of the job
 - added to preprocessors information regarding the X,Y position at the end of the job
 - Tool Drilling made sure that on Toolchange event after toolchange event the tool feedrate is set
 - Tool Drilling made sure that on Toolchange event after toolchange event the tool feedrate is set
+- added some icons to more push buttons inside the app
+- a change of layout in Tools Database
 
 
 14.07.2020
 14.07.2020
 
 
@@ -37,7 +39,7 @@ CHANGELOG for FlatCAM beta
 - Drilling Tool - now slots are converted to drills if the checkbox is ON for the tool investigated
 - Drilling Tool - now slots are converted to drills if the checkbox is ON for the tool investigated
 - Drilling Tool - fixes due of changes in properties (preferences)
 - Drilling Tool - fixes due of changes in properties (preferences)
 - fixed the Drillcncjob TCL command
 - fixed the Drillcncjob TCL command
-- Multiple Tools fix - fixed issue with converting slots to drills selection being cleared when togglinh all rows by clicking on the header
+- Multiple Tools fix - fixed issue with converting slots to drills selection being cleared when toggling all rows by clicking on the header
 - Multiple Tools fix - fixes for when having multiple tools selected which created issues in tool tables for many tools
 - Multiple Tools fix - fixes for when having multiple tools selected which created issues in tool tables for many tools
 
 
 12.07.2020
 12.07.2020
@@ -48,7 +50,7 @@ CHANGELOG for FlatCAM beta
 
 
 11.07.2020
 11.07.2020
 
 
-- moved all Excellon Advanced Prefeences to Drilling Tool Preferences
+- moved all Excellon Advanced Preferences to Drilling Tool Preferences
 - updated Drilling Tool to use the new settings
 - updated Drilling Tool to use the new settings
 - updated the Excellon Editor: the default_data dict is populated now on Editor entry
 - updated the Excellon Editor: the default_data dict is populated now on Editor entry
 - Excellon Editor: added a new functionality: conversion of slots to drills
 - Excellon Editor: added a new functionality: conversion of slots to drills

+ 13 - 11
appDatabase.py

@@ -1068,27 +1068,29 @@ class ToolsDB2UI:
         self.iso_box.setLayout(self.iso_vlay)
         self.iso_box.setLayout(self.iso_vlay)
         self.drill_box.setLayout(self.drill_vlay)
         self.drill_box.setLayout(self.drill_vlay)
 
 
+
+        tools_vlay = QtWidgets.QVBoxLayout()
+        tools_vlay.addWidget(self.iso_box)
+        tools_vlay.addWidget(self.paint_box)
+        tools_vlay.addWidget(self.ncc_box)
+        tools_vlay.addStretch()
+
         descript_vlay = QtWidgets.QVBoxLayout()
         descript_vlay = QtWidgets.QVBoxLayout()
         descript_vlay.addWidget(self.tool_description_box)
         descript_vlay.addWidget(self.tool_description_box)
+        descript_vlay.addLayout(tools_vlay)
         descript_vlay.addStretch()
         descript_vlay.addStretch()
 
 
         milling_vlay = QtWidgets.QVBoxLayout()
         milling_vlay = QtWidgets.QVBoxLayout()
         milling_vlay.addWidget(self.milling_box)
         milling_vlay.addWidget(self.milling_box)
         milling_vlay.addStretch()
         milling_vlay.addStretch()
 
 
-        tools1_vlay = QtWidgets.QVBoxLayout()
-        tools1_vlay.addWidget(self.drill_box)
-        tools1_vlay.addWidget(self.iso_box)
-        tools1_vlay.addStretch()
-
-        tools2_vlay = QtWidgets.QVBoxLayout()
-        tools2_vlay.addWidget(self.paint_box)
-        tools2_vlay.addWidget(self.ncc_box)
-        tools2_vlay.addStretch()
+        drilling_vlay = QtWidgets.QVBoxLayout()
+        drilling_vlay.addWidget(self.drill_box)
 
 
         param_hlay.addLayout(descript_vlay)
         param_hlay.addLayout(descript_vlay)
-        param_hlay.addLayout(tools1_vlay)
-        param_hlay.addLayout(tools2_vlay)
+        param_hlay.addLayout(milling_vlay)
+        param_hlay.addLayout(drilling_vlay)
+        param_hlay.addLayout(tools_vlay)
 
 
         # always visible, always to be included last
         # always visible, always to be included last
         param_hlay.addLayout(milling_vlay)
         param_hlay.addLayout(milling_vlay)

+ 7 - 0
appGUI/ObjectUI.py

@@ -984,6 +984,7 @@ class GeometryObjectUI(ObjectUI):
         bhlay = QtWidgets.QHBoxLayout()
         bhlay = QtWidgets.QHBoxLayout()
 
 
         self.addtool_btn = QtWidgets.QPushButton(_('Add'))
         self.addtool_btn = QtWidgets.QPushButton(_('Add'))
+        self.addtool_btn.setIcon(QtGui.QIcon(self.app.resource_location + '/plus16.png'))
         self.addtool_btn.setToolTip(
         self.addtool_btn.setToolTip(
             _("Add a new tool to the Tool Table\n"
             _("Add a new tool to the Tool Table\n"
               "with the diameter specified above.")
               "with the diameter specified above.")
@@ -1010,12 +1011,14 @@ class GeometryObjectUI(ObjectUI):
         self.geo_table_box.addLayout(grid2)
         self.geo_table_box.addLayout(grid2)
 
 
         self.copytool_btn = QtWidgets.QPushButton(_('Copy'))
         self.copytool_btn = QtWidgets.QPushButton(_('Copy'))
+        self.copytool_btn.setIcon(QtGui.QIcon(self.app.resource_location + '/copy16.png'))
         self.copytool_btn.setToolTip(
         self.copytool_btn.setToolTip(
             _("Copy a selection of tools in the Tool Table\n"
             _("Copy a selection of tools in the Tool Table\n"
               "by first selecting a row in the Tool Table.")
               "by first selecting a row in the Tool Table.")
         )
         )
 
 
         self.deltool_btn = QtWidgets.QPushButton(_('Delete'))
         self.deltool_btn = QtWidgets.QPushButton(_('Delete'))
+        self.deltool_btn.setIcon(QtGui.QIcon(self.app.resource_location + '/trash16.png'))
         self.deltool_btn.setToolTip(
         self.deltool_btn.setToolTip(
             _("Delete a selection of tools in the Tool Table\n"
             _("Delete a selection of tools in the Tool Table\n"
               "by first selecting a row in the Tool Table.")
               "by first selecting a row in the Tool Table.")
@@ -1317,6 +1320,7 @@ class GeometryObjectUI(ObjectUI):
         grid4.addWidget(separator_line2, 0, 0, 1, 2)
         grid4.addWidget(separator_line2, 0, 0, 1, 2)
 
 
         self.apply_param_to_all = FCButton(_("Apply parameters to all tools"))
         self.apply_param_to_all = FCButton(_("Apply parameters to all tools"))
+        self.apply_param_to_all.setIcon(QtGui.QIcon(self.app.resource_location + '/param_all32.png'))
         self.apply_param_to_all.setToolTip(
         self.apply_param_to_all.setToolTip(
             _("The parameters in the current form will be applied\n"
             _("The parameters in the current form will be applied\n"
               "on all the tools from the Tool Table.")
               "on all the tools from the Tool Table.")
@@ -1620,6 +1624,7 @@ class GeometryObjectUI(ObjectUI):
 
 
         # Button
         # Button
         self.generate_cnc_button = QtWidgets.QPushButton(_('Generate CNCJob object'))
         self.generate_cnc_button = QtWidgets.QPushButton(_('Generate CNCJob object'))
+        self.generate_cnc_button.setIcon(QtGui.QIcon(self.app.resource_location + '/cnc16.png'))
         self.generate_cnc_button.setToolTip('%s\n%s' % (
         self.generate_cnc_button.setToolTip('%s\n%s' % (
             _("Generate CNCJob object."),
             _("Generate CNCJob object."),
             _(
             _(
@@ -1648,6 +1653,7 @@ class GeometryObjectUI(ObjectUI):
 
 
         # Paint Button
         # Paint Button
         self.paint_tool_button = QtWidgets.QPushButton(_('Paint Tool'))
         self.paint_tool_button = QtWidgets.QPushButton(_('Paint Tool'))
+        self.paint_tool_button.setIcon(QtGui.QIcon(self.app.resource_location + '/paint20_1.png'))
         self.paint_tool_button.setToolTip(
         self.paint_tool_button.setToolTip(
             _(
             _(
                 "Creates tool paths to cover the\n"
                 "Creates tool paths to cover the\n"
@@ -1666,6 +1672,7 @@ class GeometryObjectUI(ObjectUI):
 
 
         # NCC Tool
         # NCC Tool
         self.generate_ncc_button = QtWidgets.QPushButton(_('NCC Tool'))
         self.generate_ncc_button = QtWidgets.QPushButton(_('NCC Tool'))
+        self.generate_ncc_button.setIcon(QtGui.QIcon(self.app.resource_location + '/eraser26.png'))
         self.generate_ncc_button.setToolTip(
         self.generate_ncc_button.setToolTip(
             _("Create the Geometry Object\n"
             _("Create the Geometry Object\n"
               "for non-copper routing.")
               "for non-copper routing.")

+ 2 - 1
appTools/ToolAlignObjects.py

@@ -5,7 +5,7 @@
 # MIT Licence                                              #
 # MIT Licence                                              #
 # ##########################################################
 # ##########################################################
 
 
-from PyQt5 import QtWidgets, QtCore
+from PyQt5 import QtWidgets, QtCore, QtGui
 from appTool import AppTool
 from appTool import AppTool
 
 
 from appGUI.GUIElements import FCComboBox, RadioSet
 from appGUI.GUIElements import FCComboBox, RadioSet
@@ -171,6 +171,7 @@ class AlignObjects(AppTool):
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 2 - 1
appTools/ToolCalculators.py

@@ -5,7 +5,7 @@
 # MIT Licence                                              #
 # MIT Licence                                              #
 # ##########################################################
 # ##########################################################
 
 
-from PyQt5 import QtWidgets
+from PyQt5 import QtWidgets, QtGui
 from appTool import AppTool
 from appTool import AppTool
 from appGUI.GUIElements import FCSpinner, FCDoubleSpinner, NumericalEvalEntry
 from appGUI.GUIElements import FCSpinner, FCDoubleSpinner, NumericalEvalEntry
 import math
 import math
@@ -244,6 +244,7 @@ class ToolCalculator(AppTool):
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 1 - 0
appTools/ToolCalibration.py

@@ -681,6 +681,7 @@ class ToolCalibration(AppTool):
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 2 - 1
appTools/ToolCopperThieving.py

@@ -5,7 +5,7 @@
 # MIT Licence                                              #
 # MIT Licence                                              #
 # ##########################################################
 # ##########################################################
 
 
-from PyQt5 import QtWidgets, QtCore
+from PyQt5 import QtWidgets, QtCore, QtGui
 
 
 from camlib import grace
 from camlib import grace
 from appTool import AppTool
 from appTool import AppTool
@@ -486,6 +486,7 @@ class ToolCopperThieving(AppTool):
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 2 - 1
appTools/ToolCorners.py

@@ -5,7 +5,7 @@
 # MIT Licence                                              #
 # MIT Licence                                              #
 # ##########################################################
 # ##########################################################
 
 
-from PyQt5 import QtWidgets, QtCore
+from PyQt5 import QtWidgets, QtCore, QtGui
 
 
 from appTool import AppTool
 from appTool import AppTool
 from appGUI.GUIElements import FCDoubleSpinner, FCCheckBox, FCComboBox, FCButton
 from appGUI.GUIElements import FCDoubleSpinner, FCCheckBox, FCComboBox, FCButton
@@ -180,6 +180,7 @@ class ToolCorners(AppTool):
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 1 - 0
appTools/ToolCutOut.py

@@ -1543,6 +1543,7 @@ class CutoutUI:
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = FCButton(_("Reset Tool"))
         self.reset_button = FCButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 2 - 1
appTools/ToolDblSided.py

@@ -1,5 +1,5 @@
 
 
-from PyQt5 import QtWidgets, QtCore
+from PyQt5 import QtWidgets, QtCore, QtGui
 
 
 from appTool import AppTool
 from appTool import AppTool
 from appGUI.GUIElements import RadioSet, FCDoubleSpinner, EvalEntry, FCEntry, FCButton, FCComboBox
 from appGUI.GUIElements import RadioSet, FCDoubleSpinner, EvalEntry, FCEntry, FCButton, FCComboBox
@@ -898,6 +898,7 @@ class DsidedUI:
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 3 - 0
appTools/ToolDrilling.py

@@ -2248,6 +2248,7 @@ class DrillingUI:
         self.grid3.addWidget(separator_line2, 0, 0, 1, 2)
         self.grid3.addWidget(separator_line2, 0, 0, 1, 2)
 
 
         self.apply_param_to_all = FCButton(_("Apply parameters to all tools"))
         self.apply_param_to_all = FCButton(_("Apply parameters to all tools"))
+        self.apply_param_to_all.setIcon(QtGui.QIcon(self.app.resource_location + '/param_all32.png'))
         self.apply_param_to_all.setToolTip(
         self.apply_param_to_all.setToolTip(
             _("The parameters in the current form will be applied\n"
             _("The parameters in the current form will be applied\n"
               "on all the tools from the Tool Table.")
               "on all the tools from the Tool Table.")
@@ -2497,6 +2498,7 @@ class DrillingUI:
         self.tools_box.addLayout(self.grid4)
         self.tools_box.addLayout(self.grid4)
 
 
         self.generate_cnc_button = QtWidgets.QPushButton(_('Generate CNCJob object'))
         self.generate_cnc_button = QtWidgets.QPushButton(_('Generate CNCJob object'))
+        self.generate_cnc_button.setIcon(QtGui.QIcon(self.app.resource_location + '/cnc16.png'))
         self.generate_cnc_button.setToolTip(
         self.generate_cnc_button.setToolTip(
             _("Generate the CNC Job.\n"
             _("Generate the CNC Job.\n"
               "If milling then an additional Geometry object will be created.\n"
               "If milling then an additional Geometry object will be created.\n"
@@ -2516,6 +2518,7 @@ class DrillingUI:
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 2 - 1
appTools/ToolEtchCompensation.py

@@ -5,7 +5,7 @@
 # MIT Licence                                              #
 # MIT Licence                                              #
 # ##########################################################
 # ##########################################################
 
 
-from PyQt5 import QtWidgets, QtCore
+from PyQt5 import QtWidgets, QtCore, QtGui
 
 
 from appTool import AppTool
 from appTool import AppTool
 from appGUI.GUIElements import FCButton, FCDoubleSpinner, RadioSet, FCComboBox, NumericalEvalEntry, FCEntry
 from appGUI.GUIElements import FCButton, FCDoubleSpinner, RadioSet, FCComboBox, NumericalEvalEntry, FCEntry
@@ -456,6 +456,7 @@ class EtchUI:
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 2 - 1
appTools/ToolExtractDrills.py

@@ -5,7 +5,7 @@
 # MIT Licence                                              #
 # MIT Licence                                              #
 # ##########################################################
 # ##########################################################
 
 
-from PyQt5 import QtWidgets, QtCore
+from PyQt5 import QtWidgets, QtCore, QtGui
 
 
 from appTool import AppTool
 from appTool import AppTool
 from appGUI.GUIElements import RadioSet, FCDoubleSpinner, FCCheckBox, FCComboBox
 from appGUI.GUIElements import RadioSet, FCDoubleSpinner, FCCheckBox, FCComboBox
@@ -700,6 +700,7 @@ class ExtractDrillsUI:
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 2 - 1
appTools/ToolFiducials.py

@@ -5,7 +5,7 @@
 # MIT Licence                                              #
 # MIT Licence                                              #
 # ##########################################################
 # ##########################################################
 
 
-from PyQt5 import QtWidgets, QtCore
+from PyQt5 import QtWidgets, QtCore, QtGui
 
 
 from appTool import AppTool
 from appTool import AppTool
 from appGUI.GUIElements import FCDoubleSpinner, RadioSet, EvalEntry, FCTable, FCComboBox
 from appGUI.GUIElements import FCDoubleSpinner, RadioSet, EvalEntry, FCTable, FCComboBox
@@ -319,6 +319,7 @@ class ToolFiducials(AppTool):
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 2 - 1
appTools/ToolFilm.py

@@ -5,7 +5,7 @@
 # MIT Licence                                              #
 # MIT Licence                                              #
 # ##########################################################
 # ##########################################################
 
 
-from PyQt5 import QtCore, QtWidgets
+from PyQt5 import QtCore, QtWidgets, QtGui
 
 
 from appTool import AppTool
 from appTool import AppTool
 from appGUI.GUIElements import RadioSet, FCDoubleSpinner, FCCheckBox, \
 from appGUI.GUIElements import RadioSet, FCDoubleSpinner, FCCheckBox, \
@@ -506,6 +506,7 @@ class Film(AppTool):
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 2 - 1
appTools/ToolInvertGerber.py

@@ -5,7 +5,7 @@
 # MIT Licence                                              #
 # MIT Licence                                              #
 # ##########################################################
 # ##########################################################
 
 
-from PyQt5 import QtWidgets, QtCore
+from PyQt5 import QtWidgets, QtCore, QtGui
 
 
 from appTool import AppTool
 from appTool import AppTool
 from appGUI.GUIElements import FCButton, FCDoubleSpinner, RadioSet, FCComboBox
 from appGUI.GUIElements import FCButton, FCDoubleSpinner, RadioSet, FCComboBox
@@ -141,6 +141,7 @@ class ToolInvertGerber(AppTool):
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 2 - 0
appTools/ToolIsolation.py

@@ -3096,6 +3096,7 @@ class IsoUI:
         self.grid3.addWidget(separator_line, 18, 0, 1, 2)
         self.grid3.addWidget(separator_line, 18, 0, 1, 2)
 
 
         self.apply_param_to_all = FCButton(_("Apply parameters to all tools"))
         self.apply_param_to_all = FCButton(_("Apply parameters to all tools"))
+        self.apply_param_to_all.setIcon(QtGui.QIcon(self.app.resource_location + '/param_all32.png'))
         self.apply_param_to_all.setToolTip(
         self.apply_param_to_all.setToolTip(
             _("The parameters in the current form will be applied\n"
             _("The parameters in the current form will be applied\n"
               "on all the tools from the Tool Table.")
               "on all the tools from the Tool Table.")
@@ -3296,6 +3297,7 @@ class IsoUI:
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 3 - 0
appTools/ToolMilling.py

@@ -2040,6 +2040,7 @@ class MillingUI:
         self.grid3.addWidget(separator_line2, 0, 0, 1, 2)
         self.grid3.addWidget(separator_line2, 0, 0, 1, 2)
 
 
         self.apply_param_to_all = FCButton(_("Apply parameters to all tools"))
         self.apply_param_to_all = FCButton(_("Apply parameters to all tools"))
+        self.apply_param_to_all.setIcon(QtGui.QIcon(self.app.resource_location + '/param_all32.png'))
         self.apply_param_to_all.setToolTip(
         self.apply_param_to_all.setToolTip(
             _("The parameters in the current form will be applied\n"
             _("The parameters in the current form will be applied\n"
               "on all the tools from the Tool Table.")
               "on all the tools from the Tool Table.")
@@ -2301,6 +2302,7 @@ class MillingUI:
         self.tools_box.addLayout(self.grid4)
         self.tools_box.addLayout(self.grid4)
 
 
         self.generate_cnc_button = QtWidgets.QPushButton(_('Generate CNCJob object'))
         self.generate_cnc_button = QtWidgets.QPushButton(_('Generate CNCJob object'))
+        self.generate_cnc_button.setIcon(QtGui.QIcon(self.app.resource_location + '/cnc16.png'))
         self.generate_cnc_button.setToolTip(
         self.generate_cnc_button.setToolTip(
             _("Generate the CNC Job.\n"
             _("Generate the CNC Job.\n"
               "If milling then an additional Geometry object will be created.\n"
               "If milling then an additional Geometry object will be created.\n"
@@ -2320,6 +2322,7 @@ class MillingUI:
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 2 - 0
appTools/ToolNCC.py

@@ -4053,6 +4053,7 @@ class NccUI:
         self.grid3.addWidget(separator_line, 21, 0, 1, 2)
         self.grid3.addWidget(separator_line, 21, 0, 1, 2)
 
 
         self.apply_param_to_all = FCButton(_("Apply parameters to all tools"))
         self.apply_param_to_all = FCButton(_("Apply parameters to all tools"))
+        self.apply_param_to_all.setIcon(QtGui.QIcon(self.app.resource_location + '/param_all32.png'))
         self.apply_param_to_all.setToolTip(
         self.apply_param_to_all.setToolTip(
             _("The parameters in the current form will be applied\n"
             _("The parameters in the current form will be applied\n"
               "on all the tools from the Tool Table.")
               "on all the tools from the Tool Table.")
@@ -4228,6 +4229,7 @@ class NccUI:
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 1 - 0
appTools/ToolOptimal.py

@@ -241,6 +241,7 @@ class ToolOptimal(AppTool):
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 2 - 0
appTools/ToolPaint.py

@@ -3112,6 +3112,7 @@ class PaintUI:
         grid4.addWidget(separator_line, 11, 0, 1, 2)
         grid4.addWidget(separator_line, 11, 0, 1, 2)
 
 
         self.apply_param_to_all = FCButton(_("Apply parameters to all tools"))
         self.apply_param_to_all = FCButton(_("Apply parameters to all tools"))
+        self.apply_param_to_all.setIcon(QtGui.QIcon(self.app.resource_location + '/param_all32.png'))
         self.apply_param_to_all.setToolTip(
         self.apply_param_to_all.setToolTip(
             _("The parameters in the current form will be applied\n"
             _("The parameters in the current form will be applied\n"
               "on all the tools from the Tool Table.")
               "on all the tools from the Tool Table.")
@@ -3255,6 +3256,7 @@ class PaintUI:
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 1 - 0
appTools/ToolPanelize.py

@@ -887,6 +887,7 @@ class PanelizeUI:
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 2 - 1
appTools/ToolPunchGerber.py

@@ -5,7 +5,7 @@
 # MIT Licence                                              #
 # MIT Licence                                              #
 # ##########################################################
 # ##########################################################
 
 
-from PyQt5 import QtCore, QtWidgets
+from PyQt5 import QtCore, QtWidgets, QtGui
 
 
 from appTool import AppTool
 from appTool import AppTool
 from appGUI.GUIElements import RadioSet, FCDoubleSpinner, FCCheckBox, FCComboBox
 from appGUI.GUIElements import RadioSet, FCDoubleSpinner, FCCheckBox, FCComboBox
@@ -991,6 +991,7 @@ class PunchUI:
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 1 - 0
appTools/ToolQRCode.py

@@ -899,6 +899,7 @@ class QRcodeUI:
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 2 - 1
appTools/ToolRulesCheck.py

@@ -5,7 +5,7 @@
 # MIT Licence                                              #
 # MIT Licence                                              #
 # ##########################################################
 # ##########################################################
 
 
-from PyQt5 import QtWidgets
+from PyQt5 import QtWidgets, QtGui
 
 
 from appTool import AppTool
 from appTool import AppTool
 from appGUI.GUIElements import FCDoubleSpinner, FCCheckBox, OptionalInputSection, FCComboBox
 from appGUI.GUIElements import FCDoubleSpinner, FCCheckBox, OptionalInputSection, FCComboBox
@@ -514,6 +514,7 @@ class RulesCheck(AppTool):
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 1 - 0
appTools/ToolSolderPaste.py

@@ -1555,6 +1555,7 @@ class SolderUI:
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 2 - 1
appTools/ToolSub.py

@@ -5,7 +5,7 @@
 # MIT Licence                                              #
 # MIT Licence                                              #
 # ##########################################################
 # ##########################################################
 
 
-from PyQt5 import QtWidgets, QtCore
+from PyQt5 import QtWidgets, QtCore, QtGui
 
 
 from appTool import AppTool
 from appTool import AppTool
 from appGUI.GUIElements import FCCheckBox, FCButton, FCComboBox
 from appGUI.GUIElements import FCCheckBox, FCButton, FCComboBox
@@ -179,6 +179,7 @@ class ToolSub(AppTool):
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

+ 1 - 0
appTools/ToolTransform.py

@@ -431,6 +431,7 @@ class ToolTransform(AppTool):
 
 
         # ## Reset Tool
         # ## Reset Tool
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
         self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
+        self.reset_button.setIcon(QtGui.QIcon(self.app.resource_location + '/reset32.png'))
         self.reset_button.setToolTip(
         self.reset_button.setToolTip(
             _("Will reset the tool parameters.")
             _("Will reset the tool parameters.")
         )
         )

binární
assets/resources/dark_resources/param_all32.png


binární
assets/resources/dark_resources/reset32.png


binární
assets/resources/param_all32.png


binární
assets/resources/reset32.png