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

Method initState

Tools/LayoutEditor/TestState.cpp:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 }
32
33 void TestState::initState()
34 {
35 WidgetSelectorManager::getInstance().saveSelectedWidget();
36 WidgetSelectorManager::getInstance().setSelectedWidget(nullptr);
37
38 mTestLayout = EditorWidgets::getInstance().savexmlDocument();
39 EditorWidgets::getInstance().clear();
40 EditorWidgets::getInstance().loadxmlDocument(mTestLayout, true);
41
42 mBackgroundControl = new BackgroundControlLE();
43 }
44
45 void TestState::cleanupState()
46 {

Callers

nothing calls this directly

Calls 5

saveSelectedWidgetMethod · 0.80
setSelectedWidgetMethod · 0.80
savexmlDocumentMethod · 0.80
loadxmlDocumentMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected