QElectroTech
0.100.0-dev
Loading...
Searching...
No Matches
sources
ui
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
26
class
Diagram
;
27
28
namespace
Ui
{
29
class
MultiPasteDialog
;
30
}
31
32
class
MultiPasteDialog
:
public
QDialog
33
{
34
Q_OBJECT
35
36
public
:
37
explicit
MultiPasteDialog
(
Diagram
*diagram, QWidget *parent =
nullptr
);
38
~MultiPasteDialog
();
39
void
updatePreview
();
40
41
private
slots:
42
void
on_m_button_box_accepted
();
43
44
private
:
45
Ui::MultiPasteDialog *
ui
;
46
Diagram
*
m_diagram
=
nullptr
;
47
DiagramContent
m_pasted_content
;
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
DiagramContent
Definition
diagramcontent.h:47
Diagram
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition
diagram.h:56
MultiPasteDialog
Definition
multipastedialog.h:33
MultiPasteDialog::m_document
QDomDocument m_document
Definition
multipastedialog.h:49
MultiPasteDialog::on_m_button_box_accepted
void on_m_button_box_accepted()
Definition
multipastedialog.cpp:100
MultiPasteDialog::ui
Ui::MultiPasteDialog * ui
Definition
multipastedialog.h:45
MultiPasteDialog::m_origin
QPointF m_origin
Definition
multipastedialog.h:48
MultiPasteDialog::updatePreview
void updatePreview()
Definition
multipastedialog.cpp:69
MultiPasteDialog::m_pasted_content
DiagramContent m_pasted_content
Definition
multipastedialog.h:47
MultiPasteDialog::m_pasted_content_list
QList< DiagramContent > m_pasted_content_list
Definition
multipastedialog.h:51
MultiPasteDialog::m_accept
bool m_accept
Definition
multipastedialog.h:50
MultiPasteDialog::~MultiPasteDialog
~MultiPasteDialog()
Definition
multipastedialog.cpp:52
MultiPasteDialog::m_diagram
Diagram * m_diagram
Definition
multipastedialog.h:46
Ui
Definition
autonumberingdockwidget.h:26
Generated by
1.9.8