Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef PICKITEM_H
00029 #define PICKITEM_H
00030
00031 #include "GeopsyGuiDLLExport.h"
00032 #include "PicksProperties.h"
00033
00034 namespace GeopsyGui {
00035
00036 class GEOPSYGUI_EXPORT PickItem : public QAbstractTableModel
00037 {
00038 public:
00039 PickItem(PicksProperties * picks);
00040
00041 void reset();
00042 virtual int rowCount(const QModelIndex &parent=QModelIndex()) const;
00043 virtual int columnCount(const QModelIndex &parent=QModelIndex()) const;
00044 virtual QVariant data(const QModelIndex &index, int role) const;
00045 virtual QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const;
00046 virtual bool setData(const QModelIndex & index, const QVariant & value, int role=Qt::EditRole);
00047 virtual Qt::ItemFlags flags (const QModelIndex & index) const;
00048 private:
00049 PicksProperties * _picks;
00050 };
00051
00052 }
00053
00054 #endif // PICKITEM_H