get some of the shit going, I guess

atleast the emuthread is going and we have its control system down

and other fun shit, too
This commit is contained in:
Arisotura
2020-04-27 12:06:44 +02:00
parent 439ca1b2b5
commit 690f9f3874
7 changed files with 1397 additions and 9 deletions

View File

@ -19,8 +19,45 @@
#ifndef MAIN_H
#define MAIN_H
#include <QThread>
#include <QWidget>
#include <QMainWindow>
class EmuThread : public QThread
{
Q_OBJECT
void run() override;
public:
explicit EmuThread(QObject* parent = nullptr);
// to be called from the UI thread
void emuRun();
void emuPause(bool refresh);
void emuUnpause();
void emuStop();
private:
volatile int EmuStatus;
int PrevEmuStatus;
int EmuRunning;
};
class MainWindowPanel : public QWidget
{
Q_OBJECT
public:
explicit MainWindowPanel(QWidget* parent);
~MainWindowPanel();
protected:
void paintEvent(QPaintEvent* event) override;
};
class MainWindow : public QMainWindow
{
Q_OBJECT
@ -29,8 +66,11 @@ public:
explicit MainWindow(QWidget* parent = nullptr);
~MainWindow();
private slots:
void onOpenFile();
private:
// private shit goes here
MainWindowPanel* panel;
};
#endif // MAIN_H