27 #include "../../../dataaccess/dataset/DataSetType.h"
28 #include "../utils/DoubleListWidget.h"
30 #include "ui_ConstraintWidgetForm.h"
31 #include "ui_DoubleListWidgetForm.h"
34 #include <QMessageBox>
38 m_ui(new Ui::ConstraintWidgetForm)
47 QGridLayout* layout =
new QGridLayout(
m_ui->m_widget);
55 std::vector<std::string> propValues;
78 if(m_ui->m_nameLineEdit->text().isEmpty())
80 QMessageBox::warning(
this, tr(
"Warning"), tr(
"Constraint name not defined."));
84 std::string constraintName = m_ui->m_nameLineEdit->text().toStdString();
87 std::vector<std::string> vec = m_doubleListWidget->getOutputValues();
91 QMessageBox::warning(
this, tr(
"Warning"), tr(
"No property selected."));
Property * getProperty(std::size_t i) const
It returns the i-th property.
A class that models the description of a dataset.
const std::vector< Property * > & getProperties() const
It returns the list of properties describing the CompositeProperty.
const std::string & getName() const
It returns the property name.