cgma
|
#include <TextProgressTool.hpp>
Public Member Functions | |
TextProgressTool () | |
virtual | ~TextProgressTool () |
virtual void | start (int nLower, int nUpper, const char *title=NULL, const char *info_string=NULL, CubitBoolean bSmooth=CUBIT_TRUE, CubitBoolean bHasCancelButton=CUBIT_FALSE) |
virtual void | end () |
virtual void | step () |
virtual void | percent (double pcnt) |
virtual void | check_interrupt () |
Private Attributes | |
int | nTotal |
int | nCurrent |
int | nShown |
Definition at line 13 of file TextProgressTool.hpp.
Definition at line 13 of file TextProgressTool.cpp.
TextProgressTool::~TextProgressTool | ( | ) | [virtual] |
Definition at line 20 of file TextProgressTool.cpp.
{ }
void TextProgressTool::check_interrupt | ( | ) | [virtual] |
void TextProgressTool::end | ( | ) | [virtual] |
void TextProgressTool::percent | ( | double | pcnt | ) | [virtual] |
Implements ProgressTool.
Definition at line 80 of file TextProgressTool.cpp.
void TextProgressTool::start | ( | int | nLower, |
int | nUpper, | ||
const char * | title = NULL , |
||
const char * | info_string = NULL , |
||
CubitBoolean | bSmooth = CUBIT_TRUE , |
||
CubitBoolean | bHasCancelButton = CUBIT_FALSE |
||
) | [virtual] |
Implements ProgressTool.
Definition at line 24 of file TextProgressTool.cpp.
{ const char* progress_title = title ? title : "Progress"; //bSmooth; bHasCancelButton; PRINT_INFO("%s\n",progress_title); if (info_string != NULL) { PRINT_INFO("%s\n",info_string); } PRINT_INFO("0 | | | | 50 | | | | 100\n"); nTotal = nUpper - nLower; nCurrent = 0; nShown = 0; }
void TextProgressTool::step | ( | ) | [virtual] |
Implements ProgressTool.
Definition at line 62 of file TextProgressTool.cpp.
int TextProgressTool::nCurrent [private] |
Definition at line 39 of file TextProgressTool.hpp.
int TextProgressTool::nShown [private] |
Definition at line 40 of file TextProgressTool.hpp.
int TextProgressTool::nTotal [private] |
Definition at line 38 of file TextProgressTool.hpp.