Nim: Cleanup includes and qbs dependencies

Change-Id: I1b6ef9d875a2b0c440e52148340337a3e3c25477
Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2016-06-14 20:33:55 +03:00
committed by Orgad Shaneh
parent 159976062e
commit c74a366df3
29 changed files with 92 additions and 107 deletions

View File

@@ -23,12 +23,12 @@
** **
****************************************************************************/ ****************************************************************************/
#include "editor/nimeditorfactory.h" #include "nimeditorfactory.h"
#include "nimindenter.h"
#include "nimhighlighter.h"
#include "nimconstants.h" #include "../nimconstants.h"
#include "nimplugin.h" #include "../nimplugin.h"
#include "editor/nimindenter.h"
#include "editor/nimhighlighter.h"
#include <texteditor/texteditoractionhandler.h> #include <texteditor/texteditoractionhandler.h>
#include <texteditor/texteditorconstants.h> #include <texteditor/texteditorconstants.h>

View File

@@ -23,9 +23,9 @@
** **
****************************************************************************/ ****************************************************************************/
#include "editor/nimhighlighter.h" #include "nimhighlighter.h"
#include "tools/nimlexer.h" #include "../tools/nimlexer.h"
#include <texteditor/textdocument.h> #include <texteditor/textdocument.h>
#include <texteditor/texteditorconstants.h> #include <texteditor/texteditorconstants.h>

View File

@@ -25,7 +25,7 @@
#pragma once #pragma once
#include "tools/nimlexer.h" #include "../tools/nimlexer.h"
#include <texteditor/syntaxhighlighter.h> #include <texteditor/syntaxhighlighter.h>

View File

@@ -23,9 +23,9 @@
** **
****************************************************************************/ ****************************************************************************/
#include "editor/nimindenter.h" #include "nimindenter.h"
#include "tools/nimlexer.h" #include "../tools/nimlexer.h"
#include <texteditor/icodestylepreferences.h> #include <texteditor/icodestylepreferences.h>
#include <texteditor/tabsettings.h> #include <texteditor/tabsettings.h>

View File

