Mapper
0.9.0
API documentation
|
Combobox for selecting projected coordinate reference system (CRS). More...
#include <crs_selector.h>
Signals | |
void | crsChanged () |
Emitted when the user changes the CRS or its parameters. More... | |
Public Member Functions | |
CRSSelector (const Georeferencing &georef, QWidget *parent=nullptr) | |
Constructor. More... | |
~CRSSelector () override | |
Destructor. More... | |
void | setDialogLayout (QFormLayout *dialog_layout) |
Sets the QFormLayout which this field is part of. More... | |
void | addCustomItem (const QString &text, unsigned short id) |
Adds a custom item with the given text and id at the top of the list. More... | |
const CRSTemplate * | currentCRSTemplate () const |
Returns the selected CRS template, or nullptr if a custom item is selected. More... | |
QString | currentCRSSpec () const |
Returns the selected CRS specification string, or an empty string if a custom item is selected. More... | |
int | currentCustomItem () const |
Returns the id of the selected custom item, or -1 if a normal item is selected. More... | |
void | setCurrentCRS (const CRSTemplate *crs, const std::vector< QString > &values) |
Selects the given standard item, and sets the parameters. More... | |
void | setCurrentItem (unsigned short id) |
Selects the given custom item. More... | |
std::vector< QString > | parameters () const |
Returns the list of CRS configuration parameter values. More... | |
const Georeferencing & | georeferencing () const override |
Provides the current georeferencing. More... | |
Public Member Functions inherited from QComboBox | |
QComboBox (QWidget *parent) | |
virtual | ~QComboBox () |
int | maxVisibleItems () const const |
void | setMaxVisibleItems (int maxItems) |
int | count () const const |
void | setMaxCount (int max) |
int | maxCount () const const |
bool | autoCompletion () const const |
void | setAutoCompletion (bool enable) |
Qt::CaseSensitivity | autoCompletionCaseSensitivity () const const |
void | setAutoCompletionCaseSensitivity (Qt::CaseSensitivity sensitivity) |
bool | duplicatesEnabled () const const |
void | setDuplicatesEnabled (bool enable) |
void | setFrame (bool) |
bool | hasFrame () const const |
int | findText (const QString &text, Qt::MatchFlags flags) const const |
int | findData (const QVariant &data, int role, Qt::MatchFlags flags) const const |
QComboBox::InsertPolicy | insertPolicy () const const |
void | setInsertPolicy (QComboBox::InsertPolicy policy) |
QComboBox::SizeAdjustPolicy | sizeAdjustPolicy () const const |
void | setSizeAdjustPolicy (QComboBox::SizeAdjustPolicy policy) |
int | minimumContentsLength () const const |
void | setMinimumContentsLength (int characters) |
QSize | iconSize () const const |
void | setIconSize (const QSize &size) |
bool | isEditable () const const |
void | setEditable (bool editable) |
void | setLineEdit (QLineEdit *edit) |
QLineEdit * | lineEdit () const const |
void | setValidator (const QValidator *validator) |
const QValidator * | validator () const const |
void | setCompleter (QCompleter *completer) |
QCompleter * | completer () const const |
QAbstractItemDelegate * | itemDelegate () const const |
void | setItemDelegate (QAbstractItemDelegate *delegate) |
QAbstractItemModel * | model () const const |
void | setModel (QAbstractItemModel *model) |
QModelIndex | rootModelIndex () const const |
void | setRootModelIndex (const QModelIndex &index) |
int | modelColumn () const const |
void | setModelColumn (int visibleColumn) |
int | currentIndex () const const |
QString | currentText () const const |
QVariant | currentData (int role) const const |
QString | itemText (int index) const const |
QIcon | itemIcon (int index) const const |
QVariant | itemData (int index, int role) const const |
void | addItem (const QString &text, const QVariant &userData) |
void | addItem (const QIcon &icon, const QString &text, const QVariant &userData) |
void | addItems (const QStringList &texts) |
void | insertItem (int index, const QString &text, const QVariant &userData) |
void | insertItem (int index, const QIcon &icon, const QString &text, const QVariant &userData) |
void | insertItems (int index, const QStringList &list) |
void | insertSeparator (int index) |
void | removeItem (int index) |
void | setItemText (int index, const QString &text) |
void | setItemIcon (int index, const QIcon &icon) |
void | setItemData (int index, const QVariant &value, int role) |
QAbstractItemView * | view () const const |
void | setView (QAbstractItemView *itemView) |
virtual QSize | sizeHint () const const override |
virtual QSize | minimumSizeHint () const const override |
virtual void | showPopup () |
virtual void | hidePopup () |
virtual bool | event (QEvent *event) override |
virtual QVariant | inputMethodQuery (Qt::InputMethodQuery query) const const override |
void | clear () |
void | clearEditText () |
void | setEditText (const QString &text) |
void | setCurrentIndex (int index) |
void | setCurrentText (const QString &text) |
void | editTextChanged (const QString &text) |
void | activated (int index) |
void | activated (const QString &text) |
void | highlighted (int index) |
void | highlighted (const QString &text) |
void | currentIndexChanged (int index) |
void | currentIndexChanged (const QString &text) |
void | currentTextChanged (const QString &text) |
Public Member Functions inherited from QWidget | |
QWidget (QWidget *parent, Qt::WindowFlags f) | |
virtual | ~QWidget () |
WId | winId () const const |
WId | effectiveWinId () const const |
QStyle * | style () const const |
void | setStyle (QStyle *style) |
bool | isTopLevel () const const |
bool | isWindow () const const |
bool | isModal () const const |
Qt::WindowModality | windowModality () const const |
void | setWindowModality (Qt::WindowModality windowModality) |
bool | isEnabled () const const |
bool | isEnabledTo (const QWidget *ancestor) const const |
bool | isEnabledToTLW () const const |
void | setEnabled (bool) |
void | setDisabled (bool disable) |
void | setWindowModified (bool) |
QRect | frameGeometry () const const |
const QRect & | geometry () const const |
QRect | normalGeometry () const const |
int | x () const const |
int | y () const const |
QPoint | pos () const const |
QSize | frameSize () const const |
QSize | size () const const |
int | width () const const |
int | height () const const |
QRect | rect () const const |
QRect | childrenRect () const const |
QRegion | childrenRegion () const const |
QSize | minimumSize () const const |
QSize | maximumSize () const const |
int | minimumWidth () const const |
int | minimumHeight () const const |
int | maximumWidth () const const |
int | maximumHeight () const const |
void | setMinimumSize (const QSize &) |
void | setMinimumSize (int minw, int minh) |
void | setMaximumSize (const QSize &) |
void | setMaximumSize (int maxw, int maxh) |
void | setMinimumWidth (int minw) |
void | setMinimumHeight (int minh) |
void | setMaximumWidth (int maxw) |
void | setMaximumHeight (int maxh) |
void | setupUi (QWidget *widget) |
QSize | sizeIncrement () const const |
void | setSizeIncrement (const QSize &) |
void | setSizeIncrement (int w, int h) |
QSize | baseSize () const const |
void | setBaseSize (const QSize &) |
void | setBaseSize (int basew, int baseh) |
void | setFixedSize (const QSize &s) |
void | setFixedSize (int w, int h) |
void | setFixedWidth (int w) |
void | setFixedHeight (int h) |
QPoint | mapToGlobal (const QPoint &pos) const const |
QPoint | mapFromGlobal (const QPoint &pos) const const |
QPoint | mapToParent (const QPoint &pos) const const |
QPoint | mapFromParent (const QPoint &pos) const const |
QPoint | mapTo (const QWidget *parent, const QPoint &pos) const const |
QPoint | mapFrom (const QWidget *parent, const QPoint &pos) const const |
QWidget * | window () const const |
QWidget * | nativeParentWidget () const const |
QWidget * | topLevelWidget () const const |
const QPalette & | palette () const const |
void | setPalette (const QPalette &) |
void | setBackgroundRole (QPalette::ColorRole role) |
QPalette::ColorRole | backgroundRole () const const |
void | setForegroundRole (QPalette::ColorRole role) |
QPalette::ColorRole | foregroundRole () const const |
const QFont & | font () const const |
void | setFont (const QFont &) |
QFontMetrics | fontMetrics () const const |
QFontInfo | fontInfo () const const |
QCursor | cursor () const const |
void | setCursor (const QCursor &) |
void | unsetCursor () |
void | setMouseTracking (bool enable) |
bool | hasMouseTracking () const const |
bool | underMouse () const const |
void | setTabletTracking (bool enable) |
bool | hasTabletTracking () const const |
void | setMask (const QBitmap &bitmap) |
void | setMask (const QRegion ®ion) |
QRegion | mask () const const |
void | clearMask () |
void | render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags) |
void | render (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags) |
QPixmap | grab (const QRect &rectangle) |
QGraphicsEffect * | graphicsEffect () const const |
void | setGraphicsEffect (QGraphicsEffect *effect) |
void | grabGesture (Qt::GestureType gesture, Qt::GestureFlags flags) |
void | ungrabGesture (Qt::GestureType gesture) |
void | setWindowTitle (const QString &) |
void | setStyleSheet (const QString &styleSheet) |
QString | styleSheet () const const |
QString | windowTitle () const const |
void | setWindowIcon (const QIcon &icon) |
QIcon | windowIcon () const const |
void | setWindowIconText (const QString &) |
QString | windowIconText () const const |
void | setWindowRole (const QString &role) |
QString | windowRole () const const |
void | setWindowFilePath (const QString &filePath) |
QString | windowFilePath () const const |
void | setWindowOpacity (qreal level) |
qreal | windowOpacity () const const |
bool | isWindowModified () const const |
void | setToolTip (const QString &) |
QString | toolTip () const const |
void | setToolTipDuration (int msec) |
int | toolTipDuration () const const |
void | setStatusTip (const QString &) |
QString | statusTip () const const |
void | setWhatsThis (const QString &) |
QString | whatsThis () const const |
QString | accessibleName () const const |
void | setAccessibleName (const QString &name) |
QString | accessibleDescription () const const |
void | setAccessibleDescription (const QString &description) |
void | setLayoutDirection (Qt::LayoutDirection direction) |
Qt::LayoutDirection | layoutDirection () const const |
void | unsetLayoutDirection () |
void | setLocale (const QLocale &locale) |
QLocale | locale () const const |
void | unsetLocale () |
void | setFocus () |
bool | isActiveWindow () const const |
void | activateWindow () |
void | clearFocus () |
void | setFocus (Qt::FocusReason reason) |
Qt::FocusPolicy | focusPolicy () const const |
void | setFocusPolicy (Qt::FocusPolicy policy) |
bool | hasFocus () const const |
void | setFocusProxy (QWidget *w) |
QWidget * | focusProxy () const const |
Qt::ContextMenuPolicy | contextMenuPolicy () const const |
void | setContextMenuPolicy (Qt::ContextMenuPolicy policy) |
void | grabMouse () |
void | grabMouse (const QCursor &cursor) |
void | releaseMouse () |
void | grabKeyboard () |
void | releaseKeyboard () |
int | grabShortcut (const QKeySequence &key, Qt::ShortcutContext context) |
void | releaseShortcut (int id) |
void | setShortcutEnabled (int id, bool enable) |
void | setShortcutAutoRepeat (int id, bool enable) |
bool | updatesEnabled () const const |
void | setUpdatesEnabled (bool enable) |
QGraphicsProxyWidget * | graphicsProxyWidget () const const |
void | update () |
void | repaint () |
void | update (int x, int y, int w, int h) |
void | update (const QRect &rect) |
void | update (const QRegion &rgn) |
void | repaint (int x, int y, int w, int h) |
void | repaint (const QRect &rect) |
void | repaint (const QRegion &rgn) |
virtual void | setVisible (bool visible) |
void | setHidden (bool hidden) |
void | show () |
void | hide () |
void | showMinimized () |
void | showMaximized () |
void | showFullScreen () |
void | showNormal () |
bool | close () |
void | raise () |
void | lower () |
void | stackUnder (QWidget *w) |
void | move (int x, int y) |
void | move (const QPoint &) |
void | resize (int w, int h) |
void | resize (const QSize &) |
void | setGeometry (int x, int y, int w, int h) |
void | setGeometry (const QRect &) |
QByteArray | saveGeometry () const const |
bool | restoreGeometry (const QByteArray &geometry) |
void | adjustSize () |
bool | isVisible () const const |
bool | isVisibleTo (const QWidget *ancestor) const const |
bool | isHidden () const const |
bool | isMinimized () const const |
bool | isMaximized () const const |
bool | isFullScreen () const const |
Qt::WindowStates | windowState () const const |
void | setWindowState (Qt::WindowStates windowState) |
QSizePolicy | sizePolicy () const const |
void | setSizePolicy (QSizePolicy) |
void | setSizePolicy (QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical) |
virtual int | heightForWidth (int w) const const |
virtual bool | hasHeightForWidth () const const |
QRegion | visibleRegion () const const |
void | setContentsMargins (int left, int top, int right, int bottom) |
void | setContentsMargins (const QMargins &margins) |
void | getContentsMargins (int *left, int *top, int *right, int *bottom) const const |
QMargins | contentsMargins () const const |
QRect | contentsRect () const const |
QLayout * | layout () const const |
void | setLayout (QLayout *layout) |
void | updateGeometry () |
void | setParent (QWidget *parent) |
void | setParent (QWidget *parent, Qt::WindowFlags f) |
void | scroll (int dx, int dy) |
void | scroll (int dx, int dy, const QRect &r) |
QWidget * | focusWidget () const const |
QWidget * | nextInFocusChain () const const |
QWidget * | previousInFocusChain () const const |
bool | acceptDrops () const const |
void | setAcceptDrops (bool on) |
void | addAction (QAction *action) |
void | addActions (QList< QAction * > actions) |
void | insertActions (QAction *before, QList< QAction * > actions) |
void | insertAction (QAction *before, QAction *action) |
void | removeAction (QAction *action) |
QList< QAction * > | actions () const const |
QWidget * | parentWidget () const const |
void | setWindowFlags (Qt::WindowFlags type) |
Qt::WindowFlags | windowFlags () const const |
void | setWindowFlag (Qt::WindowType flag, bool on) |
void | overrideWindowFlags (Qt::WindowFlags flags) |
Qt::WindowType | windowType () const const |
QWidget * | childAt (int x, int y) const const |
QWidget * | childAt (const QPoint &p) const const |
void | setAttribute (Qt::WidgetAttribute attribute, bool on) |
bool | testAttribute (Qt::WidgetAttribute attribute) const const |
virtual QPaintEngine * | paintEngine () const const override |
void | ensurePolished () const const |
bool | isAncestorOf (const QWidget *child) const const |
bool | hasEditFocus () const const |
void | setEditFocus (bool enable) |
bool | autoFillBackground () const const |
void | setAutoFillBackground (bool enabled) |
QBackingStore * | backingStore () const const |
QWindow * | windowHandle () const const |
void | windowTitleChanged (const QString &title) |
void | windowIconChanged (const QIcon &icon) |
void | windowIconTextChanged (const QString &iconText) |
void | customContextMenuRequested (const QPoint &pos) |
Qt::InputMethodHints | inputMethodHints () const const |
void | setInputMethodHints (Qt::InputMethodHints hints) |
QWIDGETSIZE_MAX QWIDGETSIZE_MAX | |
Public Member Functions inherited from QObject | |
virtual const QMetaObject * | metaObject () const const |
QObject (QObject *parent) | |
virtual | ~QObject () |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
QString | objectName () const const |
void | setObjectName (const QString &name) |
bool | isWidgetType () const const |
bool | isWindowType () const const |
bool | signalsBlocked () const const |
bool | blockSignals (bool block) |
QThread * | thread () const const |
void | moveToThread (QThread *targetThread) |
int | startTimer (int interval, Qt::TimerType timerType) |
int | startTimer (std::chrono::milliseconds time, Qt::TimerType timerType) |
void | killTimer (int id) |
T | findChild (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QRegExp ®Exp, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
const QObjectList & | children () const const |
void | setParent (QObject *parent) |
void | installEventFilter (QObject *filterObj) |
void | removeEventFilter (QObject *obj) |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
bool | disconnect (const QObject *receiver, const char *method) const const |
void | dumpObjectTree () |
void | dumpObjectInfo () |
void | dumpObjectTree () const const |
void | dumpObjectInfo () const const |
bool | setProperty (const char *name, const QVariant &value) |
QVariant | property (const char *name) const const |
QList< QByteArray > | dynamicPropertyNames () const const |
void | destroyed (QObject *obj) |
void | objectNameChanged (const QString &objectName) |
QObject * | parent () const const |
bool | inherits (const char *className) const const |
void | deleteLater () |
Q_DISABLE_COPY (Class) | |
Q_DISABLE_MOVE (Class) | |
Q_DISABLE_COPY_MOVE (Class) | |
T | qobject_cast (QObject *object) |
T | qobject_cast (const QObject *object) |
T | qFindChild (const QObject *obj, const QString &name) |
QList< T > | qFindChildren (const QObject *obj, const QString &name) |
QList< T > | qFindChildren (const QObject *obj, const QRegExp ®Exp) |
Q_CLASSINFO (Name, Value) | |
Q_INTERFACES (...) | |
Q_PROPERTY (...) | |
Q_ENUMS (...) | |
Q_FLAGS (...) | |
Q_ENUM (...) | |
Q_FLAG (...) | |
Q_ENUM_NS (...) | |
Q_FLAG_NS (...) | |
Q_OBJECT Q_OBJECT | |
Q_GADGET Q_GADGET | |
Q_NAMESPACE Q_NAMESPACE | |
Q_SIGNALS Q_SIGNALS | |
Q_SIGNAL Q_SIGNAL | |
Q_SLOTS Q_SLOTS | |
Q_SLOT Q_SLOT | |
Q_EMIT Q_EMIT | |
Q_INVOKABLE Q_INVOKABLE | |
Q_REVISION Q_REVISION | |
Q_SET_OBJECT_NAME (Object) | |
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
Public Member Functions inherited from QPaintDevice | |
virtual | ~QPaintDevice () |
bool | paintingActive () const const |
int | width () const const |
int | height () const const |
int | widthMM () const const |
int | heightMM () const const |
int | logicalDpiX () const const |
int | logicalDpiY () const const |
int | physicalDpiX () const const |
int | physicalDpiY () const const |
int | devicePixelRatio () const const |
qreal | devicePixelRatioF () const const |
int | colorCount () const const |
int | depth () const const |
Public Member Functions inherited from OpenOrienteering::CRSParameterWidgetObserver | |
CRSParameterWidgetObserver () noexcept=default | |
CRSParameterWidgetObserver (const CRSParameterWidgetObserver &)=delete | |
CRSParameterWidgetObserver (CRSParameterWidgetObserver &&)=delete | |
virtual | ~CRSParameterWidgetObserver () |
CRSParameterWidgetObserver & | operator= (const CRSParameterWidgetObserver &)=delete |
CRSParameterWidgetObserver & | operator= (CRSParameterWidgetObserver &&)=delete |
Protected Member Functions | |
void | crsSelectionChanged () |
Listens to changes of the selected CRS. More... | |
void | crsParameterEdited () override |
Listens to changes of CRS parameters. More... | |
void | configureParameterFields () |
Updates the parameter fields in the dialog_layout, according to the selected CRS. More... | |
void | configureParameterFields (const CRSTemplate *crs, const std::vector< QString > &values) |
Updates the parameter fields in the dialog_layout, according to the given CRS and values. More... | |
void | addParameterFields (const CRSTemplate *crs) |
Adds parameter fields to the dialog_layout, according to the given crs. More... | |
void | removeParameterFields () |
Removes all parameter fields from the dialog_layout. More... | |
void | changeEvent (QEvent *event) override |
Propagates enabling/disabling to the parameter widgets. More... | |
Protected Member Functions inherited from QComboBox | |
virtual void | focusInEvent (QFocusEvent *e) override |
virtual void | focusOutEvent (QFocusEvent *e) override |
virtual void | resizeEvent (QResizeEvent *e) override |
virtual void | paintEvent (QPaintEvent *e) override |
virtual void | showEvent (QShowEvent *e) override |
virtual void | hideEvent (QHideEvent *e) override |
virtual void | mousePressEvent (QMouseEvent *e) override |
virtual void | mouseReleaseEvent (QMouseEvent *e) override |
virtual void | keyPressEvent (QKeyEvent *e) override |
virtual void | keyReleaseEvent (QKeyEvent *e) override |
virtual void | wheelEvent (QWheelEvent *e) override |
virtual void | contextMenuEvent (QContextMenuEvent *e) override |
virtual void | inputMethodEvent (QInputMethodEvent *e) override |
void | initStyleOption (QStyleOptionComboBox *option) const const |
Protected Member Functions inherited from QWidget | |
virtual void | mouseDoubleClickEvent (QMouseEvent *event) |
virtual void | mouseMoveEvent (QMouseEvent *event) |
virtual void | enterEvent (QEvent *event) |
virtual void | leaveEvent (QEvent *event) |
virtual void | moveEvent (QMoveEvent *event) |
virtual void | closeEvent (QCloseEvent *event) |
virtual void | tabletEvent (QTabletEvent *event) |
virtual void | actionEvent (QActionEvent *event) |
virtual void | dragEnterEvent (QDragEnterEvent *event) |
virtual void | dragMoveEvent (QDragMoveEvent *event) |
virtual void | dragLeaveEvent (QDragLeaveEvent *event) |
virtual void | dropEvent (QDropEvent *event) |
virtual bool | nativeEvent (const QByteArray &eventType, void *message, long *result) |
virtual int | metric (QPaintDevice::PaintDeviceMetric m) const const override |
virtual void | initPainter (QPainter *painter) const const override |
void | updateMicroFocus () |
void | create (WId window, bool initializeWindow, bool destroyOldWindow) |
void | destroy (bool destroyWindow, bool destroySubWindows) |
virtual bool | focusNextPrevChild (bool next) |
bool | focusNextChild () |
bool | focusPreviousChild () |
Protected Member Functions inherited from QObject | |
QObject * | sender () const const |
int | senderSignalIndex () const const |
int | receivers (const char *signal) const const |
bool | isSignalConnected (const QMetaMethod &signal) const const |
virtual void | timerEvent (QTimerEvent *event) |
virtual void | childEvent (QChildEvent *event) |
virtual void | customEvent (QEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
Protected Member Functions inherited from QPaintDevice | |
QPaintDevice () | |
Combobox for selecting projected coordinate reference system (CRS).
It operates on the list of CRS templates in the CRSTemplateRegistry. However, it accepts custom items which are prepended to and separated from the default items.
This is more than just a simple widget. CRSSelector is meant to be inserted into a QFormLayout. Upon CRS selection changes it will add and remove extra lines below itself, for editing CRS parameters.
OpenOrienteering::CRSSelector::CRSSelector | ( | const Georeferencing & | georef, |
QWidget * | parent = nullptr |
||
) |
Constructor.
The dialog parameter must not be nullptr. It is passed to parameter widgets. Ownership is taken only by the parent widget if given.
|
overridedefault |
Destructor.
void OpenOrienteering::CRSSelector::addCustomItem | ( | const QString & | text, |
unsigned short | id | ||
) |
Adds a custom item with the given text and id at the top of the list.
|
protected |
Adds parameter fields to the dialog_layout, according to the given crs.
There must be no other parameter fields in the dialog, i.e. removeParameterFields() needs to be called before.
|
overrideprotectedvirtual |
Propagates enabling/disabling to the parameter widgets.
Reimplemented from QComboBox.
|
protected |
Updates the parameter fields in the dialog_layout, according to the selected CRS.
|
protected |
Updates the parameter fields in the dialog_layout, according to the given CRS and values.
|
signal |
Emitted when the user changes the CRS or its parameters.
|
overrideprotectedvirtual |
Listens to changes of CRS parameters.
Implements OpenOrienteering::CRSParameterWidgetObserver.
|
protected |
Listens to changes of the selected CRS.
QString OpenOrienteering::CRSSelector::currentCRSSpec | ( | ) | const |
Returns the selected CRS specification string, or an empty string if a custom item is selected.
const CRSTemplate * OpenOrienteering::CRSSelector::currentCRSTemplate | ( | ) | const |
Returns the selected CRS template, or nullptr if a custom item is selected.
int OpenOrienteering::CRSSelector::currentCustomItem | ( | ) | const |
Returns the id of the selected custom item, or -1 if a normal item is selected.
|
overridevirtual |
Provides the current georeferencing.
Implements OpenOrienteering::CRSParameterWidgetObserver.
std::vector< QString > OpenOrienteering::CRSSelector::parameters | ( | ) | const |
Returns the list of CRS configuration parameter values.
|
protected |
Removes all parameter fields from the dialog_layout.
void OpenOrienteering::CRSSelector::setCurrentCRS | ( | const CRSTemplate * | crs, |
const std::vector< QString > & | values | ||
) |
Selects the given standard item, and sets the parameters.
void OpenOrienteering::CRSSelector::setCurrentItem | ( | unsigned short | id | ) |
Selects the given custom item.
void OpenOrienteering::CRSSelector::setDialogLayout | ( | QFormLayout * | dialog_layout | ) |
Sets the QFormLayout which this field is part of.
When the selected CRS is changed, or when configureParameterFields() is called explicitly, CRSSelector will add extra lines below its own row for editing CRS parameters.
This is to be called once. However, it will not create the parameter fields for the current selection.