File: plugin_qt.h

package info (click to toggle)
openbios-sparc 1.0%2Bsvn640-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 4,412 kB
  • ctags: 12,091
  • sloc: ansic: 57,249; asm: 2,680; xml: 1,335; cpp: 414; makefile: 224; sh: 190
file content (44 lines) | stat: -rw-r--r-- 911 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* 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