16 #ifndef QGSBOOKMARKMODEL_H 
   17 #define QGSBOOKMARKMODEL_H 
   19 #include "qgis_core.h" 
   21 #include <QAbstractTableModel> 
   22 #include <QSortFilterProxyModel> 
   50       RoleExtent = Qt::UserRole, 
 
   76     int rowCount( 
const QModelIndex &parent = QModelIndex() ) 
const override;
 
   77     int columnCount( 
const QModelIndex &parent = QModelIndex() ) 
const override;
 
   78     QVariant data( 
const QModelIndex &index, 
int role = Qt::DisplayRole ) 
const override;
 
   79     Qt::ItemFlags flags( 
const QModelIndex &index ) 
const override;
 
   80     bool setData( 
const QModelIndex &index, 
const QVariant &value, 
int role = Qt::EditRole ) 
override;
 
   81     bool insertRows( 
int row, 
int count, 
const QModelIndex &parent = QModelIndex() ) 
override;
 
   82     bool removeRows( 
int row, 
int count, 
const QModelIndex &parent = QModelIndex() ) 
override;
 
   83     QVariant headerData( 
int section, Qt::Orientation orientation, 
int role = Qt::DisplayRole ) 
const override;
 
   86     void bookmarkAboutToBeAdded( 
const QString &
id );
 
   87     void bookmarkAdded( 
const QString &
id );
 
   88     void bookmarkAboutToBeRemoved( 
const QString &
id );
 
   89     void bookmarkRemoved( 
const QString &
id );
 
   90     void bookmarkChanged( 
const QString &
id );
 
   93     bool mBlocked = 
false;
 
   96     QgsBookmark bookmarkForIndex( 
const QModelIndex &index ) 
const;
 
Implements a model for the contents of QgsBookmarkManager objects.
@ ColumnXMin
Extent x-minimum.
@ ColumnCrs
CRS of extent.
@ ColumnGroup
Group column.
@ ColumnYMin
Extent y-minimum.
@ ColumnStore
Manager storing the bookmark (true if stored in project bookmark manager)
@ ColumnXMax
Extent x-maximum.
@ ColumnYMax
Extent y-maxnimum.
CustomRoles
Custom model roles.
@ RoleGroup
Bookmark group.
A QSortFilterProxyModel subclass for sorting the entries in a QgsBookmarkManagerModel.
Manages storage of a set of bookmarks.
Represents a spatial bookmark, with a name, CRS and extent.