1
0
Fork 0

GUI: fix some weird includes

This commit is contained in:
Duncan Ogilvie 2017-12-19 20:56:56 +01:00
parent 7c30c5993b
commit f68b830069
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
29 changed files with 50 additions and 3 deletions

View File

@ -4,7 +4,9 @@
#include <QpaintEvent> #include <QpaintEvent>
#include <QMenu> #include <QMenu>
#include <QDesktopWidget> #include <QDesktopWidget>
#include "bridge.h" #include <QApplication>
#include "Bridge.h"
#include "Configuration.h"
//LabeledSplitterHandle class //LabeledSplitterHandle class
LabeledSplitterHandle::LabeledSplitterHandle(Qt::Orientation o, LabeledSplitter* parent) : QSplitterHandle(o, parent) LabeledSplitterHandle::LabeledSplitterHandle(Qt::Orientation o, LabeledSplitter* parent) : QSplitterHandle(o, parent)

View File

@ -4,6 +4,9 @@
#include "main.h" #include "main.h"
#include "Exports.h" #include "Exports.h"
#include "ReferenceManager.h"
#include "SymbolView.h"
/************************************************************************************ /************************************************************************************
Global Variables Global Variables
************************************************************************************/ ************************************************************************************/

View File

@ -5,10 +5,13 @@
#include <QObject> #include <QObject>
#include <QWidget> #include <QWidget>
#include <QMutex> #include <QMutex>
#include <QMenu>
#include "Imports.h" #include "Imports.h"
#include "ReferenceManager.h"
#include "BridgeResult.h" #include "BridgeResult.h"
class ReferenceManager;
class SymbolView;
class Bridge : public QObject class Bridge : public QObject
{ {
Q_OBJECT Q_OBJECT
@ -42,6 +45,7 @@ public:
QWidget* snowmanView = nullptr; QWidget* snowmanView = nullptr;
bool mIsRunning = false; bool mIsRunning = false;
duint mLastCip = 0; duint mLastCip = 0;
SymbolView* symbolView = nullptr;
signals: signals:
void disassembleAt(dsint va, dsint eip); void disassembleAt(dsint va, dsint eip);

View File

@ -1,5 +1,6 @@
#include "BridgeResult.h" #include "BridgeResult.h"
#include "Bridge.h" #include "Bridge.h"
#include <QCoreApplication>
BridgeResult::BridgeResult() BridgeResult::BridgeResult()
{ {

View File

@ -2,6 +2,7 @@
#include "ui_AssembleDialog.h" #include "ui_AssembleDialog.h"
#include "ValidateExpressionThread.h" #include "ValidateExpressionThread.h"
#include <QMessageBox> #include <QMessageBox>
#include "Configuration.h"
bool AssembleDialog::bWarningShowedOnce = false; bool AssembleDialog::bWarningShowedOnce = false;

View File

@ -2,6 +2,7 @@
#include "ui_CodepageSelectionDialog.h" #include "ui_CodepageSelectionDialog.h"
#include "Bridge.h" #include "Bridge.h"
#include <QTextCodec> #include <QTextCodec>
#include "MiscUtil.h"
CodepageSelectionDialog::CodepageSelectionDialog(QWidget* parent) : CodepageSelectionDialog::CodepageSelectionDialog(QWidget* parent) :
QDialog(parent), QDialog(parent),

View File

@ -1,5 +1,6 @@
#include "CommandLineEdit.h" #include "CommandLineEdit.h"
#include "Bridge.h" #include "Bridge.h"
#include "Configuration.h"
CommandLineEdit::CommandLineEdit(QWidget* parent) CommandLineEdit::CommandLineEdit(QWidget* parent)
: HistoryLineEdit(parent), : HistoryLineEdit(parent),

View File

@ -15,6 +15,8 @@
#include <QFileDialog> #include <QFileDialog>
#include <QMessageBox> #include <QMessageBox>
#include "BreakpointMenu.h" #include "BreakpointMenu.h"
#include "StringUtil.h"
#include "MiscUtil.h"
DisassemblerGraphView::DisassemblerGraphView(QWidget* parent) DisassemblerGraphView::DisassemblerGraphView(QWidget* parent)
: QAbstractScrollArea(parent), : QAbstractScrollArea(parent),

View File

@ -2,6 +2,7 @@
#include "ui_EditBreakpointDialog.h" #include "ui_EditBreakpointDialog.h"
#include "StringUtil.h" #include "StringUtil.h"
#include "MiscUtil.h" #include "MiscUtil.h"
#include "Configuration.h"
EditBreakpointDialog::EditBreakpointDialog(QWidget* parent, const BRIDGEBP & bp) EditBreakpointDialog::EditBreakpointDialog(QWidget* parent, const BRIDGEBP & bp)
: QDialog(parent), : QDialog(parent),

View File

@ -2,6 +2,8 @@
#include "ui_EditFloatRegister.h" #include "ui_EditFloatRegister.h"
#include "Bridge.h" #include "Bridge.h"
#include "StringUtil.h" #include "StringUtil.h"
#include "MiscUtil.h"
#include "Configuration.h"
/** /**
* @brief Initialize EditFloatRegister dialog * @brief Initialize EditFloatRegister dialog

View File

@ -6,6 +6,7 @@
#include <QFileDialog> #include <QFileDialog>
#include <QMessageBox> #include <QMessageBox>
#include "MiscUtil.h" #include "MiscUtil.h"
#include "Configuration.h"
#include <QTableWidget> #include <QTableWidget>
FavouriteTools::FavouriteTools(QWidget* parent) : FavouriteTools::FavouriteTools(QWidget* parent) :

View File

@ -1,5 +1,6 @@
#include <QTextCodec> #include <QTextCodec>
#include <QCryptographicHash> #include <QCryptographicHash>
#include "Configuration.h"
#include "HexEditDialog.h" #include "HexEditDialog.h"
#include "QHexEdit/QHexEdit.h" #include "QHexEdit/QHexEdit.h"
#include "ui_HexEditDialog.h" #include "ui_HexEditDialog.h"

View File

@ -3,6 +3,7 @@
#include "HexLineEdit.h" #include "HexLineEdit.h"
#include "ui_HexLineEdit.h" #include "ui_HexLineEdit.h"
#include "Bridge.h" #include "Bridge.h"
#include <QKeyEvent>
HexLineEdit::HexLineEdit(QWidget* parent) : HexLineEdit::HexLineEdit(QWidget* parent) :
QLineEdit(parent), QLineEdit(parent),

View File

@ -1,5 +1,6 @@
#include "LogStatusLabel.h" #include "LogStatusLabel.h"
#include <QTextDocument> #include <QTextDocument>
#include <QApplication>
LogStatusLabel::LogStatusLabel(QStatusBar* parent) : QLabel(parent) LogStatusLabel::LogStatusLabel(QStatusBar* parent) : QLabel(parent)
{ {

View File

@ -1,12 +1,18 @@
#include "LogView.h" #include "LogView.h"
#include "Configuration.h" #include "Configuration.h"
#include "Bridge.h" #include "Bridge.h"
#include "BrowseDialog.h"
#include <QRegularExpression> #include <QRegularExpression>
#include <QDesktopServices> #include <QDesktopServices>
#include <QClipboard> #include <QClipboard>
#include <QMimeData> #include <QMimeData>
#include <QTimer> #include <QTimer>
#include <QApplication>
#include <QContextMenuEvent>
#include "BrowseDialog.h"
#include "MiscUtil.h"
#include "StringUtil.h"
/** /**
* @brief LogView::LogView The constructor constructs a rich text browser * @brief LogView::LogView The constructor constructs a rich text browser

View File

@ -121,6 +121,7 @@ MainWindow::MainWindow(QWidget* parent)
// Symbol view // Symbol view
mSymbolView = new SymbolView(); mSymbolView = new SymbolView();
Bridge::getBridge()->symbolView = mSymbolView;
mSymbolView->setWindowTitle(tr("Symbols")); mSymbolView->setWindowTitle(tr("Symbols"));
mSymbolView->setWindowIcon(DIcon("pdb.png")); mSymbolView->setWindowIcon(DIcon("pdb.png"));
mSymbolView->hide(); mSymbolView->hide();

View File

@ -5,6 +5,8 @@
#include <QFileDialog> #include <QFileDialog>
#include <QTextStream> #include <QTextStream>
#include "MiscUtil.h" #include "MiscUtil.h"
#include "StringUtil.h"
#include "Configuration.h"
PatchDialog::PatchDialog(QWidget* parent) : PatchDialog::PatchDialog(QWidget* parent) :
QDialog(parent), QDialog(parent),

View File

@ -8,6 +8,7 @@
class CPUWidget; class CPUWidget;
class CPUMultiDump; class CPUMultiDump;
class QPushButton;
typedef struct typedef struct
{ {

View File

@ -4,6 +4,7 @@
#include "Configuration.h" #include "Configuration.h"
#include "Bridge.h" #include "Bridge.h"
#include "ExceptionRangeDialog.h" #include "ExceptionRangeDialog.h"
#include "MiscUtil.h"
SettingsDialog::SettingsDialog(QWidget* parent) : SettingsDialog::SettingsDialog(QWidget* parent) :
QDialog(parent), QDialog(parent),

View File

@ -3,6 +3,7 @@
#include "Bridge.h" #include "Bridge.h"
#include <QMessageBox> #include <QMessageBox>
#include "BrowseDialog.h" #include "BrowseDialog.h"
#include "MiscUtil.h"
SimpleTraceDialog::SimpleTraceDialog(QWidget* parent) : SimpleTraceDialog::SimpleTraceDialog(QWidget* parent) :
QDialog(parent), QDialog(parent),

View File

@ -5,6 +5,8 @@
#include "LineEditDialog.h" #include "LineEditDialog.h"
#include "GotoDialog.h" #include "GotoDialog.h"
#include <QFileDialog> #include <QFileDialog>
#include "StringUtil.h"
#include "MiscUtil.h"
struct TypeDescriptor struct TypeDescriptor
{ {

View File

@ -6,6 +6,7 @@
#include "YaraRuleSelectionDialog.h" #include "YaraRuleSelectionDialog.h"
#include "EntropyDialog.h" #include "EntropyDialog.h"
#include "BrowseDialog.h" #include "BrowseDialog.h"
#include "SearchListView.h"
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QProcess> #include <QProcess>
#include <QFileDialog> #include <QFileDialog>

View File

@ -1,6 +1,8 @@
#include "XrefBrowseDialog.h" #include "XrefBrowseDialog.h"
#include "ui_XrefBrowseDialog.h" #include "ui_XrefBrowseDialog.h"
#include "StringUtil.h" #include "StringUtil.h"
#include "MiscUtil.h"
#include "MenuBuilder.h"
XrefBrowseDialog::XrefBrowseDialog(QWidget* parent) : XrefBrowseDialog::XrefBrowseDialog(QWidget* parent) :
QDialog(parent), QDialog(parent),

View File

@ -2,6 +2,8 @@
#include <QJsonDocument> #include <QJsonDocument>
#include <QJsonObject> #include <QJsonObject>
#include <QThread> #include <QThread>
#include "MiscUtil.h"
#include "StringUtil.h"
TraceFileReader::TraceFileReader(QObject* parent) : QObject(parent) TraceFileReader::TraceFileReader(QObject* parent) : QObject(parent)
{ {

View File

@ -1,6 +1,8 @@
#include "TraceFileReader.h" #include "TraceFileReader.h"
#include "TraceFileSearch.h" #include "TraceFileSearch.h"
#include "zydis_wrapper.h" #include "zydis_wrapper.h"
#include "StringUtil.h"
#include <QCoreApplication>
static bool inRange(duint value, duint start, duint end) static bool inRange(duint value, duint start, duint end)
{ {

View File

@ -1,5 +1,6 @@
#include "Breakpoints.h" #include "Breakpoints.h"
#include "EditBreakpointDialog.h" #include "EditBreakpointDialog.h"
#include "StringUtil.h"
Breakpoints::Breakpoints(QObject* parent) : QObject(parent) Breakpoints::Breakpoints(QObject* parent) : QObject(parent)
{ {

View File

@ -1,6 +1,7 @@
#include "MRUList.h" #include "MRUList.h"
#include "Bridge.h" #include "Bridge.h"
#include <QMenu> #include <QMenu>
#include <QFile>
MRUList::MRUList(QObject* parent, const char* section, int maxItems) MRUList::MRUList(QObject* parent, const char* section, int maxItems)
: QObject(parent), : QObject(parent),

View File

@ -7,6 +7,7 @@
#include <QDateTime> #include <QDateTime>
#include "Bridge.h" #include "Bridge.h"
#include "StringUtil.h" #include "StringUtil.h"
#include "MiscUtil.h"
UpdateChecker::UpdateChecker(QWidget* parent) UpdateChecker::UpdateChecker(QWidget* parent)
: QNetworkAccessManager(parent), : QNetworkAccessManager(parent),

View File

@ -7,6 +7,7 @@
#include <QTranslator> #include <QTranslator>
#include <QTextStream> #include <QTextStream>
#include <QLibraryInfo> #include <QLibraryInfo>
#include "MiscUtil.h"
MyApplication::MyApplication(int & argc, char** argv) MyApplication::MyApplication(int & argc, char** argv)
: QApplication(argc, argv) : QApplication(argc, argv)