#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/BBLStatusBarSend.hpp>
Public Types | |
| using | CancelFn = std::function<void()> |
| Cancel callback function type. | |
Public Member Functions | |
| BBLStatusBarSend (wxWindow *parent=nullptr, int id=-1) | |
| ~BBLStatusBarSend ()=default | |
| int | get_progress () const |
| void | set_prog_block () |
| void | set_progress (int) override |
| int | get_range () const override |
| void | set_range (int=100) override |
| void | clear_percent () override |
| void | show_error_info (wxString msg, int code, wxString description, wxString extra) override |
| void | show_progress (bool) |
| void | start_busy (int=100) |
| void | stop_busy () |
| void | set_cancel_callback_fina (BBLStatusBarSend::CancelFn ccb) |
| bool | is_busy () const |
| void | set_cancel_callback (CancelFn=CancelFn()) override |
| void | reset_cancel_callback () |
| wxPanel * | get_panel () |
| bool | is_english_text (wxString str) |
| bool | format_text (wxStaticText *dc, int width, const wxString &text, wxString &multiline_text) |
| void | set_status_text (const wxString &txt) |
| void | set_percent_text (const wxString &txt) |
| void | msw_rescale () |
| void | set_status_text (const std::string &txt) |
| void | set_status_text (const char *txt) override |
| wxString | get_status_text () const |
| void | set_font (const wxFont &font) |
| void | set_object_info (const wxString &txt) |
| void | set_slice_info (const wxString &txt) |
| void | show_slice_info (bool show) |
| bool | is_slice_info_shown () |
| bool | update_status (wxString &msg, bool &was_cancel, int percent=-1, bool yield=true) |
| void | reset () |
| void | show_cancel_button () |
| void | hide_cancel_button () |
| void | change_button_label (wxString name) |
| void | disable_cancel_button () |
| void | enable_cancel_button () |
| void | cancel () |
Private Attributes | |
| wxPanel * | m_self |
| wxGauge * | m_prog |
| Label * | m_link_show_error |
| wxBoxSizer * | m_sizer_status_text |
| wxStaticBitmap * | m_static_bitmap_show_error |
| wxBitmap | m_bitmap_show_error_close |
| wxBitmap | m_bitmap_show_error_open |
| Button * | m_cancelbutton |
| wxStaticText * | m_status_text |
| wxStaticText * | m_stext_percent |
| wxBoxSizer * | m_sizer |
| wxBoxSizer * | m_sizer_eline |
| wxWindow * | block_left |
| wxWindow * | block_right |
| bool | m_show_error_info_state = false |
| bool | m_busy = false |
| bool | m_was_cancelled = false |
| CancelFn | m_cancel_cb |
| CancelFn | m_cancel_cb_fina |
|
inherited |
Cancel callback function type.
| Slic3r::BBLStatusBarSend::BBLStatusBarSend | ( | wxWindow * | parent = nullptr, |
| int | id = -1 ) |
References _L, Label::Body_13, cancel(), Choice, create_scaled_bitmap(), Label::Head_13, m_bitmap_show_error_close, m_bitmap_show_error_open, m_cancelbutton, m_link_show_error, m_prog, m_self, m_show_error_info_state, m_sizer, m_sizer_status_text, m_static_bitmap_show_error, m_status_text, m_stext_percent, Regular, wxGauge, and wxStaticText.
|
default |
| void Slic3r::BBLStatusBarSend::cancel | ( | ) |
References m_cancel_cb_fina, and m_was_cancelled.
Referenced by BBLStatusBarSend().
| void Slic3r::BBLStatusBarSend::change_button_label | ( | wxString | name | ) |
References m_cancelbutton.
|
overridevirtual |
Implements Slic3r::ProgressIndicator.
References m_cancelbutton.
| void Slic3r::BBLStatusBarSend::disable_cancel_button | ( | ) |
References m_cancelbutton.
| void Slic3r::BBLStatusBarSend::enable_cancel_button | ( | ) |
References m_cancelbutton.
| bool Slic3r::BBLStatusBarSend::format_text | ( | wxStaticText * | dc, |
| int | width, | ||
| const wxString & | text, | ||
| wxString & | multiline_text ) |
References wxStaticText.
| wxPanel * Slic3r::BBLStatusBarSend::get_panel | ( | ) |
| int Slic3r::BBLStatusBarSend::get_progress | ( | ) | const |
|
overridevirtual |
| wxString Slic3r::BBLStatusBarSend::get_status_text | ( | ) | const |
References m_status_text.
| void Slic3r::BBLStatusBarSend::hide_cancel_button | ( | ) |
References m_cancelbutton, and m_sizer.
Referenced by stop_busy().
|
inline |
References m_busy.
| bool Slic3r::BBLStatusBarSend::is_english_text | ( | wxString | str | ) |
| bool Slic3r::BBLStatusBarSend::is_slice_info_shown | ( | ) |
| void Slic3r::BBLStatusBarSend::msw_rescale | ( | ) |
References m_cancelbutton, and m_self.
| void Slic3r::BBLStatusBarSend::reset | ( | ) |
References m_cancelbutton, m_link_show_error, m_prog, m_static_bitmap_show_error, m_stext_percent, m_was_cancelled, set_percent_text(), set_progress(), and set_status_text().
|
inline |
References set_cancel_callback().
|
overridevirtual |
Implements Slic3r::ProgressIndicator.
Referenced by reset_cancel_callback().
| void Slic3r::BBLStatusBarSend::set_cancel_callback_fina | ( | BBLStatusBarSend::CancelFn | ccb | ) |
References m_cancel_cb_fina, m_cancelbutton, and m_sizer.
| void Slic3r::BBLStatusBarSend::set_font | ( | const wxFont & | font | ) |
| void Slic3r::BBLStatusBarSend::set_object_info | ( | const wxString & | txt | ) |
| void Slic3r::BBLStatusBarSend::set_percent_text | ( | const wxString & | txt | ) |
References m_stext_percent.
Referenced by reset(), and set_progress().
| void Slic3r::BBLStatusBarSend::set_prog_block | ( | ) |
|
overridevirtual |
Implements Slic3r::ProgressIndicator.
References m_cancelbutton, m_prog, m_sizer, and set_percent_text().
Referenced by reset(), and update_status().
|
overridevirtual |
Implements Slic3r::ProgressIndicator.
References m_prog.
| void Slic3r::BBLStatusBarSend::set_slice_info | ( | const wxString & | txt | ) |
|
overridevirtual |
Implements Slic3r::ProgressIndicator.
References get_panel(), and set_status_text().
| void Slic3r::BBLStatusBarSend::set_status_text | ( | const std::string & | txt | ) |
| void Slic3r::BBLStatusBarSend::set_status_text | ( | const wxString & | txt | ) |
References m_self, and m_status_text.
Referenced by reset(), set_status_text(), set_status_text(), show_error_info(), and update_status().
| void Slic3r::BBLStatusBarSend::show_cancel_button | ( | ) |
References m_cancelbutton, and m_sizer.
Referenced by start_busy().
|
overridevirtual |
Implements Slic3r::ProgressIndicator.
References m_cancelbutton, m_link_show_error, m_prog, m_self, m_sizer, m_static_bitmap_show_error, m_stext_percent, and set_status_text().
| void Slic3r::BBLStatusBarSend::show_progress | ( | bool | show | ) |
References m_prog, and m_sizer.
Referenced by start_busy(), and stop_busy().
| void Slic3r::BBLStatusBarSend::show_slice_info | ( | bool | show | ) |
| void Slic3r::BBLStatusBarSend::start_busy | ( | int | rate = 100 | ) |
References m_busy, show_cancel_button(), and show_progress().
| void Slic3r::BBLStatusBarSend::stop_busy | ( | ) |
References hide_cancel_button(), m_busy, m_prog, m_sizer, and show_progress().
| bool Slic3r::BBLStatusBarSend::update_status | ( | wxString & | msg, |
| bool & | was_cancel, | ||
| int | percent = -1, | ||
| bool | yield = true ) |
References m_was_cancelled, set_progress(), and set_status_text().
|
private |
|
private |
|
private |
Referenced by BBLStatusBarSend().
|
private |
Referenced by BBLStatusBarSend().
|
private |
Referenced by is_busy(), start_busy(), and stop_busy().
|
private |
|
private |
Referenced by cancel(), and set_cancel_callback_fina().
|
private |
|
private |
Referenced by BBLStatusBarSend(), reset(), and show_error_info().
|
private |
Referenced by BBLStatusBarSend(), get_progress(), get_range(), reset(), set_progress(), set_range(), show_error_info(), show_progress(), and stop_busy().
|
private |
Referenced by BBLStatusBarSend(), get_panel(), msw_rescale(), set_font(), set_status_text(), and show_error_info().
|
private |
Referenced by BBLStatusBarSend().
|
private |
|
private |
|
private |
Referenced by BBLStatusBarSend().
|
private |
Referenced by BBLStatusBarSend(), reset(), and show_error_info().
|
private |
Referenced by BBLStatusBarSend(), get_status_text(), and set_status_text().
|
private |
Referenced by BBLStatusBarSend(), reset(), set_percent_text(), and show_error_info().
|
private |
Referenced by cancel(), reset(), and update_status().