@@ -8,11 +8,7 @@ QtcPlugin {
Depends { name: "Core" } Depends { name: "Core" }
Depends { name: "TextEditor" } Depends { name: "TextEditor" }
Depends { name: "QtSupport" }
Depends { name: "ProjectExplorer" } Depends { name: "ProjectExplorer" }
Depends { name: "cpp" }
cpp.includePaths: ['.']
Group { Group {
name: "General" name: "General"

View File

@@ -23,12 +23,12 @@
** **
****************************************************************************/ ****************************************************************************/
#include "project/nimbuildconfiguration.h" #include "nimbuildconfiguration.h"
#include "nimbuildconfigurationwidget.h"
#include "nimcompilerbuildstep.h"
#include "nimproject.h"
#include "nimconstants.h" #include "../nimconstants.h"
#include "project/nimproject.h"
#include "project/nimbuildconfigurationwidget.h"
#include "project/nimcompilerbuildstep.h"
#include <projectexplorer/namedwidget.h> #include <projectexplorer/namedwidget.h>
#include <projectexplorer/projectexplorerconstants.h> #include <projectexplorer/projectexplorerconstants.h>

View File

@@ -23,14 +23,14 @@
** **
****************************************************************************/ ****************************************************************************/
#include "project/nimbuildconfigurationfactory.h" #include "nimbuildconfigurationfactory.h"
#include "nimbuildconfiguration.h"
#include "nimbuildinfo.h"
#include "nimcompilerbuildstep.h"
#include "nimcompilercleanstep.h"
#include "nimproject.h"
#include "nimconstants.h" #include "../nimconstants.h"
#include "project/nimbuildconfiguration.h"
#include "project/nimbuildinfo.h"
#include "project/nimcompilerbuildstep.h"
#include "project/nimcompilercleanstep.h"
#include "project/nimproject.h"
#include <coreplugin/documentmanager.h> #include <coreplugin/documentmanager.h>
#include <projectexplorer/buildinfo.h> #include <projectexplorer/buildinfo.h>

View File

@@ -23,10 +23,10 @@
** **
****************************************************************************/ ****************************************************************************/
#include "project/nimbuildconfigurationwidget.h" #include "nimbuildconfigurationwidget.h"
#include "nimbuildconfiguration.h"
#include "nimconstants.h" #include "../nimconstants.h"
#include "project/nimbuildconfiguration.h"
#include <utils/pathchooser.h> #include <utils/pathchooser.h>
#include <utils/detailswidget.h> #include <utils/detailswidget.h>

View File

@@ -23,9 +23,8 @@
** **
****************************************************************************/ ****************************************************************************/
#include "project/nimbuildinfo.h" #include "nimbuildinfo.h"
#include "nimbuildconfigurationfactory.h"
#include "project/nimbuildconfigurationfactory.h"
using namespace ProjectExplorer; using namespace ProjectExplorer;

View File

@@ -23,11 +23,11 @@
** **
****************************************************************************/ ****************************************************************************/
#include "project/nimcompilerbuildstep.h" #include "nimcompilerbuildstep.h"
#include "nimbuildconfiguration.h"
#include "nimcompilerbuildstepconfigwidget.h"
#include "nimconstants.h" #include "../nimconstants.h"
#include "project/nimbuildconfiguration.h"
#include "project/nimcompilerbuildstepconfigwidget.h"
#include <projectexplorer/buildconfiguration.h> #include <projectexplorer/buildconfiguration.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>

View File

@@ -23,13 +23,13 @@
** **
****************************************************************************/ ****************************************************************************/
#include "project/nimcompilerbuildstepconfigwidget.h" #include "nimcompilerbuildstepconfigwidget.h"
#include "ui_nimcompilerbuildstepconfigwidget.h" #include "ui_nimcompilerbuildstepconfigwidget.h"
#include "nimbuildconfiguration.h"
#include "nimconstants.h" #include "nimcompilerbuildstep.h"
#include "nimproject.h" #include "nimproject.h"
#include "project/nimbuildconfiguration.h"
#include "project/nimcompilerbuildstep.h" #include "../nimconstants.h"
#include <utils/qtcassert.h> #include <utils/qtcassert.h>

View File

@@ -23,11 +23,11 @@
** **
****************************************************************************/ ****************************************************************************/
#include "project/nimcompilerbuildstepfactory.h" #include "nimbuildconfiguration.h"
#include "nimcompilerbuildstep.h"
#include "nimcompilerbuildstepfactory.h"
#include "nimconstants.h" #include "../nimconstants.h"
#include "project/nimbuildconfiguration.h"
#include "project/nimcompilerbuildstep.h"
#include <projectexplorer/projectexplorerconstants.h> #include <projectexplorer/projectexplorerconstants.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>

View File

@@ -23,11 +23,11 @@
** **
****************************************************************************/ ****************************************************************************/
#include "project/nimcompilercleanstep.h" #include "nimcompilercleanstep.h"
#include "nimbuildconfiguration.h"
#include "nimcompilercleanstepconfigwidget.h"
#include "nimconstants.h" #include "../nimconstants.h"
#include "project/nimbuildconfiguration.h"
#include "project/nimcompilercleanstepconfigwidget.h"
#include <utils/qtcassert.h> #include <utils/qtcassert.h>

View File

@@ -23,11 +23,11 @@
** **
****************************************************************************/ ****************************************************************************/
#include "project/nimcompilercleanstepconfigwidget.h" #include "nimcompilercleanstepconfigwidget.h"
#include "ui_nimcompilercleanstepconfigwidget.h" #include "ui_nimcompilercleanstepconfigwidget.h"
#include "nimcompilercleanstep.h"
#include "nimconstants.h" #include "../nimconstants.h"
#include "project/nimcompilercleanstep.h"
#include "projectexplorer/buildconfiguration.h" #include "projectexplorer/buildconfiguration.h"

View File

@@ -23,11 +23,11 @@
** **
****************************************************************************/ ****************************************************************************/
#include "project/nimcompilercleanstepfactory.h" #include "nimcompilercleanstepfactory.h"
#include "nimbuildconfiguration.h"
#include "nimcompilercleanstep.h"
#include "nimconstants.h" #include "../nimconstants.h"
#include "project/nimbuildconfiguration.h"
#include "project/nimcompilercleanstep.h"
#include <projectexplorer/projectexplorerconstants.h> #include <projectexplorer/projectexplorerconstants.h>

View File

@@ -23,12 +23,12 @@
** **
****************************************************************************/ ****************************************************************************/
#include "project/nimproject.h" #include "nimproject.h"
#include "nimbuildconfiguration.h"
#include "nimprojectnode.h"
#include "nimprojectmanager.h"
#include "nimconstants.h" #include "../nimconstants.h"
#include "project/nimbuildconfiguration.h"
#include "project/nimprojectnode.h"
#include "project/nimprojectmanager.h"
#include <projectexplorer/buildconfiguration.h> #include <projectexplorer/buildconfiguration.h>
#include <projectexplorer/kit.h> #include <projectexplorer/kit.h>
@@ -36,10 +36,8 @@
#include <projectexplorer/target.h> #include <projectexplorer/target.h>
#include <texteditor/textdocument.h> #include <texteditor/textdocument.h>
#include <QDebug>
#include <QFileInfo> #include <QFileInfo>
#include <QQueue> #include <QQueue>
#include <QThread>
using namespace ProjectExplorer; using namespace ProjectExplorer;
using namespace Utils; using namespace Utils;

View File

@@ -23,10 +23,10 @@
** **
****************************************************************************/ ****************************************************************************/
#include "project/nimprojectmanager.h" #include "nimprojectmanager.h"
#include "nimproject.h"
#include "nimconstants.h" #include "../nimconstants.h"
#include "project/nimproject.h"
using namespace ProjectExplorer; using namespace ProjectExplorer;

View File

@@ -23,9 +23,8 @@
** **
****************************************************************************/ ****************************************************************************/
#include "project/nimprojectnode.h" #include "nimprojectnode.h"
#include "nimproject.h"
#include "project/nimproject.h"
using namespace ProjectExplorer; using namespace ProjectExplorer;
using namespace Utils; using namespace Utils;

View File

@@ -23,11 +23,11 @@
** **
****************************************************************************/ ****************************************************************************/
#include "project/nimrunconfiguration.h" #include "nimrunconfiguration.h"
#include "nimbuildconfiguration.h"
#include "nimrunconfigurationwidget.h"
#include "nimconstants.h" #include "../nimconstants.h"
#include "project/nimbuildconfiguration.h"
#include "project/nimrunconfigurationwidget.h"
#include <projectexplorer/runnables.h> #include <projectexplorer/runnables.h>
#include <projectexplorer/localenvironmentaspect.h> #include <projectexplorer/localenvironmentaspect.h>

View File

@@ -23,11 +23,11 @@
** **
****************************************************************************/ ****************************************************************************/
#include "project/nimrunconfigurationfactory.h" #include "nimrunconfigurationfactory.h"
#include "nimproject.h"
#include "nimrunconfiguration.h"
#include "nimconstants.h" #include "../nimconstants.h"
#include "project/nimproject.h"
#include "project/nimrunconfiguration.h"
#include <debugger/debuggerrunconfigurationaspect.h> #include <debugger/debuggerrunconfigurationaspect.h>
#include <projectexplorer/target.h> #include <projectexplorer/target.h>

View File

@@ -23,9 +23,8 @@
** **
****************************************************************************/ ****************************************************************************/
#include "project/nimrunconfigurationwidget.h" #include "nimrunconfigurationwidget.h"
#include "nimrunconfiguration.h"
#include "project/nimrunconfiguration.h"
#include <projectexplorer/runconfigurationaspects.h> #include <projectexplorer/runconfigurationaspects.h>

View File

@@ -23,9 +23,8 @@
** **
****************************************************************************/ ****************************************************************************/
#include "project/nimruncontrol.h" #include "nimruncontrol.h"
#include "nimrunconfiguration.h"
#include "project/nimrunconfiguration.h"
#include <projectexplorer/runnables.h> #include <projectexplorer/runnables.h>
#include <utils/qtcprocess.h> #include <utils/qtcprocess.h>

View File

@@ -23,10 +23,9 @@
** **
****************************************************************************/ ****************************************************************************/
#include "project/nimruncontrolfactory.h" #include "nimruncontrolfactory.h"
#include "nimrunconfiguration.h"
#include "project/nimrunconfiguration.h" #include "nimruncontrol.h"
#include "project/nimruncontrol.h"
namespace Nim { namespace Nim {

View File

@@ -23,11 +23,11 @@
** **
****************************************************************************/ ****************************************************************************/
#include "settings/nimcodestylepreferencesfactory.h" #include "nimcodestylepreferencesfactory.h"
#include "nimcodestylepreferenceswidget.h"
#include "nimconstants.h" #include "../nimconstants.h"
#include "editor/nimindenter.h" #include "../editor/nimindenter.h"
#include "settings/nimcodestylepreferenceswidget.h"
#include <coreplugin/id.h> #include <coreplugin/id.h>
#include <texteditor/simplecodestylepreferences.h> #include <texteditor/simplecodestylepreferences.h>

View File

@@ -26,7 +26,7 @@
#include "nimcodestylepreferenceswidget.h" #include "nimcodestylepreferenceswidget.h"
#include "ui_nimcodestylepreferenceswidget.h" #include "ui_nimcodestylepreferenceswidget.h"
#include "nimconstants.h" #include "../nimconstants.h"
#include <extensionsystem/pluginmanager.h> #include <extensionsystem/pluginmanager.h>
#include <texteditor/displaysettings.h> #include <texteditor/displaysettings.h>

View File

@@ -24,10 +24,10 @@
****************************************************************************/ ****************************************************************************/
#include "nimcodestylesettingspage.h" #include "nimcodestylesettingspage.h"
#include "nimcodestylepreferencesfactory.h"
#include "nimsettings.h"
#include "nimconstants.h" #include "../nimconstants.h"
#include "settings/nimcodestylepreferencesfactory.h"
#include "settings/nimsettings.h"
#include <extensionsystem/pluginmanager.h> #include <extensionsystem/pluginmanager.h>
#include <texteditor/simplecodestylepreferences.h> #include <texteditor/simplecodestylepreferences.h>

View File

@@ -24,9 +24,9 @@
****************************************************************************/ ****************************************************************************/
#include "nimsettings.h" #include "nimsettings.h"
#include "nimcodestylepreferencesfactory.h"
#include "nimconstants.h" #include "../nimconstants.h"
#include "settings/nimcodestylepreferencesfactory.h"
#include <texteditor/icodestylepreferencesfactory.h> #include <texteditor/icodestylepreferencesfactory.h>
#include <texteditor/texteditorsettings.h> #include <texteditor/texteditorsettings.h>
@@ -35,14 +35,11 @@
#include <texteditor/tabsettings.h> #include <texteditor/tabsettings.h>
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <QDebug>
using namespace TextEditor; using namespace TextEditor;
namespace Nim { namespace Nim {
TextEditor::SimpleCodeStylePreferences *m_globalCodeStyle = nullptr; SimpleCodeStylePreferences *m_globalCodeStyle = nullptr;
NimSettings::NimSettings(QObject *parent) NimSettings::NimSettings(QObject *parent)
: QObject(parent) : QObject(parent)

View File

@@ -25,9 +25,9 @@
#include "nimsnippetprovider.h" #include "nimsnippetprovider.h"
#include "nimconstants.h" #include "../nimconstants.h"
#include "editor/nimhighlighter.h" #include "../editor/nimhighlighter.h"
#include "editor/nimindenter.h" #include "../editor/nimindenter.h"
#include <texteditor/textdocument.h> #include <texteditor/textdocument.h>
#include <texteditor/snippets/snippeteditor.h> #include <texteditor/snippets/snippeteditor.h>

View File

@@ -23,9 +23,8 @@
** **
****************************************************************************/ ****************************************************************************/
#include "tools/nimlexer.h" #include "nimlexer.h"
#include "sourcecodestream.h"
#include "tools/sourcecodestream.h"
#include <QRegularExpression> #include <QRegularExpression>
#include <QSet> #include <QSet>