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