Refactored Project Structure for use with emulator

This commit is contained in:
t-moe
2015-04-03 12:02:33 +02:00
commit 51089aaba1
16 changed files with 336 additions and 0 deletions

30
emulator/qt/mainwindow.h Normal file
View File

@@ -0,0 +1,30 @@
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QMutex>
#include <stdint.h>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
void draw_line(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color);
protected:
void paintEvent(QPaintEvent * evt);
~MainWindow();
private:
QMutex render_mutex;
QPixmap pixmap;
Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H