From f66a50b78594e778d6c917a0a6c02d12262ef898 Mon Sep 17 00:00:00 2001 From: Filip Sykala - NTB T15p Date: Wed, 29 Jan 2025 17:58:45 +0100 Subject: [PATCH] Add help for used colors of support points --- resources/icons/sphere_blueish.svg | 12 ++++++++++++ resources/icons/sphere_cyan.svg | 12 ++++++++++++ resources/icons/sphere_lightgray.svg | 12 ++++++++++++ resources/icons/sphere_orange.svg | 12 ++++++++++++ resources/icons/sphere_redish.svg | 12 ++++++++++++ src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.cpp | 14 ++++++++++++++ 6 files changed, 74 insertions(+) create mode 100644 resources/icons/sphere_blueish.svg create mode 100644 resources/icons/sphere_cyan.svg create mode 100644 resources/icons/sphere_lightgray.svg create mode 100644 resources/icons/sphere_orange.svg create mode 100644 resources/icons/sphere_redish.svg diff --git a/resources/icons/sphere_blueish.svg b/resources/icons/sphere_blueish.svg new file mode 100644 index 0000000000..39aba38de2 --- /dev/null +++ b/resources/icons/sphere_blueish.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + diff --git a/resources/icons/sphere_cyan.svg b/resources/icons/sphere_cyan.svg new file mode 100644 index 0000000000..5402fc301a --- /dev/null +++ b/resources/icons/sphere_cyan.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + diff --git a/resources/icons/sphere_lightgray.svg b/resources/icons/sphere_lightgray.svg new file mode 100644 index 0000000000..fcf383f4bf --- /dev/null +++ b/resources/icons/sphere_lightgray.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + diff --git a/resources/icons/sphere_orange.svg b/resources/icons/sphere_orange.svg new file mode 100644 index 0000000000..2a4382d3f6 --- /dev/null +++ b/resources/icons/sphere_orange.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + diff --git a/resources/icons/sphere_redish.svg b/resources/icons/sphere_redish.svg new file mode 100644 index 0000000000..83a26f4a14 --- /dev/null +++ b/resources/icons/sphere_redish.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + diff --git a/src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.cpp b/src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.cpp index 37ed285a50..b5fc6ad845 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.cpp @@ -1525,6 +1525,20 @@ SlaGizmoHelpDialog::SlaGizmoHelpDialog() gridsizer->Add(desc, -1, wxALIGN_CENTRE_VERTICAL); } + std::vector> point_types; + point_types.push_back(std::make_pair("sphere_lightgray",_L("Generated point"))); + point_types.push_back(std::make_pair("sphere_redish", _L("Selected support point"))); + point_types.push_back(std::make_pair("sphere_orange", _L("User edited point"))); + point_types.push_back(std::make_pair("sphere_blueish", _L("Island support point"))); + point_types.push_back(std::make_pair("sphere_cyan", _L("Mouse hovered point"))); + for (const auto &[icon_name, description] : point_types) { + auto desc = new wxStaticText(this, wxID_ANY, description); + desc->SetFont(font); + gridsizer->Add(new wxStaticBitmap(this, wxID_ANY, ScalableBitmap(this, icon_name).bmp()), + -1, wxALIGN_CENTRE_VERTICAL); + gridsizer->Add(desc, -1, wxALIGN_CENTRE_VERTICAL); + } + SetSizer(hsizer); hsizer->SetSizeHints(this); }