mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 17:27:52 -06:00
NEW: refine HMS Panel
link to hms wiki page Change-Id: I1b1c5b2021f9f68320235ce17580ae80ea9b82a3 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
6a065401d1
commit
6e1e56be18
8 changed files with 184 additions and 19 deletions
|
@ -6,17 +6,47 @@
|
|||
#include <slic3r/GUI/Widgets/Button.hpp>
|
||||
#include <slic3r/GUI/DeviceManager.hpp>
|
||||
#include <slic3r/GUI/Widgets/ScrolledWindow.hpp>
|
||||
#include <wx/html/htmlwin.h>
|
||||
|
||||
namespace Slic3r {
|
||||
namespace GUI {
|
||||
|
||||
class HMSNotifyItem : public wxPanel
|
||||
{
|
||||
HMSItem & m_hms_item;
|
||||
std::string m_url;
|
||||
|
||||
wxPanel * m_panel_hms;
|
||||
wxStaticBitmap *m_bitmap_notify;
|
||||
wxStaticBitmap *m_bitmap_arrow;
|
||||
wxStaticText * m_hms_content;
|
||||
wxHtmlWindow * m_html;
|
||||
wxPanel * m_staticline;
|
||||
|
||||
wxBitmap m_img_notify_lv1;
|
||||
wxBitmap m_img_notify_lv2;
|
||||
wxBitmap m_img_notify_lv3;
|
||||
wxBitmap m_img_arrow;
|
||||
|
||||
void init_bitmaps();
|
||||
wxBitmap & get_notify_bitmap();
|
||||
|
||||
public:
|
||||
HMSNotifyItem(wxWindow *parent, HMSItem& item);
|
||||
~HMSNotifyItem();
|
||||
|
||||
void msw_rescale() {}
|
||||
};
|
||||
|
||||
class HMSPanel : public wxPanel
|
||||
{
|
||||
protected:
|
||||
wxScrolledWindow* m_scrolledWindow;
|
||||
wxBoxSizer* m_top_sizer;
|
||||
wxTextCtrl* m_hms_content;
|
||||
wxScrolledWindow *m_scrolledWindow;
|
||||
wxBoxSizer * m_top_sizer;
|
||||
HMSNotifyItem * m_notify_item;
|
||||
|
||||
void append_hms_panel(HMSItem &item);
|
||||
void delete_hms_panels();
|
||||
|
||||
public:
|
||||
HMSPanel(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = wxTAB_TRAVERSAL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue