2019-12-19 00:27:23 +00:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
#include "../WindCore/emu.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class MainWindow;
|
|
|
|
}
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit MainWindow(QWidget *parent = nullptr);
|
|
|
|
~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-19 00:27:23 +00:00
|
|
|
private:
|
|
|
|
Ui::MainWindow *ui;
|
|
|
|
Emu *emu;
|
|
|
|
QTimer *timer;
|
|
|
|
void updateScreen();
|
2019-12-19 17:40:49 +00:00
|
|
|
void updateBreakpointsList();
|
2019-12-19 00:27:23 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void keyPressEvent(QKeyEvent *event) override;
|
|
|
|
void keyReleaseEvent(QKeyEvent *event) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|