Commit fe2addf5 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Clean exported headers of the TextEditor plugin.



Change-Id: I1e7dd34ba5a51fb0b34d137dc03add4457b32ed1
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 93bb4889
......@@ -33,7 +33,8 @@
#include "texteditor_global.h"
#include "fontsettings.h"
#include "texteditorconstants.h"
#include "colorscheme.h"
#include "texteditoroptionspage.h"
......@@ -47,6 +48,8 @@ QT_END_NAMESPACE
namespace TextEditor {
class Format;
class FontSettings;
namespace Internal { class FontSettingsPagePrivate; }
// GUI description of a format consisting of id (settings key)
......
......@@ -34,9 +34,9 @@
#include "texteditor_global.h"
#include <QObject>
#include <QVariant>
QT_BEGIN_NAMESPACE
class QVariant;
class QSettings;
QT_END_NAMESPACE
......
......@@ -33,10 +33,9 @@
#include "texteditor_global.h"
#include <coreplugin/id.h>
#include <QObject>
namespace Core { class Id; }
namespace TextEditor {
class ICodeStylePreferences;
......
......@@ -30,9 +30,11 @@
#include "refactoringchanges.h"
#include "texteditor.h"
#include "textdocument.h"
#include <coreplugin/icore.h>
#include <coreplugin/dialogs/readonlyfilesdialog.h>
#include <coreplugin/editormanager/editormanager.h>
#include <utils/qtcassert.h>
#include <utils/fileutils.h>
......
......@@ -30,6 +30,8 @@
#include "simplecodestylepreferences.h"
#include <QVariant>
using namespace TextEditor;
static const char settingsSuffixKey[] = "TabPreferences";
......
......@@ -34,6 +34,7 @@
#include "snippet.h"
#include "snippetscollection.h"
#include "snippetssettings.h"
#include "textdocument.h"
#include "ui_snippetssettingspage.h"
#include <coreplugin/icore.h>
......
......@@ -37,6 +37,8 @@
#include <utils/algorithm.h>
#include <utils/qtcassert.h>
#include <QTextDocument>
#include <QPointer>
#include <qtimer.h>
#include <math.h>
......
......@@ -42,6 +42,8 @@
#include "texteditorconstants.h"
#include "typingsettings.h"
#include <texteditor/generichighlighter/highlighter.h>
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/editormanager/documentmodel.h>
#include <QApplication>
#include <QDir>
......
......@@ -35,8 +35,6 @@
#include <coreplugin/id.h>
#include <coreplugin/textdocument.h>
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/editormanager/ieditor.h>
#include <QList>
#include <QMap>
......
......@@ -29,6 +29,7 @@
****************************************************************************/
#include "textdocumentlayout.h"
#include "textdocument.h"
#include <utils/qtcassert.h>
#include <QDebug>
......
......@@ -33,8 +33,8 @@
#include "texteditor_global.h"
#include "texteditor.h"
#include "textmark.h"
#include "textdocument.h"
#include <QTextBlockUserData>
#include <QPlainTextDocumentLayout>
......
......@@ -30,6 +30,10 @@
#include "texteditor.h"
#include "texteditor_p.h"
#include "displaysettings.h"
#include "marginsettings.h"
#include "fontsettings.h"
#include "texteditoractionhandler.h"
#include "autocompleter.h"
#include "basehoverhandler.h"
......@@ -48,6 +52,7 @@
#include "textdocument.h"
#include "textdocumentlayout.h"
#include "texteditoroverlay.h"
#include "refactoroverlay.h"
#include "texteditorsettings.h"
#include "typingsettings.h"
#include "extraencodingsettings.h"
......
......@@ -31,22 +31,17 @@
#ifndef TEXTEDITOR_H
#define TEXTEDITOR_H
#include "textdocument.h"
#include "codeassist/assistenums.h"
#include "texteditor_global.h"
#include "codeassist/assistenums.h"
#include <texteditor/texteditoractionhandler.h>
#include <coreplugin/textdocument.h>
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/editormanager/ieditor.h>
#include <coreplugin/editormanager/ieditorfactory.h>
#include <coreplugin/find/ifindsupport.h>
#include <utils/uncommentselection.h>
#include <QLabel>
#include <QPlainTextEdit>
#include <QSharedPointer>
#include <functional>
QT_BEGIN_NAMESPACE
......@@ -60,11 +55,12 @@ class QTextBlock;
QT_END_NAMESPACE
namespace TextEditor {
class TextDocument;
class BaseHoverHandler;
class TabSettings;
class RefactorOverlay;
struct RefactorMarker;
class SyntaxHighlighter;
class IAssistMonitorInterface;
class AssistInterface;
class IAssistProvider;
......@@ -211,9 +207,9 @@ public:
TextEditorWidget(QWidget *parent = 0);
~TextEditorWidget();
void setTextDocument(const TextDocumentPtr &doc);
void setTextDocument(const QSharedPointer<TextDocument> &doc);
TextDocument *textDocument() const;
TextDocumentPtr textDocumentPtr() const;
QSharedPointer<TextDocument> textDocumentPtr() const;
// IEditor
virtual bool open(QString *errorString, const QString &fileName, const QString &realFileName);
......
......@@ -31,22 +31,10 @@
#ifndef TEXTEDITOR_P_H
#define TEXTEDITOR_P_H
#include "texteditor.h"
#include "behaviorsettings.h"
#include "displaysettings.h"
#include "marginsettings.h"
#include "fontsettings.h"
#include "refactoroverlay.h"
#include <coreplugin/id.h>
#include <utils/changeset.h>
#include <QBasicTimer>
#include <QSharedPointer>
#include <QPointer>
#include <QScopedPointer>
#include <QTextBlock>
#include <QTimer>
#include "texteditor_global.h"
#include <QList>
namespace TextEditor {
......
......@@ -40,6 +40,7 @@
#include "texteditor.h"
#include "texteditorplugin.h"
#include "textdocument.h"
using namespace TextEditor;
......
......@@ -38,6 +38,7 @@
#include <coreplugin/locator/locatormanager.h>
#include <coreplugin/icore.h>
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/coreconstants.h>
#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/actionmanager/actioncontainer.h>
......
......@@ -33,11 +33,12 @@
#include "texteditor_global.h"
#include <coreplugin/id.h>
#include <QObject>
namespace Core { class IEditor; }
namespace Core {
class Id;
class IEditor;
}
namespace TextEditor {
class TextEditorWidget;
......
......@@ -30,6 +30,7 @@
#include "texteditorsettings.h"
#include "fontsettings.h"
#include "texteditor.h"
#include "behaviorsettings.h"
#include "behaviorsettingspage.h"
......
......@@ -33,7 +33,6 @@
#include "texteditor_global.h"
#include <QObject>
#include <QIcon>
QT_BEGIN_NAMESPACE
......
......@@ -33,10 +33,12 @@
#include "texteditor_global.h"
#include <QTextBlock>
#include <QVariantMap>
QT_BEGIN_NAMESPACE
class QSettings;
class QTextDocument;
class QTextCursor;
QT_END_NAMESPACE
namespace TextEditor {
......
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