#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/DeviceTab/wgtDeviceNozzleRackUpdate.h>
Public Member Functions | |
| wgtDeviceNozzleRackHotendUpdate (wxWindow *parent, const wxString &idx_text) | |
| void | UpdateColourStyle (const wxColour &clr) |
| int | GetExtruderNozzleId () const |
| void | SetExtruderNozzleId (int ext_nozzle_id) |
| void | UpdateExtruderNozzleInfo (const std::shared_ptr< DevNozzleRack > rack) |
| void | SetRackNozzleId (int rack_nozzle_id) |
| int | GetRackNozzleId () const |
| void | UpdateRackNozzleInfo (const std::shared_ptr< DevNozzleRack > rack) |
| void | Rescale () |
| 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) |
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 |
Private Types | |
| enum | NozzleStatus : int { NOZZLE_STATUS_DC = -1 , NOZZLE_STATUS_EMPTY , NOZZLE_STATUS_NORMAL , NOZZLE_STATUS_ABNORMAL , NOZZLE_STATUS_UNKNOWN } |
Private Member Functions | |
| void | CreateGui () |
| void | UpdateInfo (const DevNozzle &nozzle) |
| void | OnBitmapHoverEnter (wxMouseEvent &event) |
| void | OnBitmapHoverLeave (wxMouseEvent &event) |
| void | OnStatusIconClick (wxMouseEvent &event) |
| void | updateNozzleImage (const DevNozzle &nozzle) |
|
private |
| Enumerator | |
|---|---|
| NOZZLE_STATUS_DC | |
| NOZZLE_STATUS_EMPTY | |
| NOZZLE_STATUS_NORMAL | |
| NOZZLE_STATUS_ABNORMAL | |
| NOZZLE_STATUS_UNKNOWN | |
| Slic3r::GUI::wgtDeviceNozzleRackHotendUpdate::wgtDeviceNozzleRackHotendUpdate | ( | wxWindow * | parent, |
| const wxString & | idx_text ) |
References StaticBox::StaticBox(), CreateGui(), and m_idx_label.
|
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().
|
private |
References StaticBox::StaticBox(), Label::Body_12, Label::Head_14, m_colour_box, m_diameter_label, m_error_icon, m_flowtype_label, m_icon_bitmap, m_idx_label, m_material_label, m_nozzle_empty_image, m_refresh_icon, m_refreshing_icon, m_sn_label, m_status_bitmap, m_status_label, m_type_label, m_used_time, m_version_label, m_version_new_label, nozzle_hh, nozzle_hs, OnBitmapHoverEnter(), OnBitmapHoverLeave(), OnStatusIconClick(), StaticBox::SetBorderColor(), StaticBox::SetCornerRadius(), WGT_DEVICE_NOZZLE_RACK_HOTEND_UPDATE_DEFAULT_BG, and WX_DIP_SIZE.
Referenced by wgtDeviceNozzleRackHotendUpdate().
|
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 |
|
inline |
References m_ext_nozzle_id.
|
staticinherited |
References StaticBox().
Referenced by Label::Label(), ModeSwitchButton::ModeSwitchButton(), ScalableButton::ScalableButton(), SwitchButton::SwitchButton(), Create(), and SwitchButton::Rescale().
|
inline |
References m_rack_nozzle_id.
|
private |
References ScalableBitmap::bmp(), findNozzleImage, m_hoverFrame, m_nozzle_status, m_scaled_nozzle_empty_image, m_scaled_nozzle_image, NOZZLE_STATUS_EMPTY, NOZZLE_STATUS_UNKNOWN, WGT_DEVICE_NOZZLE_RACK_HOTEND_UPDATE_DEFAULT_BG, and Slic3r::GUI::wxMouseEvent.
Referenced by CreateGui().
|
private |
References m_hoverFrame, and Slic3r::GUI::wxMouseEvent.
Referenced by CreateGui().
|
private |
References _L, Slic3r::GUI::MsgDialog::AddButton(), Slic3r::GUI::LazyInstance< MonitorPanel >::if_built(), m_nozzle_rack, m_rack_nozzle_id, m_refreshing_icon, m_status_bitmap, m_status_label, Slic3r::GUI::DPIAware< P >::ShowModal(), and Slic3r::GUI::wxMouseEvent.
Referenced by CreateGui().
|
protectedinherited |
|
protectedinherited |
References doRender(), and radius.
Referenced by paintEvent(), Button::render(), FanSwitchButton::render(), ImageSwitchButton::render(), SpinInput::render(), TabButton::render(), TempInput::render(), and TextInput::render().
| void Slic3r::GUI::wgtDeviceNozzleRackHotendUpdate::Rescale | ( | ) |
References m_icon_bitmap, m_nozzle_empty_image, m_nozzle_image, m_nozzle_status, and NOZZLE_STATUS_EMPTY.
|
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 m_ext_nozzle_id.
|
inline |
References m_rack_nozzle_id.
|
inherited |
References top_margin.
Referenced by Slic3r::GUI::ExtruderGroup::ExtruderGroup().
|
inherited |
References badge.
Referenced by Slic3r::GUI::ExtruderGroup::ExtruderGroup().
|
protectedinherited |
| void Slic3r::GUI::wgtDeviceNozzleRackHotendUpdate::UpdateColourStyle | ( | const wxColour & | clr | ) |
References StaticBox::SetBorderColor().
| void Slic3r::GUI::wgtDeviceNozzleRackHotendUpdate::UpdateExtruderNozzleInfo | ( | const std::shared_ptr< DevNozzleRack > | rack | ) |
References Slic3r::DevNozzleSystem::GetExtNozzle(), m_ext_nozzle_id, m_nozzle_rack, and UpdateInfo().
|
private |
References _L, Slic3r::Preset::alias, StateColor::darkModeColorFor(), Slic3r::Preset::filament_id, Slic3r::DevNozzle::GetFilamentColor(), Slic3r::DevNozzle::GetFilamentId(), Slic3r::DevNozzle::GetFirmwareInfo(), Slic3r::DevNozzle::GetNozzleDiameterStr(), Slic3r::DevNozzle::GetNozzleFlowTypeStr(), Slic3r::DevNozzle::GetNozzlePrintTime(), Slic3r::DevNozzle::GetNozzleTypeStr(), Slic3r::DevNozzle::IsAbnormal(), Slic3r::DevNozzle::IsEmpty(), Slic3r::DevNozzle::IsNormal(), Slic3r::DevNozzle::IsUnknown(), Slic3r::DevFirmwareVersionInfo::isValid(), m_colour_box, m_diameter_label, m_error_icon, m_flowtype_label, m_material_label, m_nozzle_rack, m_nozzle_status, m_refresh_icon, m_refreshing_icon, m_sn_label, m_status_bitmap, m_status_label, m_type_label, m_used_time, m_version_label, m_version_new_label, NOZZLE_STATUS_ABNORMAL, NOZZLE_STATUS_DC, NOZZLE_STATUS_EMPTY, NOZZLE_STATUS_NORMAL, NOZZLE_STATUS_UNKNOWN, Slic3r::DevFirmwareVersionInfo::sn, Slic3r::DevFirmwareVersionInfo::sw_new_ver, Slic3r::DevFirmwareVersionInfo::sw_ver, and updateNozzleImage().
Referenced by UpdateExtruderNozzleInfo(), and UpdateRackNozzleInfo().
|
private |
References findNozzleImage, Slic3r::DevNozzle::GetNozzleDiameterType(), Slic3r::DevNozzle::GetNozzleFlowType(), Slic3r::DevNozzle::GetNozzleType(), Slic3r::H_FLOW, m_icon_bitmap, m_nozzle_empty_image, m_nozzle_image, m_nozzle_status, m_scaled_nozzle_image, Slic3r::NOZZLE_DIAMETER_0_2, Slic3r::NOZZLE_DIAMETER_0_4, Slic3r::NOZZLE_DIAMETER_0_6, Slic3r::NOZZLE_DIAMETER_0_8, nozzle_hh, nozzle_hs, NOZZLE_STATUS_EMPTY, NOZZLE_STATUS_UNKNOWN, Slic3r::ntHardenedSteel, Slic3r::ntStainlessSteel, and Slic3r::S_FLOW.
Referenced by UpdateInfo().
| void Slic3r::GUI::wgtDeviceNozzleRackHotendUpdate::UpdateRackNozzleInfo | ( | const std::shared_ptr< DevNozzleRack > | rack | ) |
References m_nozzle_rack, m_rack_nozzle_id, and UpdateInfo().
|
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 |
|
private |
Referenced by OnBitmapHoverEnter(), and updateNozzleImage().
Referenced by CreateGui(), and UpdateInfo().
|
private |
Referenced by CreateGui(), and UpdateInfo().
|
private |
Referenced by CreateGui(), and UpdateInfo().
|
private |
Referenced by GetExtruderNozzleId(), SetExtruderNozzleId(), and UpdateExtruderNozzleInfo().
|
private |
Referenced by CreateGui(), and UpdateInfo().
|
private |
Referenced by OnBitmapHoverEnter(), and OnBitmapHoverLeave().
|
private |
Referenced by CreateGui(), Rescale(), and updateNozzleImage().
|
private |
Referenced by wgtDeviceNozzleRackHotendUpdate(), and CreateGui().
Referenced by CreateGui(), and UpdateInfo().
|
private |
Referenced by CreateGui(), Rescale(), and updateNozzleImage().
|
private |
Referenced by Rescale(), and updateNozzleImage().
|
private |
Referenced by OnStatusIconClick(), UpdateExtruderNozzleInfo(), UpdateInfo(), and UpdateRackNozzleInfo().
|
private |
Referenced by OnBitmapHoverEnter(), Rescale(), UpdateInfo(), and updateNozzleImage().
|
private |
Referenced by GetRackNozzleId(), OnStatusIconClick(), SetRackNozzleId(), and UpdateRackNozzleInfo().
|
private |
Referenced by CreateGui(), and UpdateInfo().
Referenced by CreateGui(), OnStatusIconClick(), and UpdateInfo().
|
private |
Referenced by OnBitmapHoverEnter().
|
private |
Referenced by OnBitmapHoverEnter(), and updateNozzleImage().
|
private |
Referenced by CreateGui(), and UpdateInfo().
|
private |
Referenced by CreateGui(), OnStatusIconClick(), and UpdateInfo().
Referenced by CreateGui(), OnStatusIconClick(), and UpdateInfo().
|
private |
Referenced by CreateGui(), and UpdateInfo().
Referenced by CreateGui(), and UpdateInfo().
|
private |
Referenced by CreateGui(), and UpdateInfo().
|
private |
Referenced by CreateGui(), and UpdateInfo().
|
private |
Referenced by CreateGui(), and updateNozzleImage().
|
private |
Referenced by CreateGui(), and updateNozzleImage().
|
protectedinherited |
|
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().