From a192c86e570364f4dad6572fba5ca142a2db8a89 Mon Sep 17 00:00:00 2001
From: 76Octane <132669596+76Octane@users.noreply.github.com>
Date: Fri, 18 Aug 2023 13:51:32 +0800
Subject: [PATCH 1/3] icons update
---
resources/icons/param_default.svg | 66 +++++++++++++++++++
resources/icons/param_monotonic lines.svg | 20 ++++++
resources/icons/param_monotonic.svg | 20 ++++++
resources/icons/param_rectilinear grid.svg | 32 +++++++++
src/libslic3r/PrintConfig.cpp | 6 +-
src/slic3r/GUI/Widgets/TextInput.hpp | 77 ++++++++++++++++++++++
6 files changed, 218 insertions(+), 3 deletions(-)
create mode 100644 resources/icons/param_default.svg
create mode 100644 resources/icons/param_monotonic lines.svg
create mode 100644 resources/icons/param_monotonic.svg
create mode 100644 resources/icons/param_rectilinear grid.svg
create mode 100644 src/slic3r/GUI/Widgets/TextInput.hpp
diff --git a/resources/icons/param_default.svg b/resources/icons/param_default.svg
new file mode 100644
index 0000000..a64e128
--- /dev/null
+++ b/resources/icons/param_default.svg
@@ -0,0 +1,66 @@
+
+
diff --git a/resources/icons/param_monotonic lines.svg b/resources/icons/param_monotonic lines.svg
new file mode 100644
index 0000000..d6045b6
--- /dev/null
+++ b/resources/icons/param_monotonic lines.svg
@@ -0,0 +1,20 @@
+
+
+
diff --git a/resources/icons/param_monotonic.svg b/resources/icons/param_monotonic.svg
new file mode 100644
index 0000000..9b27d6a
--- /dev/null
+++ b/resources/icons/param_monotonic.svg
@@ -0,0 +1,20 @@
+
+
+
diff --git a/resources/icons/param_rectilinear grid.svg b/resources/icons/param_rectilinear grid.svg
new file mode 100644
index 0000000..004b725
--- /dev/null
+++ b/resources/icons/param_rectilinear grid.svg
@@ -0,0 +1,32 @@
+
+
+
diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp
index 69134ae..f44c0ba 100644
--- a/src/libslic3r/PrintConfig.cpp
+++ b/src/libslic3r/PrintConfig.cpp
@@ -2893,9 +2893,9 @@ void PrintConfigDef::init_fff_params()
"will create more stable supports, while snug support towers will save material and reduce "
"object scarring.");
def->set_enum({
- { "grid", L("Grid") },
- { "snug", L("Snug") },
- { "organic", L("Organic") }
+ { "grid", L("Grid ") },
+ { "snug", L("Snug ") },
+ { "organic", L("Organic ") }
});
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionEnum(smsGrid));
diff --git a/src/slic3r/GUI/Widgets/TextInput.hpp b/src/slic3r/GUI/Widgets/TextInput.hpp
new file mode 100644
index 0000000..11839e9
--- /dev/null
+++ b/src/slic3r/GUI/Widgets/TextInput.hpp
@@ -0,0 +1,77 @@
+#ifndef slic3r_GUI_TextInput_hpp_
+#define slic3r_GUI_TextInput_hpp_
+
+#include
+#include "StaticBox.hpp"
+
+class TextInput : public wxNavigationEnabled
+{
+
+ wxSize labelSize;
+ ScalableBitmap icon;
+ StateColor label_color;
+ StateColor text_color;
+ wxTextCtrl * text_ctrl;
+
+ static const int TextInputWidth = 200;
+ static const int TextInputHeight = 50;
+
+public:
+ TextInput();
+
+ TextInput(wxWindow * parent,
+ wxString text,
+ wxString label = "",
+ wxString icon = "",
+ const wxPoint &pos = wxDefaultPosition,
+ const wxSize & size = wxDefaultSize,
+ long style = 0);
+
+public:
+ void Create(wxWindow * parent,
+ wxString text,
+ wxString label = "",
+ wxString icon = "",
+ const wxPoint &pos = wxDefaultPosition,
+ const wxSize & size = wxDefaultSize,
+ long style = 0);
+
+ void SetCornerRadius(double radius);
+
+ void SetLabel(const wxString& label);
+
+ void SetIcon(const wxBitmapBundle &icon);
+
+ void SetLabelColor(StateColor const &color);
+
+ void SetTextColor(StateColor const &color);
+
+ virtual void Rescale();
+
+ virtual bool Enable(bool enable = true) override;
+
+ virtual void SetMinSize(const wxSize& size) override;
+
+ wxTextCtrl *GetTextCtrl() { return text_ctrl; }
+
+ wxTextCtrl const *GetTextCtrl() const { return text_ctrl; }
+
+protected:
+ virtual void OnEdit() {}
+
+ virtual void DoSetSize(
+ int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
+
+ void DoSetToolTipText(wxString const &tip) override;
+
+private:
+ void paintEvent(wxPaintEvent& evt);
+
+ void render(wxDC& dc);
+
+ void messureSize();
+
+ DECLARE_EVENT_TABLE()
+};
+
+#endif // !slic3r_GUI_TextInput_hpp_
From bbc4409f8cbfb57be7284457c41ac59cdcdc4438 Mon Sep 17 00:00:00 2001
From: 76Octane <132669596+76Octane@users.noreply.github.com>
Date: Fri, 18 Aug 2023 13:52:43 +0800
Subject: [PATCH 2/3] Revert "icons update"
This reverts commit a192c86e570364f4dad6572fba5ca142a2db8a89.
---
resources/icons/param_default.svg | 66 -------------------
resources/icons/param_monotonic lines.svg | 20 ------
resources/icons/param_monotonic.svg | 20 ------
resources/icons/param_rectilinear grid.svg | 32 ---------
src/libslic3r/PrintConfig.cpp | 6 +-
src/slic3r/GUI/Widgets/TextInput.hpp | 77 ----------------------
6 files changed, 3 insertions(+), 218 deletions(-)
delete mode 100644 resources/icons/param_default.svg
delete mode 100644 resources/icons/param_monotonic lines.svg
delete mode 100644 resources/icons/param_monotonic.svg
delete mode 100644 resources/icons/param_rectilinear grid.svg
delete mode 100644 src/slic3r/GUI/Widgets/TextInput.hpp
diff --git a/resources/icons/param_default.svg b/resources/icons/param_default.svg
deleted file mode 100644
index a64e128..0000000
--- a/resources/icons/param_default.svg
+++ /dev/null
@@ -1,66 +0,0 @@
-
-
diff --git a/resources/icons/param_monotonic lines.svg b/resources/icons/param_monotonic lines.svg
deleted file mode 100644
index d6045b6..0000000
--- a/resources/icons/param_monotonic lines.svg
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
diff --git a/resources/icons/param_monotonic.svg b/resources/icons/param_monotonic.svg
deleted file mode 100644
index 9b27d6a..0000000
--- a/resources/icons/param_monotonic.svg
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
diff --git a/resources/icons/param_rectilinear grid.svg b/resources/icons/param_rectilinear grid.svg
deleted file mode 100644
index 004b725..0000000
--- a/resources/icons/param_rectilinear grid.svg
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp
index f44c0ba..69134ae 100644
--- a/src/libslic3r/PrintConfig.cpp
+++ b/src/libslic3r/PrintConfig.cpp
@@ -2893,9 +2893,9 @@ void PrintConfigDef::init_fff_params()
"will create more stable supports, while snug support towers will save material and reduce "
"object scarring.");
def->set_enum({
- { "grid", L("Grid ") },
- { "snug", L("Snug ") },
- { "organic", L("Organic ") }
+ { "grid", L("Grid") },
+ { "snug", L("Snug") },
+ { "organic", L("Organic") }
});
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionEnum(smsGrid));
diff --git a/src/slic3r/GUI/Widgets/TextInput.hpp b/src/slic3r/GUI/Widgets/TextInput.hpp
deleted file mode 100644
index 11839e9..0000000
--- a/src/slic3r/GUI/Widgets/TextInput.hpp
+++ /dev/null
@@ -1,77 +0,0 @@
-#ifndef slic3r_GUI_TextInput_hpp_
-#define slic3r_GUI_TextInput_hpp_
-
-#include
-#include "StaticBox.hpp"
-
-class TextInput : public wxNavigationEnabled
-{
-
- wxSize labelSize;
- ScalableBitmap icon;
- StateColor label_color;
- StateColor text_color;
- wxTextCtrl * text_ctrl;
-
- static const int TextInputWidth = 200;
- static const int TextInputHeight = 50;
-
-public:
- TextInput();
-
- TextInput(wxWindow * parent,
- wxString text,
- wxString label = "",
- wxString icon = "",
- const wxPoint &pos = wxDefaultPosition,
- const wxSize & size = wxDefaultSize,
- long style = 0);
-
-public:
- void Create(wxWindow * parent,
- wxString text,
- wxString label = "",
- wxString icon = "",
- const wxPoint &pos = wxDefaultPosition,
- const wxSize & size = wxDefaultSize,
- long style = 0);
-
- void SetCornerRadius(double radius);
-
- void SetLabel(const wxString& label);
-
- void SetIcon(const wxBitmapBundle &icon);
-
- void SetLabelColor(StateColor const &color);
-
- void SetTextColor(StateColor const &color);
-
- virtual void Rescale();
-
- virtual bool Enable(bool enable = true) override;
-
- virtual void SetMinSize(const wxSize& size) override;
-
- wxTextCtrl *GetTextCtrl() { return text_ctrl; }
-
- wxTextCtrl const *GetTextCtrl() const { return text_ctrl; }
-
-protected:
- virtual void OnEdit() {}
-
- virtual void DoSetSize(
- int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
-
- void DoSetToolTipText(wxString const &tip) override;
-
-private:
- void paintEvent(wxPaintEvent& evt);
-
- void render(wxDC& dc);
-
- void messureSize();
-
- DECLARE_EVENT_TABLE()
-};
-
-#endif // !slic3r_GUI_TextInput_hpp_
From d5c00a7bdaaea7af3f736c2e002d3c1ac8d1a9b6 Mon Sep 17 00:00:00 2001
From: 76Octane <132669596+76Octane@users.noreply.github.com>
Date: Fri, 18 Aug 2023 13:54:53 +0800
Subject: [PATCH 3/3] Update icons
---
resources/icons/param_default.svg | 66 ++++++++++++++++++++++
resources/icons/param_monotonic lines.svg | 20 +++++++
resources/icons/param_monotonic.svg | 20 +++++++
resources/icons/param_rectilinear grid.svg | 32 +++++++++++
src/libslic3r/PrintConfig.cpp | 6 +-
5 files changed, 141 insertions(+), 3 deletions(-)
create mode 100644 resources/icons/param_default.svg
create mode 100644 resources/icons/param_monotonic lines.svg
create mode 100644 resources/icons/param_monotonic.svg
create mode 100644 resources/icons/param_rectilinear grid.svg
diff --git a/resources/icons/param_default.svg b/resources/icons/param_default.svg
new file mode 100644
index 0000000..a64e128
--- /dev/null
+++ b/resources/icons/param_default.svg
@@ -0,0 +1,66 @@
+
+
diff --git a/resources/icons/param_monotonic lines.svg b/resources/icons/param_monotonic lines.svg
new file mode 100644
index 0000000..d6045b6
--- /dev/null
+++ b/resources/icons/param_monotonic lines.svg
@@ -0,0 +1,20 @@
+
+
+
diff --git a/resources/icons/param_monotonic.svg b/resources/icons/param_monotonic.svg
new file mode 100644
index 0000000..9b27d6a
--- /dev/null
+++ b/resources/icons/param_monotonic.svg
@@ -0,0 +1,20 @@
+
+
+
diff --git a/resources/icons/param_rectilinear grid.svg b/resources/icons/param_rectilinear grid.svg
new file mode 100644
index 0000000..004b725
--- /dev/null
+++ b/resources/icons/param_rectilinear grid.svg
@@ -0,0 +1,32 @@
+
+
+
diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp
index 69134ae..f44c0ba 100644
--- a/src/libslic3r/PrintConfig.cpp
+++ b/src/libslic3r/PrintConfig.cpp
@@ -2893,9 +2893,9 @@ void PrintConfigDef::init_fff_params()
"will create more stable supports, while snug support towers will save material and reduce "
"object scarring.");
def->set_enum({
- { "grid", L("Grid") },
- { "snug", L("Snug") },
- { "organic", L("Organic") }
+ { "grid", L("Grid ") },
+ { "snug", L("Snug ") },
+ { "organic", L("Organic ") }
});
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionEnum(smsGrid));