#include <pdfwriter.h>
Public Member Functions | |
| virtual | ~IProgressBar () |
| virtual void | start ()=0 |
| virtual void | finish ()=0 |
| virtual void | update (int step)=0 |
| virtual void | setMaxStep (int maxStep)=0 |
Interface for progress visualizator. Implementator should provide visual form of progress.
Progress is started by start method, changed by update method and finished by finish method. If progress contains preciselly known number of steps, setMaxStep method determines this number.
| virtual pdfobjects::utils::IProgressBar::~IProgressBar | ( | ) | [inline, virtual] |
Default virtual destructor. Empty destructor.
| virtual void pdfobjects::utils::IProgressBar::finish | ( | ) | [pure virtual] |
Finishes progress visualization. Progress bar instance can be destroyed immediatelly after this method finishes.
Implemented in gui::ProgressBar.
Referenced by pdfobjects::utils::ProgressObserver::notify(), and pdfobjects::utils::ProgressObserver::~ProgressObserver().
| virtual void pdfobjects::utils::IProgressBar::setMaxStep | ( | int | maxStep | ) | [pure virtual] |
Sets maximum progress state.
| maxStep | Maximum step. |
This should be called when percentage progress bar should be visualized.
Implemented in gui::ProgressBar.
Referenced by pdfobjects::utils::ProgressObserver::notify().
| virtual void pdfobjects::utils::IProgressBar::start | ( | ) | [pure virtual] |
Starts progress visualization.
Implemented in gui::ProgressBar.
Referenced by pdfobjects::utils::ProgressObserver::notify().
| virtual void pdfobjects::utils::IProgressBar::update | ( | int | step | ) | [pure virtual] |
New progress state.
| step | Number of current progress step. |
Implemented in gui::ProgressBar.
Referenced by pdfobjects::utils::ProgressObserver::notify().