LibrePCB Developers Documentation
Loading...
Searching...
No Matches
if_graphicsvieweventhandler.h
Go to the documentation of this file.
1/*
2 * LibrePCB - Professional EDA for everyone!
3 * Copyright (C) 2013 LibrePCB Developers, see AUTHORS.md for contributors.
4 * https://librepcb.org/
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef LIBREPCB_EDITOR_IF_GRAPHICSVIEWEVENTHANDLER_H
21#define LIBREPCB_EDITOR_IF_GRAPHICSVIEWEVENTHANDLER_H
22
23/*******************************************************************************
24 * Includes
25 ******************************************************************************/
26#include <QtCore>
27#include <QtGui>
28
29/*******************************************************************************
30 * Namespace / Forward Declarations
31 ******************************************************************************/
32namespace librepcb {
33namespace editor {
34
35struct GraphicsSceneKeyEvent;
36struct GraphicsSceneMouseEvent;
37
38/*******************************************************************************
39 * Interface IF_GraphicsViewEventHandler
40 ******************************************************************************/
41
46public:
47 // Constructors / Destructor
48 explicit IF_GraphicsViewEventHandler() noexcept {}
49 virtual ~IF_GraphicsViewEventHandler() noexcept {}
50
52 const GraphicsSceneKeyEvent& e) noexcept {
53 Q_UNUSED(e);
54 return false;
55 }
57 const GraphicsSceneKeyEvent& e) noexcept {
58 Q_UNUSED(e);
59 return false;
60 }
62 const GraphicsSceneMouseEvent& e) noexcept {
63 Q_UNUSED(e);
64 return false;
65 }
67 const GraphicsSceneMouseEvent& e) noexcept {
68 Q_UNUSED(e);
69 return false;
70 }
72 const GraphicsSceneMouseEvent& e) noexcept {
73 Q_UNUSED(e);
74 return false;
75 }
77 const GraphicsSceneMouseEvent& e) noexcept {
78 Q_UNUSED(e);
79 return false;
80 }
82 const GraphicsSceneMouseEvent& e) noexcept {
83 Q_UNUSED(e);
84 return false;
85 }
86};
87
88/*******************************************************************************
89 * End of File
90 ******************************************************************************/
91
92} // namespace editor
93} // namespace librepcb
94
95#endif
The IF_GraphicsViewEventHandler class.
Definition if_graphicsvieweventhandler.h:45
virtual bool graphicsSceneLeftMouseButtonDoubleClicked(const GraphicsSceneMouseEvent &e) noexcept
Definition if_graphicsvieweventhandler.h:76
virtual bool graphicsSceneLeftMouseButtonPressed(const GraphicsSceneMouseEvent &e) noexcept
Definition if_graphicsvieweventhandler.h:66
virtual bool graphicsSceneRightMouseButtonReleased(const GraphicsSceneMouseEvent &e) noexcept
Definition if_graphicsvieweventhandler.h:81
virtual bool graphicsSceneMouseMoved(const GraphicsSceneMouseEvent &e) noexcept
Definition if_graphicsvieweventhandler.h:61
virtual bool graphicsSceneKeyPressed(const GraphicsSceneKeyEvent &e) noexcept
Definition if_graphicsvieweventhandler.h:51
IF_GraphicsViewEventHandler() noexcept
Definition if_graphicsvieweventhandler.h:48
virtual ~IF_GraphicsViewEventHandler() noexcept
Definition if_graphicsvieweventhandler.h:49
virtual bool graphicsSceneLeftMouseButtonReleased(const GraphicsSceneMouseEvent &e) noexcept
Definition if_graphicsvieweventhandler.h:71
virtual bool graphicsSceneKeyReleased(const GraphicsSceneKeyEvent &e) noexcept
Definition if_graphicsvieweventhandler.h:56
Definition occmodel.cpp:77
Definition graphicsscene.h:52
Definition graphicsscene.h:45