USGS

Isis 3.0 Object Programmers' Reference

Home

Progress.h
Go to the documentation of this file.
1 #ifndef Progress_h
2 #define Progress_h
3 
25 #include <QString>
26 
27 namespace Isis {
58  class Progress {
59  public:
60  // constructor
61  Progress();
62 
63  // destructor
64  ~Progress();
65 
66  // Change the text QString
67  void SetText(const QString &text);
68 
69  // Get the text string
70  QString Text() const;
71 
72  // Change the maximum steps
73  void SetMaximumSteps(const int steps);
74 
75  // Add steps before completion (for guessed initial step size)
76  void AddSteps(const int steps);
77 
78  // Check and report status
79  void CheckStatus();
80 
82 
83  int MaximumSteps() const;
84 
85  int CurrentStep() const;
86 
87  private:
88  QString p_text;
102  bool p_printPercent;
103 
104  bool p_autoDisplay;
105  };
106 };
107 
108 #endif