MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / createMessageBox

Method createMessageBox

radiant/ui/common/DialogManager.cpp:66–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66IDialogPtr DialogManager::createMessageBox(const std::string& title,
67 const std::string& text,
68 IDialog::MessageType type,
69 wxWindow* parent)
70{
71 cleanupOldDialogs();
72
73 // Allocate a new dialog, use the main window if no parent specified
74 auto box = std::make_shared<wxutil::Messagebox>(title, text, type, parent);
75
76 // Store it in the local map so that references are held
77 _dialogs.push_back(box);
78
79 return box;
80}
81
82IFileChooserPtr DialogManager::createFileChooser(const std::string& title,
83 bool open, const std::string& pattern, const std::string& defaultExt)

Callers 15

handleRequestMethod · 0.45
handleRequestMethod · 0.45
deleteSelectedLayerMethod · 0.45
assignShortcutMethod · 0.45
onEditFilterMethod · 0.45
onEntryActivatedMethod · 0.45
dialogtest.pyFile · 0.45
executeFunction · 0.45
executeFunction · 0.45
executeFunction · 0.45

Calls 1

push_backMethod · 0.45

Tested by 1

executeFunction · 0.36