|
14 | 14 | #include "NotepadPlusWrapper.h" |
15 | 15 |
|
16 | 16 | PythonConsole::PythonConsole(HWND hNotepad) : |
17 | | - PyProducerConsumer<std::string>(), |
18 | | - mp_scintillaWrapper(new ScintillaWrapper(NULL)), |
19 | | - mp_mainThreadState(NULL), |
20 | | - m_hThread(NULL), |
21 | | - m_hNotepad(hNotepad), |
22 | | - m_consumerStarted(false), |
23 | | - m_nppData(new NppData) |
24 | | -{ |
25 | | - mp_consoleDlg = new ConsoleDialog(); |
26 | | - |
27 | | - m_statementRunning = CreateEvent(NULL, FALSE, TRUE, NULL); |
| 17 | + mp_scintillaWrapper(new ScintillaWrapper(NULL)), |
| 18 | + mp_consoleDlg(new ConsoleDialog()), |
| 19 | + mp_mainThreadState(NULL), |
| 20 | + m_statementRunning(CreateEvent(NULL, FALSE, TRUE, NULL)), |
| 21 | + m_hThread(NULL), |
| 22 | + m_hNotepad(hNotepad), |
| 23 | + m_consumerStarted(false), |
| 24 | + m_nppData(new NppData) |
| 25 | +{ |
| 26 | +} |
| 27 | + |
| 28 | +PythonConsole::PythonConsole(const PythonConsole& other) : |
| 29 | + mp_scintillaWrapper(other.mp_scintillaWrapper ? new ScintillaWrapper(*other.mp_scintillaWrapper) : NULL), |
| 30 | + mp_consoleDlg(other.mp_consoleDlg ? new ConsoleDialog(*other.mp_consoleDlg) : NULL), |
| 31 | + m_console(other.m_console), |
| 32 | + m_pushFunc(other.m_pushFunc), |
| 33 | + m_sys(other.m_sys), |
| 34 | + mp_mainThreadState(other.mp_mainThreadState), |
| 35 | + m_statementRunning(other.m_statementRunning), |
| 36 | + m_hThread(other.m_hThread), |
| 37 | + m_hNotepad(other.m_hNotepad), |
| 38 | + m_consumerStarted(other.m_consumerStarted), |
| 39 | + m_nppData(other.m_nppData ? new NppData(*other.m_nppData) : NULL) |
| 40 | +{ |
28 | 41 | } |
29 | 42 |
|
30 | 43 | PythonConsole::~PythonConsole() |
|
0 commit comments