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;
228 bool eventFilter( QObject *obj, QEvent *ev ) override;
233 void selectCrsByAuthId( const QString &authid );
237 RoleDeprecated = Qt::UserRole,
243 QgsRecentCoordinateReferenceSystemTableModel *mRecentCrsModel =
nullptr;
252 bool mShowMap =
true;
254 bool mBlockSignals =
false;
258 void updateBoundsPreview();
261 void lstCoordinateSystemsDoubleClicked(
const QModelIndex &index );
262 void lstRecentDoubleClicked(
const QModelIndex &index );
263 void lstRecentClicked(
const QModelIndex &index );
264 void lstCoordinateSystemsSelectionChanged(
const QItemSelection &selected,
const QItemSelection &deselected );
265 void lstRecentSelectionChanged(
const QItemSelection &selected,
const QItemSelection &deselected );
267 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.