#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/ReleaseNote.hpp>
Public Types | |
| enum | VisibleButtons { ONLY_CONFIRM = 0 , CONFIRM_AND_CANCEL = 1 , CONFIRM_AND_DONE = 2 , CONFIRM_AND_RETRY = 3 , CONFIRM_AND_RESUME = 4 , DONE_AND_RETRY = 5 , MAX_STYLE_NUM = 6 } |
Public Member Functions | |
| SecondaryCheckDialog (wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxEmptyString, enum VisibleButtons btn_style=CONFIRM_AND_CANCEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCLOSE_BOX|wxCAPTION, bool not_show_again_check=false) | |
| void | update_text (wxString text) |
| void | on_show () |
| void | on_hide () |
| void | update_btn_label (wxString ok_btn_text, wxString cancel_btn_text) |
| void | update_title_style (wxString title, SecondaryCheckDialog::VisibleButtons style, wxWindow *parent=nullptr) |
| void | post_event (wxCommandEvent &&event) |
| void | rescale () |
| ~SecondaryCheckDialog () | |
| void | on_dpi_changed (const wxRect &suggested_rect) |
| void | msw_rescale () |
| float | scale_factor () const |
| float | prev_scale_factor () const |
| void | set_scale_factor (float v) |
| void | set_prev_scale_factor (float v) |
| void | set_em_unit (int v) |
| bool | force_rescale () const |
| int | em_unit () const |
| const wxFont & | normal_font () const |
| void | enable_force_rescale () |
| int | ShowModal () |
Public Attributes | |
| StateColor | btn_bg_green |
| StateColor | btn_bg_white |
| Label * | m_staticText_release_note {nullptr} |
| wxBoxSizer * | m_sizer_main |
| wxScrolledWindow * | m_vebview_release_note {nullptr} |
| Button * | m_button_ok { nullptr } |
| Button * | m_button_retry { nullptr } |
| Button * | m_button_cancel { nullptr } |
| Button * | m_button_fn { nullptr } |
| Button * | m_button_resume { nullptr } |
| wxCheckBox * | m_show_again_checkbox |
| VisibleButtons | m_button_style |
| bool | not_show_again = false |
| std::string | show_again_config_text = "" |
Protected Member Functions | |
| virtual void | on_sys_color_changed () |
Private Member Functions | |
| void | update_em_unit () |
| bool | is_new_scale_factor () const |
Private Attributes | |
| wxWindow * | event_parent { nullptr } |
| float | m_scale_factor |
| int | m_em_unit |
| wxFont | m_normal_font |
| float | m_prev_scale_factor |
| bool | m_can_rescale |
| bool | m_force_rescale |
| int | m_new_font_point_size |
| Enumerator | |
|---|---|
| ONLY_CONFIRM | |
| CONFIRM_AND_CANCEL | |
| CONFIRM_AND_DONE | |
| CONFIRM_AND_RETRY | |
| CONFIRM_AND_RESUME | |
| DONE_AND_RETRY | |
| MAX_STYLE_NUM | |
| Slic3r::GUI::SecondaryCheckDialog::SecondaryCheckDialog | ( | wxWindow * | parent, |
| wxWindowID | id = wxID_ANY, | ||
| const wxString & | title = wxEmptyString, | ||
| enum VisibleButtons | btn_style = CONFIRM_AND_CANCEL, | ||
| const wxPoint & | pos = wxDefaultPosition, | ||
| const wxSize & | size = wxDefaultSize, | ||
| long | style = wxCLOSE_BOX | wxCAPTION, | ||
| bool | not_show_again_check = false ) |
References _L, Choice, Confirm, CONFIRM_AND_CANCEL, CONFIRM_AND_DONE, CONFIRM_AND_RETRY, DONE_AND_RETRY, m_button_cancel, m_button_fn, m_button_ok, m_button_resume, m_button_retry, m_button_style, m_show_again_checkbox, m_sizer_main, m_vebview_release_note, not_show_again, on_hide(), post_event(), Regular, and style.
| Slic3r::GUI::SecondaryCheckDialog::~SecondaryCheckDialog | ( | ) |
|
inlineinherited |
References m_em_unit.
Referenced by Slic3r::GUI::MainFrame::create_side_tools(), and Slic3r::GUI::MainFrame::update_side_button_style().
|
inlineinherited |
References m_force_rescale.
|
inlineinherited |
References m_force_rescale.
|
inlineprivateinherited |
References m_prev_scale_factor, and m_scale_factor.
| void Slic3r::GUI::SecondaryCheckDialog::msw_rescale | ( | ) |
|
inlineinherited |
References m_normal_font.
Referenced by Slic3r::GUI::MainFrame::init_tabpanel(), and Slic3r::GUI::MainFrame::on_dpi_changed().
|
virtual |
Implements Slic3r::GUI::DPIAware< wxFrame >.
References rescale().
| void Slic3r::GUI::SecondaryCheckDialog::on_hide | ( | ) |
References m_show_again_checkbox, not_show_again, and show_again_config_text.
Referenced by SecondaryCheckDialog().
| void Slic3r::GUI::SecondaryCheckDialog::on_show | ( | ) |
References m_button_cancel, m_button_ok, and Slic3r::GUI::wxMouseEvent.
|
inlineprotectedvirtualinherited |
Reimplemented in Slic3r::GUI::MainFrame.
| void Slic3r::GUI::SecondaryCheckDialog::post_event | ( | wxCommandEvent && | event | ) |
References event_parent.
Referenced by SecondaryCheckDialog().
|
inlineinherited |
References m_prev_scale_factor.
| void Slic3r::GUI::SecondaryCheckDialog::rescale | ( | ) |
References m_button_cancel, and m_button_ok.
Referenced by on_dpi_changed(), and update_btn_label().
|
inlineinherited |
References m_scale_factor.
|
inlineinherited |
|
inlineinherited |
References m_prev_scale_factor.
|
inlineinherited |
References m_scale_factor.
|
inlineinherited |
References Slic3r::GUI::dialogStack.
| void Slic3r::GUI::SecondaryCheckDialog::update_btn_label | ( | wxString | ok_btn_text, |
| wxString | cancel_btn_text ) |
References m_button_cancel, m_button_ok, and rescale().
|
inlineprivateinherited |
References m_em_unit, and m_scale_factor.
| void Slic3r::GUI::SecondaryCheckDialog::update_text | ( | wxString | text | ) |
References LB_AUTO_WRAP, m_staticText_release_note, and m_vebview_release_note.
| void Slic3r::GUI::SecondaryCheckDialog::update_title_style | ( | wxString | title, |
| SecondaryCheckDialog::VisibleButtons | style, | ||
| wxWindow * | parent = nullptr ) |
References CONFIRM_AND_CANCEL, CONFIRM_AND_DONE, CONFIRM_AND_RESUME, CONFIRM_AND_RETRY, DONE_AND_RETRY, event_parent, m_button_cancel, m_button_fn, m_button_resume, m_button_retry, m_button_style, and style.
| StateColor Slic3r::GUI::SecondaryCheckDialog::btn_bg_green |
| StateColor Slic3r::GUI::SecondaryCheckDialog::btn_bg_white |
|
private |
Referenced by post_event(), and update_title_style().
Referenced by SecondaryCheckDialog(), on_show(), rescale(), update_btn_label(), and update_title_style().
Referenced by SecondaryCheckDialog(), and update_title_style().
Referenced by SecondaryCheckDialog(), on_show(), rescale(), and update_btn_label().
Referenced by SecondaryCheckDialog(), and update_title_style().
Referenced by SecondaryCheckDialog(), and update_title_style().
| VisibleButtons Slic3r::GUI::SecondaryCheckDialog::m_button_style |
Referenced by SecondaryCheckDialog(), and update_title_style().
|
privateinherited |
Referenced by DPIAware().
|
privateinherited |
Referenced by em_unit(), set_em_unit(), and update_em_unit().
|
privateinherited |
Referenced by DPIAware(), enable_force_rescale(), force_rescale(), and rescale().
|
privateinherited |
Referenced by DPIAware().
|
privateinherited |
Referenced by DPIAware(), normal_font(), and rescale().
|
privateinherited |
Referenced by DPIAware(), is_new_scale_factor(), prev_scale_factor(), rescale(), and set_prev_scale_factor().
|
privateinherited |
Referenced by DPIAware(), is_new_scale_factor(), rescale(), scale_factor(), set_scale_factor(), and update_em_unit().
| wxCheckBox* Slic3r::GUI::SecondaryCheckDialog::m_show_again_checkbox |
Referenced by SecondaryCheckDialog(), and on_hide().
| wxBoxSizer* Slic3r::GUI::SecondaryCheckDialog::m_sizer_main |
Referenced by SecondaryCheckDialog().
Referenced by update_text().
| wxScrolledWindow* Slic3r::GUI::SecondaryCheckDialog::m_vebview_release_note {nullptr} |
Referenced by SecondaryCheckDialog(), and update_text().
| bool Slic3r::GUI::SecondaryCheckDialog::not_show_again = false |
Referenced by SecondaryCheckDialog(), and on_hide().
| std::string Slic3r::GUI::SecondaryCheckDialog::show_again_config_text = "" |
Referenced by on_hide().