cgma
TextProgressTool.hpp
Go to the documentation of this file.
00001 //- Class: TextProgressTool
00002 //- Description: interface for displaying progress on a process
00003 //- Created: 11/6/01
00004 //- Checked By:
00005 //- Version:
00006 
00007 #ifndef TEXTPROGRESSTOOL_HPP
00008 #define TEXTPROGRESSTOOL_HPP
00009 
00010 #include "ProgressTool.hpp"
00011 #include "CGMUtilConfigure.h"
00012 
00013 class CUBIT_UTIL_EXPORT TextProgressTool : public ProgressTool
00014 {
00015 public:
00016   TextProgressTool();
00017   virtual ~TextProgressTool();
00018 
00019   virtual void start(int nLower, int nUpper,
00020                const char* title = NULL,
00021                const char* info_string = NULL,
00022                CubitBoolean bSmooth = CUBIT_TRUE,
00023                CubitBoolean bHasCancelButton = CUBIT_FALSE);
00024 
00025   virtual void end();
00026 
00027   virtual void step();
00028   // move the control bar one integer step based on nLower and nUpper
00029 
00030   virtual void percent( double pcnt );
00031   // move the control bar to a specified percent
00032   // pcnt should be between 0 and 1
00033 
00034   virtual void check_interrupt();
00035   // callback to allow the progress tool to check for interrupt
00036 
00037 private:
00038   int nTotal;
00039   int nCurrent;
00040   int nShown;
00041 };
00042 
00043 #endif
00044 
00045 //EOF
00046 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines