/* 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:
/* 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);
// 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
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;