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_PROJECT_EDITOR_BOARDCLIPBOARDDATABUILDER_H
21 #define LIBREPCB_PROJECT_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  ******************************************************************************/
37 namespace librepcb {
38 namespace project {
39 
40 class Board;
41 
42 namespace editor {
43 
44 /*******************************************************************************
45  * Class BoardClipboardDataBuilder
46  ******************************************************************************/
47 
52 public:
53  // Constructors / Destructor
54  BoardClipboardDataBuilder() = delete;
56  explicit BoardClipboardDataBuilder(Board& board) noexcept;
57  ~BoardClipboardDataBuilder() noexcept;
58 
59  // General Methods
60  std::unique_ptr<BoardClipboardData> generate(const Point& cursorPos) const
61  noexcept;
62 
63  // Operator Overloadings
65  delete;
66 
67 private: // Data
69 };
70 
71 /*******************************************************************************
72  * End of File
73  ******************************************************************************/
74 
75 } // namespace editor
76 } // namespace project
77 } // namespace librepcb
78 
79 #endif
BoardClipboardDataBuilder & operator=(const BoardClipboardDataBuilder &rhs)=delete
Definition: airwiresbuilder.cpp:32
~BoardClipboardDataBuilder() noexcept
Definition: boardclipboarddatabuilder.cpp:63
std::unique_ptr< BoardClipboardData > generate(const Point &cursorPos) const noexcept
Definition: boardclipboarddatabuilder.cpp:70
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5...
Definition: point.h:78
The BoardClipboardDataBuilder class.
Definition: boardclipboarddatabuilder.h:51
The Board class represents a PCB of a project and is always part of a circuit.
Definition: board.h:83
Board & mBoard
Definition: boardclipboarddatabuilder.h:68