| 52 | } |
| 53 | |
| 54 | IDialogPtr DialogManager::createDialog(const std::string& title, wxWindow* parent) |
| 55 | { |
| 56 | cleanupOldDialogs(); |
| 57 | |
| 58 | // Allocate a new dialog |
| 59 | auto dialog = std::make_shared<wxutil::Dialog>(title, parent); |
| 60 | |
| 61 | _dialogs.push_back(dialog); |
| 62 | |
| 63 | return dialog; |
| 64 | } |
| 65 | |
| 66 | IDialogPtr DialogManager::createMessageBox(const std::string& title, |
| 67 | const std::string& text, |