| 4 | #include "textviewerwindow.h" |
| 5 | |
| 6 | TextViewerWindow::TextViewerWindow(wxWindow* parent, |
| 7 | const std::string& title, |
| 8 | const std::string& text, |
| 9 | bool autodestroy): |
| 10 | TextViewerWindowGen(parent), |
| 11 | _autodestroy(autodestroy) |
| 12 | { |
| 13 | auto size = textControl->GetTextExtent("M"); |
| 14 | SetSize(size.Scale(85, 25)); |
| 15 | SetTitle(title); |
| 16 | textControl->SetValue(text); |
| 17 | } |
| 18 | |
| 19 | TextViewerWindow* TextViewerWindow::Create(wxWindow* parent, |
| 20 | const std::string& title, |