#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Widgets/ProgressBar.hpp>
Public Member Functions | |
| ProgressBar () | |
| ProgressBar (wxWindow *parent, wxWindowID id=wxID_ANY, int max=100, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, bool shown=false) | |
| void | create (wxWindow *parent, wxWindowID id, const wxPoint &pos, wxSize &size) |
| ~ProgressBar () | |
| void | ShowNumber (bool shown) |
| void | Disable (wxString text) |
| void | SetValue (int step) |
| void | Reset () |
| void | SetProgress (int step) |
| void | SetRadius (double radius) |
| void | SetProgressForedColour (wxColour colour) |
| void | SetProgressBackgroundColour (wxColour colour) |
| void | Rescale () |
| void | SetHeight (int height) |
| virtual void | SetMinSize (const wxSize &size) override |
Public Attributes | |
| bool | m_shownumber = {false} |
| int | m_disable = {false} |
| int | m_max = {100} |
| int | m_step = {0} |
| int | m_miniHeight = {0} |
| const int | miniHeight = {14} |
| double | m_radius = {7} |
| double | m_proportion = {0} |
| wxColour | m_progress_background_colour = {233, 233, 233} |
| wxColour | m_progress_colour = {0, 150, 136} |
| wxColour | m_progress_colour_disable = {255, 111, 0} |
| wxString | m_disable_text |
Protected Member Functions | |
| void | paintEvent (wxPaintEvent &evt) |
| void | render (wxDC &dc) |
| void | doRender (wxDC &dc) |
| virtual void | DoSetSize (int x, int y, int width, int height, int sizeFlags=wxSIZE_AUTO) override |
| ProgressBar::ProgressBar | ( | ) |
| ProgressBar::ProgressBar | ( | wxWindow * | parent, |
| wxWindowID | id = wxID_ANY, | ||
| int | max = 100, | ||
| const wxPoint & | pos = wxDefaultPosition, | ||
| const wxSize & | size = wxDefaultSize, | ||
| bool | shown = false ) |
References ProgressBar(), create(), Label::Head_12, m_max, m_miniHeight, m_radius, m_shownumber, and miniHeight.
| ProgressBar::~ProgressBar | ( | ) |
| void ProgressBar::create | ( | wxWindow * | parent, |
| wxWindowID | id, | ||
| const wxPoint & | pos, | ||
| wxSize & | size ) |
Referenced by ProgressBar().
| void ProgressBar::Disable | ( | wxString | text | ) |
References m_disable, and m_disable_text.
|
protected |
References Label::Head_12, m_disable, m_disable_text, m_max, m_progress_background_colour, m_progress_colour, m_progress_colour_disable, m_proportion, m_radius, m_shownumber, and m_step.
Referenced by render().
|
overrideprotectedvirtual |
|
protected |
References render().
Referenced by wxDEFINE_EVENT().
|
protected |
References doRender().
Referenced by paintEvent().
| void ProgressBar::Rescale | ( | ) |
| void ProgressBar::Reset | ( | ) |
References m_step, and SetValue().
|
inline |
|
overridevirtual |
References m_miniHeight, m_radius, miniHeight, and SetRadius().
| void ProgressBar::SetProgress | ( | int | step | ) |
References m_disable, and m_step.
Referenced by SetValue().
| void ProgressBar::SetProgressBackgroundColour | ( | wxColour | colour | ) |
References m_progress_colour.
| void ProgressBar::SetProgressForedColour | ( | wxColour | colour | ) |
References m_progress_background_colour.
| void ProgressBar::SetRadius | ( | double | radius | ) |
| void ProgressBar::SetValue | ( | int | step | ) |
References m_disable, and SetProgress().
Referenced by Reset().
| void ProgressBar::ShowNumber | ( | bool | shown | ) |
References m_shownumber.
| int ProgressBar::m_disable = {false} |
Referenced by Disable(), doRender(), SetProgress(), and SetValue().
| wxString ProgressBar::m_disable_text |
Referenced by Disable(), and doRender().
| int ProgressBar::m_max = {100} |
Referenced by ProgressBar(), and doRender().
| int ProgressBar::m_miniHeight = {0} |
Referenced by ProgressBar(), and SetMinSize().
| wxColour ProgressBar::m_progress_background_colour = {233, 233, 233} |
Referenced by doRender(), and SetProgressForedColour().
| wxColour ProgressBar::m_progress_colour = {0, 150, 136} |
Referenced by doRender(), and SetProgressBackgroundColour().
| wxColour ProgressBar::m_progress_colour_disable = {255, 111, 0} |
Referenced by doRender().
| double ProgressBar::m_proportion = {0} |
Referenced by CustomWidgetsPlugin::addProgressBarProps(), and doRender().
| double ProgressBar::m_radius = {7} |
Referenced by ProgressBar(), doRender(), SetHeight(), SetMinSize(), and SetRadius().
| bool ProgressBar::m_shownumber = {false} |
Referenced by ProgressBar(), CustomWidgetsPlugin::addProgressBarProps(), doRender(), and ShowNumber().
| int ProgressBar::m_step = {0} |
Referenced by doRender(), Reset(), and SetProgress().
| const int ProgressBar::miniHeight = {14} |
Referenced by ProgressBar(), and SetMinSize().