diff options
author | Tobias Hunger <tobias.hunger@digia.com> | 2013-08-23 13:56:24 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2013-08-26 16:25:35 +0200 |
commit | 6a4e4cfb254317708997a40b44853f810a5278a8 (patch) | |
tree | 0ec40deb124a283feecccf528134cb143c471765 | |
parent | a94aba2a97b8906cc8b36bde14a4456a54551e3d (diff) |
GLSLEditor: Remove needlessly exported symbols
... and move code into Internal namespace.
Change-Id: I02a90c33db0ffe574af43bdb8d8e37b4159f8f0f
Reviewed-by: hjk <hjk121@nokiamail.com>
-rw-r--r-- | src/plugins/glsleditor/glsleditor.h | 17 | ||||
-rw-r--r-- | src/plugins/glsleditor/glsleditor.pro | 1 | ||||
-rw-r--r-- | src/plugins/glsleditor/glsleditor.qbs | 1 | ||||
-rw-r--r-- | src/plugins/glsleditor/glsleditor_global.h | 41 | ||||
-rw-r--r-- | src/plugins/glsleditor/glsleditoreditable.h | 4 | ||||
-rw-r--r-- | src/plugins/glsleditor/glsleditorfactory.cpp | 2 | ||||
-rw-r--r-- | src/plugins/glsleditor/glsleditorplugin.cpp | 2 | ||||
-rw-r--r-- | src/plugins/glsleditor/glsleditorplugin.h | 8 | ||||
-rw-r--r-- | src/plugins/glsleditor/glslhighlighter.h | 4 |
9 files changed, 16 insertions, 64 deletions
diff --git a/src/plugins/glsleditor/glsleditor.h b/src/plugins/glsleditor/glsleditor.h index dad0ca2b9ed..269b86eb217 100644 --- a/src/plugins/glsleditor/glsleditor.h +++ b/src/plugins/glsleditor/glsleditor.h @@ -30,8 +30,6 @@ #ifndef GLSLEDITOR_H #define GLSLEDITOR_H -#include "glsleditor_global.h" - #include <texteditor/basetexteditor.h> #include <QSharedPointer> @@ -46,19 +44,17 @@ namespace GLSL { class Engine; class TranslationUnitAST; class Scope; -} +} // namespace GLSL -namespace Core { -class ICore; -} +namespace Core { class ICore; } namespace GLSLEditor { -class GLSLTextEditorWidget; namespace Internal { + class GLSLEditorEditable; -} +class GLSLTextEditorWidget; -class GLSLEDITOR_EXPORT Document +class Document { public: typedef QSharedPointer<Document> Ptr; @@ -87,7 +83,7 @@ private: friend class GLSLTextEditorWidget; }; -class GLSLEDITOR_EXPORT GLSLTextEditorWidget : public TextEditor::BaseTextEditorWidget +class GLSLTextEditorWidget : public TextEditor::BaseTextEditorWidget { Q_OBJECT @@ -127,6 +123,7 @@ private: Document::Ptr m_glslDocument; }; +} // namespace Internal } // namespace GLSLEditor #endif // GLSLEDITOR_H diff --git a/src/plugins/glsleditor/glsleditor.pro b/src/plugins/glsleditor/glsleditor.pro index aef8a138a19..ad353b0b462 100644 --- a/src/plugins/glsleditor/glsleditor.pro +++ b/src/plugins/glsleditor/glsleditor.pro @@ -5,7 +5,6 @@ DEFINES += \ HEADERS += \ glsleditor.h \ -glsleditor_global.h \ glsleditorconstants.h \ glsleditoreditable.h \ glsleditorfactory.h \ diff --git a/src/plugins/glsleditor/glsleditor.qbs b/src/plugins/glsleditor/glsleditor.qbs index c34c479c310..000d22e3fc3 100644 --- a/src/plugins/glsleditor/glsleditor.qbs +++ b/src/plugins/glsleditor/glsleditor.qbs @@ -21,7 +21,6 @@ QtcPlugin { "glsleditor.cpp", "glsleditor.h", "glsleditor.qrc", - "glsleditor_global.h", "glsleditorconstants.h", "glsleditoreditable.cpp", "glsleditoreditable.h", diff --git a/src/plugins/glsleditor/glsleditor_global.h b/src/plugins/glsleditor/glsleditor_global.h deleted file mode 100644 index 94f7a896523..00000000000 --- a/src/plugins/glsleditor/glsleditor_global.h +++ /dev/null @@ -1,41 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/legal -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -****************************************************************************/ - -#ifndef GLSLEDITOR_GLOBAL_H -#define GLSLEDITOR_GLOBAL_H - -#include <QtGlobal> - -#if defined(GLSLEDITOR_LIBRARY) -# define GLSLEDITOR_EXPORT Q_DECL_EXPORT -#else -# define GLSLEDITOR_EXPORT Q_DECL_IMPORT -#endif - -#endif // GLSLEDITOR_GLOBAL_H diff --git a/src/plugins/glsleditor/glsleditoreditable.h b/src/plugins/glsleditor/glsleditoreditable.h index 9b8ecd64546..b9c891232bd 100644 --- a/src/plugins/glsleditor/glsleditoreditable.h +++ b/src/plugins/glsleditor/glsleditoreditable.h @@ -33,10 +33,10 @@ #include <texteditor/basetexteditor.h> namespace GLSLEditor { -class GLSLTextEditorWidget; - namespace Internal { +class GLSLTextEditorWidget; + class GLSLEditorEditable : public TextEditor::BaseTextEditor { Q_OBJECT diff --git a/src/plugins/glsleditor/glsleditorfactory.cpp b/src/plugins/glsleditor/glsleditorfactory.cpp index 5426911ebe6..e163a3ad060 100644 --- a/src/plugins/glsleditor/glsleditorfactory.cpp +++ b/src/plugins/glsleditor/glsleditorfactory.cpp @@ -58,7 +58,7 @@ GLSLEditorFactory::GLSLEditorFactory(QObject *parent) Core::IEditor *GLSLEditorFactory::createEditor(QWidget *parent) { - GLSLEditor::GLSLTextEditorWidget *rc = new GLSLEditor::GLSLTextEditorWidget(parent); + GLSLTextEditorWidget *rc = new GLSLTextEditorWidget(parent); GLSLEditorPlugin::instance()->initializeEditor(rc); return rc->editor(); } diff --git a/src/plugins/glsleditor/glsleditorplugin.cpp b/src/plugins/glsleditor/glsleditorplugin.cpp index 08d44956d5a..9bb1cc6a7f6 100644 --- a/src/plugins/glsleditor/glsleditorplugin.cpp +++ b/src/plugins/glsleditor/glsleditorplugin.cpp @@ -215,7 +215,7 @@ ExtensionSystem::IPlugin::ShutdownFlag GLSLEditorPlugin::aboutToShutdown() return IPlugin::aboutToShutdown(); } -void GLSLEditorPlugin::initializeEditor(GLSLEditor::GLSLTextEditorWidget *editor) +void GLSLEditorPlugin::initializeEditor(GLSLTextEditorWidget *editor) { QTC_CHECK(m_instance); m_actionHandler->setupActions(editor); diff --git a/src/plugins/glsleditor/glsleditorplugin.h b/src/plugins/glsleditor/glsleditorplugin.h index b119cfc9c27..6d97bb6ca01 100644 --- a/src/plugins/glsleditor/glsleditorplugin.h +++ b/src/plugins/glsleditor/glsleditorplugin.h @@ -48,15 +48,13 @@ namespace Core { class Command; class ActionContainer; class ActionManager; -} +} // namespace Core namespace GLSLEditor { - -class GLSLTextEditorWidget; - namespace Internal { class GLSLEditorFactory; +class GLSLTextEditorWidget; class GLSLEditorPlugin : public ExtensionSystem::IPlugin { @@ -74,7 +72,7 @@ public: static GLSLEditorPlugin *instance() { return m_instance; } - void initializeEditor(GLSLEditor::GLSLTextEditorWidget *editor); + void initializeEditor(GLSLTextEditorWidget *editor); struct InitFile { diff --git a/src/plugins/glsleditor/glslhighlighter.h b/src/plugins/glsleditor/glslhighlighter.h index fdc40f97ffb..6dd93c83ab0 100644 --- a/src/plugins/glsleditor/glslhighlighter.h +++ b/src/plugins/glsleditor/glslhighlighter.h @@ -32,10 +32,10 @@ #include <texteditor/syntaxhighlighter.h> namespace GLSLEditor { -class GLSLTextEditorWidget; - namespace Internal { +class GLSLTextEditorWidget; + class Highlighter : public TextEditor::SyntaxHighlighter { Q_OBJECT |