Commit 4da06735 authored by Tobias Hunger's avatar Tobias Hunger Committed by hjk

Python: Do not export symbols

Nothing depends on this plugin, so these exports are not needed.

Change-Id: I7a6c1c6fd1dd355c904d2dcb6d3f0522cf30adcd
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 6a4e4cfb
......@@ -45,6 +45,7 @@
#include <QFileInfo>
namespace PythonEditor {
namespace Internal {
PythonEditor::PythonEditor(EditorWidget *editorWidget)
:BaseTextEditor(editorWidget)
......@@ -90,4 +91,5 @@ bool PythonEditor::open(QString *errorString,
return status;
}
} // namespace Internal
} // namespace PythonEditor
......@@ -30,14 +30,14 @@
#ifndef PYTHONEDITOR_EDITOR_H
#define PYTHONEDITOR_EDITOR_H
#include "pythoneditor_global.h"
#include <texteditor/basetexteditor.h>
namespace PythonEditor {
namespace Internal {
class EditorWidget;
class PYEDITOR_EXPORT PythonEditor : public TextEditor::BaseTextEditor
class PythonEditor : public TextEditor::BaseTextEditor
{
Q_OBJECT
......@@ -58,6 +58,7 @@ public:
const QString &realFileName);
};
} // namespace Internal
} // namespace PythonEditor
#endif // PYTHONEDITOR_EDITOR_H
......@@ -7,7 +7,6 @@ RESOURCES += \
pythoneditorplugin.qrc
HEADERS += \
pythoneditor_global.h \
pythoneditorplugin.h \
pythoneditorfactory.h \
pythoneditor.h \
......
......@@ -16,7 +16,6 @@ QtcPlugin {
name: "General"
files: [
"pythoneditor.cpp", "pythoneditor.h",
"pythoneditor_global.h",
"pythoneditorconstants.h",
"pythoneditorfactory.cpp", "pythoneditorfactory.h",
"pythoneditorplugin.cpp", "pythoneditorplugin.h",
......
/****************************************************************************
**
** 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 PYTHONEDITOR_GLOBAL_H
#define PYTHONEDITOR_GLOBAL_H
#include <QtGlobal>
#if defined(PYTHONEDITOR_LIBRARY)
# define PYEDITOR_EXPORT Q_DECL_EXPORT
#else
# define PYEDITOR_EXPORT Q_DECL_IMPORT
#endif
#endif // PYTHONEDITOR_GLOBAL_H
......@@ -39,6 +39,7 @@
#include <QDebug>
namespace PythonEditor {
namespace Internal {
EditorFactory::EditorFactory(QObject *parent)
: Core::IEditorFactory(parent)
......@@ -56,4 +57,5 @@ Core::IEditor *EditorFactory::createEditor(QWidget *parent)
return widget->editor();
}
} // namespace Internal
} // namespace PythonEditor
......@@ -30,12 +30,12 @@
#ifndef PYTHONEDITORFACTORY_H
#define PYTHONEDITORFACTORY_H
#include "pythoneditor_global.h"
#include <coreplugin/editormanager/ieditorfactory.h>
namespace PythonEditor {
namespace Internal {
class PYEDITOR_EXPORT EditorFactory : public Core::IEditorFactory
class EditorFactory : public Core::IEditorFactory
{
Q_OBJECT
......@@ -48,6 +48,7 @@ public:
Core::IEditor *createEditor(QWidget *parent);
};
} // namespace Internal
} // namespace PythonEditor
#endif // PYTHONEDITORFACTORY_H
......@@ -183,6 +183,7 @@ static const char *const LIST_OF_PYTHON_BUILTINS[] = {
};
namespace PythonEditor {
namespace Internal {
PythonEditorPlugin *PythonEditorPlugin::m_instance = 0;
......@@ -280,7 +281,7 @@ QSet<QString> PythonEditorPlugin::builtins()
return instance()->m_builtins;
}
} // namespace Internal
} // namespace PythonEditor
Q_EXPORT_PLUGIN(PythonEditor::PythonEditorPlugin)
Q_EXPORT_PLUGIN(PythonEditor::Internal::PythonEditorPlugin)
......@@ -36,6 +36,7 @@
#include <QScopedPointer>
namespace PythonEditor {
namespace Internal {
class EditorFactory;
class EditorWidget;
......@@ -71,6 +72,7 @@ private:
QSet<QString> m_builtins;
};
} // namespace Internal
} // namespace PythonEditor
#endif // PYTHONEDITOR_PLUGIN_H
......@@ -45,6 +45,7 @@
#include <texteditor/autocompleter.h>
namespace PythonEditor {
namespace Internal {
EditorWidget::EditorWidget(QWidget *parent)
:TextEditor::BaseTextEditorWidget(parent)
......@@ -92,4 +93,5 @@ TextEditor::BaseTextEditor *EditorWidget::createEditor()
return new PythonEditor(this);
}
} // namespace Internal
} // namespace PythonEditor
......@@ -30,14 +30,13 @@
#ifndef PYTHONEDITORWIDGET_H
#define PYTHONEDITORWIDGET_H
#include "pythoneditor_global.h"
#include <texteditor/basetexteditor.h>
#include <utils/uncommentselection.h>
namespace PythonEditor {
namespace Internal {
class PYEDITOR_EXPORT EditorWidget : public TextEditor::BaseTextEditorWidget
class EditorWidget : public TextEditor::BaseTextEditorWidget
{
Q_OBJECT
......@@ -57,6 +56,7 @@ private:
Utils::CommentDefinition m_commentDefinition;
};
} // namespace Internal
} // namespace PythonEditor
#endif // PYTHONEDITORWIDGET_H
......@@ -30,14 +30,13 @@
#ifndef PYTHONHIGHLIGHTER_H
#define PYTHONHIGHLIGHTER_H
#include "../pythoneditor_global.h"
#include <texteditor/syntaxhighlighter.h>
namespace PythonEditor {
namespace Internal { class Scanner; }
class PYEDITOR_EXPORT PythonHighlighter : public TextEditor::SyntaxHighlighter
class PythonHighlighter : public TextEditor::SyntaxHighlighter
{
Q_OBJECT
public:
......
......@@ -30,13 +30,12 @@
#ifndef PYTHONINDENTER_H
#define PYTHONINDENTER_H
#include "../pythoneditor_global.h"
#include <texteditor/indenter.h>
#include <QStringList>
namespace PythonEditor {
class PYEDITOR_EXPORT PythonIndenter : public TextEditor::Indenter
class PythonIndenter : public TextEditor::Indenter
{
public:
PythonIndenter();
......
......@@ -37,6 +37,7 @@
#include <QVBoxLayout>
namespace PythonEditor {
namespace Internal {
ClassNamePage::ClassNamePage(QWidget *parent)
: QWizardPage(parent)
......@@ -91,4 +92,5 @@ void ClassNamePage::slotValidChanged()
}
}
} // namespace Internal
} // namespace PythonEditor
......@@ -36,6 +36,7 @@
namespace Utils { class NewClassWidget; }
namespace PythonEditor {
namespace Internal {
class ClassNamePage : public QWizardPage
{
......@@ -58,6 +59,7 @@ private:
bool m_isValid;
};
} // namespace Internal
} // namespace PythonEditor
#endif // PYTHONEDITOR_CLASSNAMEPAGE_H
......@@ -43,6 +43,7 @@
using namespace ProjectExplorer;
namespace PythonEditor {
namespace Internal {
static Core::BaseFileWizardParameters getDefaultParams()
{
......@@ -120,4 +121,5 @@ Kit *ClassWizard::kitForWizard(const ClassWizardDialog *wizard) const
return KitManager::defaultKit();
}
} // namespace Internal
} // namespace PythonEditor
......@@ -37,6 +37,8 @@ namespace Utils { class NewClassWidget; }
namespace ProjectExplorer { class Kit; }
namespace PythonEditor {
namespace Internal {
class ClassWizardDialog;
class ClassWizard : public Core::BaseFileWizard
......@@ -56,6 +58,7 @@ protected:
ProjectExplorer::Kit *kitForWizard(const ClassWizardDialog *wizard) const;
};
} // namespace Internal
} // namespace PythonEditor
#endif // PYTHONEDITOR_CLASSWIZARD_H
......@@ -34,6 +34,7 @@
#include <coreplugin/basefilewizard.h>
namespace PythonEditor {
namespace Internal {
ClassWizardDialog::ClassWizardDialog(QWidget *parent)
: Utils::Wizard(parent)
......@@ -77,4 +78,5 @@ void ClassWizardDialog::setPath(const QString &path)
m_classNamePage->newClassWidget()->setPath(path);
}
} // namespace Internal
} // namespace PythonEditor
......@@ -36,6 +36,7 @@
#include <QVariantMap>
namespace PythonEditor {
namespace Internal {
class ClassNamePage;
......@@ -67,6 +68,7 @@ private:
QVariantMap m_extraValues;
};
} // namespace Internal
} // namespace PythonEditor
#endif // PYTHONEDITOR_CLASSWIZARDDIALOG_H
......@@ -31,6 +31,7 @@
#include <QSet>
namespace PythonEditor {
namespace Internal {
static const char BASH_RUN_HEADER[] = "#!/usr/bin/env python\n";
static const char ENCODING_HEADER[] = "# -*- coding: utf-8 -*-\n";
......@@ -207,4 +208,5 @@ QString SourceGenerator::moduleForQWidget() const
return QLatin1String("QtWidgets");
}
} // namespace Internal
} // namespace PythonEditor
......@@ -30,14 +30,14 @@
#ifndef PYTHON_SOURCEGENERATOR_H
#define PYTHON_SOURCEGENERATOR_H
#include "../pythoneditor_global.h"
#include <utils/newclasswidget.h>
#include <QSet>
#include <QString>
namespace PythonEditor {
namespace Internal {
class PYEDITOR_EXPORT SourceGenerator
class SourceGenerator
{
public:
enum QtBinding {
......@@ -70,6 +70,7 @@ private:
QtVersion m_pythonQtVersion;
};
} // namespace Internal
} // namespace PythonEditor
#endif // PYTHON_SOURCEGENERATOR_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment