27 #include "../../../dataaccess/dataset/DataSetType.h" 
   28 #include "../../../dataaccess/dataset/PrimaryKey.h" 
   31 #include "ui_ConstraintWidgetForm.h" 
   32 #include "ui_DoubleListWidgetForm.h" 
   35 #include <QtGui/QWidget> 
   50   if(m_ui->m_nameLineEdit->text().isEmpty())
 
   55   std::string constraintName = m_ui->m_nameLineEdit->text().toStdString();
 
   58   std::vector<std::string> vec = m_doubleListWidget->getOutputValues();
 
   70   for(
size_t t = 0; t < vec.size(); ++t)
 
virtual te::da::Constraint * getConstraint()
It returns the Constraint DataSet class object. 
 
PrimaryKeyConstraintWidget(te::da::DataSetType *dsType, QWidget *parent=0, Qt::WindowFlags f=0)
 
This virtual class is used to define a Constraint DataSet class object. 
 
~PrimaryKeyConstraintWidget()
 
It describes a primary key (pk) constraint. 
 
virtual void setName(const std::string &name)
It sets the constraint name. 
 
A class that models the description of a dataset. 
 
void add(te::dt::Property *p)
It adds a property to the list of properties of the primary key. 
 
It models a property definition. 
 
This file has the PrimaryKeyConstraintWidget class. 
 
virtual Property * clone() const =0
It returns a clone of the object.