Equalizer  1.8.0
Parallel Rendering Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
widgetFactory.h
1 
2 /* Copyright (c) 2014, Daniel Nachbaur <danielnachbaur@gmail.com>
3  * 2014, Stefan.Eilemann@epfl.ch
4  *
5  * This library is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU Lesser General Public License version 2.1 as published
7  * by the Free Software Foundation.
8  *
9  * This library is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12  * details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this library; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef EQ_QT_WIDGETFACTORY_H
20 #define EQ_QT_WIDGETFACTORY_H
21 
22 #include <QObject>
23 #include <eq/client/types.h>
24 #include "types.h"
25 
26 namespace eq
27 {
28 namespace qt
29 {
30 
32 class WidgetFactory : public QObject
33 {
34  Q_OBJECT
35 
36 public slots:
37  GLWidget* onCreateWidget( eq::Window*, const WindowSettings&, QThread* );
38  void onDestroyWidget( QGLWidget* );
39 };
40 }
41 }
42 
43 #endif
A set of settings to setup an eq::SystemWindow.
A Window represents an on-screen or off-screen drawable.
Creates and destroys the eq::qt::GLWidget in the QApplication thread.
Definition: widgetFactory.h:32