summaryrefslogtreecommitdiffstats
path: root/dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dialog.cpp')
-rw-r--r--dialog.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/dialog.cpp b/dialog.cpp
index 3e03cb8..5d84300 100644
--- a/dialog.cpp
+++ b/dialog.cpp
@@ -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);
+}