GNU Radio's TEST Package
QGLSurface.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2013-2014 Sylvain Munaut <tnt@246tNt.com>
4 *
5 * This is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3, or (at your option)
8 * any later version.
9 *
10 * This software is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this software; see the file COPYING. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street,
18 * Boston, MA 02110-1301, USA.
19 */
20
21#ifndef INCLUDED_GR_FOSPHOR_QGLSURFACE_H
22#define INCLUDED_GR_FOSPHOR_QGLSURFACE_H
23
24#include <QGLWidget>
25
26class QThread;
27
28namespace gr {
29 namespace fosphor {
30
31 class qt_sink_c_impl;
32
33 class QGLSurface : public ::QGLWidget
34 {
35 Q_OBJECT
36
37 qt_sink_c_impl *d_block;
38 QThread *d_gui_thread;
39
40 protected:
41 void hideEvent(QHideEvent *he);
42 void showEvent(QShowEvent *he);
43 void paintEvent(QPaintEvent *pe);
44 void resizeEvent(QResizeEvent *re);
45 void keyPressEvent(QKeyEvent *ke);
46 void mousePressEvent(QMouseEvent *me);
47
48 private slots:
49 void giveContext(QThread *thread);
50
51 public:
52 QGLSurface(QWidget *parent, qt_sink_c_impl *d_block);
53
56 };
57
58 } // namespace fosphor
59} // namespace gr
60
61#endif /* INCLUDED_GR_FOSPHOR_QGLSURFACE_H */
Definition: QGLSurface.h:34
QGLSurface(QWidget *parent, qt_sink_c_impl *d_block)
void hideEvent(QHideEvent *he)
void keyPressEvent(QKeyEvent *ke)
void paintEvent(QPaintEvent *pe)
void resizeEvent(QResizeEvent *re)
void showEvent(QShowEvent *he)
void mousePressEvent(QMouseEvent *me)
Qt version of fosphor sink (implementation)
Definition: qt_sink_c_impl.h:39
Definition: base_sink_c.h:30
Definition: private.h:44