texteditor: merge ITextEditable into ITextEditor

rename BastTextEditor->BaseTextEditorWidget, BaseTextEditorEditable->BaseTextEditor
rename BaseTextEditor{,Widget} subclasses
rename editableInterface->editorInterface
rename createEditableInterface->createEditor
minor cleanups after renamings
This commit is contained in:
hjk
2011-02-21 16:02:26 +01:00
parent e32cf192f7
commit f576ad9f2c
180 changed files with 1326 additions and 1382 deletions

View File

@@ -98,7 +98,7 @@ bool CppOutlineFilterModel::filterAcceptsRow(int sourceRow,
}
CppOutlineWidget::CppOutlineWidget(CPPEditor *editor) :
CppOutlineWidget::CppOutlineWidget(CPPEditorWidget *editor) :
TextEditor::IOutlineWidget(),
m_editor(editor),
m_treeView(new CppOutlineTreeView(this)),
@@ -197,18 +197,18 @@ bool CppOutlineWidget::syncCursor()
bool CppOutlineWidgetFactory::supportsEditor(Core::IEditor *editor) const
{
if (qobject_cast<CPPEditorEditable*>(editor))
if (qobject_cast<CPPEditor*>(editor))
return true;
return false;
}
TextEditor::IOutlineWidget *CppOutlineWidgetFactory::createWidget(Core::IEditor *editor)
{
CPPEditorEditable *cppEditable = qobject_cast<CPPEditorEditable*>(editor);
CPPEditor *cppEditor = qobject_cast<CPPEditor*>(cppEditable->widget());
Q_ASSERT(cppEditor);
CPPEditor *cppEditor = qobject_cast<CPPEditor*>(editor);
CPPEditorWidget *cppEditorWidget = qobject_cast<CPPEditorWidget*>(cppEditor->widget());
Q_ASSERT(cppEditorWidget);
CppOutlineWidget *widget = new CppOutlineWidget(cppEditor);
CppOutlineWidget *widget = new CppOutlineWidget(cppEditorWidget);
return widget;
}