AppleWin/source/frontends/qapple/emulator.h
Andrea Odetti 31340919de Move Qt UI to private member.
This way it is clear which variables comes from the ui component.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-11-30 15:48:48 +00:00

36 lines
667 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);
void updateVideo();
void redrawScreen(); // regenerate image and repaint
void refreshScreen(); // just repaint
bool saveScreen(const QString & filename) const;
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