16#ifndef QGSBOOKMARKMODEL_H
17#define QGSBOOKMARKMODEL_H
21#include <QAbstractTableModel>
22#include <QSortFilterProxyModel>
87 int rowCount(
const QModelIndex &parent = QModelIndex() )
const override;
88 int columnCount(
const QModelIndex &parent = QModelIndex() )
const override;
89 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole )
const override;
90 Qt::ItemFlags flags(
const QModelIndex &index )
const override;
91 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole )
override;
92 bool insertRows(
int row,
int count,
const QModelIndex &parent = QModelIndex() )
override;
93 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex() )
override;
94 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const override;
97 void bookmarkAboutToBeAdded(
const QString &
id );
98 void bookmarkAdded(
const QString &
id );
99 void bookmarkAboutToBeRemoved(
const QString &
id );
100 void bookmarkRemoved(
const QString &
id );
101 void bookmarkChanged(
const QString &
id );
104 bool mBlocked =
false;
107 QgsBookmark bookmarkForIndex(
const QModelIndex &index )
const;
Implements a model for the contents of QgsBookmarkManager objects.
@ ColumnXMin
Extent x-minimum.
@ ColumnRotation
Rotation of the map.
@ 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-maximum.
CustomRole
Custom model roles.
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.
#define SIP_MONKEYPATCH_SCOPEENUM_UNNEST(OUTSIDE_CLASS, FORMERNAME)
#define SIP_MONKEYPATCH_COMPAT_NAME(FORMERNAME)