X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ed1288eef07896f7dc5382e2658d720d5420a6d1..9572bf1d442006beba3528dc00c3fc05eb523c24:/include/wx/generic/progdlgg.h diff --git a/include/wx/generic/progdlgg.h b/include/wx/generic/progdlgg.h index 4a296b6af9..ce05dd40f8 100644 --- a/include/wx/generic/progdlgg.h +++ b/include/wx/generic/progdlgg.h @@ -48,6 +48,11 @@ public: void SetRange(int maximum); + // Return whether "Cancel" or "Skip" button was pressed, always return + // false if the corresponding button is not shown. + bool WasCancelled() const; + bool WasSkipped() const; + // Must provide overload to avoid hiding it (and warnings about it) virtual void Update() { wxDialog::Update(); } @@ -76,7 +81,10 @@ private: void UpdateMessage(const wxString &newmsg); // common part of Update() and Pulse(), returns true if not cancelled - bool DoAfterUpdate(bool *skip); + bool DoBeforeUpdate(bool *skip); + + // common part of Update() and Pulse() + void DoAfterUpdate(); // shortcuts for enabling buttons void EnableClose();