- /* Creates and displays dialog, disables event handling for other
- frames or parent frame to avoid recursion problems.
- @param title title for window
- @param message message to display in window
- @param maximum value for status bar, if <= 0, no bar is shown
- @param parent window or NULL
- @param style is the bit mask of wxPD_XXX constants from wx/defs.h
- */
- wxProgressDialog(const wxString &title, wxString const &message,
- int maximum = 100,
- wxWindow *parent = NULL,
- int style = wxPD_APP_MODAL | wxPD_AUTO_HIDE);
- /* Destructor.
- Re-enables event handling for other windows.
- */
- virtual ~wxProgressDialog();
-
- /* Update the status bar to the new value.
- @param value new value
- @param newmsg if used, new message to display
- @returns true if ABORT button has not been pressed
- */
- virtual bool Update(int value, const wxString& newmsg = wxEmptyString, bool *skip = NULL);
-
- /* Switches the dialog to use a gauge in indeterminate mode and calls
- wxGauge::Pulse() to show to the user a bit of progress */
- virtual bool UpdatePulse(const wxString& newmsg = wxEmptyString, bool *skip = NULL);
+ wxProgressDialog(const wxString& title, const wxString& message,
+ int maximum = 100,
+ wxWindow *parent = NULL,
+ int style = wxPD_APP_MODAL | wxPD_AUTO_HIDE);
+
+ virtual ~wxProgressDialog();
+
+ virtual bool Update(int value, const wxString& newmsg = wxEmptyString, bool *skip = NULL);
+ virtual bool Pulse(const wxString& newmsg = wxEmptyString, bool *skip = NULL);
+
+ void Resume();
+
+ int GetValue() const;
+ int GetRange() const;
+ wxString GetMessage() const;
+
+ void SetRange(int maximum);