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> 98 void setPkeysColumns(
const std::vector<size_t>& pkeys);
119 void showOIdsVisible(
const bool& visible);
137 void setEnabled(
const bool& enabled);
144 void setEditable(
const bool& editable);
155 std::auto_ptr<te::da::DataSet> getEditions(
const te::da::DataSetType* type, std::vector< std::set<int> >& ps);
162 bool hasEditions()
const;
167 void discardEditions();
176 int rowCount(
const QModelIndex & parent)
const;
178 int columnCount(
const QModelIndex & parent)
const;
180 QVariant data(
const QModelIndex & index,
int role)
const;
182 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const;
184 Qt::ItemFlags flags(
const QModelIndex & index)
const;
186 bool setData (
const QModelIndex & index,
const QVariant & value,
int role = Qt::EditRole);
188 bool insertColumns(
int column,
int count,
const QModelIndex& parent = QModelIndex());
190 bool removeColumns(
int column,
int count,
const QModelIndex& parent = QModelIndex());
217 #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.