mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 15:07:31 -06:00

referenced OrcaSlicer code and support for Chinese textures,chinese xml,limit plate_name length,Code decoupling,wxColour use Local Variables Change-Id: I6434b90efb2f90235527c7dfb3a7ed516ac2cf4b (cherry picked from commit 0ecfefb0e1cfccbe73b0fcc530e04e6405ecf68a)
57 lines
1.2 KiB
C++
57 lines
1.2 KiB
C++
#ifndef slic3r_GUI_Label_hpp_
|
|
#define slic3r_GUI_Label_hpp_
|
|
|
|
#include <wx/stattext.h>
|
|
|
|
#define LB_HYPERLINK 0x0020
|
|
#define LB_PROPAGATE_MOUSE_EVENT 0x0040
|
|
|
|
|
|
class Label : public wxStaticText
|
|
{
|
|
public:
|
|
Label(wxWindow *parent, wxString const &text = {}, long style = 0);
|
|
|
|
Label(wxWindow *parent, wxFont const &font, wxString const &text = {}, long style = 0);
|
|
|
|
void SetLabel(const wxString& label) override;
|
|
|
|
void SetWindowStyleFlag(long style) override;
|
|
|
|
void Wrap(int width);
|
|
|
|
private:
|
|
wxFont font;
|
|
wxColour color;
|
|
|
|
public:
|
|
static wxFont Head_48;
|
|
static wxFont Head_32;
|
|
static wxFont Head_24;
|
|
static wxFont Head_20;
|
|
static wxFont Head_18;
|
|
static wxFont Head_16;
|
|
static wxFont Head_15;
|
|
static wxFont Head_14;
|
|
static wxFont Head_13;
|
|
static wxFont Head_12;
|
|
static wxFont Head_11;
|
|
static wxFont Head_10;
|
|
|
|
static wxFont Body_16;
|
|
static wxFont Body_15;
|
|
static wxFont Body_14;
|
|
static wxFont Body_13;
|
|
static wxFont Body_12;
|
|
static wxFont Body_10;
|
|
static wxFont Body_11;
|
|
static wxFont Body_9;
|
|
|
|
static void initSysFont();
|
|
|
|
static wxFont sysFont(int size, bool bold = false);
|
|
|
|
static wxSize split_lines(wxDC &dc, int width, const wxString &text, wxString &multiline_text);
|
|
};
|
|
|
|
#endif // !slic3r_GUI_Label_hpp_
|