AppleWin/source/frontends/qapple/video.h
Andrea Odetti facf9aec25 Initial draft of a QT frontend.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2017-10-14 19:18:44 +01:00

29 lines
902 B
C++

#ifndef VIDEO_H
#define VIDEO_H
#include "ui_video.h"
#include <memory>
class Video : public QFrame, private Ui::Video
{
Q_OBJECT
public:
explicit Video(QWidget *parent = 0);
void redrawScreen();
private:
bool Update40ColCell(QPainter & painter, int x, int y, int xpixel, int ypixel, int offset);
bool Update80ColCell(QPainter & painter, int x, int y, int xpixel, int ypixel, int offset);
bool UpdateLoResCell(QPainter & painter, int x, int y, int xpixel, int ypixel, int offset);
bool UpdateDLoResCell(QPainter & painter, int x, int y, int xpixel, int ypixel, int offset);
bool UpdateHiResCell(QPainter & painter, int x, int y, int xpixel, int ypixel, int offset);
bool UpdateDHiResCell(QPainter & painter, int x, int y, int xpixel, int ypixel, int offset);
std::shared_ptr<QPixmap> myCharset;
std::shared_ptr<QPixmap> myVideo;
};
#endif // FRAME_H