| 6 | wxDEFINE_EVENT(EDITOR_SAVE_EVENT, EditorSaveEvent); |
| 7 | |
| 8 | TextEditorWindow::TextEditorWindow( |
| 9 | wxWindow* parent, const std::string& title, const std::string& text): |
| 10 | TextEditorWindowGen(parent) |
| 11 | { |
| 12 | auto size = textControl->GetTextExtent("M"); |
| 13 | SetSize(size.Scale(85, 25)); |
| 14 | SetTitle(title); |
| 15 | textControl->SetValue(text); |
| 16 | } |
| 17 | |
| 18 | TextEditorWindow* TextEditorWindow::Create( |
| 19 | wxWindow* parent, const std::string& title, const std::string& text) |