AppleWin/source/frontends/qt/emulator.h
Andrea Odetti 59c581b807 Add Qt Frame.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-01-13 17:45:34 +00:00

38 lines
720 B
C++

#ifndef EMULATOR_H
#define EMULATOR_H
#include <QFrame>
class QMdiSubWindow;
namespace Ui {
class Emulator;
}
class Emulator : public QFrame
{
Q_OBJECT
public:
explicit Emulator(QWidget *parent = nullptr);
~Emulator();
void redrawScreen(); // regenerate image and repaint
void refreshScreen(const bool force);
bool saveScreen(const QString & filename) const;
void loadVideoSettings();
void unloadVideoSettings();
void displayLogo();
void setZoom(QMdiSubWindow * window, const int x);
void set43AspectRatio(QMdiSubWindow * window);
private:
void setVideoSize(QMdiSubWindow * window, const QSize & size);
private:
Ui::Emulator *ui;
};
#endif // EMULATOR_H