MCPcopy Create free account
hub / github.com/MyGUI/mygui / Command_Delete

Method Command_Delete

Tools/LayoutEditor/WorkspaceControl.cpp:517–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515 }
516
517 void WorkspaceControl::Command_Delete(const MyGUI::UString& _commandName, bool& _result)
518 {
519 if (!checkCommand())
520 return;
521
522 if (mCurrentWidget == nullptr)
523 return;
524
525 EditorWidgets::getInstance().remove(mCurrentWidget);
526 WidgetSelectorManager::getInstance().setSelectedWidget(nullptr);
527 UndoManager::getInstance().addValue();
528
529 _result = true;
530 }
531
532 void WorkspaceControl::Command_NextItem(const MyGUI::UString& _commandName, bool& _result)
533 {

Callers

nothing calls this directly

Calls 3

setSelectedWidgetMethod · 0.80
addValueMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected