4#include <wx/textctrl.h>
25 bool UpdateProgress(
int current,
int max,
const wxString &message = wxEmptyString);
32 void AppendLog(
const wxString &message,
const wxString &prefix =
"");
56 void OnCancel(wxCommandEvent &event);
57 void OnClose(wxCloseEvent &event);
void MarkComplete()
Mark loading as complete and change button to "Close".
wxButton * cancel_button_
void OnCancel(wxCommandEvent &event)
void OnClose(wxCloseEvent &event)
void ClearLog()
Clear all log messages.
void SetMaxProgress(int max)
Set the maximum value for the progress bar.
bool UpdateProgress(int current, int max, const wxString &message=wxEmptyString)
Update progress and optionally add a log message.
wxStaticText * status_label_
bool WasCancelled() const
Check if the user requested cancellation.
LoadingDialog(wxWindow *parent, const wxString &title)
void AppendLog(const wxString &message, const wxString &prefix="")
Add a log message without updating progress.