27 #include "../../../dataaccess/dataset/DataSetType.h" 
   30 #include "ui_ConstraintWidgetForm.h" 
   31 #include "ui_DoubleListWidgetForm.h" 
   34 #include <QtGui/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."));
 
te::da::DataSetType * m_dsType
 
Ui::ConstraintWidgetForm * getForm() const 
 
Property * getProperty(std::size_t i) const 
It returns the i-th property. 
 
virtual ~ConstraintWidget()
 
const std::string & getName() const 
It returns the property name. 
 
te::qt::widgets::DoubleListWidget * m_doubleListWidget
 
std::auto_ptr< Ui::ConstraintWidgetForm > m_ui
 
This file has the ConstraintWidget class. 
 
const std::vector< Property * > & getProperties() const 
It returns the list of properties describing the CompositeProperty. 
 
void setInputValues(std::vector< std::string > values)
 
A class that models the description of a dataset. 
 
bool checkParameters()
Check the interface parameters. 
 
ConstraintWidget(te::da::DataSetType *dsType, QWidget *parent=0, Qt::WindowFlags f=0)
 
Ui::DoubleListWidgetForm * getForm() const