3 #include <ui_SelectPKey.h> 16 int nrows = tab->rowCount();
18 for(
int i=0; i<nrows; i++)
19 ((QCheckBox*)tab->cellWidget(i, 1))->setChecked(status);
46 int nrows =
m_ui->m_columnsTable->rowCount();
47 std::vector<size_t> pkeys;
49 for(
int i=0; i<nrows; i++)
50 if(((QCheckBox*)
m_ui->m_columnsTable->cellWidget((
int)i, 1))->isChecked())
59 m_ui->m_columnsTable->clearContents();
60 m_ui->m_columnsTable->setRowCount(0);
64 for(std::size_t i = 0; i < numProperties; ++i)
70 int nRows =
m_ui->m_columnsTable->rowCount();
71 m_ui->m_columnsTable->insertRow(nRows);
73 m_ui->m_columnsTable->setItem(nRows, 0,
new QTableWidgetItem(dset->
getPropertyName(i).c_str()));
74 m_ui->m_columnsTable->setCellWidget(nRows, 1,
new QCheckBox(tr(
"primary key"),
this));
void on_m_selectAllPushButton_clicked()
void pkeysChanged(const std::vector< size_t > &)
It models a property definition.
void on_m_updateKeysPushButton_clicked()
void updateColumns(te::da::DataSet *dset)
virtual int getPropertyDataType(std::size_t i) const =0
It returns the underlying data type of the property at position pos.
A dataset is the unit of information manipulated by the data access module of TerraLib.
A class that models the description of a dataset.
void updateChecks(QTableWidget *tab, const bool &status)
A dataset is the unit of information manipulated by the data access module of TerraLib.
virtual std::size_t getNumProperties() const =0
It returns the number of properties that composes an item of the dataset.
virtual std::string getPropertyName(std::size_t i) const =0
It returns the property name at position pos.
void on_m_unselectAllPushButton_clicked()
SelectPKey(QWidget *parent=0)