1 
2 // Copyright (c) 2008  GeometryFactory Sarl (France).
3 // All rights reserved.
4 //
5 // This file is part of CGAL (www.cgal.org).
6 //
7 // $URL: https://github.com/CGAL/cgal/blob/v5.3/GraphicsView/include/CGAL/Qt/GraphicsViewInput.h $
8 // $Id: GraphicsViewInput.h 0779373 2020-03-26T13:31:46+01:00 Sébastien Loriot
9 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
10 //
11 //
12 // Author(s)     : Andreas Fabri <Andreas.Fabri@geometryfactory.com>
13 //                 Laurent Rineau <Laurent.Rineau@geometryfactory.com>
14 
15 #ifndef CGAL_QT_GRAPHICS_VIEW_INPUT_H
16 #define CGAL_QT_GRAPHICS_VIEW_INPUT_H
17 
18 #include <CGAL/license/GraphicsView.h>
19 
20 
21 #include <CGAL/export/Qt.h>
22 #include <CGAL/auto_link/Qt.h>
23 
24 #ifndef Q_MOC_RUN
25 #  include <CGAL/Object.h>
26 #endif
27 #include <QObject>
28 
29 namespace CGAL {
30 namespace Qt {
31 class CGAL_QT_EXPORT GraphicsViewInput  : public QObject
32 {
33   Q_OBJECT
34 
35 public:
GraphicsViewInput(QObject * parent)36   GraphicsViewInput(QObject* parent)
37     : QObject(parent)
38   {}
39 
40 Q_SIGNALS:
41   void generate(CGAL::Object o);
42   void modelChanged();
43 
44 public Q_SLOTS:
45 
processInput(CGAL::Object)46   virtual void processInput(CGAL::Object /*o*/) {}
47 
48 };
49 
50 } // namespace Qt
51 } // namespace CGAL
52 
53 #endif // CGAL_QT_GRAPHICS_VIEW_INPUT_H
54