Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2018-11-09 20:39:07 +0300
committerYuSanka <yusanka@gmail.com>2018-11-09 20:42:06 +0300
commit7f4a8bccd5cb93d282bdb82333fb8955e3f2a783 (patch)
tree898f312bed49f36b0f45a5c37106757171b354f0 /src/slic3r/GUI/GUI_ObjectSettings.hpp
parent5b34e54ce9febac699a92de913c5c6b1c91357e3 (diff)
Fixed controls layout on right panel.
+ Split ObjectManipulation class to ObjectManipulation and ObjectSettings + fixed typo-bug in GetItemByVolumeId
Diffstat (limited to 'src/slic3r/GUI/GUI_ObjectSettings.hpp')
-rw-r--r--src/slic3r/GUI/GUI_ObjectSettings.hpp49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/slic3r/GUI/GUI_ObjectSettings.hpp b/src/slic3r/GUI/GUI_ObjectSettings.hpp
new file mode 100644
index 000000000..7b58d4c4e
--- /dev/null
+++ b/src/slic3r/GUI/GUI_ObjectSettings.hpp
@@ -0,0 +1,49 @@
+#ifndef slic3r_GUI_ObjectSettings_hpp_
+#define slic3r_GUI_ObjectSettings_hpp_
+
+#include <memory>
+#include <wx/panel.h>
+
+class wxBoxSizer;
+
+namespace Slic3r {
+namespace GUI {
+class ConfigOptionsGroup;
+
+class OG_Settings
+{
+protected:
+ std::shared_ptr<ConfigOptionsGroup> m_og;
+ wxWindow* m_parent;
+public:
+ OG_Settings(wxWindow* parent, const bool staticbox);
+ ~OG_Settings() {}
+
+ virtual bool IsShown();
+ virtual void Show(const bool show);
+ virtual void Hide();
+ virtual void UpdateAndShow(const bool show);
+
+ wxSizer* get_sizer();
+ ConfigOptionsGroup* get_og() { return m_og.get(); }
+};
+
+
+class ObjectSettings : public OG_Settings
+{
+ // sizer for extra Object/Part's settings
+ wxBoxSizer* m_settings_list_sizer{ nullptr };
+ // option groups for settings
+ std::vector <std::shared_ptr<ConfigOptionsGroup>> m_og_settings;
+
+public:
+ ObjectSettings(wxWindow* parent);
+ ~ObjectSettings() {}
+
+ void update_settings_list();
+ void UpdateAndShow(const bool show) override;
+};
+
+}}
+
+#endif // slic3r_GUI_ObjectSettings_hpp_