Files
openbios/arch/unix/plugins/plugin_qt/plugin_qt.h
Stefan Reinauer 5c9eb9b45b initial import of openbios--main--1.0--patch-26
git-svn-id: svn://coreboot.org/openbios/openbios-devel@1 f158a5a8-5612-0410-a976-696ce0be7e32
2006-04-26 15:08:19 +00:00

45 lines
914 B
C++

/* tag: qt plugin framebuffer class description
*
* Copyright (C) 2003 Stefan Reinauer
*
* See the file "COPYING" for further information about
* the copyright and warranty status of this work.
*/
#ifndef __framebufferwidget_h
#define __framebufferwidget_h
#include <qapplication.h>
#include <qwidget.h>
#include <qimage.h>
#include <qpainter.h>
#include <qmenubar.h>
#include <qpopupmenu.h>
#include <qmessagebox.h>
#include <qstatusbar.h>
#include <qtimer.h>
class FrameBufferWidget : public QWidget {
Q_OBJECT
public:
FrameBufferWidget(QWidget *parent=0, const char *name=0);
unsigned char *getFrameBuffer(void);
public slots:
void quit();
void about();
void aboutQt();
void update();
private:
QImage buffer;
QMenuBar *menu;
QStatusBar *status;
QTimer *updatetimer;
void paintEvent ( QPaintEvent * );
protected:
void keyPressEvent(QKeyEvent * e);
};
#endif