mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-14 20:33:05 +02:00
36 lines
632 B
C
36 lines
632 B
C
|
#ifndef MULTIPASTEDIALOG_H
|
||
|
#define MULTIPASTEDIALOG_H
|
||
|
|
||
|
#include <QDialog>
|
||
|
#include "diagramcontent.h"
|
||
|
#include "QDomDocument"
|
||
|
|
||
|
class Diagram;
|
||
|
|
||
|
namespace Ui {
|
||
|
class MultiPasteDialog;
|
||
|
}
|
||
|
|
||
|
class MultiPasteDialog : public QDialog
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
explicit MultiPasteDialog(Diagram *diagram, QWidget *parent = 0);
|
||
|
~MultiPasteDialog();
|
||
|
void updatePreview();
|
||
|
|
||
|
private slots:
|
||
|
void on_m_button_box_accepted();
|
||
|
|
||
|
private:
|
||
|
Ui::MultiPasteDialog *ui;
|
||
|
Diagram *m_diagram = nullptr;
|
||
|
DiagramContent m_pasted_content;
|
||
|
QPointF m_origin;
|
||
|
QDomDocument m_document;
|
||
|
bool m_accept = false;
|
||
|
};
|
||
|
|
||
|
#endif // MULTIPASTEDIALOG_H
|