374 : wxPanel(parent)
375{
376 wxSizer* main_sizer = new wxBoxSizer(wxVERTICAL);
377 SetBackgroundColour("#F8F8F8");
379
380 auto extruder_label =
new Label(
this,
_L(
"Extruder"));
381
382 badget =
new wxStaticBitmap(
this, wxID_ANY, icon);
383
386
391
392
393 wxBoxSizer* top_h = new wxBoxSizer(wxVERTICAL);
394 top_h->Add(extruder_label, 0, wxALIGN_CENTER | wxBOTTOM, FromDIP(10));
395
396 main_sizer->Add(top_h, 0, wxEXPAND | wxTOP, FromDIP(5));
397 main_sizer->Add(
badget, 0, wxALIGN_CENTER | wxTOP, FromDIP(5));
398
399 wxBoxSizer* left_extruder = new wxBoxSizer(wxVERTICAL);
400
402 left_extruder->Add(
left_flow_desp, 0, wxALIGN_CENTER | wxLEFT, FromDIP(12));
403
404 wxBoxSizer* right_extruder = new wxBoxSizer(wxVERTICAL);
406 right_extruder->Add(
right_flow_desp, 0, wxALIGN_CENTER | wxRIGHT, FromDIP(12));
407
408 wxBoxSizer* info_sizer = new wxBoxSizer(wxHORIZONTAL);
409 info_sizer->Add(left_extruder, 0);
410 info_sizer->AddStretchSpacer();
411 info_sizer->Add(right_extruder, 0);
412
413 main_sizer->Add(info_sizer, 0, wxEXPAND | wxTOP, FromDIP(5));
414
415 SetSizer(main_sizer);
416 Layout();
417 Fit();
418 wxGetApp().UpdateDarkUIWin(this);
419}
#define _L(s)
Definition OBJ.cpp:34
wxStaticBitmap * badget
Definition MultiNozzleSync.hpp:99
Label * right_diameter_desp
Definition MultiNozzleSync.hpp:101
Label * right_flow_desp
Definition MultiNozzleSync.hpp:103
Label * left_diameter_desp
Definition MultiNozzleSync.hpp:100
Label * left_flow_desp
Definition MultiNozzleSync.hpp:102
std::vector< std::string > m_diameter_list
Definition MultiNozzleSync.hpp:105
std::vector< NozzleVolumeType > m_volume_type_list
Definition MultiNozzleSync.hpp:106
static const int RightExtruderIdx
Definition MultiNozzleSync.cpp:65
static const int LeftExtruderIdx
Definition MultiNozzleSync.cpp:64
@ nvtStandard
Definition PrintConfig.hpp:619
std::string get_nozzle_volume_type_string(NozzleVolumeType nozzle_volume_type)
Definition PrintConfig.cpp:860
wxBitmap create_scaled_bitmap(const std::string &bmp_name_in, wxWindow *win, const int px_cnt, const bool grayscale, const std::string &new_color, const bool menu_bitmap, const bool resize, const bool bitmap2, const std::vector< std::string > &array_new_color)
Definition wxExtensions.cpp:448