@param newmsg if used, new message to display
@returns true if ABORT button has not been pressed
*/
- bool Update(int value = -1, const wxString& newmsg = "");
+ bool Update(int value = -1, const wxString& newmsg = _T(""));
/** 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
- configrm it)
+ confirm it)
*/
void Resume() { m_state = Continue; }
/// Callback for optional abort button
- void OnCancel(wxEvent& WXUNUSED(event)) { m_state = Canceled; }
+ void OnCancel(wxCommandEvent& WXUNUSED(event)) { m_state = Canceled; }
/// callback to disable "hard" window closing
void OnClose(wxCloseEvent& event);
{
Uncancelable = -1, // dialog can't be canceled
Canceled, // can be cancelled and, in fact, was
- Continue // can be cancelled but wasn't
+ Continue, // can be cancelled but wasn't
+ Finished // finished, waiting to be removed from screen
} m_state;
+ /// the abort button (or NULL if none)
+ class wxButton *m_btnAbort;
+ /// the maximum value
+ int m_maximum;
DECLARE_EVENT_TABLE()
};