#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Notebook.hpp>
Public Member Functions | |
| ButtonsListCtrl (wxWindow *parent, wxBoxSizer *side_tools=NULL) | |
| ~ButtonsListCtrl () | |
| void | OnPaint (wxPaintEvent &) |
| void | SetSelection (int sel) |
| void | UpdateMode () |
| void | Rescale () |
| bool | InsertPage (size_t n, const wxString &text, bool bSelect=false, const std::string &bmp_name="", const wxBitmap &bmp=wxNullBitmap) |
| void | RemovePage (size_t n) |
| bool | SetPageImage (size_t n, const std::string &bmp_name) const |
| void | SetPageText (size_t n, const wxString &strText) |
| void | SetCompact (size_t n, bool compact) |
| wxString | GetPageText (size_t n) const |
| wxString | GetPageLabel (size_t n) const |
| const std::string & | GetPageIcon (size_t n) const |
| wxFlexGridSizer * | GetBtnsSizer () |
| void | SetOverflowButton (wxWindow *button) |
| wxWindow * | GetOverflowButton () const |
Private Attributes | |
| wxFlexGridSizer * | m_buttons_sizer |
| wxBoxSizer * | m_sizer |
| std::vector< Button * > | m_pageButtons |
| int | m_selection {-1} |
| int | m_btn_margin |
| int | m_line_margin |
| std::vector< wxString > | m_pageLabels |
| std::vector< std::string > | m_pageIcons |
| wxWindow * | m_overflow_button {nullptr} |
| ButtonsListCtrl::ButtonsListCtrl | ( | wxWindow * | parent, |
| wxBoxSizer * | side_tools = NULL ) |
References em_unit(), m_btn_margin, m_buttons_sizer, m_line_margin, and m_sizer.
|
inline |
|
inline |
References m_buttons_sizer.
|
inline |
References m_overflow_button.
|
inline |
References m_pageIcons.
Referenced by Notebook::GetPageIcon().
| wxString ButtonsListCtrl::GetPageLabel | ( | size_t | n | ) | const |
References m_pageLabels.
Referenced by Notebook::GetPageLabel().
| wxString ButtonsListCtrl::GetPageText | ( | size_t | n | ) | const |
References m_pageButtons.
Referenced by Notebook::GetPageText().
| bool ButtonsListCtrl::InsertPage | ( | size_t | n, |
| const wxString & | text, | ||
| bool | bSelect = false, | ||
| const std::string & | bmp_name = "", | ||
| const wxBitmap & | bmp = wxNullBitmap ) |
References em_unit(), StateColor::Hovered, m_buttons_sizer, m_pageButtons, m_pageIcons, m_pageLabels, m_sizer, StateColor::Normal, StaticBox::SetBackgroundColor(), StaticBox::SetCornerRadius(), Button::SetIcon(), Button::SetIconSpacing(), Button::SetMinSize(), Button::SetTextColor(), and text_color().
Referenced by Notebook::InsertPage().
| void ButtonsListCtrl::OnPaint | ( | wxPaintEvent & | ) |
References m_line_margin, m_pageButtons, m_selection, and StaticBox::SetBackgroundColor().
| void ButtonsListCtrl::RemovePage | ( | size_t | n | ) |
References m_buttons_sizer, m_pageButtons, m_pageIcons, m_pageLabels, m_selection, and m_sizer.
Referenced by Notebook::DoRemovePage().
| void ButtonsListCtrl::Rescale | ( | ) |
References em_unit(), m_pageButtons, and m_sizer.
Referenced by Notebook::Rescale().
| void ButtonsListCtrl::SetCompact | ( | size_t | n, |
| bool | compact ) |
References em_unit(), m_pageButtons, m_pageLabels, Button::SetLabel(), and Button::SetMinSize().
| void ButtonsListCtrl::SetOverflowButton | ( | wxWindow * | button | ) |
References m_btn_margin, m_overflow_button, and m_sizer.
Referenced by Notebook::SetOverflowButton().
| bool ButtonsListCtrl::SetPageImage | ( | size_t | n, |
| const std::string & | bmp_name ) const |
References m_pageButtons.
Referenced by Notebook::SetPageImage().
| void ButtonsListCtrl::SetPageText | ( | size_t | n, |
| const wxString & | strText ) |
References m_pageButtons, m_pageLabels, and Button::SetLabel().
Referenced by Notebook::SetPageText().
| void ButtonsListCtrl::SetSelection | ( | int | sel | ) |
References StateColor::Hovered, m_pageButtons, m_selection, StateColor::Normal, and text_color().
Referenced by Notebook::ChangeSelection(), and Notebook::SetSelection().
| void ButtonsListCtrl::UpdateMode | ( | ) |
Referenced by Notebook::UpdateMode().
|
private |
Referenced by ButtonsListCtrl(), and SetOverflowButton().
|
private |
Referenced by ButtonsListCtrl(), GetBtnsSizer(), InsertPage(), and RemovePage().
|
private |
Referenced by ButtonsListCtrl(), and OnPaint().
|
private |
Referenced by GetOverflowButton(), and SetOverflowButton().
|
private |
Referenced by GetPageText(), InsertPage(), OnPaint(), RemovePage(), Rescale(), SetCompact(), SetPageImage(), SetPageText(), and SetSelection().
|
private |
Referenced by GetPageIcon(), InsertPage(), and RemovePage().
|
private |
Referenced by GetPageLabel(), InsertPage(), RemovePage(), SetCompact(), and SetPageText().
|
private |
Referenced by OnPaint(), RemovePage(), and SetSelection().
|
private |
Referenced by ButtonsListCtrl(), InsertPage(), RemovePage(), Rescale(), and SetOverflowButton().