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

Method ShowDialog

plugins/dm.stimresponse/StimResponseEditor.cpp:189–206  ·  view source on GitHub ↗

Static command target

Source from the content-addressed store, hash-verified

187
188// Static command target
189void StimResponseEditor::ShowDialog()
190{
191 const SelectionInfo& info = GlobalSelectionSystem().getSelectionInfo();
192
193 if (info.entityCount == 1 && info.totalCount == 1)
194 {
195 // Construct a new instance, this enters the main loop
196 StimResponseEditor* editor = new StimResponseEditor;
197
198 editor->ShowModal();
199 editor->Destroy();
200 }
201 else
202 {
203 // Exactly one entity must be selected.
204 wxutil::Messagebox::ShowError(_(NO_ENTITY_ERROR));
205 }
206}
207
208int StimResponseEditor::_lastShownPage = -1;
209

Callers

nothing calls this directly

Calls 3

_Function · 0.50
ShowModalMethod · 0.45
DestroyMethod · 0.45

Tested by

no test coverage detected