OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::FilamentMapDefaultPanel Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/FilamentMapPanel.hpp>

Inheritance diagram for Slic3r::GUI::FilamentMapDefaultPanel:
Collaboration diagram for Slic3r::GUI::FilamentMapDefaultPanel:

Public Member Functions

 FilamentMapDefaultPanel (wxWindow *parent)
bool Show (bool show=true) override

Private Attributes

Label * m_label

Detailed Description

Constructor & Destructor Documentation

◆ FilamentMapDefaultPanel()

Slic3r::GUI::FilamentMapDefaultPanel::FilamentMapDefaultPanel ( wxWindow * parent)
749 : wxPanel(parent)
750{
751 auto sizer = new wxBoxSizer(wxHORIZONTAL);
752
753 m_label = new Label(this, _L("The filament grouping method for current plate is determined by the dropdown option at the slicing plate button."));
754 m_label->SetFont(Label::Body_14);
755 m_label->SetBackgroundColour(*wxWHITE);
756 m_label->Wrap(FromDIP(500));
757
758 sizer->AddStretchSpacer();
759 sizer->Add(m_label, 1, wxEXPAND);
760 sizer->AddStretchSpacer();
761
762 SetSizerAndFit(sizer);
763 Layout();
764 GUI::wxGetApp().UpdateDarkUIWin(this);
765}
#define _L(s)
Definition OBJ.cpp:34
static wxFont Body_14
Definition Label.hpp:53
Label * m_label
Definition FilamentMapPanel.hpp:127

References _L, Label::Body_14, and m_label.

Member Function Documentation

◆ Show()

bool Slic3r::GUI::FilamentMapDefaultPanel::Show ( bool show = true)
override
768{
769 m_label->Show(show);
770 return wxPanel::Show(show);
771}

References m_label.

Member Data Documentation

◆ m_label

Label* Slic3r::GUI::FilamentMapDefaultPanel::m_label
private

Referenced by FilamentMapDefaultPanel(), and Show().


The documentation for this class was generated from the following files: