LibrePCB Developers Documentation
Loading...
Searching...
No Matches
cmdpasteschematicitems.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_CMDPASTESCHEMATICITEMS_H
21#define LIBREPCB_EDITOR_CMDPASTESCHEMATICITEMS_H
22
23/*******************************************************************************
24 * Includes
25 ******************************************************************************/
26#include "../../undocommandgroup.h"
27
29
30#include <QtCore>
31
32#include <memory>
33
34/*******************************************************************************
35 * Namespace / Forward Declarations
36 ******************************************************************************/
37namespace librepcb {
38
39class Project;
40class Schematic;
41
42namespace editor {
43
44class SchematicClipboardData;
45class SchematicGraphicsScene;
46
47/*******************************************************************************
48 * Class CmdPasteSchematicItems
49 ******************************************************************************/
50
55public:
56 // Constructors / Destructor
60 std::unique_ptr<SchematicClipboardData> data,
61 const Point& posOffset) noexcept;
62 ~CmdPasteSchematicItems() noexcept;
63
64 // Operator Overloadings
65 CmdPasteSchematicItems& operator=(const CmdPasteSchematicItems& rhs) = delete;
66
67private: // Methods
69 bool performExecute() override;
70
71private: // Data
77};
78
79/*******************************************************************************
80 * End of File
81 ******************************************************************************/
82
83} // namespace editor
84} // namespace librepcb
85
86#endif
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition point.h:78
The Project class represents a whole (opened) project with all its content.
Definition project.h:71
The Schematic class represents one schematic page of a project and is always part of a circuit.
Definition schematic.h:74
The CmdPasteSchematicItems class.
Definition cmdpasteschematicitems.h:54
Schematic & mSchematic
Definition cmdpasteschematicitems.h:73
SchematicGraphicsScene & mScene
Definition cmdpasteschematicitems.h:72
CmdPasteSchematicItems(const CmdPasteSchematicItems &other)=delete
std::unique_ptr< SchematicClipboardData > mData
Definition cmdpasteschematicitems.h:75
Project & mProject
Definition cmdpasteschematicitems.h:74
~CmdPasteSchematicItems() noexcept
Definition cmdpasteschematicitems.cpp:90
Point mPosOffset
Definition cmdpasteschematicitems.h:76
bool performExecute() override
Execute the command the first time.
Definition cmdpasteschematicitems.cpp:97
The SchematicClipboardData class.
Definition schematicclipboarddata.h:56
The SchematicGraphicsScene class.
Definition schematicgraphicsscene.h:67
The UndoCommandGroup class makes it possible to pack multiple undo commands together (it acts as a pa...
Definition undocommandgroup.h:44
Definition occmodel.cpp:76
Definition uuid.h:186