X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3b2fb7a165afff85ee2fdf65c4df4cc84fd343af..ef7f03ad8383051d1b1e6d216dc0d536bbf3eef5:/interface/wx/progdlg.h diff --git a/interface/wx/progdlg.h b/interface/wx/progdlg.h index 9933e795a1..ac23bb7fff 100644 --- a/interface/wx/progdlg.h +++ b/interface/wx/progdlg.h @@ -3,7 +3,7 @@ // Purpose: interface of wxProgressDialog // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -128,6 +128,41 @@ public: */ void Resume(); + /** + Changes the maximum value of the progress meter given in the constructor. + This function can only be called (with a positive value) if the value passed + in the constructor was positive. + + @since 2.9.1 + */ + void SetRange(int maximum); + + + /** + Returns true if the "Cancel" button was pressed. + + Normally a Cancel button press is indicated by Update() returning + @false but sometimes it may be more convenient to check if the dialog + was cancelled from elsewhere in the code and this function allows to + do it. + + It always returns @false if the Cancel button is not shown at all. + + @since 2.9.1 + */ + bool WasCancelled() const; + + /** + Returns true if the "Skip" button was pressed. + + This is similar to WasCancelled() but returns @true if the "Skip" + button was pressed, not the "Cancel" one. + + @since 2.9.1 + */ + bool WasSkipped() const; + + /** Updates the dialog, setting the progress bar to the new value and updating the message if new one is specified.