26 #ifndef __TERRALIB_QT_WIDGETS_TABLE_INTERNAL_DATASETTABLEMODEL_H 27 #define __TERRALIB_QT_WIDGETS_TABLE_INTERNAL_DATASETTABLEMODEL_H 30 #include "../../../core/encoding/CharEncoding.h" 31 #include "../Config.h" 34 #include <QtCore/QAbstractTableModel> 100 void setPkeysColumns(
const std::vector<size_t>& pkeys);
121 void showOIdsVisible(
const bool& visible);
139 void setEnabled(
const bool& enabled);
146 void setEditable(
const bool& editable);
157 std::unique_ptr<te::da::DataSet> getEditions(
const te::da::DataSetType* type, std::vector< std::set<int> >& ps);
164 bool hasEditions()
const;
169 void discardEditions();
178 int rowCount(
const QModelIndex & parent)
const;
180 int columnCount(
const QModelIndex & parent)
const;
182 QVariant data(
const QModelIndex & index,
int role)
const;
184 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const;
186 Qt::ItemFlags flags(
const QModelIndex & index)
const;
188 bool setData (
const QModelIndex & index,
const QVariant & value,
int role = Qt::EditRole);
190 bool insertColumns(
int column,
int count,
const QModelIndex& parent = QModelIndex());
192 bool removeColumns(
int column,
int count,
const QModelIndex& parent = QModelIndex());
219 #endif //__TERRALIB_QT_WIDGETS_TABLE_INTERNAL_DATASETTABLEMODEL_H A class that models the description of a dataset.
This class represents a set of unique ids created in the same context. i.e. from the same data set...
A dataset is the unit of information manipulated by the data access module of TerraLib.