2017-07-03 21:00:42 +01:00
|
|
|
#ifndef EMULATOR_H
|
|
|
|
#define EMULATOR_H
|
|
|
|
|
2019-11-30 15:48:48 +00:00
|
|
|
#include <QFrame>
|
2017-07-03 21:00:42 +01:00
|
|
|
|
2017-07-04 12:14:04 +01:00
|
|
|
class QMdiSubWindow;
|
|
|
|
|
2019-11-30 15:48:48 +00:00
|
|
|
namespace Ui {
|
|
|
|
class Emulator;
|
|
|
|
}
|
|
|
|
|
|
|
|
class Emulator : public QFrame
|
2017-07-03 21:00:42 +01:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2019-11-16 11:59:37 +00:00
|
|
|
explicit Emulator(QWidget *parent = nullptr);
|
2019-12-06 20:00:16 +00:00
|
|
|
~Emulator();
|
2017-07-03 21:00:42 +01:00
|
|
|
|
2017-10-15 21:08:08 +01:00
|
|
|
void updateVideo();
|
2019-11-25 21:08:01 +00:00
|
|
|
void redrawScreen(); // regenerate image and repaint
|
|
|
|
void refreshScreen(); // just repaint
|
2017-07-04 12:14:04 +01:00
|
|
|
|
2019-11-16 11:59:37 +00:00
|
|
|
bool saveScreen(const QString & filename) const;
|
2020-12-28 20:00:16 +00:00
|
|
|
void loadVideoSettings();
|
2019-11-22 20:32:32 +00:00
|
|
|
void displayLogo();
|
2017-10-17 21:14:36 +01:00
|
|
|
|
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);
|
|
|
|
|
2019-11-30 15:48:48 +00:00
|
|
|
private:
|
|
|
|
Ui::Emulator *ui;
|
2017-07-03 21:00:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // EMULATOR_H
|