USGS

Isis 3.0 Developer's Reference (API)

Home

Progress.h

Go to the documentation of this file.
00001 #ifndef Progress_h
00002 #define Progress_h
00003 
00025 #include <QString>
00026 
00027 namespace Isis {
00058   class Progress {
00059     public:
00060       // constructor
00061       Progress();
00062 
00063       // destructor
00064       ~Progress();
00065 
00066       // Change the text QString
00067       void SetText(const QString &text);
00068 
00069       // Get the text string
00070       QString Text() const;
00071 
00072       // Change the maximum steps
00073       void SetMaximumSteps(const int steps);
00074 
00075       // Add steps before completion (for guessed initial step size)
00076       void AddSteps(const int steps);
00077 
00078       // Check and report status
00079       void CheckStatus();
00080 
00081       void DisableAutomaticDisplay();
00082 
00083       int MaximumSteps() const;
00084 
00085       int CurrentStep() const;
00086 
00087     private:
00088       QString p_text;     
00090       int p_maximumSteps;     
00093       int p_currentStep;      
00096       int p_currentPercent;   
00100       int p_percentIncrement; 
00102       bool p_printPercent;
00103 
00104       bool p_autoDisplay;
00105   };
00106 };
00107 
00108 #endif