MorphoGraphX  2.0-1-227
Public Member Functions | Static Public Member Functions | List of all members
mgx::Progress Class Reference

#include <Progress.hpp>

+ Inheritance diagram for mgx::Progress:

Public Member Functions

 Progress ()
 
 ~Progress ()
 
bool processEvent (QEvent *e)
 
void setupProgress (QWidget *parent, QToolBar *progressToolBar)
 
void start (const QString &msg, int steps, bool allowCancel=true)
 
void start (const char *msg, int steps, bool allowCancel=true)
 
void start (std::string msg, int steps, bool allowCancel=true)
 
bool advance (int step=-1)
 
bool canceled ()
 
void cancel ()
 
void stop ()
 
void setMax (int steps)
 
void setMsg (const QString &msg)
 
void setMsg (const char *msg)
 
void setMsg (std::string msg)
 

Static Public Member Functions

static Progressinstance ()
 

Detailed Description

Definition at line 32 of file Progress.hpp.

Constructor & Destructor Documentation

◆ Progress()

mgx::Progress::Progress ( )

◆ ~Progress()

mgx::Progress::~Progress ( )

Member Function Documentation

◆ advance()

bool mgx::Progress::advance ( int  step = -1)

◆ cancel()

void mgx::Progress::cancel ( )

◆ canceled()

bool mgx::Progress::canceled ( )

◆ instance()

static Progress& mgx::Progress::instance ( )
static

◆ processEvent()

bool mgx::Progress::processEvent ( QEvent *  e)

◆ setMax()

void mgx::Progress::setMax ( int  steps)

◆ setMsg() [1/3]

void mgx::Progress::setMsg ( const char *  msg)
inline

Definition at line 69 of file Progress.hpp.

◆ setMsg() [2/3]

void mgx::Progress::setMsg ( const QString &  msg)

◆ setMsg() [3/3]

void mgx::Progress::setMsg ( std::string  msg)
inline

Definition at line 70 of file Progress.hpp.

◆ setupProgress()

void mgx::Progress::setupProgress ( QWidget *  parent,
QToolBar *  progressToolBar 
)

◆ start() [1/3]

void mgx::Progress::start ( const char *  msg,
int  steps,
bool  allowCancel = true 
)
inline

Definition at line 55 of file Progress.hpp.

◆ start() [2/3]

void mgx::Progress::start ( const QString &  msg,
int  steps,
bool  allowCancel = true 
)

◆ start() [3/3]

void mgx::Progress::start ( std::string  msg,
int  steps,
bool  allowCancel = true 
)
inline

Definition at line 59 of file Progress.hpp.

◆ stop()

void mgx::Progress::stop ( )

The documentation for this class was generated from the following file: