Annotation of qemu/roms/openbios/arch/unix/gui_qt/gui-qt.h, revision 1.1.1.1

1.1       root        1: /* tag: qt user interface fb class description
                      2:  *
                      3:  * Copyright (C) 2003-2004 Stefan Reinauer <[email protected]>
                      4:  *
                      5:  * See the file "COPYING" for further information about
                      6:  * the copyright and warranty status of this work.
                      7:  */
                      8: 
                      9: #ifndef __framebufferwidget_h
                     10: #define __framebufferwidget_h
                     11: 
                     12: #include <qapplication.h>
                     13: #include <qwidget.h>
                     14: #include <qimage.h>
                     15: #include <qpainter.h>
                     16: #include <qmenubar.h>
                     17: #include <qpopupmenu.h>
                     18: #include <qmessagebox.h>
                     19: #include <qstatusbar.h>
                     20: #include <qtimer.h>
                     21: 
                     22: class FrameBufferWidget : public QWidget {
                     23:        Q_OBJECT
                     24:        public:
                     25:                FrameBufferWidget(QWidget *parent=0, const char *name=0);
                     26:                unsigned char *getFrameBuffer(void);
                     27: 
                     28:        public slots:
                     29:                void quit();
                     30:                void about();
                     31:                void aboutQt();
                     32:                void update();
                     33: 
                     34:        private:
                     35:                QImage     buffer;
                     36:                QMenuBar   *menu;
                     37:                QStatusBar *status;
                     38:                QTimer     *updatetimer;
                     39:                void paintEvent ( QPaintEvent * );
                     40:        protected:
                     41:                void keyPressEvent(QKeyEvent * e);
                     42: };
                     43: 
                     44: #endif

unix.superglobalmegacorp.com

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