2024-11-25 02:47:15 +00:00
|
|
|
#ifndef slic3r_GUI_StaticGroup_hpp_
|
|
|
|
#define slic3r_GUI_StaticGroup_hpp_
|
|
|
|
|
|
|
|
#include "../wxExtensions.hpp"
|
|
|
|
|
|
|
|
#include <wx/statbox.h>
|
|
|
|
|
|
|
|
class StaticGroup : public wxStaticBox
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
StaticGroup(wxWindow *parent, wxWindowID id, const wxString &label);
|
|
|
|
|
|
|
|
public:
|
|
|
|
void ShowBadge(bool show);
|
|
|
|
|
|
|
|
private:
|
|
|
|
#ifdef __WXMSW__
|
|
|
|
void OnPaint(wxPaintEvent &evt);
|
2025-01-15 07:40:27 +00:00
|
|
|
void PaintForeground(wxDC &dc, const struct tagRECT &rc) override;
|
2024-11-25 02:47:15 +00:00
|
|
|
#endif
|
2025-02-10 10:52:45 +00:00
|
|
|
#ifdef __WXOSX__
|
|
|
|
void DoSetSize(int x, int y, int width, int height, int sizeFlags) override;
|
|
|
|
void LayoutBadge();
|
|
|
|
#endif
|
2024-11-25 02:47:15 +00:00
|
|
|
|
|
|
|
private:
|
2025-02-10 10:52:45 +00:00
|
|
|
#ifdef __WXMSW__
|
2024-11-25 02:47:15 +00:00
|
|
|
ScalableBitmap badge;
|
2025-02-10 10:52:45 +00:00
|
|
|
#endif
|
|
|
|
#ifdef __WXOSX__
|
|
|
|
ScalableButton * badge { nullptr };
|
|
|
|
#endif
|
2024-11-25 02:47:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // !slic3r_GUI_StaticGroup_hpp_
|