90{
91 SetBackgroundColour(*wxWHITE);
92
93
94 auto* main_sizer = new wxBoxSizer(wxVERTICAL);
95
96
97 auto* header_sizer = new wxBoxSizer(wxHORIZONTAL);
98
99
100 auto* title_label =
new Label(
this,
_L(
"Hotends Info"));
102 header_sizer->Add(title_label, 1, wxALIGN_CENTER_VERTICAL | wxLEFT, FromDIP(20));
103
104
105 header_sizer->AddStretchSpacer();
106 main_sizer->Add(header_sizer, 0, wxEXPAND | wxTOP | wxRIGHT, FromDIP(10));
107
108
112
114 for (int id = 0; id < 6; id ++)
115 {
116 auto item = new wgtDeviceNozzleRackHotendUpdate(this, wxString::Format("%d", id + 1));
117 item->SetRackNozzleId(id);
119
120 main_sizer->Add(item, 0, wxEXPAND | wxALL, FromDIP(12));
121 if (id < 5)
122 {
123 wxPanel* separator = new wxPanel(this);
124 separator->SetMaxSize(wxSize(-1, FromDIP(1)));
125 separator->SetMinSize(wxSize(-1, FromDIP(1)));
126 separator->SetBackgroundColour(wxColour(238, 238, 238));
127 main_sizer->Add(separator, 0, wxEXPAND | wxLEFT | wxRIGHT, FromDIP(12));
128 }
129 }
130
131 main_sizer->AddSpacer(FromDIP(20));
132
133
134 this->SetSizer(main_sizer);
135 this->Layout();
136}
#define MAIN_EXTRUDER_ID
Definition DevDefs.h:101
#define _L(s)
Definition OBJ.cpp:34
static wxFont Head_14
Definition Label.hpp:45
std::unordered_map< int, wgtDeviceNozzleRackHotendUpdate * > m_nozzle_items
Definition wgtDeviceNozzleRackUpdate.h:82
wgtDeviceNozzleRackHotendUpdate * m_extruder_nozzle_item
Definition wgtDeviceNozzleRackUpdate.h:81