2019-12-19 00:27:23 +00:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
2019-12-25 00:29:03 +00:00
|
|
|
#include "../WindCore/emubase.h"
|
2019-12-25 14:46:08 +00:00
|
|
|
#include "pdascreenwindow.h"
|
2019-12-19 00:27:23 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class MainWindow;
|
|
|
|
}
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2019-12-25 00:29:03 +00:00
|
|
|
explicit MainWindow(EmuBase *emu, QWidget *parent = nullptr);
|
2019-12-19 00:27:23 +00:00
|
|
|
~MainWindow() override;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void execTimer();
|
|
|
|
|
2019-12-19 14:11:31 +00:00
|
|
|
void on_startButton_clicked();
|
|
|
|
void on_stopButton_clicked();
|
|
|
|
void on_stepInsnButton_clicked();
|
|
|
|
void on_stepTickButton_clicked();
|
|
|
|
|
2019-12-19 17:40:49 +00:00
|
|
|
void on_addBreakButton_clicked();
|
|
|
|
|
|
|
|
void on_removeBreakButton_clicked();
|
|
|
|
|
2019-12-20 11:33:09 +00:00
|
|
|
void on_memoryViewAddress_textEdited(const QString &arg1);
|
|
|
|
void on_memoryAdd1_clicked();
|
|
|
|
void on_memoryAdd4_clicked();
|
|
|
|
void on_memoryAdd10_clicked();
|
|
|
|
void on_memoryAdd100_clicked();
|
|
|
|
void on_memorySub1_clicked();
|
|
|
|
void on_memorySub4_clicked();
|
|
|
|
void on_memorySub10_clicked();
|
|
|
|
void on_memorySub100_clicked();
|
|
|
|
|
|
|
|
void on_writeByteButton_clicked();
|
|
|
|
|
|
|
|
void on_writeDwordButton_clicked();
|
|
|
|
|
2019-12-19 00:27:23 +00:00
|
|
|
private:
|
|
|
|
Ui::MainWindow *ui;
|
2019-12-25 14:46:08 +00:00
|
|
|
PDAScreenWindow pdaScreen;
|
2019-12-25 00:29:03 +00:00
|
|
|
EmuBase *emu;
|
2019-12-19 00:27:23 +00:00
|
|
|
QTimer *timer;
|
|
|
|
void updateScreen();
|
2019-12-19 17:40:49 +00:00
|
|
|
void updateBreakpointsList();
|
2019-12-20 11:33:09 +00:00
|
|
|
void updateMemory();
|
|
|
|
void adjustMemoryAddress(int offset);
|
2019-12-19 00:27:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|