diff options
Diffstat (limited to 'creator_thread.cpp')
-rw-r--r-- | creator_thread.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/creator_thread.cpp b/creator_thread.cpp new file mode 100644 index 0000000..2443c6b --- /dev/null +++ b/creator_thread.cpp @@ -0,0 +1,25 @@ +#include "creator_thread.h" + +CreatorThread::CreatorThread(Dialog *d) + : wxThread() +{ + m_dialog = d; +} + +void CreatorThread::OnExit() +{ +} + +wxThread::ExitCode CreatorThread::Entry() +{ + int i; + for (i = 0; i<=100; i++) { + wxMutexGuiEnter(); + m_dialog->SetProgress(i); + wxMutexGuiLeave(); + + wxMilliSleep(100); + } + return NULL; +} + |