MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / openEditor

Method openEditor

Tools/MaterialEditor/MaterialEditor/src/EditorManager.cpp:94–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void EditorManager::openEditor(Editor* editor)
95{
96 assert(mEditorNotebook != NULL);
97
98 mEditors.push_back(editor);
99 mEditorNotebook->AddPage(editor->getControl(), editor->getName(), true);
100
101 mEditorIndexMap[editor] = mEditorNotebook->GetPageIndex(editor->getControl());
102
103 editor->subscribe(Editor::NameChanged, boost::bind(&EditorManager::nameChanged, this, _1));
104
105 setActiveEditor(editor);
106}
107
108void EditorManager::closeEditor(Editor* editor)
109{

Callers 3

OnAddMaterialMethod · 0.80
OnEditMethod · 0.80
OnFileOpenMethod · 0.80

Calls 4

getControlMethod · 0.80
push_backMethod · 0.45
getNameMethod · 0.45
subscribeMethod · 0.45

Tested by

no test coverage detected