21 #ifndef PROPERTYCREATIONDIALOG_H 22 #define PROPERTYCREATIONDIALOG_H 26 #include <tulip/tulipconf.h> 29 class PropertyCreationDialog;
34 class PropertyInterface;
49 class TLP_QT_SCOPE PropertyCreationDialog :
public QDialog {
56 explicit PropertyCreationDialog(QWidget *parent =
nullptr);
60 explicit PropertyCreationDialog(
tlp::Graph *graph, QWidget *parent =
nullptr,
61 const std::string &selectedType =
"");
62 ~PropertyCreationDialog()
override;
68 void accept()
override;
88 return _createdProperty;
99 static PropertyInterface *createNewProperty(
tlp::Graph *graph, QWidget *parent =
nullptr,
100 const std::string &selectedType =
"");
102 void checkValidity();
107 Ui::PropertyCreationDialog *ui;
108 QPushButton *_createPropertyButton;
110 PropertyInterface *_createdProperty;
114 #endif // PROPERTYCREATIONDIALOG_H
PropertyInterface describes the interface of a graph property.