File:  [Qemu by Fabrice Bellard] / qemu / roms / openbios / arch / unix / gui_qt / gui-qt.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 19:19:39 2018 UTC (8 years, 1 month ago) by root
Branches: qemu, MAIN
CVS tags: qemu1101, qemu1001, HEAD
qemu 1.0.1

/* tag: qt user interface fb class description
 *
 * Copyright (C) 2003-2004 Stefan Reinauer <[email protected]>
 *
 * 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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.