#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/BBLStatusBar.hpp>
Public Types | |
| using | CancelFn = std::function<void()> |
| Cancel callback function type. | |
Public Member Functions | |
| BBLStatusBar (wxWindow *parent=nullptr, int id=-1) | |
| ~BBLStatusBar ()=default | |
| int | get_progress () const |
| 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 () |
| bool | is_busy () const |
| void | set_cancel_callback (CancelFn=CancelFn()) override |
| void | reset_cancel_callback () |
| wxPanel * | get_panel () |
| void | set_status_text (const wxString &txt) |
| 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 () |
| void | show_cancel_button () |
| void | hide_cancel_button () |
Private Attributes | |
| wxPanel * | m_self |
| wxGauge * | m_prog |
| wxButton * | m_cancelbutton |
| wxStaticText * | m_status_text |
| wxStaticText * | m_object_info |
| wxStaticText * | m_slice_info |
| wxBoxSizer * | m_slice_info_sizer |
| wxBoxSizer * | m_object_info_sizer |
| wxBoxSizer * | m_sizer |
| bool | m_busy = false |
| CancelFn | m_cancel_cb |
|
inherited |
Cancel callback function type.
| Slic3r::BBLStatusBar::BBLStatusBar | ( | wxWindow * | parent = nullptr, |
| int | id = -1 ) |
References _, L, m_cancel_cb, m_cancelbutton, m_object_info, m_object_info_sizer, m_prog, m_self, m_sizer, m_slice_info, m_slice_info_sizer, m_status_text, wxButton, wxGauge, and wxStaticText.
|
default |
|
overridevirtual |
Implements Slic3r::ProgressIndicator.
| int Slic3r::BBLStatusBar::get_progress | ( | ) | const |
|
overridevirtual |
| wxString Slic3r::BBLStatusBar::get_status_text | ( | ) | const |
References m_status_text.
| void Slic3r::BBLStatusBar::hide_cancel_button | ( | ) |
References m_cancelbutton, and m_sizer.
Referenced by stop_busy().
|
inline |
References m_busy.
| bool Slic3r::BBLStatusBar::is_slice_info_shown | ( | ) |
References m_sizer, and m_slice_info_sizer.
|
inline |
References set_cancel_callback().
|
overridevirtual |
Implements Slic3r::ProgressIndicator.
References m_cancel_cb, m_cancelbutton, and m_sizer.
Referenced by reset_cancel_callback().
| void Slic3r::BBLStatusBar::set_font | ( | const wxFont & | font | ) |
| void Slic3r::BBLStatusBar::set_object_info | ( | const wxString & | txt | ) |
References m_object_info, m_object_info_sizer, and m_sizer.
|
overridevirtual |
Implements Slic3r::ProgressIndicator.
References m_cancelbutton, m_object_info_sizer, m_prog, m_sizer, and m_slice_info_sizer.
|
overridevirtual |
Implements Slic3r::ProgressIndicator.
References m_prog.
| void Slic3r::BBLStatusBar::set_slice_info | ( | const wxString & | txt | ) |
References m_sizer, m_slice_info, and m_slice_info_sizer.
|
overridevirtual |
Implements Slic3r::ProgressIndicator.
References set_status_text().
| void Slic3r::BBLStatusBar::set_status_text | ( | const std::string & | txt | ) |
| void Slic3r::BBLStatusBar::set_status_text | ( | const wxString & | txt | ) |
References m_status_text.
Referenced by set_status_text(), and set_status_text().
| void Slic3r::BBLStatusBar::show_cancel_button | ( | ) |
References m_cancelbutton, and m_sizer.
Referenced by start_busy().
|
overridevirtual |
Implements Slic3r::ProgressIndicator.
| void Slic3r::BBLStatusBar::show_progress | ( | bool | show | ) |
References m_object_info, m_prog, m_sizer, and m_slice_info.
Referenced by start_busy(), and stop_busy().
| void Slic3r::BBLStatusBar::show_slice_info | ( | bool | show | ) |
References m_sizer, and m_slice_info_sizer.
| void Slic3r::BBLStatusBar::start_busy | ( | int | rate = 100 | ) |
References m_busy, show_cancel_button(), and show_progress().
| void Slic3r::BBLStatusBar::stop_busy | ( | ) |
References hide_cancel_button(), m_busy, m_prog, m_sizer, m_slice_info_sizer, and show_progress().
|
private |
Referenced by is_busy(), start_busy(), and stop_busy().
|
private |
Referenced by BBLStatusBar(), and set_cancel_callback().
|
private |
Referenced by BBLStatusBar(), hide_cancel_button(), set_cancel_callback(), set_progress(), and show_cancel_button().
|
private |
Referenced by BBLStatusBar(), set_object_info(), and show_progress().
|
private |
Referenced by BBLStatusBar(), set_object_info(), and set_progress().
|
private |
Referenced by BBLStatusBar(), get_progress(), get_range(), set_progress(), set_range(), show_progress(), and stop_busy().
|
private |
Referenced by BBLStatusBar(), get_panel(), and set_font().
|
private |
|
private |
Referenced by BBLStatusBar(), set_slice_info(), and show_progress().
|
private |
Referenced by BBLStatusBar(), is_slice_info_shown(), set_progress(), set_slice_info(), show_slice_info(), and stop_busy().
|
private |
Referenced by BBLStatusBar(), get_status_text(), and set_status_text().