diff options
author | hjk <hjk121@nokiamail.com> | 2014-08-21 20:11:15 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2014-08-22 11:26:41 +0200 |
commit | cf66d54610ce969d3609325d299bdf5fb6cd4c85 (patch) | |
tree | a38fe6f714436ae6e22a426ef9b2cbdd44a098a9 | |
parent | 268a9a10424973cb91b019c87a5c9168a1e3e174 (diff) |
GlslEditor: Also camel-case the namespace
Follows the general pattern better.
Change-Id: I5eaa6fb003d3b78c006f2500bba28c7cb92f623b
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
20 files changed, 54 insertions, 54 deletions
diff --git a/src/plugins/cpaster/protocol.cpp b/src/plugins/cpaster/protocol.cpp index abaaba8a01..deb09e3c86 100644 --- a/src/plugins/cpaster/protocol.cpp +++ b/src/plugins/cpaster/protocol.cpp @@ -84,11 +84,11 @@ Protocol::ContentType Protocol::contentType(const QString &mt) { if (mt == QLatin1String(CppTools::Constants::C_SOURCE_MIMETYPE) || mt == QLatin1String(CppTools::Constants::C_HEADER_MIMETYPE) - || mt == QLatin1String(GLSLEditor::Constants::GLSL_MIMETYPE) - || mt == QLatin1String(GLSLEditor::Constants::GLSL_MIMETYPE_VERT) - || mt == QLatin1String(GLSLEditor::Constants::GLSL_MIMETYPE_FRAG) - || mt == QLatin1String(GLSLEditor::Constants::GLSL_MIMETYPE_VERT_ES) - || mt == QLatin1String(GLSLEditor::Constants::GLSL_MIMETYPE_FRAG_ES)) + || mt == QLatin1String(GlslEditor::Constants::GLSL_MIMETYPE) + || mt == QLatin1String(GlslEditor::Constants::GLSL_MIMETYPE_VERT) + || mt == QLatin1String(GlslEditor::Constants::GLSL_MIMETYPE_FRAG) + || mt == QLatin1String(GlslEditor::Constants::GLSL_MIMETYPE_VERT_ES) + || mt == QLatin1String(GlslEditor::Constants::GLSL_MIMETYPE_FRAG_ES)) return C; if (mt == QLatin1String(CppTools::Constants::CPP_SOURCE_MIMETYPE) || mt == QLatin1String(CppTools::Constants::CPP_HEADER_MIMETYPE) diff --git a/src/plugins/glsleditor/glslautocompleter.cpp b/src/plugins/glsleditor/glslautocompleter.cpp index 5d5fb11dd0..9c7cf99f54 100644 --- a/src/plugins/glsleditor/glslautocompleter.cpp +++ b/src/plugins/glsleditor/glslautocompleter.cpp @@ -39,7 +39,7 @@ using namespace CPlusPlus; -namespace GLSLEditor { +namespace GlslEditor { namespace Internal { GlslCompleter::GlslCompleter() @@ -135,4 +135,4 @@ QString GlslCompleter::insertParagraphSeparator(const QTextCursor &cursor) const } } // namespace Internal -} // namespace GLSLEditor +} // namespace GlslEditor diff --git a/src/plugins/glsleditor/glslautocompleter.h b/src/plugins/glsleditor/glslautocompleter.h index 8e33095f10..a4cc753617 100644 --- a/src/plugins/glsleditor/glslautocompleter.h +++ b/src/plugins/glsleditor/glslautocompleter.h @@ -32,7 +32,7 @@ #include <texteditor/autocompleter.h> -namespace GLSLEditor { +namespace GlslEditor { namespace Internal { class GlslCompleter : public TextEditor::AutoCompleter @@ -53,6 +53,6 @@ public: }; } // namespace Internal -} // namespace GLSLEditor +} // namespace GlslEditor #endif // GLSLAUTOCOMPLETER_H diff --git a/src/plugins/glsleditor/glslcompletionassist.cpp b/src/plugins/glsleditor/glslcompletionassist.cpp index 621005dea2..28a7934962 100644 --- a/src/plugins/glsleditor/glslcompletionassist.cpp +++ b/src/plugins/glsleditor/glslcompletionassist.cpp @@ -61,7 +61,7 @@ using namespace TextEditor; -namespace GLSLEditor { +namespace GlslEditor { namespace Internal { enum CompletionOrder { @@ -472,4 +472,4 @@ GlslCompletionAssistInterface::GlslCompletionAssistInterface(QTextDocument *text } } // namespace Internal -} // namespace GLSLEditor +} // namespace GlslEditor diff --git a/src/plugins/glsleditor/glslcompletionassist.h b/src/plugins/glsleditor/glslcompletionassist.h index 4e80f676c4..4ab56aa946 100644 --- a/src/plugins/glsleditor/glslcompletionassist.h +++ b/src/plugins/glsleditor/glslcompletionassist.h @@ -46,7 +46,7 @@ namespace GLSL { class Function; } namespace TextEditor { class BasicProposalItem; } -namespace GLSLEditor { +namespace GlslEditor { namespace Internal { class GlslCompletionAssistInterface; @@ -110,6 +110,6 @@ private: }; } // namespace Internal -} // namespace GLSLEditor +} // namespace GlslEditor #endif // GLSLCOMPLETIONASSIST_H diff --git a/src/plugins/glsleditor/glsleditor.cpp b/src/plugins/glsleditor/glsleditor.cpp index aef9b5a94f..67dbbb0b0c 100644 --- a/src/plugins/glsleditor/glsleditor.cpp +++ b/src/plugins/glsleditor/glsleditor.cpp @@ -75,9 +75,9 @@ using namespace TextEditor; using namespace GLSL; -using namespace GLSLEditor::Constants; +using namespace GlslEditor::Constants; -namespace GLSLEditor { +namespace GlslEditor { namespace Internal { enum { @@ -395,4 +395,4 @@ Core::IEditor *GlslEditorFactory::createEditor() } } // namespace Internal -} // namespace GLSLEditor +} // namespace GlslEditor diff --git a/src/plugins/glsleditor/glsleditor.h b/src/plugins/glsleditor/glsleditor.h index 35140e5bd6..59605bd430 100644 --- a/src/plugins/glsleditor/glsleditor.h +++ b/src/plugins/glsleditor/glsleditor.h @@ -47,7 +47,7 @@ class TranslationUnitAST; class Scope; } // namespace GLSL -namespace GLSLEditor { +namespace GlslEditor { namespace Internal { class GlslEditor; @@ -132,6 +132,6 @@ public: }; } // namespace Internal -} // namespace GLSLEditor +} // namespace GlslEditor #endif // GLSLEDITOR_H diff --git a/src/plugins/glsleditor/glsleditorconstants.h b/src/plugins/glsleditor/glsleditorconstants.h index cd7a94ea4c..b59086d561 100644 --- a/src/plugins/glsleditor/glsleditorconstants.h +++ b/src/plugins/glsleditor/glsleditorconstants.h @@ -32,7 +32,7 @@ #include <QtGlobal> -namespace GLSLEditor { +namespace GlslEditor { namespace Constants { const char M_CONTEXT[] = "GLSL Editor.ContextMenu"; @@ -53,6 +53,6 @@ const char WIZARD_CATEGORY_GLSL[] = "U.GLSL"; const char WIZARD_TR_CATEGORY_GLSL[] = QT_TRANSLATE_NOOP("GLSLEditor", "GLSL"); } // namespace Constants -} // namespace GLSLEditor +} // namespace GlslEditor #endif // GLSLEDITOR_CONSTANTS_H diff --git a/src/plugins/glsleditor/glsleditorplugin.cpp b/src/plugins/glsleditor/glsleditorplugin.cpp index f1a5b4fc28..2973c0a5bc 100644 --- a/src/plugins/glsleditor/glsleditorplugin.cpp +++ b/src/plugins/glsleditor/glsleditorplugin.cpp @@ -68,7 +68,7 @@ using namespace Core; using namespace TextEditor; -namespace GLSLEditor { +namespace GlslEditor { namespace Internal { class GlslEditorPluginPrivate @@ -132,7 +132,7 @@ bool GlslEditorPlugin::initialize(const QStringList & /*arguments*/, QString *er addAutoReleasedObject(new GlslEditorFactory); addAutoReleasedObject(new GlslCompletionAssistProvider); - ActionContainer *contextMenu = ActionManager::createMenu(GLSLEditor::Constants::M_CONTEXT); + ActionContainer *contextMenu = ActionManager::createMenu(Constants::M_CONTEXT); ActionContainer *glslToolsMenu = ActionManager::createMenu(Id(Constants::M_TOOLS_GLSL)); glslToolsMenu->setOnAllDisabledBehavior(ActionContainer::Hide); QMenu *menu = glslToolsMenu->menu(); @@ -213,12 +213,12 @@ bool GlslEditorPlugin::initialize(const QStringList & /*arguments*/, QString *er auto hf = new HighlighterFactory; hf->setProductType<Highlighter>(); - hf->setId(GLSLEditor::Constants::C_GLSLEDITOR_ID); - hf->addMimeType(GLSLEditor::Constants::GLSL_MIMETYPE); - hf->addMimeType(GLSLEditor::Constants::GLSL_MIMETYPE_VERT); - hf->addMimeType(GLSLEditor::Constants::GLSL_MIMETYPE_FRAG); - hf->addMimeType(GLSLEditor::Constants::GLSL_MIMETYPE_VERT_ES); - hf->addMimeType(GLSLEditor::Constants::GLSL_MIMETYPE_FRAG_ES); + hf->setId(Constants::C_GLSLEDITOR_ID); + hf->addMimeType(Constants::GLSL_MIMETYPE); + hf->addMimeType(Constants::GLSL_MIMETYPE_VERT); + hf->addMimeType(Constants::GLSL_MIMETYPE_FRAG); + hf->addMimeType(Constants::GLSL_MIMETYPE_VERT_ES); + hf->addMimeType(Constants::GLSL_MIMETYPE_FRAG_ES); addAutoReleasedObject(hf); return true; @@ -287,6 +287,6 @@ const GlslEditorPlugin::InitFile *GlslEditorPlugin::shaderInit(int variant) } } // namespace Internal -} // namespace GLSLEditor +} // namespace GlslEditor -Q_EXPORT_PLUGIN(GLSLEditor::Internal::GLSLEditorPlugin) +Q_EXPORT_PLUGIN(GlslEditor::Internal::GlslEditorPlugin) diff --git a/src/plugins/glsleditor/glsleditorplugin.h b/src/plugins/glsleditor/glsleditorplugin.h index 3a40f07844..b1299fa729 100644 --- a/src/plugins/glsleditor/glsleditorplugin.h +++ b/src/plugins/glsleditor/glsleditorplugin.h @@ -33,7 +33,7 @@ #include <extensionsystem/iplugin.h> #include <glsl/glsl.h> -namespace GLSLEditor { +namespace GlslEditor { namespace Internal { class GlslEditorWidget; @@ -70,6 +70,6 @@ public: }; } // namespace Internal -} // namespace GLSLEditor +} // namespace GlslEditor #endif // GLSLEDITORPLUGIN_H diff --git a/src/plugins/glsleditor/glslfilewizard.cpp b/src/plugins/glsleditor/glslfilewizard.cpp index d987ab30e1..05514157eb 100644 --- a/src/plugins/glsleditor/glslfilewizard.cpp +++ b/src/plugins/glsleditor/glslfilewizard.cpp @@ -43,7 +43,7 @@ using namespace Core; using namespace Utils; -namespace GLSLEditor { +namespace GlslEditor { GlslFileWizard::GlslFileWizard(ShaderType shaderType) : m_shaderType(shaderType) diff --git a/src/plugins/glsleditor/glslfilewizard.h b/src/plugins/glsleditor/glslfilewizard.h index a7ea98bfc7..ca4c50f263 100644 --- a/src/plugins/glsleditor/glslfilewizard.h +++ b/src/plugins/glsleditor/glslfilewizard.h @@ -32,7 +32,7 @@ #include <coreplugin/basefilewizardfactory.h> -namespace GLSLEditor { +namespace GlslEditor { class GlslFileWizard: public Core::BaseFileWizardFactory { @@ -63,6 +63,6 @@ private: ShaderType m_shaderType; }; -} // namespace GLSLEditor +} // namespace GlslEditor #endif // GLSLFILEWIZARD_H diff --git a/src/plugins/glsleditor/glslhighlighter.cpp b/src/plugins/glsleditor/glslhighlighter.cpp index e54527240d..4b98fa9493 100644 --- a/src/plugins/glsleditor/glslhighlighter.cpp +++ b/src/plugins/glsleditor/glslhighlighter.cpp @@ -35,8 +35,8 @@ #include <QDebug> -using namespace GLSLEditor; -using namespace GLSLEditor::Internal; +using namespace GlslEditor; +using namespace GlslEditor::Internal; using namespace TextEditor; Highlighter::Highlighter(QTextDocument *parent) diff --git a/src/plugins/glsleditor/glslhighlighter.h b/src/plugins/glsleditor/glslhighlighter.h index 5e85c50e1b..d979bc639f 100644 --- a/src/plugins/glsleditor/glslhighlighter.h +++ b/src/plugins/glsleditor/glslhighlighter.h @@ -31,7 +31,7 @@ #include <texteditor/syntaxhighlighter.h> -namespace GLSLEditor { +namespace GlslEditor { namespace Internal { class GlslEditorWidget; @@ -71,6 +71,6 @@ private: }; } // namespace Internal -} // namespace GLSLEditor +} // namespace GlslEditor #endif // GLSLHIGHLIGHTER_H diff --git a/src/plugins/glsleditor/glslhoverhandler.cpp b/src/plugins/glsleditor/glslhoverhandler.cpp index 410831e341..4fa4a114af 100644 --- a/src/plugins/glsleditor/glslhoverhandler.cpp +++ b/src/plugins/glsleditor/glslhoverhandler.cpp @@ -40,7 +40,7 @@ using namespace Core; -namespace GLSLEditor { +namespace GlslEditor { namespace Internal { GlslHoverHandler::GlslHoverHandler(QObject *parent) : BaseHoverHandler(parent) @@ -69,4 +69,4 @@ void GlslHoverHandler::decorateToolTip() } } // namespace Internal -} // namespace GLSLEditor +} // namespace GlslEditor diff --git a/src/plugins/glsleditor/glslhoverhandler.h b/src/plugins/glsleditor/glslhoverhandler.h index 2f50590953..6f56c584b9 100644 --- a/src/plugins/glsleditor/glslhoverhandler.h +++ b/src/plugins/glsleditor/glslhoverhandler.h @@ -38,7 +38,7 @@ namespace Core { class IEditor; } namespace TextEditor { class BaseTextEditor; } -namespace GLSLEditor { +namespace GlslEditor { namespace Internal { class GlslHoverHandler : public TextEditor::BaseHoverHandler @@ -55,6 +55,6 @@ private: }; } // namespace Internal -} // namespace GLSLEditor +} // namespace GlslEditor #endif // GLSLHOVERHANDLER_H diff --git a/src/plugins/glsleditor/glslindenter.cpp b/src/plugins/glsleditor/glslindenter.cpp index a14cd6e3f1..19f404e9b0 100644 --- a/src/plugins/glsleditor/glslindenter.cpp +++ b/src/plugins/glsleditor/glslindenter.cpp @@ -39,7 +39,7 @@ #include <QTextBlock> #include <QTextCursor> -namespace GLSLEditor { +namespace GlslEditor { namespace Internal { GlslIndenter::GlslIndenter() @@ -116,4 +116,4 @@ void GlslIndenter::indent(QTextDocument *doc, } } // namespace Internal -} // namespace GLSLEditor +} // namespace GlslEditor diff --git a/src/plugins/glsleditor/glslindenter.h b/src/plugins/glsleditor/glslindenter.h index 234bf87259..faba05557c 100644 --- a/src/plugins/glsleditor/glslindenter.h +++ b/src/plugins/glsleditor/glslindenter.h @@ -32,7 +32,7 @@ #include <texteditor/indenter.h> -namespace GLSLEditor { +namespace GlslEditor { namespace Internal { class GlslIndenter : public TextEditor::Indenter @@ -53,7 +53,7 @@ public: const TextEditor::TabSettings &tabSettings); }; -} // Internal -} // GLSLEditor +} // namespace Internal +} // namespace GlslEditor #endif // GLSLINDENTER_H diff --git a/src/plugins/glsleditor/reuse.cpp b/src/plugins/glsleditor/reuse.cpp index c1f118341e..5d6266bc21 100644 --- a/src/plugins/glsleditor/reuse.cpp +++ b/src/plugins/glsleditor/reuse.cpp @@ -35,7 +35,7 @@ using namespace GLSL; -namespace GLSLEditor { +namespace GlslEditor { namespace Internal { int languageVariant(const QString &mimeType) @@ -75,6 +75,6 @@ int languageVariant(const QString &mimeType) return variant; } -} // Internal -} // GLSLEditor +} // namespace Internal +} // namespace GlslEditor diff --git a/src/plugins/glsleditor/reuse.h b/src/plugins/glsleditor/reuse.h index 247c0020ca..e0f88973cd 100644 --- a/src/plugins/glsleditor/reuse.h +++ b/src/plugins/glsleditor/reuse.h @@ -32,12 +32,12 @@ #include <QtGlobal> -namespace GLSLEditor { +namespace GlslEditor { namespace Internal { int languageVariant(const QString &mimeType); -} // Internal -} // GLSLEditor +} // namespace Internal +} // namespace GlslEditor #endif // REUSE_H |