diff --git a/src/app/app.pro b/src/app/app.pro index 6f18ab6bd..d7c2b4ba9 100644 --- a/src/app/app.pro +++ b/src/app/app.pro @@ -57,7 +57,8 @@ RESOURCES += \ share/resources/cursor.qrc \ # Tools cursor icons. share/resources/theme.qrc \ # Windows theme icons. share/resources/measurements.qrc \ # For measurements files that we save as resource. - share/resources/flags.qrc + share/resources/flags.qrc \ + share/resources/toolicon.qrc # Compilation will fail without this files after we added them to this section. OTHER_FILES += \ diff --git a/src/app/main.cpp b/src/app/main.cpp index b17b8b4a4..0bbb8004a 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -51,6 +51,7 @@ int main(int argc, char *argv[]) Q_INIT_RESOURCE(theme); Q_INIT_RESOURCE(flags); Q_INIT_RESOURCE(icons); + Q_INIT_RESOURCE(toolicon); QT_REQUIRE_VERSION(argc, argv, "5.0.0"); diff --git a/src/app/mainwindow.ui b/src/app/mainwindow.ui index 3860bec9b..6174541bb 100644 --- a/src/app/mainwindow.ui +++ b/src/app/mainwindow.ui @@ -48,7 +48,7 @@ - 3 + 4 @@ -87,8 +87,8 @@ ... - - :/icon/32x32/normal.png:/icon/32x32/normal.png + + :/toolicon/32x32/normal.png:/toolicon/32x32/normal.png @@ -113,8 +113,8 @@ ... - - :/icon/32x32/shoulder.png:/icon/32x32/shoulder.png + + :/toolicon/32x32/shoulder.png:/toolicon/32x32/shoulder.png @@ -139,8 +139,8 @@ ... - - :/icon/32x32/triangle.png:/icon/32x32/triangle.png + + :/toolicon/32x32/triangle.png:/toolicon/32x32/triangle.png @@ -165,8 +165,8 @@ ... - - :/icon/32x32/height.png:/icon/32x32/height.png + + :/toolicon/32x32/height.png:/toolicon/32x32/height.png @@ -191,8 +191,8 @@ ... - - :/icon/32x32/bisector.png:/icon/32x32/bisector.png + + :/toolicon/32x32/bisector.png:/toolicon/32x32/bisector.png @@ -217,8 +217,8 @@ ... - - :/icon/32x32/point_of_contact.png:/icon/32x32/point_of_contact.png + + :/toolicon/32x32/point_of_contact.png:/toolicon/32x32/point_of_contact.png @@ -243,8 +243,8 @@ ... - - :/icon/32x32/point_of_intersection.png:/icon/32x32/point_of_intersection.png + + :/toolicon/32x32/point_of_intersection.png:/toolicon/32x32/point_of_intersection.png @@ -269,8 +269,8 @@ ... - - :/icon/32x32/segment.png:/icon/32x32/segment.png + + :/toolicon/32x32/segment.png:/toolicon/32x32/segment.png @@ -295,8 +295,8 @@ ... - - :/icon/32x32/along_line.png:/icon/32x32/along_line.png + + :/toolicon/32x32/along_line.png:/toolicon/32x32/along_line.png @@ -321,8 +321,8 @@ ... - - :/icon/32x32/line_intersect_axis.png:/icon/32x32/line_intersect_axis.png + + :/toolicon/32x32/line_intersect_axis.png:/toolicon/32x32/line_intersect_axis.png @@ -371,8 +371,8 @@ ... - - :/icon/32x32/line.png:/icon/32x32/line.png + + :/toolicon/32x32/line.png:/toolicon/32x32/line.png @@ -397,8 +397,8 @@ ... - - :/icon/32x32/intersect.png:/icon/32x32/intersect.png + + :/toolicon/32x32/intersect.png:/toolicon/32x32/intersect.png @@ -447,8 +447,8 @@ ... - - :/icon/32x32/spline.png:/icon/32x32/spline.png + + :/toolicon/32x32/spline.png:/toolicon/32x32/spline.png @@ -473,8 +473,8 @@ ... - - :/icon/32x32/splinePath.png:/icon/32x32/splinePath.png + + :/toolicon/32x32/splinePath.png:/toolicon/32x32/splinePath.png @@ -499,8 +499,8 @@ ... - - :/icon/32x32/spline_cut_point.png:/icon/32x32/spline_cut_point.png + + :/toolicon/32x32/spline_cut_point.png:/toolicon/32x32/spline_cut_point.png @@ -525,8 +525,8 @@ ... - - :/icon/32x32/splinePath_cut_point.png:/icon/32x32/splinePath_cut_point.png + + :/toolicon/32x32/splinePath_cut_point.png:/toolicon/32x32/splinePath_cut_point.png @@ -551,8 +551,8 @@ ... - - :/icon/32x32/curve_intersect_axis.png:/icon/32x32/curve_intersect_axis.png + + :/toolicon/32x32/curve_intersect_axis.png:/toolicon/32x32/curve_intersect_axis.png @@ -601,8 +601,8 @@ ... - - :/icon/32x32/arc.png:/icon/32x32/arc.png + + :/toolicon/32x32/arc.png:/toolicon/32x32/arc.png @@ -627,8 +627,8 @@ ... - - :/icon/32x32/arc_cut.png:/icon/32x32/arc_cut.png + + :/toolicon/32x32/arc_cut.png:/toolicon/32x32/arc_cut.png @@ -653,8 +653,8 @@ ... - - :/icon/32x32/arc_intersect_axis.png:/icon/32x32/arc_intersect_axis.png + + :/toolicon/32x32/arc_intersect_axis.png:/toolicon/32x32/arc_intersect_axis.png @@ -679,8 +679,8 @@ ... - - :/icon/32x32/point_of_intersection_arcs.png:/icon/32x32/point_of_intersection_arcs.png + + :/toolicon/32x32/point_of_intersection_arcs.png:/toolicon/32x32/point_of_intersection_arcs.png @@ -705,8 +705,8 @@ ... - - :/icon/32x32/point_of_intersection_circles.png:/icon/32x32/point_of_intersection_circles.png + + :/toolicon/32x32/point_of_intersection_circles.png:/toolicon/32x32/point_of_intersection_circles.png @@ -731,8 +731,8 @@ ... - - :/icon/32x32/point_from_circle_and_tangent.png:/icon/32x32/point_from_circle_and_tangent.png + + :/toolicon/32x32/point_from_circle_and_tangent.png:/toolicon/32x32/point_from_circle_and_tangent.png @@ -757,8 +757,8 @@ ... - - :/icon/32x32/point_from_arc_and_tangent.png:/icon/32x32/point_from_arc_and_tangent.png + + :/toolicon/32x32/point_from_arc_and_tangent.png:/toolicon/32x32/point_from_arc_and_tangent.png @@ -807,8 +807,8 @@ ... - - :/icon/32x32/new_detail.png:/icon/32x32/new_detail.png + + :/toolicon/32x32/new_detail.png:/toolicon/32x32/new_detail.png @@ -833,8 +833,8 @@ ... - - :/icon/32x32/union.png:/icon/32x32/union.png + + :/toolicon/32x32/union.png:/toolicon/32x32/union.png @@ -1762,6 +1762,7 @@ + diff --git a/src/app/share/resources/icon.qrc b/src/app/share/resources/icon.qrc index bd9405c17..b04575823 100644 --- a/src/app/share/resources/icon.qrc +++ b/src/app/share/resources/icon.qrc @@ -9,29 +9,10 @@ icon/32x32/table.png icon/24x24/putHere.png icon/24x24/equal.png - icon/32x32/segment.png - icon/32x32/line.png - icon/32x32/along_line.png - icon/32x32/shoulder.png - icon/32x32/normal.png - icon/32x32/bisector.png - icon/32x32/intersect.png - icon/32x32/spline.png - icon/32x32/arc.png - icon/32x32/splinePath.png icon/32x32/history.png icon/32x32/put_after.png - icon/32x32/point_of_contact.png - icon/32x32/new_detail.png icon/32x32/layout.png icon/16x16/mirror.png - icon/32x32/height.png - icon/32x32/triangle.png - icon/32x32/point_of_intersection.png - icon/32x32/spline_cut_point.png - icon/32x32/splinePath_cut_point.png - icon/32x32/union.png - icon/32x32/arc_cut.png icon/config.png icon/pattern_config.png icon/Graduation.png @@ -49,9 +30,6 @@ icon/path_config.png icon/16x16/info.png icon/16x16/measurement.png - icon/32x32/line_intersect_axis.png - icon/32x32/arc_intersect_axis.png - icon/32x32/curve_intersect_axis.png icon/16x16/landscape.png icon/16x16/portrait.png icon/16x16/template.png @@ -61,9 +39,5 @@ icon/16x16/roll.png icon/16x16/progress.gif icon/32x32/export_to_picture_document.png - icon/32x32/point_of_intersection_arcs.png - icon/32x32/point_of_intersection_circles.png - icon/32x32/point_from_circle_and_tangent.png - icon/32x32/point_from_arc_and_tangent.png diff --git a/src/app/share/resources/toolicon.qrc b/src/app/share/resources/toolicon.qrc new file mode 100644 index 000000000..b54b46c86 --- /dev/null +++ b/src/app/share/resources/toolicon.qrc @@ -0,0 +1,30 @@ + + + toolicon/32x32/along_line.png + toolicon/32x32/arc.png + toolicon/32x32/arc_cut.png + toolicon/32x32/arc_intersect_axis.png + toolicon/32x32/bisector.png + toolicon/32x32/curve_intersect_axis.png + toolicon/32x32/height.png + toolicon/32x32/intersect.png + toolicon/32x32/line.png + toolicon/32x32/line_intersect_axis.png + toolicon/32x32/normal.png + toolicon/32x32/point_from_arc_and_tangent.png + toolicon/32x32/point_from_circle_and_tangent.png + toolicon/32x32/point_of_contact.png + toolicon/32x32/point_of_intersection.png + toolicon/32x32/point_of_intersection_arcs.png + toolicon/32x32/point_of_intersection_circles.png + toolicon/32x32/segment.png + toolicon/32x32/shoulder.png + toolicon/32x32/spline.png + toolicon/32x32/spline_cut_point.png + toolicon/32x32/splinePath.png + toolicon/32x32/splinePath_cut_point.png + toolicon/32x32/triangle.png + toolicon/32x32/union.png + toolicon/32x32/new_detail.png + + diff --git a/src/app/share/resources/icon/32x32/along_line.png b/src/app/share/resources/toolicon/32x32/along_line.png similarity index 100% rename from src/app/share/resources/icon/32x32/along_line.png rename to src/app/share/resources/toolicon/32x32/along_line.png diff --git a/src/app/share/resources/icon/32x32/arc.png b/src/app/share/resources/toolicon/32x32/arc.png similarity index 100% rename from src/app/share/resources/icon/32x32/arc.png rename to src/app/share/resources/toolicon/32x32/arc.png diff --git a/src/app/share/resources/icon/32x32/arc_cut.png b/src/app/share/resources/toolicon/32x32/arc_cut.png similarity index 100% rename from src/app/share/resources/icon/32x32/arc_cut.png rename to src/app/share/resources/toolicon/32x32/arc_cut.png diff --git a/src/app/share/resources/icon/32x32/arc_intersect_axis.png b/src/app/share/resources/toolicon/32x32/arc_intersect_axis.png similarity index 100% rename from src/app/share/resources/icon/32x32/arc_intersect_axis.png rename to src/app/share/resources/toolicon/32x32/arc_intersect_axis.png diff --git a/src/app/share/resources/icon/32x32/bisector.png b/src/app/share/resources/toolicon/32x32/bisector.png similarity index 100% rename from src/app/share/resources/icon/32x32/bisector.png rename to src/app/share/resources/toolicon/32x32/bisector.png diff --git a/src/app/share/resources/icon/32x32/curve_intersect_axis.png b/src/app/share/resources/toolicon/32x32/curve_intersect_axis.png similarity index 100% rename from src/app/share/resources/icon/32x32/curve_intersect_axis.png rename to src/app/share/resources/toolicon/32x32/curve_intersect_axis.png diff --git a/src/app/share/resources/icon/32x32/height.png b/src/app/share/resources/toolicon/32x32/height.png similarity index 100% rename from src/app/share/resources/icon/32x32/height.png rename to src/app/share/resources/toolicon/32x32/height.png diff --git a/src/app/share/resources/icon/32x32/intersect.png b/src/app/share/resources/toolicon/32x32/intersect.png similarity index 100% rename from src/app/share/resources/icon/32x32/intersect.png rename to src/app/share/resources/toolicon/32x32/intersect.png diff --git a/src/app/share/resources/icon/32x32/line.png b/src/app/share/resources/toolicon/32x32/line.png similarity index 100% rename from src/app/share/resources/icon/32x32/line.png rename to src/app/share/resources/toolicon/32x32/line.png diff --git a/src/app/share/resources/icon/32x32/line_intersect_axis.png b/src/app/share/resources/toolicon/32x32/line_intersect_axis.png similarity index 100% rename from src/app/share/resources/icon/32x32/line_intersect_axis.png rename to src/app/share/resources/toolicon/32x32/line_intersect_axis.png diff --git a/src/app/share/resources/icon/32x32/new_detail.png b/src/app/share/resources/toolicon/32x32/new_detail.png similarity index 100% rename from src/app/share/resources/icon/32x32/new_detail.png rename to src/app/share/resources/toolicon/32x32/new_detail.png diff --git a/src/app/share/resources/icon/32x32/normal.png b/src/app/share/resources/toolicon/32x32/normal.png similarity index 100% rename from src/app/share/resources/icon/32x32/normal.png rename to src/app/share/resources/toolicon/32x32/normal.png diff --git a/src/app/share/resources/icon/32x32/point_from_arc_and_tangent.png b/src/app/share/resources/toolicon/32x32/point_from_arc_and_tangent.png similarity index 100% rename from src/app/share/resources/icon/32x32/point_from_arc_and_tangent.png rename to src/app/share/resources/toolicon/32x32/point_from_arc_and_tangent.png diff --git a/src/app/share/resources/icon/32x32/point_from_circle_and_tangent.png b/src/app/share/resources/toolicon/32x32/point_from_circle_and_tangent.png similarity index 100% rename from src/app/share/resources/icon/32x32/point_from_circle_and_tangent.png rename to src/app/share/resources/toolicon/32x32/point_from_circle_and_tangent.png diff --git a/src/app/share/resources/icon/32x32/point_of_contact.png b/src/app/share/resources/toolicon/32x32/point_of_contact.png similarity index 100% rename from src/app/share/resources/icon/32x32/point_of_contact.png rename to src/app/share/resources/toolicon/32x32/point_of_contact.png diff --git a/src/app/share/resources/icon/32x32/point_of_intersection.png b/src/app/share/resources/toolicon/32x32/point_of_intersection.png similarity index 100% rename from src/app/share/resources/icon/32x32/point_of_intersection.png rename to src/app/share/resources/toolicon/32x32/point_of_intersection.png diff --git a/src/app/share/resources/icon/32x32/point_of_intersection_arcs.png b/src/app/share/resources/toolicon/32x32/point_of_intersection_arcs.png similarity index 100% rename from src/app/share/resources/icon/32x32/point_of_intersection_arcs.png rename to src/app/share/resources/toolicon/32x32/point_of_intersection_arcs.png diff --git a/src/app/share/resources/icon/32x32/point_of_intersection_circles.png b/src/app/share/resources/toolicon/32x32/point_of_intersection_circles.png similarity index 100% rename from src/app/share/resources/icon/32x32/point_of_intersection_circles.png rename to src/app/share/resources/toolicon/32x32/point_of_intersection_circles.png diff --git a/src/app/share/resources/icon/32x32/segment.png b/src/app/share/resources/toolicon/32x32/segment.png similarity index 100% rename from src/app/share/resources/icon/32x32/segment.png rename to src/app/share/resources/toolicon/32x32/segment.png diff --git a/src/app/share/resources/icon/32x32/shoulder.png b/src/app/share/resources/toolicon/32x32/shoulder.png similarity index 100% rename from src/app/share/resources/icon/32x32/shoulder.png rename to src/app/share/resources/toolicon/32x32/shoulder.png diff --git a/src/app/share/resources/icon/32x32/spline.png b/src/app/share/resources/toolicon/32x32/spline.png similarity index 100% rename from src/app/share/resources/icon/32x32/spline.png rename to src/app/share/resources/toolicon/32x32/spline.png diff --git a/src/app/share/resources/icon/32x32/splinePath.png b/src/app/share/resources/toolicon/32x32/splinePath.png similarity index 100% rename from src/app/share/resources/icon/32x32/splinePath.png rename to src/app/share/resources/toolicon/32x32/splinePath.png diff --git a/src/app/share/resources/icon/32x32/splinePath_cut_point.png b/src/app/share/resources/toolicon/32x32/splinePath_cut_point.png similarity index 100% rename from src/app/share/resources/icon/32x32/splinePath_cut_point.png rename to src/app/share/resources/toolicon/32x32/splinePath_cut_point.png diff --git a/src/app/share/resources/icon/32x32/spline_cut_point.png b/src/app/share/resources/toolicon/32x32/spline_cut_point.png similarity index 100% rename from src/app/share/resources/icon/32x32/spline_cut_point.png rename to src/app/share/resources/toolicon/32x32/spline_cut_point.png diff --git a/src/app/share/resources/icon/32x32/triangle.png b/src/app/share/resources/toolicon/32x32/triangle.png similarity index 100% rename from src/app/share/resources/icon/32x32/triangle.png rename to src/app/share/resources/toolicon/32x32/triangle.png diff --git a/src/app/share/resources/icon/32x32/union.png b/src/app/share/resources/toolicon/32x32/union.png similarity index 100% rename from src/app/share/resources/icon/32x32/union.png rename to src/app/share/resources/toolicon/32x32/union.png diff --git a/src/app/share/resources/icon/svg/arc_intersect_axis.svg b/src/app/share/resources/toolicon/svg/arc_intersect_axis.svg similarity index 100% rename from src/app/share/resources/icon/svg/arc_intersect_axis.svg rename to src/app/share/resources/toolicon/svg/arc_intersect_axis.svg diff --git a/src/app/share/resources/icon/svg/curve_intersect_axis.svg b/src/app/share/resources/toolicon/svg/curve_intersect_axis.svg similarity index 100% rename from src/app/share/resources/icon/svg/curve_intersect_axis.svg rename to src/app/share/resources/toolicon/svg/curve_intersect_axis.svg diff --git a/src/app/share/resources/icon/svg/line_intersect_axis.svg b/src/app/share/resources/toolicon/svg/line_intersect_axis.svg similarity index 100% rename from src/app/share/resources/icon/svg/line_intersect_axis.svg rename to src/app/share/resources/toolicon/svg/line_intersect_axis.svg diff --git a/src/app/share/resources/icon/svg/point_from_arc_and_tangent.svg b/src/app/share/resources/toolicon/svg/point_from_arc_and_tangent.svg similarity index 100% rename from src/app/share/resources/icon/svg/point_from_arc_and_tangent.svg rename to src/app/share/resources/toolicon/svg/point_from_arc_and_tangent.svg diff --git a/src/app/share/resources/icon/svg/point_from_circle_and_tangent.svg b/src/app/share/resources/toolicon/svg/point_from_circle_and_tangent.svg similarity index 100% rename from src/app/share/resources/icon/svg/point_from_circle_and_tangent.svg rename to src/app/share/resources/toolicon/svg/point_from_circle_and_tangent.svg diff --git a/src/app/share/resources/icon/svg/point_of_contact.svg b/src/app/share/resources/toolicon/svg/point_of_contact.svg similarity index 100% rename from src/app/share/resources/icon/svg/point_of_contact.svg rename to src/app/share/resources/toolicon/svg/point_of_contact.svg diff --git a/src/app/share/resources/icon/svg/point_of_intersection_arcs.svg b/src/app/share/resources/toolicon/svg/point_of_intersection_arcs.svg similarity index 100% rename from src/app/share/resources/icon/svg/point_of_intersection_arcs.svg rename to src/app/share/resources/toolicon/svg/point_of_intersection_arcs.svg diff --git a/src/app/share/resources/icon/svg/point_of_intersection_circles.svg b/src/app/share/resources/toolicon/svg/point_of_intersection_circles.svg similarity index 100% rename from src/app/share/resources/icon/svg/point_of_intersection_circles.svg rename to src/app/share/resources/toolicon/svg/point_of_intersection_circles.svg