diff --git a/src/plugins/genericeditor/context.cpp b/src/plugins/genericeditor/context.cpp index 0ef788d3767d5324e7d698b97e1fd9ea9910bbd7..75ad3b504025292995adc359e10e75dc71238f3a 100644 --- a/src/plugins/genericeditor/context.cpp +++ b/src/plugins/genericeditor/context.cpp @@ -33,7 +33,7 @@ #include "dynamicrule.h" #include "highlightdefinition.h" -using namespace Highlight; +using namespace GenericEditor; using namespace Internal; Context::Context() : m_fallthrough(false), m_dynamic(false) @@ -128,7 +128,7 @@ bool Context::isDynamic() const void Context::updateDynamicRules(const QStringList &captures) const { - Highlight::Internal::updateDynamicRules(m_rules, captures); + GenericEditor::Internal::updateDynamicRules(m_rules, captures); } void Context::addRule(const QSharedPointer<Rule> &rule) diff --git a/src/plugins/genericeditor/context.h b/src/plugins/genericeditor/context.h index 28dbcbe802aab63e826007f195f57e4f9dfd2c43..aa9db961b92140a250da18dba26cd8a8b1713629 100644 --- a/src/plugins/genericeditor/context.h +++ b/src/plugins/genericeditor/context.h @@ -36,7 +36,7 @@ #include <QtCore/QList> #include <QtCore/QSharedPointer> -namespace Highlight { +namespace GenericEditor { namespace Internal { class Rule; @@ -105,6 +105,6 @@ private: }; } // namespace Internal -} // namespace Highlight +} // namespace GenericEditor #endif // CONTEXT_H diff --git a/src/plugins/genericeditor/dynamicrule.cpp b/src/plugins/genericeditor/dynamicrule.cpp index 887bb0c169e22f00ad1d25fea937853bf60c10ca..1bb063549476a13ef2f76dafeed7beb8c74b74e4 100644 --- a/src/plugins/genericeditor/dynamicrule.cpp +++ b/src/plugins/genericeditor/dynamicrule.cpp @@ -30,7 +30,7 @@ #include "dynamicrule.h" #include "reuse.h" -using namespace Highlight; +using namespace GenericEditor; using namespace Internal; DynamicRule::DynamicRule() : m_active(false) @@ -51,7 +51,7 @@ void DynamicRule::replaceExpressions(const QStringList &captures) updateDynamicRules(childs(), captures); } -namespace Highlight { +namespace GenericEditor { namespace Internal { void updateDynamicRules(const QList<QSharedPointer<Rule> > &rules, const QStringList &captures) @@ -64,4 +64,4 @@ void updateDynamicRules(const QList<QSharedPointer<Rule> > &rules, const QString } } // namespace Internal -} // namespace Highlight +} // namespace GenericEditor diff --git a/src/plugins/genericeditor/dynamicrule.h b/src/plugins/genericeditor/dynamicrule.h index 17650e2c7420df8b2d40cffcce2319c267143b31..1fdeb1ff0b1a54b7a3095d0991b8d3cdc11e597c 100644 --- a/src/plugins/genericeditor/dynamicrule.h +++ b/src/plugins/genericeditor/dynamicrule.h @@ -36,7 +36,7 @@ QT_BEGIN_NAMESPACE class QStringList; QT_END_NAMESPACE -namespace Highlight { +namespace GenericEditor { namespace Internal { class DynamicRule : public Rule @@ -59,6 +59,6 @@ private: void updateDynamicRules(const QList<QSharedPointer<Rule> > &rules, const QStringList &captures); } // namespace Internal -} // namespace Highlight +} // namespace GenericEditor #endif // DYNAMICRULE_H diff --git a/src/plugins/genericeditor/genericeditor.cpp b/src/plugins/genericeditor/editor.cpp similarity index 72% rename from src/plugins/genericeditor/genericeditor.cpp rename to src/plugins/genericeditor/editor.cpp index e442e4aa8809d2123c029d5e1286c1ca07bfa262..18a13c79039288fdd540cf49ef437c1fc3f9f5fa 100644 --- a/src/plugins/genericeditor/genericeditor.cpp +++ b/src/plugins/genericeditor/editor.cpp @@ -27,8 +27,8 @@ ** **************************************************************************/ -#include "genericeditor.h" -#include "generichighlighterconstants.h" +#include "editor.h" +#include "genericeditorconstants.h" #include "genericeditorplugin.h" #include "highlightdefinition.h" #include "highlighter.h" @@ -43,37 +43,37 @@ #include <QtCore/QSharedPointer> #include <QtCore/QFileInfo> -using namespace Highlight; +using namespace GenericEditor; using namespace Internal; -GenericEditorEditable::GenericEditorEditable(GenericEditor *editor) : +EditorEditable::EditorEditable(Editor *editor) : TextEditor::BaseTextEditorEditable(editor) { Core::UniqueIDManager *uidm = Core::UniqueIDManager::instance(); - m_context << uidm->uniqueIdentifier(Highlight::Constants::GENERIC_EDITOR); + m_context << uidm->uniqueIdentifier(GenericEditor::Constants::GENERIC_EDITOR); m_context << uidm->uniqueIdentifier(TextEditor::Constants::C_TEXTEDITOR); } -QString GenericEditorEditable::id() const -{ return QLatin1String(Highlight::Constants::GENERIC_EDITOR); } +QString EditorEditable::id() const +{ return QLatin1String(GenericEditor::Constants::GENERIC_EDITOR); } -QList<int> GenericEditorEditable::context() const +QList<int> EditorEditable::context() const { return m_context; } -bool GenericEditorEditable::isTemporary() const +bool EditorEditable::isTemporary() const { return false; } -bool GenericEditorEditable::duplicateSupported() const +bool EditorEditable::duplicateSupported() const { return true; } -Core::IEditor *GenericEditorEditable::duplicate(QWidget *parent) +Core::IEditor *EditorEditable::duplicate(QWidget *parent) { - GenericEditor *newEditor = new GenericEditor(editor()->mimeType(), parent); + Editor *newEditor = new Editor(editor()->mimeType(), parent); newEditor->duplicateFrom(editor()); return newEditor->editableInterface(); } -bool GenericEditorEditable::open(const QString &fileName) +bool EditorEditable::open(const QString &fileName) { if (TextEditor::BaseTextEditorEditable::open(fileName)) { editor()->setMimeType( @@ -83,8 +83,7 @@ bool GenericEditorEditable::open(const QString &fileName) return false; } -GenericEditor::GenericEditor(const QString &definitionId, QWidget *parent) : - TextEditor::BaseTextEditor(parent) +Editor::Editor(const QString &definitionId, QWidget *parent) : TextEditor::BaseTextEditor(parent) { try { QSharedPointer<HighlightDefinition> definition = @@ -95,8 +94,8 @@ GenericEditor::GenericEditor(const QString &definitionId, QWidget *parent) : } } -TextEditor::BaseTextEditorEditable *GenericEditor::createEditableInterface() +TextEditor::BaseTextEditorEditable *Editor::createEditableInterface() { - GenericEditorEditable *editable = new GenericEditorEditable(this); + EditorEditable *editable = new EditorEditable(this); return editable; } diff --git a/src/plugins/genericeditor/genericeditor.h b/src/plugins/genericeditor/editor.h similarity index 85% rename from src/plugins/genericeditor/genericeditor.h rename to src/plugins/genericeditor/editor.h index 37e798f4751c67326b7ff677e458f45edc7ccc5a..1947d2a5a72c868c320b38eb9c73a69ca065bcc2 100644 --- a/src/plugins/genericeditor/genericeditor.h +++ b/src/plugins/genericeditor/editor.h @@ -38,17 +38,17 @@ QT_BEGIN_NAMESPACE class QString; QT_END_NAMESPACE -namespace Highlight { +namespace GenericEditor { namespace Internal { -class GenericEditor; +class Editor; -class GenericEditorEditable : public TextEditor::BaseTextEditorEditable +class EditorEditable : public TextEditor::BaseTextEditorEditable { Q_OBJECT public: - GenericEditorEditable(GenericEditor *editor); + EditorEditable(Editor *editor); protected: virtual QString id() const; @@ -62,18 +62,18 @@ private: QList<int> m_context; }; -class GenericEditor : public TextEditor::BaseTextEditor +class Editor : public TextEditor::BaseTextEditor { Q_OBJECT public: - GenericEditor(const QString &definitionId, QWidget *parent = 0); + Editor(const QString &definitionId, QWidget *parent = 0); protected: virtual TextEditor::BaseTextEditorEditable *createEditableInterface(); }; } // namespace Internal -} // namespace Highlight +} // namespace GenericEditor #endif // GENERICEDITOR_H diff --git a/src/plugins/genericeditor/genericeditorfactory.cpp b/src/plugins/genericeditor/editorfactory.cpp similarity index 67% rename from src/plugins/genericeditor/genericeditorfactory.cpp rename to src/plugins/genericeditor/editorfactory.cpp index c9c576ee854c235f9c32e25df92fb8f87fe0b784..be64519e7ba24626718967b13f4ca95422c07afc 100644 --- a/src/plugins/genericeditor/genericeditorfactory.cpp +++ b/src/plugins/genericeditor/editorfactory.cpp @@ -27,46 +27,46 @@ ** **************************************************************************/ -#include "genericeditorfactory.h" -#include "generichighlighterconstants.h" -#include "genericeditor.h" +#include "editorfactory.h" +#include "genericeditorconstants.h" +#include "editor.h" #include <coreplugin/editormanager/editormanager.h> -using namespace Highlight; +using namespace GenericEditor; using namespace Internal; -GenericEditorFactory::GenericEditorFactory(QObject *parent) : +EditorFactory::EditorFactory(QObject *parent) : Core::IEditorFactory(parent) {} -GenericEditorFactory::~GenericEditorFactory() +EditorFactory::~EditorFactory() {} -Core::IEditor *GenericEditorFactory::createEditor(QWidget *parent) +Core::IEditor *EditorFactory::createEditor(QWidget *parent) { - GenericEditor *genericEditor = createGenericEditor(parent); + Editor *genericEditor = createGenericEditor(parent); return genericEditor->editableInterface(); } -QString GenericEditorFactory::id() const +QString EditorFactory::id() const { - return QLatin1String(Highlight::Constants::GENERIC_EDITOR); + return QLatin1String(GenericEditor::Constants::GENERIC_EDITOR); } -QStringList GenericEditorFactory::mimeTypes() const +QStringList EditorFactory::mimeTypes() const { return m_mimeTypes; } -QString GenericEditorFactory::displayName() const +QString EditorFactory::displayName() const { - return tr(Highlight::Constants::GENERIC_EDITOR_DISPLAY_NAME); + return tr(GenericEditor::Constants::GENERIC_EDITOR_DISPLAY_NAME); } -Core::IFile *GenericEditorFactory::open(const QString &fileName) +Core::IFile *EditorFactory::open(const QString &fileName) { Core::IEditor *iface = Core::EditorManager::instance()->openEditor(fileName, id()); return iface ? iface->file() : 0; } -void GenericEditorFactory::addMimeType(const QString &mimeType) +void EditorFactory::addMimeType(const QString &mimeType) { m_mimeTypes.append(mimeType); } diff --git a/src/plugins/genericeditor/genericeditorfactory.h b/src/plugins/genericeditor/editorfactory.h similarity index 88% rename from src/plugins/genericeditor/genericeditorfactory.h rename to src/plugins/genericeditor/editorfactory.h index c3d91c803eb0b48909be498089d62f289a27e4a5..8eb42cab5b43cf7c64dcd62fe6fa7983f9ab87ba 100644 --- a/src/plugins/genericeditor/genericeditorfactory.h +++ b/src/plugins/genericeditor/editorfactory.h @@ -34,18 +34,18 @@ #include <QtCore/QStringList> -namespace Highlight { +namespace GenericEditor { namespace Internal { -class GenericEditor; +class Editor; -class GenericEditorFactory : public Core::IEditorFactory +class EditorFactory : public Core::IEditorFactory { Q_OBJECT public: - GenericEditorFactory(QObject *parent = 0); - virtual ~GenericEditorFactory(); + EditorFactory(QObject *parent = 0); + virtual ~EditorFactory(); // Currently there are language specific factores which configure the correct highlighter. // Would it be a good idea if the createEditor method also received the mime type? This would @@ -60,12 +60,12 @@ protected: void addMimeType(const QString &mimeType); private: - virtual GenericEditor *createGenericEditor(QWidget *parent) = 0; + virtual Editor *createGenericEditor(QWidget *parent) = 0; QStringList m_mimeTypes; }; } // namespace Internal -} // namespace Highlight +} // namespace GenericEditor #endif // GENERICEDITORFACTORY_H diff --git a/src/plugins/genericeditor/genericeditor.pro b/src/plugins/genericeditor/genericeditor.pro index 65ee07b5bce061452aadbf4d513956788b649bc5..69bec2850dba9094b20489886a78a4296de58df6 100644 --- a/src/plugins/genericeditor/genericeditor.pro +++ b/src/plugins/genericeditor/genericeditor.pro @@ -8,8 +8,6 @@ CONFIG += help HEADERS += \ genericeditorplugin.h \ progressdata.h \ - genericeditorfactory.h \ - genericeditor.h \ languagespecificfactories.h \ specificrules.h \ rule.h \ @@ -23,13 +21,13 @@ HEADERS += \ highlightdefinition.h \ dynamicrule.h \ context.h \ - genericeditorconstants.h + genericeditorconstants.h \ + editor.h \ + editorfactory.h SOURCES += \ genericeditorplugin.cpp \ progressdata.cpp \ - genericeditorfactory.cpp \ - genericeditor.cpp \ languagespecificfactories.cpp \ specificrules.cpp \ rule.cpp \ @@ -40,7 +38,9 @@ SOURCES += \ highlightdefinitionhandler.cpp \ highlightdefinition.cpp \ dynamicrule.cpp \ - context.cpp + context.cpp \ + editor.cpp \ + editorfactory.cpp OTHER_FILES += GenericEditor.pluginspec GenericEditor.mimetypes.xml diff --git a/src/plugins/genericeditor/genericeditor.qrc b/src/plugins/genericeditor/genericeditor.qrc index 4ecc6a1a5ed2b57f0a630af169c545a18480ba2f..5a57609ba0a0fb619432d2b49cb4bf153ab92550 100644 --- a/src/plugins/genericeditor/genericeditor.qrc +++ b/src/plugins/genericeditor/genericeditor.qrc @@ -7,7 +7,6 @@ <file>XML/java.xml</file> <file>XML/javadoc.xml</file> <file>XML/javascript.xml</file> - <file>XML/language.dtd</file> <file>XML/objectivec.xml</file> <file>XML/perl.xml</file> <file>XML/php.xml</file> diff --git a/src/plugins/genericeditor/genericeditorconstants.h b/src/plugins/genericeditor/genericeditorconstants.h index e898f2d83b32da2c89399ebd434330135b0dd722..6109d4cc0a757f8c7f52ebf7ac4ff8485f33ad50 100644 --- a/src/plugins/genericeditor/genericeditorconstants.h +++ b/src/plugins/genericeditor/genericeditorconstants.h @@ -27,12 +27,12 @@ ** **************************************************************************/ -#ifndef GENERICHIGHLIGHTERCONSTANTS_H -#define GENERICHIGHLIGHTERCONSTANTS_H +#ifndef GENERICEDITORCONSTANTS_H +#define GENERICEDITORCONSTANTS_H #include <QtCore/QtGlobal> -namespace Highlight { +namespace GenericEditor { namespace Constants { const char * const GENERIC_EDITOR = "GenericEditorPlugin.GenericEditor"; @@ -57,6 +57,6 @@ const char * const SQL_MIMETYPE = "text/x-sql"; const char * const TCL_MIMETYPE = "application/x-tcl"; } // namespace Constants -} // namespace Highlight +} // namespace GenericEditor -#endif // GENERICHIGHLIGHTERCONSTANTS_H +#endif // GENERICEDITORCONSTANTS_H diff --git a/src/plugins/genericeditor/genericeditorplugin.cpp b/src/plugins/genericeditor/genericeditorplugin.cpp index a75979ae1e21624efcb1ba72025e9da2badb3b7b..ad2d72cf09971233fc75230c47c7ad86e63561db 100644 --- a/src/plugins/genericeditor/genericeditorplugin.cpp +++ b/src/plugins/genericeditor/genericeditorplugin.cpp @@ -45,7 +45,7 @@ #include <QtXml/QXmlSimpleReader> #include <QtXml/QXmlInputSource> -using namespace Highlight; +using namespace GenericEditor; using namespace Internal; const QLatin1String GenericEditorPlugin::kAlertDefinitionId(":/genericeditor/XML/alert.xml"); @@ -80,22 +80,22 @@ GenericEditorPlugin::GenericEditorPlugin() //Todo - m_idByMimeType.insert(Highlight::Constants::C_HEADER_MIMETYPE, kCDefinitionId); - m_idByMimeType.insert(Highlight::Constants::C_SOURCE_MIMETYPE, kCDefinitionId); - m_idByMimeType.insert(Highlight::Constants::CPP_HEADER_MIMETYPE, kCppDefinitionId); - m_idByMimeType.insert(Highlight::Constants::CPP_SOURCE_MIMETYPE, kCppDefinitionId); - m_idByMimeType.insert(Highlight::Constants::CSS_MIMETYPE, kCssDefinitionId); - m_idByMimeType.insert(Highlight::Constants::FORTRAN_MIMETYPE, kFortranDefinitionId); - m_idByMimeType.insert(Highlight::Constants::HTML_MIMETYPE, kHtmlDefinitionId); - m_idByMimeType.insert(Highlight::Constants::JAVA_MIMETYPE, kJavaDefinitionId); - m_idByMimeType.insert(Highlight::Constants::JAVASCRIPT_MIMETYPE, kJavascriptDefinitionId); - m_idByMimeType.insert(Highlight::Constants::OBJECTIVEC_MIMETYPE, kObjectiveCDefinitionId); - m_idByMimeType.insert(Highlight::Constants::PERL_MIMETYPE, kPerlDefinitionId); - m_idByMimeType.insert(Highlight::Constants::PHP_MIMETYPE, kPhpDefinitionId); - m_idByMimeType.insert(Highlight::Constants::PYTHON_MIMETYPE, kPythonDefinitionId); - m_idByMimeType.insert(Highlight::Constants::RUBY_MIMETYPE, kRubyDefinitionId); - m_idByMimeType.insert(Highlight::Constants::SQL_MIMETYPE, kSqlDefinitionId); - m_idByMimeType.insert(Highlight::Constants::TCL_MIMETYPE, kTclDefinitionId); + m_idByMimeType.insert(GenericEditor::Constants::C_HEADER_MIMETYPE, kCDefinitionId); + m_idByMimeType.insert(GenericEditor::Constants::C_SOURCE_MIMETYPE, kCDefinitionId); + m_idByMimeType.insert(GenericEditor::Constants::CPP_HEADER_MIMETYPE, kCppDefinitionId); + m_idByMimeType.insert(GenericEditor::Constants::CPP_SOURCE_MIMETYPE, kCppDefinitionId); + m_idByMimeType.insert(GenericEditor::Constants::CSS_MIMETYPE, kCssDefinitionId); + m_idByMimeType.insert(GenericEditor::Constants::FORTRAN_MIMETYPE, kFortranDefinitionId); + m_idByMimeType.insert(GenericEditor::Constants::HTML_MIMETYPE, kHtmlDefinitionId); + m_idByMimeType.insert(GenericEditor::Constants::JAVA_MIMETYPE, kJavaDefinitionId); + m_idByMimeType.insert(GenericEditor::Constants::JAVASCRIPT_MIMETYPE, kJavascriptDefinitionId); + m_idByMimeType.insert(GenericEditor::Constants::OBJECTIVEC_MIMETYPE, kObjectiveCDefinitionId); + m_idByMimeType.insert(GenericEditor::Constants::PERL_MIMETYPE, kPerlDefinitionId); + m_idByMimeType.insert(GenericEditor::Constants::PHP_MIMETYPE, kPhpDefinitionId); + m_idByMimeType.insert(GenericEditor::Constants::PYTHON_MIMETYPE, kPythonDefinitionId); + m_idByMimeType.insert(GenericEditor::Constants::RUBY_MIMETYPE, kRubyDefinitionId); + m_idByMimeType.insert(GenericEditor::Constants::SQL_MIMETYPE, kSqlDefinitionId); + m_idByMimeType.insert(GenericEditor::Constants::TCL_MIMETYPE, kTclDefinitionId); m_idByName.insert(QLatin1String("alerts"), kAlertDefinitionId); m_idByName.insert(QLatin1String("c"), kCDefinitionId); diff --git a/src/plugins/genericeditor/genericeditorplugin.h b/src/plugins/genericeditor/genericeditorplugin.h index 12fceb5bcba89931563709607282a8c08f8260b7..8e32e5cf80978c3c8f769b87ebc70eced94c95e8 100644 --- a/src/plugins/genericeditor/genericeditorplugin.h +++ b/src/plugins/genericeditor/genericeditorplugin.h @@ -38,7 +38,7 @@ #include <QtCore/QSet> #include <QtCore/QSharedPointer> -namespace Highlight { +namespace GenericEditor { namespace Internal { class HighlightDefinition; @@ -96,6 +96,6 @@ private: }; } // namespace Internal -} // namespace Highlight +} // namespace GenericEditor #endif // GENERICEDITORPLUGIN_H diff --git a/src/plugins/genericeditor/highlightdefinition.cpp b/src/plugins/genericeditor/highlightdefinition.cpp index fe808354c8deaa0e0a4371b0e74bd9b0099a3c82..f489e926f22141a8ae12e50937c11de94306143a 100644 --- a/src/plugins/genericeditor/highlightdefinition.cpp +++ b/src/plugins/genericeditor/highlightdefinition.cpp @@ -36,7 +36,7 @@ #include <QLatin1String> -using namespace Highlight; +using namespace GenericEditor; using namespace Internal; HighlightDefinition::HighlightDefinition() : diff --git a/src/plugins/genericeditor/highlightdefinition.h b/src/plugins/genericeditor/highlightdefinition.h index 5c7c9c45d11f47ec89da11760177feee8cfd6b0d..e3247ac9ef59b776b404aef1de22d641327c185e 100644 --- a/src/plugins/genericeditor/highlightdefinition.h +++ b/src/plugins/genericeditor/highlightdefinition.h @@ -34,7 +34,7 @@ #include <QtCore/QHash> #include <QtCore/QSharedPointer> -namespace Highlight { +namespace GenericEditor { namespace Internal { class KeywordList; @@ -126,6 +126,6 @@ private: }; } // namespace Internal -} // namespace Highlight +} // namespace GenericEditor #endif // HIGHLIGHTDEFINITION_H diff --git a/src/plugins/genericeditor/highlightdefinitionhandler.cpp b/src/plugins/genericeditor/highlightdefinitionhandler.cpp index f562b39b9a49ca8857ee2c73a4aaff9b8b6664c3..6179ca5b5c5581b4587e96854b35d55cffc65f2f 100644 --- a/src/plugins/genericeditor/highlightdefinitionhandler.cpp +++ b/src/plugins/genericeditor/highlightdefinitionhandler.cpp @@ -39,7 +39,7 @@ #include <QLatin1String> -using namespace Highlight; +using namespace GenericEditor; using namespace Internal; namespace { diff --git a/src/plugins/genericeditor/highlightdefinitionhandler.h b/src/plugins/genericeditor/highlightdefinitionhandler.h index 7f9b32a313023ac7a1cabd9761e2da02eb4b5265..150b2627b909ca38094559504d76479ed90d990d 100644 --- a/src/plugins/genericeditor/highlightdefinitionhandler.h +++ b/src/plugins/genericeditor/highlightdefinitionhandler.h @@ -37,7 +37,7 @@ #include <QtXml/QXmlDefaultHandler> -namespace Highlight { +namespace GenericEditor { namespace Internal { class KeywordList; @@ -102,6 +102,6 @@ private: }; } // namespace Internal -} // namespace Highlight +} // namespace GenericEditor #endif // HIGHLIGHTDEFINITIONHANDLER_H diff --git a/src/plugins/genericeditor/highlighter.cpp b/src/plugins/genericeditor/highlighter.cpp index 6c715d2cca59203b4b52ade52e7cf6492cc07846..fc3784103db052938b1bb3bcbe85d8457260d9b7 100644 --- a/src/plugins/genericeditor/highlighter.cpp +++ b/src/plugins/genericeditor/highlighter.cpp @@ -37,7 +37,7 @@ #include <QtCore/QStringList> -using namespace Highlight; +using namespace GenericEditor; using namespace Internal; namespace { diff --git a/src/plugins/genericeditor/highlighter.h b/src/plugins/genericeditor/highlighter.h index de736538d15ee9705e8b25581f9cece390933e40..44018dbb5f7c491bb6c89f8448404994585b71cf 100644 --- a/src/plugins/genericeditor/highlighter.h +++ b/src/plugins/genericeditor/highlighter.h @@ -39,7 +39,7 @@ #include <texteditor/basetexteditor.h> -namespace Highlight { +namespace GenericEditor { namespace Internal { class Rule; @@ -139,6 +139,6 @@ private: }; } // namespace Internal -} // namespace Highlight +} // namespace GenericEditor #endif // HIGHLIGHTER_H diff --git a/src/plugins/genericeditor/highlighterexception.h b/src/plugins/genericeditor/highlighterexception.h index 6e45c96e06a879a931c0388e0f6a31d5f5c69b8b..c25f34795bcac8883516d610f056487058c56f05 100644 --- a/src/plugins/genericeditor/highlighterexception.h +++ b/src/plugins/genericeditor/highlighterexception.h @@ -30,12 +30,12 @@ #ifndef HIGHLIGHTEREXCEPTION_H #define HIGHLIGHTEREXCEPTION_H -namespace Highlight { +namespace GenericEditor { namespace Internal { class HighlighterException {}; } // namespace Internal -} // namespace Highlight +} // namespace GenericEditor #endif // HIGHLIGHTEREXCEPTION_H diff --git a/src/plugins/genericeditor/includerulesinstruction.cpp b/src/plugins/genericeditor/includerulesinstruction.cpp index 7db35c06d26a16c16c47b161df994a241c6b05d5..85c99e02627f183fea6848226dd7fd40d46bac09 100644 --- a/src/plugins/genericeditor/includerulesinstruction.cpp +++ b/src/plugins/genericeditor/includerulesinstruction.cpp @@ -30,7 +30,7 @@ #include "includerulesinstruction.h" #include "reuse.h" -using namespace Highlight; +using namespace GenericEditor; using namespace Internal; IncludeRulesInstruction::IncludeRulesInstruction(const QString &context, diff --git a/src/plugins/genericeditor/includerulesinstruction.h b/src/plugins/genericeditor/includerulesinstruction.h index 00472a1378468e78ce2916d83be81ddcc357f31e..66823d737f57edd0782b3e010eab47036db6466c 100644 --- a/src/plugins/genericeditor/includerulesinstruction.h +++ b/src/plugins/genericeditor/includerulesinstruction.h @@ -32,7 +32,7 @@ #include <QtCore/QString> -namespace Highlight { +namespace GenericEditor { namespace Internal { class IncludeRulesInstruction @@ -51,6 +51,6 @@ private: }; } // namespace Internal -} // namespace Highlight +} // namespace GenericEditor #endif // INCLUDERULESINSTRUCTION_H diff --git a/src/plugins/genericeditor/itemdata.cpp b/src/plugins/genericeditor/itemdata.cpp index 74e5ca7dbc666708e13d6a33e6a683a6b341fb0e..62ed36f01c1640d6aff2010f29a5553502a237ab 100644 --- a/src/plugins/genericeditor/itemdata.cpp +++ b/src/plugins/genericeditor/itemdata.cpp @@ -30,7 +30,7 @@ #include "itemdata.h" #include "reuse.h" -using namespace Highlight; +using namespace GenericEditor; using namespace Internal; namespace { diff --git a/src/plugins/genericeditor/itemdata.h b/src/plugins/genericeditor/itemdata.h index ffb1b0353e064406a77b0fc02f9fca128a60ff6d..67a968a4bcfa3574182621af73ffee9b903c0af8 100644 --- a/src/plugins/genericeditor/itemdata.h +++ b/src/plugins/genericeditor/itemdata.h @@ -36,7 +36,7 @@ #include <QtGui/QFont> #include <QtGui/QTextCharFormat> -namespace Highlight { +namespace GenericEditor { namespace Internal { class ItemData @@ -64,6 +64,6 @@ private: }; } // namespace Internal -} // namespace Highlight +} // namespace GenericEditor #endif // ITEMDATA_H diff --git a/src/plugins/genericeditor/keywordlist.cpp b/src/plugins/genericeditor/keywordlist.cpp index 41de091323f5d5681d8b82fe66f5dc882bec61c0..70ef6ac614bdf99e22441c17a83a787ba7b61807 100644 --- a/src/plugins/genericeditor/keywordlist.cpp +++ b/src/plugins/genericeditor/keywordlist.cpp @@ -29,7 +29,7 @@ #include "keywordlist.h" -using namespace Highlight; +using namespace GenericEditor; using namespace Internal; void KeywordList::addKeyword(const QString &keyword) diff --git a/src/plugins/genericeditor/keywordlist.h b/src/plugins/genericeditor/keywordlist.h index 1c072e0e6098367ef0b32e6dea5b83ef9cc64a71..c76a7311beb06a32e5b3d0609b45001f2bbd63c7 100644 --- a/src/plugins/genericeditor/keywordlist.h +++ b/src/plugins/genericeditor/keywordlist.h @@ -33,7 +33,7 @@ #include <QtCore/QString> #include <QtCore/QSet> -namespace Highlight { +namespace GenericEditor { namespace Internal { class KeywordList @@ -48,6 +48,6 @@ private: }; } // namespace Internal -} // namespace Highlight +} // namespace GenericEditor #endif // KEYWORDLIST_H diff --git a/src/plugins/genericeditor/languagespecificfactories.cpp b/src/plugins/genericeditor/languagespecificfactories.cpp index 6710afe95cad8b42489d88d6cc6ed89639461771..026ea290a605b64075a60240655efaae594a3a2b 100644 --- a/src/plugins/genericeditor/languagespecificfactories.cpp +++ b/src/plugins/genericeditor/languagespecificfactories.cpp @@ -29,115 +29,115 @@ #include "languagespecificfactories.h" #include "genericeditorconstants.h" -#include "genericeditor.h" +#include "editor.h" #include "genericeditorplugin.h" #include <coreplugin/icore.h> #include <coreplugin/mimedatabase.h> -using namespace Highlight; +using namespace GenericEditor; using namespace Internal; // C -CFactory::CFactory(QObject *parent) : GenericEditorFactory(parent) +CFactory::CFactory(QObject *parent) : EditorFactory(parent) { - addMimeType(QLatin1String(Highlight::Constants::C_HEADER_MIMETYPE)); - addMimeType(QLatin1String(Highlight::Constants::C_SOURCE_MIMETYPE)); + addMimeType(QLatin1String(GenericEditor::Constants::C_HEADER_MIMETYPE)); + addMimeType(QLatin1String(GenericEditor::Constants::C_SOURCE_MIMETYPE)); } -GenericEditor *CFactory::createGenericEditor(QWidget *parent) -{ return new GenericEditor(GenericEditorPlugin::kCDefinitionId, parent); } +Editor *CFactory::createGenericEditor(QWidget *parent) +{ return new Editor(GenericEditorPlugin::kCDefinitionId, parent); } // C++ -CppFactory::CppFactory(QObject *parent) : GenericEditorFactory(parent) +CppFactory::CppFactory(QObject *parent) : EditorFactory(parent) { - addMimeType(QLatin1String(Highlight::Constants::CPP_HEADER_MIMETYPE)); - addMimeType(QLatin1String(Highlight::Constants::CPP_SOURCE_MIMETYPE)); + addMimeType(QLatin1String(GenericEditor::Constants::CPP_HEADER_MIMETYPE)); + addMimeType(QLatin1String(GenericEditor::Constants::CPP_SOURCE_MIMETYPE)); } -GenericEditor *CppFactory::createGenericEditor(QWidget *parent) -{ return new GenericEditor(GenericEditorPlugin::kCppDefinitionId, parent); } +Editor *CppFactory::createGenericEditor(QWidget *parent) +{ return new Editor(GenericEditorPlugin::kCppDefinitionId, parent); } // Css -CssFactory::CssFactory(QObject *parent) : GenericEditorFactory(parent) -{ addMimeType(QLatin1String(Highlight::Constants::CSS_MIMETYPE)); } +CssFactory::CssFactory(QObject *parent) : EditorFactory(parent) +{ addMimeType(QLatin1String(GenericEditor::Constants::CSS_MIMETYPE)); } -GenericEditor *CssFactory::createGenericEditor(QWidget *parent) -{ return new GenericEditor(GenericEditorPlugin::kCssDefinitionId, parent); } +Editor *CssFactory::createGenericEditor(QWidget *parent) +{ return new Editor(GenericEditorPlugin::kCssDefinitionId, parent); } // Fortran -FortranFactory::FortranFactory(QObject *parent) : GenericEditorFactory(parent) -{ addMimeType(QLatin1String(Highlight::Constants::FORTRAN_MIMETYPE)); } +FortranFactory::FortranFactory(QObject *parent) : EditorFactory(parent) +{ addMimeType(QLatin1String(GenericEditor::Constants::FORTRAN_MIMETYPE)); } -GenericEditor *FortranFactory::createGenericEditor(QWidget *parent) -{ return new GenericEditor(GenericEditorPlugin::kFortranDefinitionId, parent); } +Editor *FortranFactory::createGenericEditor(QWidget *parent) +{ return new Editor(GenericEditorPlugin::kFortranDefinitionId, parent); } // Html -HtmlFactory::HtmlFactory(QObject *parent) : GenericEditorFactory(parent) -{ addMimeType(QLatin1String(Highlight::Constants::HTML_MIMETYPE)); } +HtmlFactory::HtmlFactory(QObject *parent) : EditorFactory(parent) +{ addMimeType(QLatin1String(GenericEditor::Constants::HTML_MIMETYPE)); } -GenericEditor *HtmlFactory::createGenericEditor(QWidget *parent) -{ return new GenericEditor(GenericEditorPlugin::kHtmlDefinitionId, parent); } +Editor *HtmlFactory::createGenericEditor(QWidget *parent) +{ return new Editor(GenericEditorPlugin::kHtmlDefinitionId, parent); } // Java -JavaFactory::JavaFactory(QObject *parent) : GenericEditorFactory(parent) -{ addMimeType(QLatin1String(Highlight::Constants::JAVA_MIMETYPE)); } +JavaFactory::JavaFactory(QObject *parent) : EditorFactory(parent) +{ addMimeType(QLatin1String(GenericEditor::Constants::JAVA_MIMETYPE)); } -GenericEditor *JavaFactory::createGenericEditor(QWidget *parent) -{ return new GenericEditor(GenericEditorPlugin::kJavaDefinitionId, parent); } +Editor *JavaFactory::createGenericEditor(QWidget *parent) +{ return new Editor(GenericEditorPlugin::kJavaDefinitionId, parent); } // Javascript -JavascriptFactory::JavascriptFactory(QObject *parent) : GenericEditorFactory(parent) -{ addMimeType(QLatin1String(Highlight::Constants::JAVASCRIPT_MIMETYPE)); } +JavascriptFactory::JavascriptFactory(QObject *parent) : EditorFactory(parent) +{ addMimeType(QLatin1String(GenericEditor::Constants::JAVASCRIPT_MIMETYPE)); } -GenericEditor *JavascriptFactory::createGenericEditor(QWidget *parent) -{ return new GenericEditor(GenericEditorPlugin::kJavascriptDefinitionId, parent); } +Editor *JavascriptFactory::createGenericEditor(QWidget *parent) +{ return new Editor(GenericEditorPlugin::kJavascriptDefinitionId, parent); } // ObjectiveC -ObjectiveCFactory::ObjectiveCFactory(QObject *parent) : GenericEditorFactory(parent) -{ addMimeType(QLatin1String(Highlight::Constants::OBJECTIVEC_MIMETYPE)); } +ObjectiveCFactory::ObjectiveCFactory(QObject *parent) : EditorFactory(parent) +{ addMimeType(QLatin1String(GenericEditor::Constants::OBJECTIVEC_MIMETYPE)); } -GenericEditor *ObjectiveCFactory::createGenericEditor(QWidget *parent) -{ return new GenericEditor(GenericEditorPlugin::kObjectiveCDefinitionId, parent); } +Editor *ObjectiveCFactory::createGenericEditor(QWidget *parent) +{ return new Editor(GenericEditorPlugin::kObjectiveCDefinitionId, parent); } // Perl -PerlFactory::PerlFactory(QObject *parent) : GenericEditorFactory(parent) -{ addMimeType(QLatin1String(Highlight::Constants::PERL_MIMETYPE)); } +PerlFactory::PerlFactory(QObject *parent) : EditorFactory(parent) +{ addMimeType(QLatin1String(GenericEditor::Constants::PERL_MIMETYPE)); } -GenericEditor *PerlFactory::createGenericEditor(QWidget *parent) -{ return new GenericEditor(GenericEditorPlugin::kPerlDefinitionId, parent); } +Editor *PerlFactory::createGenericEditor(QWidget *parent) +{ return new Editor(GenericEditorPlugin::kPerlDefinitionId, parent); } // Php -PhpFactory::PhpFactory(QObject *parent) : GenericEditorFactory(parent) -{ addMimeType(QLatin1String(Highlight::Constants::PHP_MIMETYPE)); } +PhpFactory::PhpFactory(QObject *parent) : EditorFactory(parent) +{ addMimeType(QLatin1String(GenericEditor::Constants::PHP_MIMETYPE)); } -GenericEditor *PhpFactory::createGenericEditor(QWidget *parent) -{ return new GenericEditor(GenericEditorPlugin::kPhpDefinitionId, parent); } +Editor *PhpFactory::createGenericEditor(QWidget *parent) +{ return new Editor(GenericEditorPlugin::kPhpDefinitionId, parent); } // Python -PythonFactory::PythonFactory(QObject *parent) : GenericEditorFactory(parent) -{ addMimeType(QLatin1String(Highlight::Constants::PYTHON_MIMETYPE)); } +PythonFactory::PythonFactory(QObject *parent) : EditorFactory(parent) +{ addMimeType(QLatin1String(GenericEditor::Constants::PYTHON_MIMETYPE)); } -GenericEditor *PythonFactory::createGenericEditor(QWidget *parent) -{ return new GenericEditor(GenericEditorPlugin::kPythonDefinitionId, parent); } +Editor *PythonFactory::createGenericEditor(QWidget *parent) +{ return new Editor(GenericEditorPlugin::kPythonDefinitionId, parent); } // Ruby -RubyFactory::RubyFactory(QObject *parent) : GenericEditorFactory(parent) -{ addMimeType(QLatin1String(Highlight::Constants::RUBY_MIMETYPE)); } +RubyFactory::RubyFactory(QObject *parent) : EditorFactory(parent) +{ addMimeType(QLatin1String(GenericEditor::Constants::RUBY_MIMETYPE)); } -GenericEditor *RubyFactory::createGenericEditor(QWidget *parent) -{ return new GenericEditor(GenericEditorPlugin::kRubyDefinitionId, parent); } +Editor *RubyFactory::createGenericEditor(QWidget *parent) +{ return new Editor(GenericEditorPlugin::kRubyDefinitionId, parent); } // SQL -SqlFactory::SqlFactory(QObject *parent) : GenericEditorFactory(parent) -{ addMimeType(QLatin1String(Highlight::Constants::SQL_MIMETYPE)); } +SqlFactory::SqlFactory(QObject *parent) : EditorFactory(parent) +{ addMimeType(QLatin1String(GenericEditor::Constants::SQL_MIMETYPE)); } -GenericEditor *SqlFactory::createGenericEditor(QWidget *parent) -{ return new GenericEditor(GenericEditorPlugin::kSqlDefinitionId, parent); } +Editor *SqlFactory::createGenericEditor(QWidget *parent) +{ return new Editor(GenericEditorPlugin::kSqlDefinitionId, parent); } // Tcl -TclFactory::TclFactory(QObject *parent) : GenericEditorFactory(parent) -{ addMimeType(QLatin1String(Highlight::Constants::TCL_MIMETYPE)); } +TclFactory::TclFactory(QObject *parent) : EditorFactory(parent) +{ addMimeType(QLatin1String(GenericEditor::Constants::TCL_MIMETYPE)); } -GenericEditor *TclFactory::createGenericEditor(QWidget *parent) -{ return new GenericEditor(GenericEditorPlugin::kTclDefinitionId, parent); } +Editor *TclFactory::createGenericEditor(QWidget *parent) +{ return new Editor(GenericEditorPlugin::kTclDefinitionId, parent); } diff --git a/src/plugins/genericeditor/languagespecificfactories.h b/src/plugins/genericeditor/languagespecificfactories.h index ed27458d13fffbf05b5610ce5d4215ad02b1e027..792bb7f1b9624bc429c2b49ae0ce53100a8b49b8 100644 --- a/src/plugins/genericeditor/languagespecificfactories.h +++ b/src/plugins/genericeditor/languagespecificfactories.h @@ -30,12 +30,12 @@ #ifndef LANGUAGESPECIFICFACTORIES_H #define LANGUAGESPECIFICFACTORIES_H -#include "genericeditorfactory.h" +#include "editorfactory.h" -namespace Highlight { +namespace GenericEditor { namespace Internal { -class CFactory : public GenericEditorFactory +class CFactory : public EditorFactory { Q_OBJECT public: @@ -43,10 +43,10 @@ public: virtual ~CFactory() {} private: - virtual GenericEditor *createGenericEditor(QWidget *parent); + virtual Editor *createGenericEditor(QWidget *parent); }; -class CppFactory : public GenericEditorFactory +class CppFactory : public EditorFactory { Q_OBJECT public: @@ -54,10 +54,10 @@ public: virtual ~CppFactory() {} private: - virtual GenericEditor *createGenericEditor(QWidget *parent); + virtual Editor *createGenericEditor(QWidget *parent); }; -class CssFactory : public GenericEditorFactory +class CssFactory : public EditorFactory { Q_OBJECT public: @@ -65,10 +65,10 @@ public: virtual ~CssFactory() {} private: - virtual GenericEditor *createGenericEditor(QWidget *parent); + virtual Editor *createGenericEditor(QWidget *parent); }; -class FortranFactory : public GenericEditorFactory +class FortranFactory : public EditorFactory { Q_OBJECT public: @@ -76,10 +76,10 @@ public: virtual ~FortranFactory() {} private: - virtual GenericEditor *createGenericEditor(QWidget *parent); + virtual Editor *createGenericEditor(QWidget *parent); }; -class HtmlFactory : public GenericEditorFactory +class HtmlFactory : public EditorFactory { Q_OBJECT public: @@ -87,10 +87,10 @@ public: virtual ~HtmlFactory() {} private: - virtual GenericEditor *createGenericEditor(QWidget *parent); + virtual Editor *createGenericEditor(QWidget *parent); }; -class JavaFactory : public GenericEditorFactory +class JavaFactory : public EditorFactory { Q_OBJECT public: @@ -98,10 +98,10 @@ public: virtual ~JavaFactory() {} private: - virtual GenericEditor *createGenericEditor(QWidget *parent); + virtual Editor *createGenericEditor(QWidget *parent); }; -class JavascriptFactory : public GenericEditorFactory +class JavascriptFactory : public EditorFactory { Q_OBJECT public: @@ -109,10 +109,10 @@ public: virtual ~JavascriptFactory() {} private: - virtual GenericEditor *createGenericEditor(QWidget *parent); + virtual Editor *createGenericEditor(QWidget *parent); }; -class ObjectiveCFactory : public GenericEditorFactory +class ObjectiveCFactory : public EditorFactory { Q_OBJECT public: @@ -120,10 +120,10 @@ public: virtual ~ObjectiveCFactory() {} private: - virtual GenericEditor *createGenericEditor(QWidget *parent); + virtual Editor *createGenericEditor(QWidget *parent); }; -class PerlFactory : public GenericEditorFactory +class PerlFactory : public EditorFactory { Q_OBJECT public: @@ -131,10 +131,10 @@ public: virtual ~PerlFactory() {} private: - virtual GenericEditor *createGenericEditor(QWidget *parent); + virtual Editor *createGenericEditor(QWidget *parent); }; -class PhpFactory : public GenericEditorFactory +class PhpFactory : public EditorFactory { Q_OBJECT public: @@ -142,10 +142,10 @@ public: virtual ~PhpFactory() {} private: - virtual GenericEditor *createGenericEditor(QWidget *parent); + virtual Editor *createGenericEditor(QWidget *parent); }; -class PythonFactory : public GenericEditorFactory +class PythonFactory : public EditorFactory { Q_OBJECT public: @@ -153,10 +153,10 @@ public: virtual ~PythonFactory() {} private: - virtual GenericEditor *createGenericEditor(QWidget *parent); + virtual Editor *createGenericEditor(QWidget *parent); }; -class RubyFactory : public GenericEditorFactory +class RubyFactory : public EditorFactory { Q_OBJECT public: @@ -164,10 +164,10 @@ public: virtual ~RubyFactory() {} private: - virtual GenericEditor *createGenericEditor(QWidget *parent); + virtual Editor *createGenericEditor(QWidget *parent); }; -class SqlFactory : public GenericEditorFactory +class SqlFactory : public EditorFactory { Q_OBJECT public: @@ -175,10 +175,10 @@ public: virtual ~SqlFactory() {} private: - virtual GenericEditor *createGenericEditor(QWidget *parent); + virtual Editor *createGenericEditor(QWidget *parent); }; -class TclFactory : public GenericEditorFactory +class TclFactory : public EditorFactory { Q_OBJECT public: @@ -186,10 +186,10 @@ public: virtual ~TclFactory() {} private: - virtual GenericEditor *createGenericEditor(QWidget *parent); + virtual Editor *createGenericEditor(QWidget *parent); }; } // namespace Internal -} // namespace Highlight +} // namespace GenericEditor #endif // LANGUAGESPECIFICFACTORIES_H diff --git a/src/plugins/genericeditor/progressdata.cpp b/src/plugins/genericeditor/progressdata.cpp index 47696b043822d9762d6c9b1535c224b9cafbccdb..f751454bfbcf3e5386a57279030fb6ac2fa1e325 100644 --- a/src/plugins/genericeditor/progressdata.cpp +++ b/src/plugins/genericeditor/progressdata.cpp @@ -31,7 +31,7 @@ #include <QtCore/QtGlobal> -using namespace Highlight; +using namespace GenericEditor; using namespace Internal; ProgressData::ProgressData() : diff --git a/src/plugins/genericeditor/progressdata.h b/src/plugins/genericeditor/progressdata.h index d3df90acce1d6ee30e25a342baa3447fbb8c3d2b..6d3d35e95b59a0b13a709b0e104eb122ab7fb0d6 100644 --- a/src/plugins/genericeditor/progressdata.h +++ b/src/plugins/genericeditor/progressdata.h @@ -32,7 +32,7 @@ #include <QtCore/QStringList> -namespace Highlight { +namespace GenericEditor { namespace Internal { class ProgressData @@ -67,6 +67,6 @@ private: }; } // namespace Internal -} // namespace Highgliht +} // namespace GenericEditor #endif // PROGRESSDATA_H diff --git a/src/plugins/genericeditor/reuse.h b/src/plugins/genericeditor/reuse.h index 3bcf39af35257f0cde6e8e2997c00de25ca6ee45..f6c66f4a10a402af1a10a4c3f6c0915936b5f7d7 100644 --- a/src/plugins/genericeditor/reuse.h +++ b/src/plugins/genericeditor/reuse.h @@ -35,7 +35,7 @@ #include <QtCore/QLatin1String> #include <QtCore/QChar> -namespace Highlight { +namespace GenericEditor { namespace Internal { inline bool toBool(const QString &s) @@ -86,6 +86,6 @@ inline void setStartCharacter(QChar &c, const QString &character) } } // namespace Internal -} // namespace Highlight +} // namespace GenericEditor #endif // REUSE_H diff --git a/src/plugins/genericeditor/rule.cpp b/src/plugins/genericeditor/rule.cpp index 31100a1547b6c0a493a2dd07653566bec3871fbf..7c09818571ea760beda28f2db6d6d4293c2f31c4 100644 --- a/src/plugins/genericeditor/rule.cpp +++ b/src/plugins/genericeditor/rule.cpp @@ -37,7 +37,7 @@ #include <functional> -using namespace Highlight; +using namespace GenericEditor; using namespace Internal; const QLatin1Char Rule::kBackSlash('\\'); diff --git a/src/plugins/genericeditor/rule.h b/src/plugins/genericeditor/rule.h index d5c58b821d1f2e7527fa76c083bd2efeafc29bfd..c27d5b09026b163d1a9e69a3458a8b1041d8417a 100644 --- a/src/plugins/genericeditor/rule.h +++ b/src/plugins/genericeditor/rule.h @@ -34,7 +34,7 @@ #include <QtCore/QList> #include <QtCore/QSharedPointer> -namespace Highlight { +namespace GenericEditor { namespace Internal { class ProgressData; @@ -155,6 +155,6 @@ private: }; } // namespace Internal -} // namespace Highlight +} // namespace GenericEditor #endif // RULE_H diff --git a/src/plugins/genericeditor/specificrules.cpp b/src/plugins/genericeditor/specificrules.cpp index 18678ae3fe3bbe8c0b23fdeda621d9c39dbdd1d5..41def9aa25abd7dec4dec9b696bcf28369989108 100644 --- a/src/plugins/genericeditor/specificrules.cpp +++ b/src/plugins/genericeditor/specificrules.cpp @@ -35,7 +35,7 @@ #include <QLatin1Char> -using namespace Highlight; +using namespace GenericEditor; using namespace Internal; namespace { diff --git a/src/plugins/genericeditor/specificrules.h b/src/plugins/genericeditor/specificrules.h index eb27a78c77a36d3d14ff37865a54fb65f9e41bc5..108f88a40730e0eb3f0d474520157a65c9716fc0 100644 --- a/src/plugins/genericeditor/specificrules.h +++ b/src/plugins/genericeditor/specificrules.h @@ -38,7 +38,7 @@ #include <QtCore/QRegExp> #include <QtCore/QSharedPointer> -namespace Highlight { +namespace GenericEditor { namespace Internal { class KeywordList; @@ -283,6 +283,6 @@ private: }; } // namespace Internal -} // namespace Highlight +} // namespace GenericEditor #endif // SPECIFICRULES_H