| 92 | } |
| 93 | |
| 94 | void 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 | |
| 108 | void EditorManager::closeEditor(Editor* editor) |
| 109 | { |
no test coverage detected