26 #ifndef __TERRALIB_QT_WIDGETS_TABLE_INTERNAL_DATASETTABLEMODEL_H
27 #define __TERRALIB_QT_WIDGETS_TABLE_INTERNAL_DATASETTABLEMODEL_H
30 #include "../Config.h"
33 #include <QtCore/QAbstractTableModel>
97 void setPkeysColumns(
const std::vector<size_t>& pkeys);
118 void showOIdsVisible(
const bool& visible);
136 void setEnabled(
const bool& enabled);
143 void setEditable(
const bool& editable);
154 std::auto_ptr<te::da::DataSet> getEditions(
const te::da::DataSetType* type, std::vector< std::set<int> >& ps);
161 bool hasEditions()
const;
166 void discardEditions();
175 int rowCount(
const QModelIndex & parent)
const;
177 int columnCount(
const QModelIndex & parent)
const;
179 QVariant data(
const QModelIndex & index,
int role)
const;
181 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const;
183 Qt::ItemFlags flags(
const QModelIndex & index)
const;
185 bool setData (
const QModelIndex & index,
const QVariant & value,
int role = Qt::EditRole);
187 bool insertColumns(
int column,
int count,
const QModelIndex& parent = QModelIndex());
189 bool removeColumns(
int column,
int count,
const QModelIndex& parent = QModelIndex());
216 #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.