X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/695f550bfaa08c237dec723bdd1eddf0eacbc741..2903e6998a46a0b3504da30e21a9c28b344680ae:/include/wx/generic/progdlgg.h?ds=inline diff --git a/include/wx/generic/progdlgg.h b/include/wx/generic/progdlgg.h index 5b9cee440a..aa0de14272 100644 --- a/include/wx/generic/progdlgg.h +++ b/include/wx/generic/progdlgg.h @@ -26,7 +26,7 @@ class WXDLLIMPEXP_FWD_CORE wxStaticText; /* Progress dialog which shows a moving progress bar. Taken from the Mahogany project.*/ -class WXDLLEXPORT wxProgressDialog : public wxDialog +class WXDLLIMPEXP_CORE wxProgressDialog : public wxDialog { DECLARE_DYNAMIC_CLASS(wxProgressDialog) public: @@ -50,7 +50,7 @@ public: /* 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 + @return true if ABORT button has not been pressed */ virtual bool Update(int value, const wxString& newmsg = wxEmptyString, bool *skip = NULL); @@ -61,13 +61,17 @@ public: // Must provide overload to avoid hiding it (and warnings about it) virtual void Update() { wxDialog::Update(); } + virtual bool Show( bool show = true ); + /* Can be called to continue after the cancel button has been pressed, but the program decided to continue the operation (e.g., user didn't confirm it) */ void Resume(); - virtual bool Show( bool show = true ); + int GetValue() const; + int GetRange() const; + wxString GetMessage() const; protected: // callback for optional abort button @@ -101,7 +105,7 @@ private: void DisableSkip() { EnableSkip(false); } void DisableAbort() { EnableAbort(false); } - // the status bar + // the widget displaying current status (may be NULL) wxGauge *m_gauge; // the message displayed wxStaticText *m_msg;