| 44 | } |
| 45 | |
| 46 | void TextEditorWindow::OnSave(wxCommandEvent&) |
| 47 | { |
| 48 | EditorSaveEvent event(EDITOR_SAVE_EVENT, GetId()); |
| 49 | event.SetEventObject(this); |
| 50 | event.text = textControl->GetValue(); |
| 51 | ProcessWindowEvent(event); |
| 52 | |
| 53 | Destroy(); |
| 54 | } |
| 55 | |
| 56 | void TextEditorWindow::OnCancel(wxCommandEvent&) |
| 57 | { |