LibrePCB Developers Documentation
zonegraphicsitem.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_ZONEGRAPHICSITEM_H
21#define LIBREPCB_EDITOR_ZONEGRAPHICSITEM_H
22
23/*******************************************************************************
24 * Includes
25 ******************************************************************************/
27
29
30#include <QtCore>
31#include <QtWidgets>
32
33/*******************************************************************************
34 * Namespace / Forward Declarations
35 ******************************************************************************/
36namespace librepcb {
37namespace editor {
38
39class IF_GraphicsLayerProvider;
40
41/*******************************************************************************
42 * Class ZoneGraphicsItem
43 ******************************************************************************/
44
49public:
50 // Constructors / Destructor
51 ZoneGraphicsItem() = delete;
52 ZoneGraphicsItem(const ZoneGraphicsItem& other) = delete;
54 QGraphicsItem* parent = nullptr) noexcept;
55 virtual ~ZoneGraphicsItem() noexcept;
56
57 // Getters
58 Zone& getObj() noexcept { return mZone; }
59
60 // Operator Overloadings
62
63private: // Methods
64 void zoneEdited(const Zone& zone, Zone::Event event) noexcept;
65
66private: // Data
68
69 // Slots
71};
72
73/*******************************************************************************
74 * End of File
75 ******************************************************************************/
76
77} // namespace editor
78} // namespace librepcb
79
80#endif
The Zone class.
Definition: zone.h:43
Event
Definition: zone.h:64
The IF_GraphicsLayerProvider class defines an interface for classes which provide layers.
Definition: graphicslayer.h:111
The PrimitiveZoneGraphicsItem class.
Definition: primitivezonegraphicsitem.h:51
The ZoneGraphicsItem class.
Definition: zonegraphicsitem.h:48
void zoneEdited(const Zone &zone, Zone::Event event) noexcept
Definition: zonegraphicsitem.cpp:59
Zone::OnEditedSlot mOnEditedSlot
Definition: zonegraphicsitem.h:70
Zone & getObj() noexcept
Definition: zonegraphicsitem.h:58
Zone & mZone
Definition: zonegraphicsitem.h:67
ZoneGraphicsItem & operator=(const ZoneGraphicsItem &rhs)=delete
ZoneGraphicsItem(const ZoneGraphicsItem &other)=delete
Definition: occmodel.cpp:77