cgma
|
00001 //- Class: StubProgressTool 00002 //- Description: default progress tool implementation that does nothing 00003 //- Created: 04/29/02 by Byron Hanks 00004 //- Checked By: 00005 //- Version: 00006 00007 #ifndef STUBPROGRESSTOOL_HPP 00008 #define STUBPROGRESSTOOL_HPP 00009 00010 #include "CubitDefines.h" 00011 #include "ProgressTool.hpp" 00012 #include "CGMUtilConfigure.h" 00013 00014 class CUBIT_UTIL_EXPORT StubProgressTool : public ProgressTool 00015 { 00016 protected: 00017 00018 public: 00019 StubProgressTool(); 00020 virtual ~StubProgressTool(); 00021 00022 virtual void start(int nLower, int nUpper, 00023 const char* title = NULL, 00024 const char* info_string = NULL, 00025 CubitBoolean bSmooth = CUBIT_TRUE, 00026 CubitBoolean bHasCancelButton = CUBIT_FALSE); 00027 00028 virtual void end(); 00029 00030 virtual void step(); 00031 // move the control bar one integer step based on nLower and nUpper 00032 00033 virtual void percent( double pcnt ); 00034 // move the control bar to a specified percent 00035 // pcnt should be between 0 and 1 00036 00037 virtual void check_interrupt(); 00038 // callback to allow the progress tool to check for interrupt 00039 00040 }; 00041 00042 #endif 00043 00044 //EOF 00045