The ProgressStatusBar class is the widgets occupying the lower area of the Slicer main window. It consists of a message area to the left and a progress indication area to the right with an optional cancel button. More...
#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/ProgressStatusBar.hpp>
Public Types | |
| using | CancelFn = std::function<void()> |
| Cancel callback function type. | |
Public Member Functions | |
| ProgressStatusBar (wxWindow *parent=nullptr, int id=-1) | |
| ~ProgressStatusBar () override | |
| int | get_progress () const |
| void | set_progress (int) override |
| int | get_range () const override |
| void | set_range (int=100) 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 () |
| void | run (int rate) |
| void | embed (wxFrame *frame=nullptr) |
| 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 | show_cancel_button () |
| void | hide_cancel_button () |
| void | update_dark_ui () |
| virtual void | clear_percent ()=0 |
| virtual void | show_error_info (wxString msg, int code, wxString description, wxString extra)=0 |
Private Attributes | |
| wxStatusBar * | self |
| wxGauge * | m_prog |
| wxButton * | m_cancelbutton |
| std::unique_ptr< wxTimer > | m_timer |
| bool | m_busy = false |
| CancelFn | m_cancel_cb |
The ProgressStatusBar class is the widgets occupying the lower area of the Slicer main window. It consists of a message area to the left and a progress indication area to the right with an optional cancel button.
|
inherited |
Cancel callback function type.
| Slic3r::ProgressStatusBar::ProgressStatusBar | ( | wxWindow * | parent = nullptr, |
| int | id = -1 ) |
References _, is_busy(), L, m_cancel_cb, m_cancelbutton, m_prog, m_timer, Slic3r::offset(), self, update_dark_ui(), wxButton, and wxGauge.
|
override |
|
pure virtualinherited |
| void Slic3r::ProgressStatusBar::embed | ( | wxFrame * | frame = nullptr | ) |
| int Slic3r::ProgressStatusBar::get_progress | ( | ) | const |
|
overridevirtual |
Implements Slic3r::ProgressIndicator.
References m_prog.
| wxString Slic3r::ProgressStatusBar::get_status_text | ( | ) | const |
| void Slic3r::ProgressStatusBar::hide_cancel_button | ( | ) |
References m_cancelbutton.
|
inline |
|
inline |
References set_cancel_callback().
| void Slic3r::ProgressStatusBar::run | ( | int | rate | ) |
|
overridevirtual |
Implements Slic3r::ProgressIndicator.
References m_cancel_cb, and m_cancelbutton.
Referenced by reset_cancel_callback().
| void Slic3r::ProgressStatusBar::set_font | ( | const wxFont & | font | ) |
|
overridevirtual |
Implements Slic3r::ProgressIndicator.
References m_prog, and show_progress().
|
overridevirtual |
Implements Slic3r::ProgressIndicator.
References m_prog.
|
overridevirtual |
Implements Slic3r::ProgressIndicator.
References set_status_text().
| void Slic3r::ProgressStatusBar::set_status_text | ( | const std::string & | txt | ) |
| void Slic3r::ProgressStatusBar::set_status_text | ( | const wxString & | txt | ) |
References self.
Referenced by set_status_text(), and set_status_text().
| void Slic3r::ProgressStatusBar::show_cancel_button | ( | ) |
References m_cancelbutton.
|
pure virtualinherited |
| void Slic3r::ProgressStatusBar::show_progress | ( | bool | show | ) |
References m_prog.
Referenced by set_progress(), start_busy(), and stop_busy().
| void Slic3r::ProgressStatusBar::start_busy | ( | int | rate = 100 | ) |
References m_busy, m_prog, m_timer, and show_progress().
| void Slic3r::ProgressStatusBar::stop_busy | ( | ) |
| void Slic3r::ProgressStatusBar::update_dark_ui | ( | ) |
References m_cancelbutton, m_prog, and self.
Referenced by ProgressStatusBar().
|
private |
Referenced by is_busy(), start_busy(), and stop_busy().
|
private |
Referenced by ProgressStatusBar(), and set_cancel_callback().
|
private |
Referenced by ProgressStatusBar(), hide_cancel_button(), set_cancel_callback(), show_cancel_button(), and update_dark_ui().
|
private |
Referenced by ProgressStatusBar(), get_progress(), get_range(), set_progress(), set_range(), show_progress(), start_busy(), stop_busy(), and update_dark_ui().
|
private |
Referenced by ProgressStatusBar(), ~ProgressStatusBar(), run(), start_busy(), and stop_busy().
|
private |
Referenced by ProgressStatusBar(), embed(), get_status_text(), set_font(), set_status_text(), and update_dark_ui().