te::qt::widgets::SRSManagerDialog Class Reference

A dialog used to build a SRSManagerDialog element. More...

#include <SRSManagerDialog.h>

Inheritance diagram for te::qt::widgets::SRSManagerDialog:

Public Member Functions

const std::pair< int, std::string > & getSelectedSRS () const
 Returns the selected SRS in the window. More...
 
 SRSManagerDialog (QWidget *parent=0, Qt::WindowFlags f=0)
 Constructs a basic dialog which is a child of parent, with widget flags set to f. More...
 
 ~SRSManagerDialog ()
 Destructor. More...
 

Static Public Member Functions

static std::pair< int, std::string > getSRS (QWidget *parent, const QString &title="")
 Pops up a modal SRS selector dialog with the given window title, lets the user select a SRS, and returns that SRS. More...
 

Protected Slots

void onAddSRSPushButtonClicked ()
 
void onCancelPushButtonClicked ()
 
void onEditSRSPushButtonClicked ()
 
void onHelpPushButtonClicked ()
 
void onOkPushButtonClicked ()
 
void onRemoveSRSPushButtonClicked ()
 
void onSearchLineEditTextChanged (const QString &text)
 
void onSRSRecentTableWidgetItemClicked (QTableWidgetItem *)
 
void onSRSTreeWidgetItemClicked (QTreeWidgetItem *, int)
 

Private Member Functions

void filter (const QList< QTreeWidgetItem *> &items)
 

Private Attributes

QStringList m_recentSRS
 
std::pair< int, std::string > m_selSrsId
 The selected SRS. More...
 
Ui::SRSManagerDialogForm * m_ui
 Dialog form. More...
 

Detailed Description

A dialog used to build a SRSManagerDialog element.

Definition at line 59 of file SRSManagerDialog.h.

Constructor & Destructor Documentation

◆ SRSManagerDialog()

te::qt::widgets::SRSManagerDialog::SRSManagerDialog ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Constructs a basic dialog which is a child of parent, with widget flags set to f.

Parameters
parentPointer to the dialog parent.
fThe dialog flags.

◆ ~SRSManagerDialog()

te::qt::widgets::SRSManagerDialog::~SRSManagerDialog ( )

Destructor.

Member Function Documentation

◆ filter()

void te::qt::widgets::SRSManagerDialog::filter ( const QList< QTreeWidgetItem *> &  items)
private

◆ getSelectedSRS()

const std::pair<int, std::string>& te::qt::widgets::SRSManagerDialog::getSelectedSRS ( ) const

Returns the selected SRS in the window.

Returns
a const pair <srid,auth_name> reference, with an SRS identification given by an authority. If the user doesn't select a SRS the pair will have a TE_UNKNOW_SRS and an empty auth_name.

◆ getSRS()

static std::pair<int, std::string> te::qt::widgets::SRSManagerDialog::getSRS ( QWidget *  parent,
const QString &  title = "" 
)
static

Pops up a modal SRS selector dialog with the given window title, lets the user select a SRS, and returns that SRS.

Parameters
parentDialog parent.
titleDialog title.
Returns
a pair <srid,auth_name>, with an SRS identification given by an authority. If the user doesn't select a SRS the pair will have a TE_UNKNOW_SRS and an empty auth_name.

◆ onAddSRSPushButtonClicked

void te::qt::widgets::SRSManagerDialog::onAddSRSPushButtonClicked ( )
protectedslot

◆ onCancelPushButtonClicked

void te::qt::widgets::SRSManagerDialog::onCancelPushButtonClicked ( )
protectedslot

◆ onEditSRSPushButtonClicked

void te::qt::widgets::SRSManagerDialog::onEditSRSPushButtonClicked ( )
protectedslot

◆ onHelpPushButtonClicked

void te::qt::widgets::SRSManagerDialog::onHelpPushButtonClicked ( )
protectedslot

◆ onOkPushButtonClicked

void te::qt::widgets::SRSManagerDialog::onOkPushButtonClicked ( )
protectedslot

◆ onRemoveSRSPushButtonClicked

void te::qt::widgets::SRSManagerDialog::onRemoveSRSPushButtonClicked ( )
protectedslot

◆ onSearchLineEditTextChanged

void te::qt::widgets::SRSManagerDialog::onSearchLineEditTextChanged ( const QString &  text)
protectedslot

◆ onSRSRecentTableWidgetItemClicked

void te::qt::widgets::SRSManagerDialog::onSRSRecentTableWidgetItemClicked ( QTableWidgetItem *  )
protectedslot

◆ onSRSTreeWidgetItemClicked

void te::qt::widgets::SRSManagerDialog::onSRSTreeWidgetItemClicked ( QTreeWidgetItem *  ,
int   
)
protectedslot

Member Data Documentation

◆ m_recentSRS

QStringList te::qt::widgets::SRSManagerDialog::m_recentSRS
private

Definition at line 113 of file SRSManagerDialog.h.

◆ m_selSrsId

std::pair<int, std::string> te::qt::widgets::SRSManagerDialog::m_selSrsId
private

The selected SRS.

Definition at line 112 of file SRSManagerDialog.h.

◆ m_ui

Ui::SRSManagerDialogForm* te::qt::widgets::SRSManagerDialog::m_ui
private

Dialog form.

Definition at line 111 of file SRSManagerDialog.h.


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