![]() |
Prusa Slicer 2.6.0
|
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 <src/slic3r/GUI/ProgressStatusBar.hpp>
Inheritance diagram for Slic3r::ProgressStatusBar:
Collaboration diagram for Slic3r::ProgressStatusBar: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 () |
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(), m_cancel_cb, m_cancelbutton, m_prog, m_timer, Slic3r::offset(), self, update_dark_ui(), and wxEVT_BUTTON.
Here is the call graph for this function:
|
override |
| 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().
Here is the call graph for this function:| void Slic3r::ProgressStatusBar::run | ( | int | rate | ) |
|
overridevirtual |
Implements Slic3r::ProgressIndicator.
References m_cancel_cb, and m_cancelbutton.
Referenced by reset_cancel_callback().
Here is the caller graph for this function:
|
overridevirtual |
Implements Slic3r::ProgressIndicator.
References m_prog, and show_progress().
Here is the call graph for this function:
|
overridevirtual |
Implements Slic3r::ProgressIndicator.
References m_prog.
Implements Slic3r::ProgressIndicator.
References set_status_text().
Here is the call graph for this function:References self.
Referenced by set_status_text(), and set_status_text().
Here is the caller graph for this function:| void Slic3r::ProgressStatusBar::show_cancel_button | ( | ) |
References m_cancelbutton.
| void Slic3r::ProgressStatusBar::show_progress | ( | bool | show | ) |
References m_prog.
Referenced by set_progress(), start_busy(), and stop_busy().
Here is the caller graph for this function:| void Slic3r::ProgressStatusBar::start_busy | ( | int | rate = 100 | ) |
References m_busy, m_prog, m_timer, and show_progress().
Here is the call graph for this function:| void Slic3r::ProgressStatusBar::stop_busy | ( | ) |
| void Slic3r::ProgressStatusBar::update_dark_ui | ( | ) |
References m_cancelbutton, m_prog, and self.
Referenced by ProgressStatusBar().
Here is the caller graph for this function:
|
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().