X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7086987f11055d44165f0c448209df80bdc5bc11..de81a4f086b04513afab867fddc2171507a5ae9f:/src/generic/progdlgg.cpp diff --git a/src/generic/progdlgg.cpp b/src/generic/progdlgg.cpp index 15fb92990f..c6ca37e085 100644 --- a/src/generic/progdlgg.cpp +++ b/src/generic/progdlgg.cpp @@ -73,11 +73,11 @@ END_EVENT_TABLE() IMPLEMENT_CLASS(wxProgressDialog, wxDialog) // ============================================================================ -// implementation +// wxProgressDialog implementation // ============================================================================ // ---------------------------------------------------------------------------- -// wxProgressDialog +// wxProgressDialog creation // ---------------------------------------------------------------------------- wxProgressDialog::wxProgressDialog(wxString const &title, @@ -308,6 +308,10 @@ wxStaticText *wxProgressDialog::CreateLabel(const wxString& text, return label; } +// ---------------------------------------------------------------------------- +// wxProgressDialog operations +// ---------------------------------------------------------------------------- + bool wxProgressDialog::Update(int value, const wxString& newmsg) { @@ -393,6 +397,15 @@ wxProgressDialog::Update(int value, const wxString& newmsg) return m_state != Canceled; } +void wxProgressDialog::Resume() +{ + m_state = Continue; + + // it may have been disabled by OnCancel(), so enable it back to let the + // user interrupt us again if needed + m_btnAbort->Enable(); +} + // ---------------------------------------------------------------------------- // event handlers // ----------------------------------------------------------------------------