NDEVR
API Documentation
CoordinateConverterDialog

A dialog that allows the user to set a Coordinate projection for the current project. More...

Public Member Functions

 CoordinateConverterDialog (QWidget *parent=0)
 Constructs a CoordinateConverterDialog widget.
virtual ~CoordinateConverterDialog ()
 Destructor.
void acceptedSignal ()
 Emitted when the user accepts the coordinate projection settings.
QWidget * chooser ()
 Gets the coordinate projection chooser widget.
QSize minimumSizeHint () const override
 Gets the minimum size hint for the dialog.
void resizeEvent (QResizeEvent *event) override
 Handles resize events to adjust layout.
void setShowChooserCallback (std::function< void(bool show)> &show_chooser_callback)
 Sets the callback for showing/hiding the projection chooser.
void setupAsPrimary ()
 Configures this dialog as the primary coordinate projection editor.
void showAcceptButton (bool show)
 Shows or hides the accept button.
void showSearch (bool show_search)
 Shows or hides the projection search panel.
void showVerticalDatumSearch (bool show)
 Shows or hides the vertical datum search panel.
void updatedFromUISignal ()
 Emitted when the projection settings are updated from the UI.
QWidget * verticalDatumChooser ()
 Gets the vertical datum chooser widget.

Protected Member Functions

virtual void showEvent (QShowEvent *event) override
 Handles the show event to refresh data when the widget becomes visible.

Private Member Functions

bool event (QEvent *event) override
 Handles general events for the dialog.

Detailed Description

A dialog that allows the user to set a Coordinate projection for the current project.


Definition at line 55 of file CoordinateConverterDialog.h.

Constructor & Destructor Documentation

◆ CoordinateConverterDialog()

CoordinateConverterDialog::CoordinateConverterDialog ( QWidget * parent = 0)

Constructs a CoordinateConverterDialog widget.

Parameters
[in]parentThe parent widget.

Member Function Documentation

◆ chooser()

QWidget * CoordinateConverterDialog::chooser ( )

Gets the coordinate projection chooser widget.

Returns
A pointer to the chooser widget.

◆ event()

bool CoordinateConverterDialog::event ( QEvent * event)
overrideprivate

Handles general events for the dialog.

Parameters
[in]eventThe event to process.
Returns
True if the event was handled.

References event().

Referenced by event(), resizeEvent(), and showEvent().

◆ minimumSizeHint()

QSize CoordinateConverterDialog::minimumSizeHint ( ) const
override

Gets the minimum size hint for the dialog.

Returns
The minimum recommended size.

◆ resizeEvent()

void CoordinateConverterDialog::resizeEvent ( QResizeEvent * event)
override

Handles resize events to adjust layout.

Parameters
[in]eventThe resize event.

References event().

◆ setShowChooserCallback()

void CoordinateConverterDialog::setShowChooserCallback ( std::function< void(bool show)> & show_chooser_callback)

Sets the callback for showing/hiding the projection chooser.

Parameters
[in]show_chooser_callbackThe callback function.

◆ showAcceptButton()

void CoordinateConverterDialog::showAcceptButton ( bool show)

Shows or hides the accept button.

Parameters
[in]showTrue to show the button.

◆ showEvent()

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

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

Parameters
[in]eventThe show event.

References event().

◆ showSearch()

void CoordinateConverterDialog::showSearch ( bool show_search)

Shows or hides the projection search panel.

Parameters
[in]show_searchTrue to show the search panel.

◆ showVerticalDatumSearch()

void CoordinateConverterDialog::showVerticalDatumSearch ( bool show)

Shows or hides the vertical datum search panel.

Parameters
[in]showTrue to show the search panel.

◆ verticalDatumChooser()

QWidget * CoordinateConverterDialog::verticalDatumChooser ( )

Gets the vertical datum chooser widget.

Returns
A pointer to the vertical datum chooser widget.

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