diff options
Diffstat (limited to 'dialog.cpp')
-rw-r--r-- | dialog.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -3,6 +3,7 @@ #include <wx/msgdlg.h> #include "dialog.h" +#include "creator_thread.h" #ifdef __WINDOWS__ #include <windows.h> @@ -45,7 +46,14 @@ void Dialog::OnRefreshDrives(wxCommandEvent &event) void Dialog::OnStartButton(wxCommandEvent &event) { - wxMessageBox(wxT("To be implemented")); + CreatorThread *thread = new CreatorThread(this); + if (thread->Create() == wxTHREAD_NO_ERROR) { + m_start_button->Disable(); + m_target->Disable(); + m_iso_picker->Disable(); + m_refresh_button->Disable(); + thread->Run(); + } } void Dialog::OnCancelButton(wxCommandEvent &event) @@ -73,3 +81,7 @@ void Dialog::OnTargetChange(wxCommandEvent &event) UpdateStartButton(); } +void Dialog::SetProgress(int value) +{ + m_gauge->SetValue(value); +} |