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

Method findEditor

Tools/MaterialEditor/MaterialEditor/src/EditorManager.cpp:127–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127Editor* EditorManager::findEditor(const wxString& name)
128{
129 EditorList::iterator it;
130 Editor* editor = NULL;
131 for(it = mEditors.begin(); it != mEditors.end(); ++it)
132 {
133 editor = (*it);
134 if(editor->getName() == name) return editor;
135 }
136
137 return NULL;
138}
139
140Editor* EditorManager::getActiveEditor() const
141{

Callers 1

OnEditMethod · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected