Classes | |
| struct | NozzleRow |
Public Member Functions | |
| ExtruderGroup (wxWindow *parent, int index, wxString const &title) | |
| void | SetNozzleRowCount (size_t count) |
| size_t | NozzleRowCount () const |
| void | SetRowDiameters (const std::vector< double > &diameters) |
| NozzleRow | create_nozzle_row () |
| void | update_row_widths () |
| void | set_ams_count (int n4, int n1) |
| void | update_ams () |
| void | SetTitle (const wxString &title) |
| void | SetCount (int count) |
| void | SetEditEnabled (bool enable) |
| void | SetOnHoverClick (std::function< void()> on_click) |
| void | sync_ams (MachineObject const *obj, std::vector< DevAms * > const &ams4, std::vector< DevAms * > const &ams1) |
| void | Rescale () |
| void | sys_color_changed () |
| bool | Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0) |
| void | SetCornerRadius (double radius) |
| void | SetBorderWidth (int width) |
| void | SetTopMargin (int margin) |
| void | SetBorderColor (StateColor const &color) |
| void | SetBorderColorNormal (wxColor const &color) |
| void | SetBorderStyle (wxPenStyle style) |
| void | SetBackgroundColor (StateColor const &color) |
| void | SetBackgroundColorNormal (wxColor const &color) |
| void | SetBackgroundColor2 (StateColor const &color) |
| void | ShowBadge (bool show) |
Static Public Member Functions | |
| static wxColor | GetParentBackgroundColor (wxWindow *parent) |
Public Attributes | |
| wxBoxSizer * | sizer = nullptr |
| HoverLabel * | hover_label = nullptr |
| wxStaticText * | ams_label {nullptr} |
| ScalableButton * | btn_edit = nullptr |
| ComboBox * | combo_diameter = nullptr |
| AMSPreview * | ams [4] = {nullptr} |
| wxStaticText * | ams_not_installed_msg {nullptr} |
| ScalableButton * | btn_up {nullptr} |
| ScalableButton * | btn_down {nullptr} |
| wxBoxSizer * | hsizer_ams { nullptr } |
| size_t | page_cur {0} |
| size_t | page_num {3} |
| size_t | ams_n4 = 0 |
| size_t | ams_n1 = 0 |
| std::vector< AMSinfo > | ams_4 |
| std::vector< AMSinfo > | ams_1 |
| wxString | diameter |
| std::vector< NozzleRow > | rows |
| size_t | nozzle_row_count = 0 |
| wxBoxSizer * | row_columns [2] = {} |
| int | group_index = -1 |
Protected Member Functions | |
| void | eraseEvent (wxEraseEvent &evt) |
| void | sizeEvent (wxSizeEvent &evt) |
| void | paintEvent (wxPaintEvent &evt) |
| void | render (wxDC &dc) |
| virtual void | doRender (wxDC &dc) |
Protected Attributes | |
| double | radius |
| int | border_width = 1 |
| int | top_margin = 0 |
| wxPenStyle | border_style = wxPENSTYLE_SOLID |
| StateHandler | state_handler |
| StateColor | border_color |
| StateColor | background_color |
| StateColor | background_color2 |
| ScalableBitmap | badge |
| Slic3r::GUI::ExtruderGroup::ExtruderGroup | ( | wxWindow * | parent, |
| int | index, | ||
| wxString const & | title ) |
References StaticBox::StaticBox(), _L, ams, ams_label, ams_not_installed_msg, Label::Body_10, Label::Body_13, btn_down, btn_edit, btn_up, combo_diameter, StateColor::darkModeColorFor(), Slic3r::GUI::extruder_group_chip_bg(), Slic3r::GUI::GENERIC_AMS, group_index, hover_label, hsizer_ams, page_cur, page_num, PRINTER_PANEL_RADIUS, row_columns, StaticBox::SetBorderColor(), StaticBox::SetCornerRadius(), SetNozzleRowCount(), StaticBox::SetTopMargin(), StaticBox::ShowBadge(), sizer, update_ams(), Slic3r::GUI::AMSCountPopupWindow::UpdateAMSCount(), Slic3r::GUI::use_nozzle_row_font(), Slic3r::GUI::wxMouseEvent, and wxStaticText.
|
inherited |
References background_color, background_color2, border_color, border_width, GetParentBackgroundColor(), state_handler, and style.
Referenced by FanSwitchButton::FanSwitchButton(), ImageSwitchButton::ImageSwitchButton(), ModeSwitchButton::ModeSwitchButton(), StaticBox(), Button::Create(), SpinInput::Create(), TabButton::Create(), TempInput::Create(), and TextInput::Create().
| ExtruderGroup::NozzleRow Slic3r::GUI::ExtruderGroup::create_nozzle_row | ( | ) |
References _L_CONTEXT, combo_diameter, StateColor::darkModeColorFor(), Slic3r::GUI::ExtruderGroup::NozzleRow::diameter_font(), Slic3r::GUI::ExtruderGroup::NozzleRow::diameter_label, Slic3r::GUI::ExtruderGroup::NozzleRow::flow, group_index, nozzle_row_count, Slic3r::GUI::plater(), Slic3r::GUI::ExtruderGroup::NozzleRow::prefix, Slic3r::GUI::ExtruderGroup::NozzleRow::prefix_font(), row_columns, rows, Slic3r::Preset::TYPE_PRINTER, and Slic3r::GUI::use_nozzle_row_font().
Referenced by SetNozzleRowCount().
|
protectedvirtualinherited |
Reimplemented in FilamentStepIndicator, ModeSwitchButton, StepCtrl, StepIndicator, and TabCtrl.
References background_color, background_color2, badge, border_color, border_style, border_width, radius, scale(), state_handler, and top_margin.
Referenced by FilamentStepIndicator::doRender(), StepCtrl::doRender(), StepIndicator::doRender(), and render().
|
protectedinherited |
|
staticinherited |
References StaticBox().
Referenced by Label::Label(), ModeSwitchButton::ModeSwitchButton(), ScalableButton::ScalableButton(), SwitchButton::SwitchButton(), Create(), and SwitchButton::Rescale().
|
inline |
References nozzle_row_count.
|
protectedinherited |
|
protectedinherited |
References doRender(), and radius.
Referenced by paintEvent(), Button::render(), FanSwitchButton::render(), ImageSwitchButton::render(), SpinInput::render(), TabButton::render(), TempInput::render(), and TextInput::render().
|
inline |
References ams, ams_label, btn_down, btn_edit, btn_up, combo_diameter, Slic3r::GUI::ExtruderGroup::NozzleRow::diameter_font(), hover_label, Slic3r::GUI::ExtruderGroup::NozzleRow::prefix_font(), rows, and update_row_widths().
|
inline |
References ams_n1, ams_n4, btn_edit, and update_ams().
Referenced by Slic3r::GUI::AMSCountPopupWindow::UpdateAMSCount().
|
inherited |
References background_color, and state_handler.
Referenced by Slic3r::GUI::CaliPageButton::CaliPageButton(), TabCtrl::AppendItem(), MultiSwitchButton::AppendOption(), Slic3r::GUI::KBShortcutsDialog::create_page(), Slic3r::GUI::wgtDeviceNozzleRackNozzleItem::CreateGui(), Slic3r::GUI::wgtDeviceNozzleRackArea::CreateNozzleBox(), Slic3r::GUI::DeviceErrorDialog::init_button(), ButtonsListCtrl::InsertPage(), TabButtonsListCtrl::InsertPage(), ButtonsListCtrl::OnPaint(), TabButtonsListCtrl::OnPaint(), Slic3r::GUI::s_set_bg_style(), Slic3r::GUI::wgtDeviceNozzleRackNozzleItem::SetDisable(), Button::SetStyle(), and Slic3r::GUI::style_sidebar_icon_btn().
|
inherited |
References background_color2, and state_handler.
|
inherited |
References background_color.
Referenced by Slic3r::GUI::ShortcutCaptureDialog::ShortcutCaptureDialog(), and Slic3r::GUI::HotEndTable::CreateNozzleBox().
|
inherited |
References border_color, and state_handler.
Referenced by Slic3r::GUI::CaliPageButton::CaliPageButton(), Slic3r::GUI::ExtruderGroup::ExtruderGroup(), TabCtrl::TabCtrl(), Slic3r::GUI::wgtDeviceNozzleRackTitle::wgtDeviceNozzleRackTitle(), MultiSwitchButton::AppendOption(), Slic3r::GUI::wgtDeviceNozzleRackHotendUpdate::CreateGui(), Slic3r::GUI::wgtDeviceNozzleRackArea::CreateNozzleBox(), Slic3r::GUI::DeviceErrorDialog::init_button(), Slic3r::GUI::s_set_bg_style(), Slic3r::GUI::wgtDeviceNozzleRackNozzleItem::SetSelected(), Button::SetStyle(), and Slic3r::GUI::wgtDeviceNozzleRackHotendUpdate::UpdateColourStyle().
|
inherited |
References border_color.
Referenced by Slic3r::GUI::ShortcutCaptureDialog::ShortcutCaptureDialog(), and Slic3r::GUI::HotEndTable::CreateNozzleBox().
|
inherited |
References border_style, and style.
|
inherited |
References border_width.
Referenced by MultiSwitchButton::MultiSwitchButton(), Slic3r::GUI::KBShortcutsDialog::create_page(), and Button::SetStyle().
|
inherited |
References radius.
Referenced by Slic3r::GUI::CaliPageButton::CaliPageButton(), Slic3r::GUI::ExtruderGroup::ExtruderGroup(), MultiSwitchButton::MultiSwitchButton(), Slic3r::GUI::ShortcutCaptureDialog::ShortcutCaptureDialog(), Slic3r::GUI::wgtDeviceNozzleRackTitle::wgtDeviceNozzleRackTitle(), TabCtrl::AppendItem(), MultiSwitchButton::AppendOption(), Slic3r::GUI::KBShortcutsDialog::create_page(), Slic3r::GUI::wgtDeviceNozzleRackHotendUpdate::CreateGui(), Slic3r::GUI::wgtDeviceNozzleRackNozzleItem::CreateGui(), Slic3r::GUI::HotEndTable::CreateNozzleBox(), Slic3r::GUI::wgtDeviceNozzleRackArea::CreateNozzleBox(), Slic3r::GUI::DeviceErrorDialog::init_button(), ButtonsListCtrl::InsertPage(), TabButtonsListCtrl::InsertPage(), Slic3r::GUI::CaliPageButton::msw_rescale(), ModeSwitchButton::Rescale(), MultiSwitchButton::SetButtonCornerRadius(), Button::SetStyle(), and Slic3r::GUI::style_sidebar_icon_btn().
|
inline |
References count, and hover_label.
|
inline |
References hover_label.
| void Slic3r::GUI::ExtruderGroup::SetNozzleRowCount | ( | size_t | count | ) |
References count, create_nozzle_row(), group_index, MAXIMUM_EXTRUDER_NUMBER, nozzle_row_count, rows, and update_row_widths().
Referenced by ExtruderGroup().
|
inline |
References hover_label.
| void Slic3r::GUI::ExtruderGroup::SetRowDiameters | ( | const std::vector< double > & | diameters | ) |
References Slic3r::GUI::from_u8(), Slic3r::GUI::get_diameter_string(), nozzle_row_count, rows, and update_row_widths().
| void Slic3r::GUI::ExtruderGroup::SetTitle | ( | const wxString & | title | ) |
References hover_label.
|
inherited |
References top_margin.
Referenced by Slic3r::GUI::ExtruderGroup::ExtruderGroup().
|
inherited |
References badge.
Referenced by Slic3r::GUI::ExtruderGroup::ExtruderGroup().
|
protectedinherited |
| void Slic3r::GUI::ExtruderGroup::sync_ams | ( | MachineObject const * | obj, |
| std::vector< DevAms * > const & | ams4, | ||
| std::vector< DevAms * > const & | ams1 ) |
References ams, ams_1, ams_4, Slic3r::MachineObject::GetFilaSystem(), Slic3r::MachineObject::is_support_ams_humidity, Slic3r::GUI::AMSinfo::parse_ams_info(), and update_ams().
|
inline |
References btn_edit, StateColor::darkModeColorFor(), Slic3r::GUI::extruder_group_chip_bg(), hover_label, and rows.
| void Slic3r::GUI::ExtruderGroup::update_ams | ( | ) |
References ams, ams_1, ams_4, ams_n1, ams_n4, ams_not_installed_msg, Slic3r::GUI::AMSinfo::ams_type, btn_down, btn_edit, btn_up, Slic3r::GUI::AMSinfo::cans, hsizer_ams, Slic3r::GUI::N3S_AMS, page_cur, and page_num.
Referenced by ExtruderGroup(), set_ams_count(), and sync_ams().
| void Slic3r::GUI::ExtruderGroup::update_row_widths | ( | ) |
References rows.
Referenced by Rescale(), SetNozzleRowCount(), and SetRowDiameters().
| AMSPreview* Slic3r::GUI::ExtruderGroup::ams[4] = {nullptr} |
Referenced by ExtruderGroup(), Rescale(), sync_ams(), and update_ams().
| std::vector<AMSinfo> Slic3r::GUI::ExtruderGroup::ams_1 |
Referenced by sync_ams(), and update_ams().
| std::vector<AMSinfo> Slic3r::GUI::ExtruderGroup::ams_4 |
Referenced by sync_ams(), and update_ams().
| wxStaticText* Slic3r::GUI::ExtruderGroup::ams_label {nullptr} |
Referenced by ExtruderGroup(), and Rescale().
| size_t Slic3r::GUI::ExtruderGroup::ams_n1 = 0 |
Referenced by set_ams_count(), and update_ams().
| size_t Slic3r::GUI::ExtruderGroup::ams_n4 = 0 |
Referenced by set_ams_count(), and update_ams().
| wxStaticText* Slic3r::GUI::ExtruderGroup::ams_not_installed_msg {nullptr} |
Referenced by ExtruderGroup(), and update_ams().
|
protectedinherited |
Referenced by Button::Button(), FanSwitchButton::FanSwitchButton(), ImageSwitchButton::ImageSwitchButton(), ModeSwitchButton::ModeSwitchButton(), TabButton::TabButton(), Create(), ModeSwitchButton::doRender(), doRender(), SetBackgroundColor(), SetBackgroundColorNormal(), and TabButton::SetBGColor().
|
protectedinherited |
Referenced by Create(), doRender(), and SetBackgroundColor2().
|
protectedinherited |
Referenced by doRender(), and ShowBadge().
|
protectedinherited |
Referenced by FanSwitchButton::FanSwitchButton(), ImageSwitchButton::ImageSwitchButton(), ModeSwitchButton::ModeSwitchButton(), StaticBox(), StepCtrlBase::StepCtrlBase(), Create(), ModeSwitchButton::doRender(), doRender(), TabCtrl::doRender(), SetBorderColor(), SetBorderColorNormal(), and Button::SetStyle().
|
protectedinherited |
Referenced by doRender(), and SetBorderStyle().
|
protectedinherited |
| ScalableButton* Slic3r::GUI::ExtruderGroup::btn_down {nullptr} |
Referenced by ExtruderGroup(), Rescale(), and update_ams().
| ScalableButton* Slic3r::GUI::ExtruderGroup::btn_edit = nullptr |
Referenced by ExtruderGroup(), Rescale(), set_ams_count(), sys_color_changed(), and update_ams().
| ScalableButton* Slic3r::GUI::ExtruderGroup::btn_up {nullptr} |
Referenced by ExtruderGroup(), Rescale(), and update_ams().
Referenced by ExtruderGroup(), create_nozzle_row(), and Rescale().
| wxString Slic3r::GUI::ExtruderGroup::diameter |
| int Slic3r::GUI::ExtruderGroup::group_index = -1 |
Referenced by ExtruderGroup(), create_nozzle_row(), and SetNozzleRowCount().
| HoverLabel* Slic3r::GUI::ExtruderGroup::hover_label = nullptr |
Referenced by ExtruderGroup(), Rescale(), SetCount(), SetEditEnabled(), SetOnHoverClick(), SetTitle(), and sys_color_changed().
| wxBoxSizer* Slic3r::GUI::ExtruderGroup::hsizer_ams { nullptr } |
Referenced by ExtruderGroup(), and update_ams().
| size_t Slic3r::GUI::ExtruderGroup::nozzle_row_count = 0 |
Referenced by create_nozzle_row(), NozzleRowCount(), SetNozzleRowCount(), and SetRowDiameters().
| size_t Slic3r::GUI::ExtruderGroup::page_cur {0} |
Referenced by ExtruderGroup(), and update_ams().
| size_t Slic3r::GUI::ExtruderGroup::page_num {3} |
Referenced by ExtruderGroup(), and update_ams().
|
protectedinherited |
| wxBoxSizer* Slic3r::GUI::ExtruderGroup::row_columns[2] = {} |
Referenced by ExtruderGroup(), and create_nozzle_row().
| std::vector<NozzleRow> Slic3r::GUI::ExtruderGroup::rows |
Referenced by create_nozzle_row(), Rescale(), SetNozzleRowCount(), SetRowDiameters(), sys_color_changed(), and update_row_widths().
| wxBoxSizer* Slic3r::GUI::ExtruderGroup::sizer = nullptr |
Referenced by ExtruderGroup().
|
protectedinherited |
Referenced by ModeSwitchButton::ModeSwitchButton(), StaticBox(), Button::Create(), Create(), TabButton::Create(), FilamentStepIndicator::doRender(), ModeSwitchButton::doRender(), doRender(), StepCtrl::doRender(), StepIndicator::doRender(), TabCtrl::doRender(), Button::GetValue(), Button::render(), FanSwitchButton::render(), ImageSwitchButton::render(), TabButton::render(), SetBackgroundColor(), SetBackgroundColor2(), TabButton::SetBGColor(), SetBorderColor(), TabButton::SetBorderColor(), Button::SetTextColor(), FanSwitchButton::SetTextColor(), ImageSwitchButton::SetTextColor(), TabButton::SetTextColor(), and Button::SetValue().
|
protectedinherited |
Referenced by doRender(), and SetTopMargin().