2017-07-03 21:00:42 +01:00
|
|
|
#ifndef EMULATOR_H
|
|
|
|
#define EMULATOR_H
|
|
|
|
|
|
|
|
#include "ui_emulator.h"
|
|
|
|
|
2017-07-04 12:14:04 +01:00
|
|
|
class QMdiSubWindow;
|
|
|
|
|
2017-07-03 21:00:42 +01:00
|
|
|
class Emulator : public QFrame, private Ui::Emulator
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit Emulator(QWidget *parent = 0);
|
|
|
|
|
2017-10-15 21:08:08 +01:00
|
|
|
void updateVideo();
|
|
|
|
void repaintVideo();
|
2017-07-04 12:14:04 +01:00
|
|
|
|
2017-10-17 21:14:36 +01:00
|
|
|
const QPixmap & getScreen() const;
|
|
|
|
|
2017-07-04 19:24:26 +01:00
|
|
|
void setZoom(QMdiSubWindow * window, const int x);
|
2017-07-04 12:14:04 +01:00
|
|
|
void set43AspectRatio(QMdiSubWindow * window);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void setVideoSize(QMdiSubWindow * window, const QSize & size);
|
|
|
|
|
2017-07-03 21:00:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // EMULATOR_H
|