diff --git a/src/plugins/cpaster/protocol.cpp b/src/plugins/cpaster/protocol.cpp index abaaba8a01d..deb09e3c860 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 5d5fb11dd04..9c7cf99f545 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 8e33095f100..a4cc7536178 100644 --- a/src/plugins/glsleditor/glslautocompleter.h +++ b/src/plugins/glsleditor/glslautocompleter.h @@ -32,7 +32,7 @@ #include -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 621005dea2d..28a79349627 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 4e80f676c45..4ab56aa9463 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 aef9b5a94f2..67dbbb0b0c2 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 35140e5bd64..59605bd4308 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 cd7a94ea4c5..b59086d561a 100644 --- a/src/plugins/glsleditor/glsleditorconstants.h +++ b/src/plugins/glsleditor/glsleditorconstants.h @@ -32,7 +32,7 @@ #include -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 f1a5b4fc289..2973c0a5bc9 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(); - 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 3a40f07844a..b1299fa7297 100644 --- a/src/plugins/glsleditor/glsleditorplugin.h +++ b/src/plugins/glsleditor/glsleditorplugin.h @@ -33,7 +33,7 @@ #include #include -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 d987ab30e1d..05514157eb8 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 a7ea98bfc7b..ca4c50f2634 100644 --- a/src/plugins/glsleditor/glslfilewizard.h +++ b/src/plugins/glsleditor/glslfilewizard.h @@ -32,7 +32,7 @@ #include -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 e54527240db..4b98fa9493a 100644 --- a/src/plugins/glsleditor/glslhighlighter.cpp +++ b/src/plugins/glsleditor/glslhighlighter.cpp @@ -35,8 +35,8 @@ #include -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 5e85c50e1bb..d979bc639f4 100644 --- a/src/plugins/glsleditor/glslhighlighter.h +++ b/src/plugins/glsleditor/glslhighlighter.h @@ -31,7 +31,7 @@ #include -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 410831e3416..4fa4a114af0 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 2f505909536..6f56c584b97 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 a14cd6e3f1c..19f404e9b00 100644 --- a/src/plugins/glsleditor/glslindenter.cpp +++ b/src/plugins/glsleditor/glslindenter.cpp @@ -39,7 +39,7 @@ #include #include -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 234bf872596..faba05557c3 100644 --- a/src/plugins/glsleditor/glslindenter.h +++ b/src/plugins/glsleditor/glslindenter.h @@ -32,7 +32,7 @@ #include -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 c1f118341e8..5d6266bc216 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 247c0020ca6..e0f88973cde 100644 --- a/src/plugins/glsleditor/reuse.h +++ b/src/plugins/glsleditor/reuse.h @@ -32,12 +32,12 @@ #include -namespace GLSLEditor { +namespace GlslEditor { namespace Internal { int languageVariant(const QString &mimeType); -} // Internal -} // GLSLEditor +} // namespace Internal +} // namespace GlslEditor #endif // REUSE_H