#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Widgets/StepCtrl.hpp>
Public Member Functions | |
| StepCtrlBase (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0) | |
| ~StepCtrlBase () | |
| void | SetHint (wxString hint) |
| bool | SetTipFont (wxFont const &font) |
| int | AppendItem (const wxString &item, wxString const &tip={}) |
| void | DeleteAllItems () |
| unsigned int | GetCount () const |
| int | GetSelection () const |
| void | SelectItem (int item) |
| void | Idle () |
| wxString | GetItemText (unsigned int item) const |
| int | GetItemUseText (wxString txt) const |
| void | SetItemText (unsigned int item, wxString const &value) |
| 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 | |
| wxFont | font_tip |
| StateColor | clr_bar |
| StateColor | clr_step |
| StateColor | clr_text |
| StateColor | clr_tip |
| int | radius = 7 |
| int | bar_width = 4 |
| std::vector< wxString > | steps |
| std::vector< wxString > | tips |
| wxString | hint |
| int | step = -1 |
| wxPoint | drag_offset |
| wxPoint | pos_thumb |
| 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 Member Functions | |
| bool | sendStepCtrlEvent (bool changing=false) |
| StepCtrlBase::StepCtrlBase | ( | wxWindow * | parent, |
| wxWindowID | id, | ||
| const wxPoint & | pos = wxDefaultPosition, | ||
| const wxSize & | size = wxDefaultSize, | ||
| long | style = 0 ) |
References StaticBox::StaticBox(), StepCtrlBase(), Label::Body_14, StaticBox::border_color, clr_bar, clr_step, clr_text, clr_tip, font_tip, StaticBox::radius, and style.
Referenced by FilamentStepIndicator::FilamentStepIndicator(), StepCtrl::StepCtrl(), StepCtrlBase(), and StepIndicator::StepIndicator().
| StepCtrlBase::~StepCtrlBase | ( | ) |
| int StepCtrlBase::AppendItem | ( | const wxString & | item, |
| wxString const & | tip = {} ) |
|
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().
| void StepCtrlBase::DeleteAllItems | ( | ) |
References sendStepCtrlEvent(), step, steps, and tips.
|
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 |
| wxString StepCtrlBase::GetItemText | ( | unsigned int | item | ) | const |
| int StepCtrlBase::GetItemUseText | ( | wxString | txt | ) | const |
|
staticinherited |
References StaticBox().
Referenced by Label::Label(), ModeSwitchButton::ModeSwitchButton(), ScalableButton::ScalableButton(), SwitchButton::SwitchButton(), Create(), and SwitchButton::Rescale().
| void StepCtrlBase::Idle | ( | ) |
|
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 StepCtrlBase::SelectItem | ( | int | item | ) |
References sendStepCtrlEvent(), step, and steps.
Referenced by StepCtrl::mouseDown(), StepCtrl::mouseUp(), FilamentStepIndicator::SelectNext(), and StepIndicator::SelectNext().
|
private |
References step.
Referenced by DeleteAllItems(), Idle(), and SelectItem().
|
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().
| void StepCtrlBase::SetHint | ( | wxString | hint | ) |
References hint.
| void StepCtrlBase::SetItemText | ( | unsigned int | item, |
| wxString const & | value ) |
| bool StepCtrlBase::SetTipFont | ( | wxFont const & | font | ) |
|
inherited |
References top_margin.
Referenced by Slic3r::GUI::ExtruderGroup::ExtruderGroup().
|
inherited |
References badge.
Referenced by Slic3r::GUI::ExtruderGroup::ExtruderGroup().
|
protectedinherited |
|
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().
|
protected |
|
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 |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by StepCtrl::mouseDown(), and StepCtrl::mouseMove().
|
protected |
|
protected |
Referenced by StepCtrl::doRender(), and SetHint().
|
protected |
Referenced by StepCtrl::doRender(), StepCtrl::mouseDown(), StepCtrl::mouseMove(), and StepCtrl::mouseUp().
|
protected |
|
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().
|
protected |
|
protected |
|
protected |
Referenced by AppendItem(), DeleteAllItems(), FilamentStepIndicator::doRender(), StepCtrl::doRender(), and StepIndicator::doRender().
|
protectedinherited |
Referenced by doRender(), and SetTopMargin().