11#ifndef QGSCRSSELECTOR_H
12#define QGSCRSSELECTOR_H
14#include "ui_qgsprojectionselectorbase.h"
22#include <QIdentityProxyModel>
25#include <QStyledItemDelegate>
36 QgsRecentCoordinateReferenceSystemTableModel( QObject *parent );
37 QVariant headerData(
int section, Qt::Orientation orientation,
int role )
const override;
38 QVariant data(
const QModelIndex &index,
int role )
const override;
41class RemoveRecentCrsDelegate :
public QStyledItemDelegate
SIP_SKIP
46 RemoveRecentCrsDelegate( QObject *parent );
47 bool eventFilter( QObject *obj, QEvent *event )
override;
50 void paint( QPainter *painter,
const QStyleOptionViewItem &option,
const QModelIndex &index )
const override;
53 void setHoveredIndex(
const QModelIndex &index );
55 QModelIndex mHoveredIndex;
229 bool eventFilter( QObject *obj, QEvent *ev ) override;
234 void selectCrsByAuthId( const QString &authid );
238 RoleDeprecated = Qt::UserRole,
244 QgsRecentCoordinateReferenceSystemTableModel *mRecentCrsModel =
nullptr;
253 bool mShowMap =
true;
255 bool mBlockSignals =
false;
259 void updateBoundsPreview();
262 void lstCoordinateSystemsDoubleClicked(
const QModelIndex &index );
263 void lstRecentDoubleClicked(
const QModelIndex &index );
264 void lstRecentClicked(
const QModelIndex &index );
265 void lstCoordinateSystemsSelectionChanged(
const QItemSelection &selected,
const QItemSelection &deselected );
266 void lstRecentSelectionChanged(
const QItemSelection &selected,
const QItemSelection &deselected );
268 void removeRecentCrsItem(
const QModelIndex &index );
A sort/filter proxy model for coordinate reference systems.
@ FilterCompound
Include compound CRS.
@ FilterHorizontal
Include horizontal CRS (excludes compound CRS containing a horizontal component).
Represents a coordinate reference system (CRS).
A sort/filter proxy model for recent coordinate reference systems.
A rectangle specified with double values.