LibrePCB Developers Documentation
boardclipboarddatabuilder.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_BOARDCLIPBOARDDATABUILDER_H
21#define LIBREPCB_EDITOR_BOARDCLIPBOARDDATABUILDER_H
22
23/*******************************************************************************
24 * Includes
25 ******************************************************************************/
26
27#include "boardclipboarddata.h"
28
29#include <QtCore>
30#include <QtWidgets>
31
32#include <memory>
33
34/*******************************************************************************
35 * Namespace / Forward Declarations
36 ******************************************************************************/
37namespace librepcb {
38namespace editor {
39
40class BoardGraphicsScene;
41
42/*******************************************************************************
43 * Class BoardClipboardDataBuilder
44 ******************************************************************************/
45
50public:
51 // Constructors / Destructor
54 explicit BoardClipboardDataBuilder(BoardGraphicsScene& scene) noexcept;
56
57 // General Methods
58 std::unique_ptr<BoardClipboardData> generate(
59 const Point& cursorPos) const noexcept;
60
61 // Operator Overloadings
63 delete;
64
65private: // Data
67};
68
69/*******************************************************************************
70 * End of File
71 ******************************************************************************/
72
73} // namespace editor
74} // namespace librepcb
75
76#endif
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
The BoardClipboardDataBuilder class.
Definition: boardclipboarddatabuilder.h:49
BoardClipboardDataBuilder(const BoardClipboardDataBuilder &other)=delete
BoardGraphicsScene & mScene
Definition: boardclipboarddatabuilder.h:66
~BoardClipboardDataBuilder() noexcept
Definition: boardclipboarddatabuilder.cpp:63
std::unique_ptr< BoardClipboardData > generate(const Point &cursorPos) const noexcept
Definition: boardclipboarddatabuilder.cpp:70
The BoardClipboardData class.
Definition: boardclipboarddata.h:64
The BoardGraphicsScene class.
Definition: boardgraphicsscene.h:77
Definition: occmodel.cpp:77