|
Isis 3.0 Object Programmers' Reference |
Home |
00001 #ifndef Progress_h 00002 #define Progress_h 00003 00025 #include <QString> 00026 00027 namespace Isis { 00056 class Progress { 00057 private: 00058 QString p_text; 00060 int p_maximumSteps; 00063 int p_currentStep; 00066 int p_currentPercent; 00070 int p_percentIncrement; 00072 bool p_printPercent; 00073 00074 public: 00075 // constructor 00076 Progress(); 00077 00078 // destructor 00079 ~Progress(); 00080 00081 // Change the text QString 00082 void SetText(const QString &text); 00083 00084 // Get the text string 00085 QString Text() const; 00086 00087 // Change the maximum steps 00088 void SetMaximumSteps(const int steps); 00089 00090 // Add steps before completion (for guessed initial step size) 00091 void AddSteps(const int steps); 00092 00093 // Check and report status 00094 void CheckStatus(); 00095 }; 00096 }; 00097 00098 #endif