#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/TabButton.hpp>
Public Member Functions | |
| TabButton () | |
| TabButton (wxWindow *parent, wxString text, ScalableBitmap &icon, long style=0, int iconSize=0) | |
| bool | Create (wxWindow *parent, wxString text, ScalableBitmap &icon, long style=0, int iconSize=0) |
| void | SetLabel (const wxString &label) override |
| void | SetMinSize (const wxSize &size) override |
| void | SetPaddingSize (const wxSize &size) |
| const wxSize & | GetPaddingSize () |
| void | SetTextColor (StateColor const &color) |
| void | SetBorderColor (StateColor const &color) |
| void | SetBGColor (StateColor const &color) |
| void | SetBitmap (ScalableBitmap &bitmap) |
| bool | Enable (bool enable=true) override |
| void | Rescale () |
| void | ShowNewTag (bool tag=false) |
| bool | GetShowNewTag () const |
| 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 | 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) |
| 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 | background_color |
| StateColor | background_color2 |
| ScalableBitmap | badge |
Private Member Functions | |
| void | paintEvent (wxPaintEvent &evt) |
| void | render (wxDC &dc) |
| void | messureSize () |
| void | mouseDown (wxMouseEvent &event) |
| void | mouseReleased (wxMouseEvent &event) |
| void | sendButtonEvent () |
Private Attributes | |
| wxSize | textSize |
| wxSize | minSize |
| wxSize | paddingSize |
| ScalableBitmap | icon |
| ScalableBitmap | newtag_img |
| StateColor | text_color |
| StateColor | border_color |
| bool | pressedDown = false |
| bool | show_new_tag = false |
| TabButton::TabButton | ( | ) |
References TabButton(), StaticBox::background_color, border_color, BORDER_HOVER_COL, StateColor::Checked, StateColor::Hovered, StateColor::Normal, paddingSize, TAB_BUTTON_SEL, and text_color.
Referenced by TabButton(), and TabButton().
| TabButton::TabButton | ( | wxWindow * | parent, |
| wxString | text, | ||
| ScalableBitmap & | icon, | ||
| long | style = 0, | ||
| int | iconSize = 0 ) |
References TabButton(), Create(), and style.
|
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().
| bool TabButton::Create | ( | wxWindow * | parent, |
| wxString | text, | ||
| ScalableBitmap & | icon, | ||
| long | style = 0, | ||
| int | iconSize = 0 ) |
References Label::Body_14, border_color, StaticBox::Create(), icon, messureSize(), newtag_img, StaticBox::state_handler, style, and text_color.
Referenced by TabButton().
|
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().
|
override |
|
protectedinherited |
| const wxSize & TabButton::GetPaddingSize | ( | ) |
References paddingSize.
|
staticinherited |
References StaticBox().
Referenced by Label::Label(), ModeSwitchButton::ModeSwitchButton(), ScalableButton::ScalableButton(), SwitchButton::SwitchButton(), Create(), and SwitchButton::Rescale().
|
inline |
References show_new_tag.
|
private |
References icon, minSize, paddingSize, and textSize.
Referenced by Create(), Rescale(), SetLabel(), SetMinSize(), and SetPaddingSize().
|
private |
References pressedDown.
|
private |
References pressedDown, and sendButtonEvent().
|
private |
|
private |
References border_color, icon, newtag_img, paddingSize, StaticBox::render(), show_new_tag, StaticBox::state_handler, text_color, and textSize.
Referenced by paintEvent().
| void TabButton::Rescale | ( | ) |
|
private |
Referenced by mouseReleased().
|
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().
| void TabButton::SetBGColor | ( | StateColor const & | color | ) |
References StaticBox::background_color, and StaticBox::state_handler.
| void TabButton::SetBitmap | ( | ScalableBitmap & | bitmap | ) |
| void TabButton::SetBorderColor | ( | StateColor const & | color | ) |
References border_color, and StaticBox::state_handler.
|
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().
|
override |
References messureSize().
Referenced by TabButtonsListCtrl::SetPageText().
|
override |
References messureSize(), and minSize.
Referenced by TabButtonsListCtrl::InsertPage().
| void TabButton::SetPaddingSize | ( | const wxSize & | size | ) |
| void TabButton::SetTextColor | ( | StateColor const & | color | ) |
References StaticBox::state_handler, and text_color.
Referenced by TabButtonsListCtrl::InsertPage().
|
inherited |
References top_margin.
Referenced by Slic3r::GUI::ExtruderGroup::ExtruderGroup().
|
inherited |
References badge.
Referenced by Slic3r::GUI::ExtruderGroup::ExtruderGroup().
|
inline |
References show_new_tag.
|
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().
|
private |
Referenced by TabButton(), Create(), render(), and SetBorderColor().
|
protectedinherited |
Referenced by doRender(), and SetBorderStyle().
|
protectedinherited |
|
private |
Referenced by Create(), messureSize(), render(), and SetBitmap().
|
private |
Referenced by messureSize(), and SetMinSize().
|
private |
|
private |
Referenced by TabButton(), GetPaddingSize(), messureSize(), render(), and SetPaddingSize().
|
private |
Referenced by mouseDown(), and mouseReleased().
|
protectedinherited |
|
private |
Referenced by GetShowNewTag(), render(), and ShowNewTag().
|
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().
|
private |
Referenced by TabButton(), Create(), render(), and SetTextColor().
|
private |
Referenced by messureSize(), and render().
|
protectedinherited |
Referenced by doRender(), and SetTopMargin().