summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cppeditorplugin.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-07-30 16:30:31 +0200
committerhjk <hjk121@nokiamail.com>2014-07-31 10:54:58 +0200
commit210321377e10b39c9aaf78e4cb4d39a57876a225 (patch)
tree19e13e680c96e64735f929b444fd48f16d9ecf2c /src/plugins/cppeditor/cppeditorplugin.cpp
parentf6b48950ed275d8c540e4950f3c2f145de03ae16 (diff)
downloadqt-creator-210321377e10b39c9aaf78e4cb4d39a57876a225.tar.gz
Editors: Some renamings to enhance consistency
The base pattern is FooEditor for BaseTextEditor derived classes and FooEditorWidget for BaseTextEditorWidget derived classes. So: CPPEditorWidget -> CppEditorWidget CPPEditorWidgetPrivate -> CppEditorWidgetPrivate ...::EditorWidget -> PythonEditorWidget GLSLTextEditorWidget -> GlslEditorWidget GLSLEditorEditable -> GlslEditor Change-Id: I76d34a3694c2fb35491982d86e83f7e4774c0be6 Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Diffstat (limited to 'src/plugins/cppeditor/cppeditorplugin.cpp')
-rw-r--r--src/plugins/cppeditor/cppeditorplugin.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/plugins/cppeditor/cppeditorplugin.cpp b/src/plugins/cppeditor/cppeditorplugin.cpp
index 3cd16607be..678214904b 100644
--- a/src/plugins/cppeditor/cppeditorplugin.cpp
+++ b/src/plugins/cppeditor/cppeditorplugin.cpp
@@ -97,7 +97,7 @@ CppEditorFactory::CppEditorFactory(CppEditorPlugin *owner) :
IEditor *CppEditorFactory::createEditor()
{
- CPPEditorWidget *editor = new CPPEditorWidget();
+ CppEditorWidget *editor = new CppEditorWidget();
editor->setRevisionsVisible(true);
m_owner->initializeEditor(editor);
return editor->editor();
@@ -129,7 +129,7 @@ CppEditorPlugin *CppEditorPlugin::instance()
return m_instance;
}
-void CppEditorPlugin::initializeEditor(CPPEditorWidget *editor)
+void CppEditorPlugin::initializeEditor(CppEditorWidget *editor)
{
editor->setLanguageSettingsId(CppTools::Constants::CPP_SETTINGS_ID);
TextEditor::TextEditorSettings::initializeEditor(editor);
@@ -343,38 +343,38 @@ ExtensionSystem::IPlugin::ShutdownFlag CppEditorPlugin::aboutToShutdown()
return SynchronousShutdown;
}
-static CPPEditorWidget *currentCppEditorWidget()
+static CppEditorWidget *currentCppEditorWidget()
{
- return qobject_cast<CPPEditorWidget*>(EditorManager::currentEditor()->widget());
+ return qobject_cast<CppEditorWidget*>(EditorManager::currentEditor()->widget());
}
void CppEditorPlugin::switchDeclarationDefinition()
{
- if (CPPEditorWidget *editorWidget = currentCppEditorWidget())
+ if (CppEditorWidget *editorWidget = currentCppEditorWidget())
editorWidget->switchDeclarationDefinition(/*inNextSplit*/ false);
}
void CppEditorPlugin::openDeclarationDefinitionInNextSplit()
{
- if (CPPEditorWidget *editorWidget = currentCppEditorWidget())
+ if (CppEditorWidget *editorWidget = currentCppEditorWidget())
editorWidget->switchDeclarationDefinition(/*inNextSplit*/ true);
}
void CppEditorPlugin::renameSymbolUnderCursor()
{
- if (CPPEditorWidget *editorWidget = currentCppEditorWidget())
+ if (CppEditorWidget *editorWidget = currentCppEditorWidget())
editorWidget->renameSymbolUnderCursor();
}
void CppEditorPlugin::findUsages()
{
- if (CPPEditorWidget *editorWidget = currentCppEditorWidget())
+ if (CppEditorWidget *editorWidget = currentCppEditorWidget())
editorWidget->findUsages();
}
void CppEditorPlugin::showPreProcessorDialog()
{
- if (CPPEditorWidget *editorWidget = currentCppEditorWidget())
+ if (CppEditorWidget *editorWidget = currentCppEditorWidget())
editorWidget->showPreProcessorWidget();
}