mirror of https://github.com/Treeki/WindEmu.git
36 lines
582 B
C++
36 lines
582 B
C++
#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 on_stepButton_clicked();
|
|
void execTimer();
|
|
|
|
private:
|
|
Ui::MainWindow *ui;
|
|
Emu *emu;
|
|
QTimer *timer;
|
|
void updateScreen();
|
|
|
|
|
|
protected:
|
|
void keyPressEvent(QKeyEvent *event) override;
|
|
void keyReleaseEvent(QKeyEvent *event) override;
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|