OpenStudio:utilities
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Public Attributes | List of all members
openstudio::ProgressBar Class Reference

#include <ProgressBar.hpp>

Public Member Functions

bool isVisible () const
 get if visible More...
 
int maximum () const
 get max More...
 
int minimum () const
 get min More...
 
virtual void onPercentageUpdated (double percentage)
 virtual method called every time percentageUpdated fires More...
 
 ProgressBar (bool visible,*parent=nullptr)
 constructor More...
 
void setMaximum (int max)
 set max More...
 
void setMinimum (int min)
 set min More...
 
void setRange (int min, int max)
 set range More...
 
void setValue (int value)
 set value More...
 
void setVisible (bool visible)
 set if visible More...
 
void setWindowTitle (const std::string &title)
 set the window title More...
 
void setWindowTitle (const QString &windowTitle)
 set window title More...
 
std::string text () const
 get the text More...
 
int value () const
 get value More...
 
std::string windowTitle () const
 get the window title More...
 
virtual ~ProgressBar ()
 constructor from impl More...
 

Public Attributes

ProgressBarparent
 constructor More...
 
Nano::Signal< void(double)> percentageUpdated
 called every time progress increases by 1% more than last progress More...
 

Detailed Description

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.

Constructor & Destructor Documentation

openstudio::ProgressBar::ProgressBar ( bool  visible,
parent = nullptr 
)

constructor

virtual openstudio::ProgressBar::~ProgressBar ( )
virtual

constructor from impl

virtual destructor

Member Function Documentation

bool openstudio::ProgressBar::isVisible ( ) const

get if visible

int openstudio::ProgressBar::maximum ( ) const

get max

int openstudio::ProgressBar::minimum ( ) const

get min

virtual void openstudio::ProgressBar::onPercentageUpdated ( double  percentage)
virtual

virtual method called every time percentageUpdated fires

void openstudio::ProgressBar::setMaximum ( int  max)

set max

void openstudio::ProgressBar::setMinimum ( int  min)

set min

void openstudio::ProgressBar::setRange ( int  min,
int  max 
)

set range

void openstudio::ProgressBar::setValue ( int  value)

set value

void openstudio::ProgressBar::setVisible ( bool  visible)

set if visible

void openstudio::ProgressBar::setWindowTitle ( const std::string &  title)

set the window title

void openstudio::ProgressBar::setWindowTitle ( const QString &  windowTitle)

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

Member Data Documentation

ProgressBar* openstudio::ProgressBar::parent

constructor

Nano::Signal<void(double)> openstudio::ProgressBar::percentageUpdated

called every time progress increases by 1% more than last progress