Get rid of circular include between Cutter.h and CutterPlugin.h (#2390)

This commit is contained in:
karliss 2020-08-14 21:30:51 +03:00 committed by GitHub
parent 83cd7e8698
commit 48192d799a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 8 additions and 4 deletions

View File

@ -23,7 +23,6 @@ class Decompiler;
class R2Task;
class R2TaskDialog;
#include "plugins/CutterPlugin.h"
#include "common/BasicBlockHighlighter.h"
#include "common/R2Task.h"
#include "common/Helpers.h"

View File

@ -11,6 +11,7 @@
#include "common/TempConfig.h"
#include "common/RunScriptTask.h"
#include "common/PythonManager.h"
#include "plugins/CutterPlugin.h"
#include "plugins/PluginManager.h"
#include "CutterConfig.h"
#include "CutterApplication.h"

View File

@ -5,6 +5,8 @@
#include <QMenu>
#include <QKeySequence>
class MainWindow;
class CUTTER_EXPORT AddressableItemContextMenu : public QMenu
{
Q_OBJECT

View File

@ -6,6 +6,8 @@
#include <QMenu>
#include <QKeySequence>
class MainWindow;
class CUTTER_EXPORT DisassemblyContextMenu : public QMenu
{
Q_OBJECT

View File

@ -1,10 +1,8 @@
#ifndef CUTTERPLUGIN_H
#define CUTTERPLUGIN_H
class CutterPlugin;
class MainWindow;
#include "core/Cutter.h"
#include "widgets/CutterDockWidget.h"
class CUTTER_EXPORT CutterPlugin

View File

@ -10,11 +10,13 @@
#include "PluginManager.h"
#include "CutterPlugin.h"
#include "CutterConfig.h"
#include "common/Helpers.h"
#include <QDir>
#include <QCoreApplication>
#include <QPluginLoader>
#include <QStandardPaths>
#include <QDebug>
Q_GLOBAL_STATIC(PluginManager, uniqueInstance)

View File

@ -7,7 +7,7 @@
#include <memory>
#include <vector>
class CutterPlugin;
#include "plugins/CutterPlugin.h"
class PluginManager: public QObject
{