QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
multipastedialog.h
Go to the documentation of this file.
1/*
2 Copyright 2006-2024 The QElectroTech Team
3 This file is part of QElectroTech.
4
5 QElectroTech is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 2 of the License, or
8 (at your option) any later version.
9
10 QElectroTech is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef MULTIPASTEDIALOG_H
19#define MULTIPASTEDIALOG_H
20
21#include "../diagramcontent.h"
22#include "QDomDocument"
23
24#include <QDialog>
25
26class Diagram;
27
28namespace Ui {
29 class MultiPasteDialog;
30}
31
32class MultiPasteDialog : public QDialog
33{
34 Q_OBJECT
35
36 public:
37 explicit MultiPasteDialog(Diagram *diagram, QWidget *parent = nullptr);
39 void updatePreview();
40
41 private slots:
43
44 private:
45 Ui::MultiPasteDialog *ui;
46 Diagram *m_diagram = nullptr;
48 QPointF m_origin;
49 QDomDocument m_document;
50 bool m_accept = false;
51 QList<DiagramContent> m_pasted_content_list;
52};
53
54#endif // MULTIPASTEDIALOG_H
Definition diagramcontent.h:47
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition diagram.h:56
Definition multipastedialog.h:33
QDomDocument m_document
Definition multipastedialog.h:49
void on_m_button_box_accepted()
Definition multipastedialog.cpp:100
Ui::MultiPasteDialog * ui
Definition multipastedialog.h:45
QPointF m_origin
Definition multipastedialog.h:48
void updatePreview()
Definition multipastedialog.cpp:69
DiagramContent m_pasted_content
Definition multipastedialog.h:47
QList< DiagramContent > m_pasted_content_list
Definition multipastedialog.h:51
bool m_accept
Definition multipastedialog.h:50
~MultiPasteDialog()
Definition multipastedialog.cpp:52
Diagram * m_diagram
Definition multipastedialog.h:46
Definition autonumberingdockwidget.h:26