Files
OrcaSlicer-bambulab/src/slic3r/GUI/GUI_ObjectSettings.hpp
T

56 lines
1.3 KiB
C++
Raw Normal View History

2018-11-09 18:39:07 +01:00
#ifndef slic3r_GUI_ObjectSettings_hpp_
#define slic3r_GUI_ObjectSettings_hpp_
#include <memory>
2019-03-02 01:45:20 -05:00
#include <vector>
2018-11-09 18:39:07 +01:00
#include <wx/panel.h>
2019-04-13 23:46:52 +02:00
#include "wxExtensions.hpp"
2018-11-09 18:39:07 +01:00
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);
virtual ~OG_Settings() {}
2018-11-09 18:39:07 +01:00
virtual bool IsShown();
virtual void Show(const bool show);
virtual void Hide();
virtual void UpdateAndShow(const bool show);
virtual wxSizer* get_sizer();
2018-11-09 18:39:07 +01:00
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;
ScalableBitmap m_bmp_delete;
ScalableBitmap m_bmp_delete_focus;
2019-04-13 23:46:52 +02:00
2018-11-09 18:39:07 +01:00
public:
ObjectSettings(wxWindow* parent);
~ObjectSettings() {}
2019-07-11 23:46:23 +02:00
bool update_settings_list();
2018-11-09 18:39:07 +01:00
void UpdateAndShow(const bool show) override;
void msw_rescale();
2018-11-09 18:39:07 +01:00
};
}}
#endif // slic3r_GUI_ObjectSettings_hpp_