NDEVR
API Documentation
CoordinateProjectionChooser

Allows the user to select a coordinate projection from a list of ones available. More...

Collaboration diagram for CoordinateProjectionChooser:
[legend]

Public Member Functions

 CoordinateProjectionChooser (QWidget *parent=nullptr)
 Constructs a CoordinateProjectionChooser widget.
void acceptedSignal (const UUID id)
 Emitted when the user accepts a projection selection.
void canceledSignal ()
 Emitted when the user cancels the selection.
void setProjection (UUID projection_id)
 Sets the currently selected projection.

Protected Member Functions

void coordinateProjectionTableSelected (int row, int column)
 Handles selection of a row in the projection table.
INIFactory getINIFactory ()
 Creates an INI factory for reading/writing settings.
void init ()
 Initializes the UI components and connections.
void readINI ()
 Reads the recent projections list from an INI file.
void saveINI ()
 Saves the recent projections list to an INI file.
void setupTable (QTableWidget *widget, const Buffer< UUID > &projections)
 Populates a table widget with projection entries.
virtual void showEvent (QShowEvent *event) override
 Handles the show event to refresh data when the widget becomes visible.
void tabChangedSlot ()
 Handles tab changes in the chooser widget.
void updateSearch (bool finished, bool allow_download=true)
 Updates the search results based on the current filter text.
void updateTables ()
 Updates all projection tables with current data.

Protected Attributes

bool m_has_loaded_authorities = false
 Whether projection authority data has been loaded.
UUID m_projection
 The currently selected projection UUID.
Ui::CoordinateProjectionChooserUI * ui
 The Qt UI form instance.

Detailed Description

Allows the user to select a coordinate projection from a list of ones available.


Definition at line 17 of file CoordinateProjectionChooser.h.

Constructor & Destructor Documentation

◆ CoordinateProjectionChooser()

CoordinateProjectionChooser::CoordinateProjectionChooser ( QWidget * parent = nullptr)

Constructs a CoordinateProjectionChooser widget.

Parameters
[in]parentThe parent widget.

Member Function Documentation

◆ acceptedSignal()

void CoordinateProjectionChooser::acceptedSignal ( const UUID id)

Emitted when the user accepts a projection selection.

Parameters
[in]idThe UUID of the accepted projection.

◆ coordinateProjectionTableSelected()

void CoordinateProjectionChooser::coordinateProjectionTableSelected ( int row,
int column )
protected

Handles selection of a row in the projection table.

Parameters
[in]rowThe selected row index.
[in]columnThe selected column index.

◆ getINIFactory()

INIFactory CoordinateProjectionChooser::getINIFactory ( )
protected

Creates an INI factory for reading/writing settings.

Returns
The configured INIFactory.

◆ setProjection()

void CoordinateProjectionChooser::setProjection ( UUID projection_id)

Sets the currently selected projection.

Parameters
[in]projection_idThe UUID of the projection to select.

◆ setupTable()

void CoordinateProjectionChooser::setupTable ( QTableWidget * widget,
const Buffer< UUID > & projections )
protected

Populates a table widget with projection entries.

Parameters
[in]widgetThe table widget to populate.
[in]projectionsThe projection UUIDs to display.

◆ showEvent()

virtual void CoordinateProjectionChooser::showEvent ( QShowEvent * event)
overrideprotectedvirtual

Handles the show event to refresh data when the widget becomes visible.

Parameters
[in]eventThe show event.

◆ updateSearch()

void CoordinateProjectionChooser::updateSearch ( bool finished,
bool allow_download = true )
protected

Updates the search results based on the current filter text.

Parameters
[in]finishedWhether the search text input is complete.
[in]allow_downloadWhether to allow downloading missing projection definitions.

The documentation for this class was generated from the following file: