-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSimFluUIThread.h
More file actions
39 lines (33 loc) · 958 Bytes
/
SimFluUIThread.h
File metadata and controls
39 lines (33 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef SIMFLUUITHREAD_H
#define SIMFLUUITHREAD_H
#include <wx/thread.h>
#include <wx/event.h>
#include "src/simulator.h"
#include "src/params.h"
#include <iostream>
#include <wx/msgqueue.h>
#include <chrono>
#include <wx/textctrl.h>
#include <wx/progdlg.h>
wxDECLARE_EVENT(wxEVT_COMMAND_SIMFLUUITHREAD_COMPLETED, wxThreadEvent);
wxDECLARE_EVENT(wxEVT_COMMAND_SIMFLUUITHREAD_UPDATE, wxThreadEvent);
class SimFluUIThread : public wxThread
{
public:
SimFluUIThread(wxEvtHandler* handler, Params* param)
: wxThread(wxTHREAD_DETACHED)
{ m_pHandler = handler; m_param = *param; }
~SimFluUIThread();
private:
// wxWindow* m_frame;
Params m_param;
// wxTextCtrl* m_TC;
// bool m_cancelled;
void* Entry();
// wxStreamToTextRedirector m_redirect;
protected:
wxEvtHandler* m_pHandler;
// friend class SimFluUIFrame;
// void OnExit();
};
#endif