21#ifndef COPYPROPERTYDIALOG_H
22#define COPYPROPERTYDIALOG_H
24#include <tulip/tulipconf.h>
29class CopyPropertyDialogData;
50class TLP_QT_SCOPE CopyPropertyDialog :
public QDialog {
53 CopyPropertyDialog(QWidget *parent =
nullptr);
54 ~CopyPropertyDialog()
override;
60 void init(tlp::Graph *graph, tlp::PropertyInterface *toCopy);
70 tlp::PropertyInterface *copyProperty(QString &errorMsg);
75 QString destinationPropertyName()
const;
77 enum PropertyScope { NEW, LOCAL, INHERITED };
82 PropertyScope destinationPropertyScope()
const;
96 static PropertyInterface *copyProperty(tlp::Graph *graph, tlp::PropertyInterface *source,
97 bool askBeforePropertyOverwriting =
false,
98 QWidget *parent =
nullptr);
101 Ui::CopyPropertyDialogData *ui;
103 tlp::PropertyInterface *_source;
106 void checkValidity();
PropertyInterface describes the interface of a graph property.