mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
Diagram editor : add new action in the context menu : multiple paste.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5319 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
35
sources/ui/multipastedialog.h
Normal file
35
sources/ui/multipastedialog.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user