22 #include "../../../datatype/DateTimeProperty.h"
23 #include "../../../datatype/SimpleProperty.h"
25 #include <ui_AddColumnDialogForm.h>
29 if(propertyType.compare(QObject::tr(
"Integer")) == 0)
31 else if(propertyType.compare(QObject::tr(
"Real")) == 0)
33 else if(propertyType.compare(QObject::tr(
"String")) == 0)
35 else if(propertyType.compare(QObject::tr(
"Date")) == 0)
44 m_ui.reset(
new Ui::AddColumnDialogForm);
47 m_ui->m_helpBTN->setPageReference(
"widgets/table/addColumn.html");
49 connect(
m_ui->m_cancelBTN, SIGNAL(pressed()), SLOT(reject()));
50 connect(
m_ui->m_okBTN, SIGNAL(pressed()), SLOT(accept()));
61 pr->
setName(m_ui->m_colNameLNE->text().toStdString());
68 m_ui->m_tblNameCBB->addItem(name.c_str());
An atomic property like an integer or double.
te::dt::Property * GetProperty(const QString &propertyType)
It models a property definition.
void setName(const std::string &name)
It sets the property name.
A Qt dialog for inserting columns into a table.
The type for date and time types: date, date period, date duration, time duration, time instant, time period, time instant with time zone or time period with time zone.