| 93 | } |
| 94 | |
| 95 | int ReadableEditorDialog::ShowModal() |
| 96 | { |
| 97 | // Load the initial values from the entity |
| 98 | if (!initControlsFromEntity()) |
| 99 | { |
| 100 | // User clicked cancel, so destroy the window. |
| 101 | return wxID_CANCEL; |
| 102 | } |
| 103 | |
| 104 | // Initialize proper editing controls. |
| 105 | populateControlsFromXData(); |
| 106 | |
| 107 | // Initialise the GL widget after the widgets have been shown |
| 108 | _guiView->initialiseView(); |
| 109 | |
| 110 | return DialogBase::ShowModal(); |
| 111 | } |
| 112 | |
| 113 | void ReadableEditorDialog::RunDialog(const cmd::ArgumentList& args) |
| 114 | { |
no test coverage detected