#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/DeviceTab/wgtMsgPanel.h>
|
| | wgtMsgPanelItem (wxWindow *parent, const wxColour &colour, const wxString &text, int max_width, const wxString &wiki_url=wxEmptyString) |
| void | SetColour (const wxColour &colour) |
| void | SetText (const wxString &text) |
| void | SetWiki (const wxString &wiki_url) |
◆ wgtMsgPanelItem()
| Slic3r::GUI::wgtMsgPanelItem::wgtMsgPanelItem |
( |
wxWindow * | parent, |
|
|
const wxColour & | colour, |
|
|
const wxString & | text, |
|
|
int | max_width, |
|
|
const wxString & | wiki_url = wxEmptyString ) |
26 : wxPanel(parent, wxID_ANY)
31{
33}
wxColour m_colour
Definition wgtMsgPanel.h:42
int m_max_width
Definition wgtMsgPanel.h:41
wxString m_text
Definition wgtMsgPanel.h:43
wxString m_wiki_url
Definition wgtMsgPanel.h:44
void CreateGui()
Definition wgtMsgPanel.cpp:35
References CreateGui(), m_colour, m_max_width, m_text, and m_wiki_url.
◆ CreateGui()
| void Slic3r::GUI::wgtMsgPanelItem::CreateGui |
( |
| ) |
|
|
private |
36{
38
39 wxBoxSizer* main_sizer = new wxBoxSizer(wxHORIZONTAL);
40
41
42
43
44
45
46
47
48 wxBoxSizer* text_sizer = new wxBoxSizer(wxHORIZONTAL);
49
56 } else {
58 }
59
60 text_sizer->Add(
m_text_label, 0, wxALIGN_CENTER_VERTICAL);
61
68 text_sizer->AddSpacer(FromDIP(4));
69 text_sizer->Add(
m_wiki_link, 0, wxALIGN_CENTER_VERTICAL | wxEXPAND);
70 }
71
72 main_sizer->Add(text_sizer, 0, wxALIGN_LEFT | wxEXPAND);
73
74 SetSizer(main_sizer);
75 Layout();
76 Fit();
77}
#define _L(s)
Definition OBJ.cpp:34
static wxFont Body_13
Definition Label.hpp:54
Label * m_text_label
Definition wgtMsgPanel.h:46
void OnClickWiki(wxHyperlinkEvent &evt)
Definition wgtMsgPanel.cpp:102
wxHyperlinkCtrl * m_wiki_link
Definition wgtMsgPanel.h:47
static wxColour darkModeColorFor(wxColour const &color)
Definition StateColor.cpp:219
References _L, Label::Body_13, StateColor::darkModeColorFor(), m_colour, m_max_width, m_text, m_text_label, m_wiki_link, m_wiki_url, and OnClickWiki().
Referenced by wgtMsgPanelItem().
◆ OnClickWiki()
| void Slic3r::GUI::wgtMsgPanelItem::OnClickWiki |
( |
wxHyperlinkEvent & | evt | ) |
|
|
private |
◆ SetColour()
| void Slic3r::GUI::wgtMsgPanelItem::SetColour |
( |
const wxColour & | colour | ) |
|
◆ SetText()
| void Slic3r::GUI::wgtMsgPanelItem::SetText |
( |
const wxString & | text | ) |
|
◆ SetWiki()
| void Slic3r::GUI::wgtMsgPanelItem::SetWiki |
( |
const wxString & | wiki_url | ) |
|
◆ m_colour
| wxColour Slic3r::GUI::wgtMsgPanelItem::m_colour |
|
private |
◆ m_max_width
| int Slic3r::GUI::wgtMsgPanelItem::m_max_width |
|
private |
◆ m_text
| wxString Slic3r::GUI::wgtMsgPanelItem::m_text |
|
private |
◆ m_text_label
| Label* Slic3r::GUI::wgtMsgPanelItem::m_text_label { nullptr } |
|
private |
◆ m_wiki_link
| wxHyperlinkCtrl* Slic3r::GUI::wgtMsgPanelItem::m_wiki_link { nullptr } |
|
private |
◆ m_wiki_url
| wxString Slic3r::GUI::wgtMsgPanelItem::m_wiki_url |
|
private |
The documentation for this class was generated from the following files:
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/DeviceTab/wgtMsgPanel.h
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/DeviceTab/wgtMsgPanel.cpp