#include "ProgressBar.hpp"
Public Slots | |
void | setRange (int min, int max) |
void | setValue (int value) |
void | setWindowTitle (const QString &windowTitle) |
Signals | |
void | percentageUpdated (double percentage) |
Public Member Functions | |
bool | isVisible () const |
int | maximum () const |
int | minimum () const |
virtual void | onPercentageUpdated (double percentage) |
ProgressBar (bool visible,*parent=nullptr) | |
void | setMaximum (int max) |
void | setMinimum (int min) |
void | setVisible (bool visible) |
void | setWindowTitle (const std::string &title) |
std::string | text () const |
int | value () const |
std::string | windowTitle () const |
virtual | ~ProgressBar () |
Public Attributes | |
ProgressBar * | parent |
ProgressBar wraps a QProgressBar and provides virtual methods setRange, setValue, and setWindowTitle(QString) which may be overridden.
ProgressBar an atypical QObject because it is designed to be stack allocated. In many cases it would be preferred to connect your own heap allocated QObject to the signals directly rather than using this convenience class.
openstudio::ProgressBar::ProgressBar | ( | bool | visible, |
* | parent = nullptr |
||
) |
constructor
|
virtual |
constructor from impl
virtual destructor
bool openstudio::ProgressBar::isVisible | ( | ) | const |
get if visible
int openstudio::ProgressBar::maximum | ( | ) | const |
get max
int openstudio::ProgressBar::minimum | ( | ) | const |
get min
|
virtual |
virtual method called every time percentageUpdated fires
|
signal |
called every time progress increases by 1% more than last progress
void openstudio::ProgressBar::setMaximum | ( | int | max | ) |
set max
void openstudio::ProgressBar::setMinimum | ( | int | min | ) |
set min
|
slot |
set value
void openstudio::ProgressBar::setVisible | ( | bool | visible | ) |
set if visible
void openstudio::ProgressBar::setWindowTitle | ( | const std::string & | title | ) |
set the window title
|
slot |
set window title
std::string openstudio::ProgressBar::text | ( | ) | const |
get the text
int openstudio::ProgressBar::value | ( | ) | const |
get value
std::string openstudio::ProgressBar::windowTitle | ( | ) | const |
get the window title
ProgressBar* openstudio::ProgressBar::parent |
constructor