All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 onCancelPushButtonClicked ()
 
void onHelpPushButtonClicked ()
 
void onOkPushButtonClicked ()
 
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

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.

Definition at line 38 of file SRSManagerDialog.cpp.

References te::common::Singleton< SpatialReferenceSystemManager >::getInstance(), m_recentSRS, m_selSrsId, m_ui, onCancelPushButtonClicked(), onOkPushButtonClicked(), onSearchLineEditTextChanged(), onSRSRecentTableWidgetItemClicked(), and onSRSTreeWidgetItemClicked().

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

Destructor.

Definition at line 154 of file SRSManagerDialog.cpp.

Member Function Documentation

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

Definition at line 186 of file SRSManagerDialog.cpp.

const std::pair< int, std::string > & te::qt::widgets::SRSManagerDialog::getSelectedSRS ( ) const
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.

Definition at line 165 of file SRSManagerDialog.cpp.

References m_selSrsId, and TE_UNKNOWN_SRS.

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

Definition at line 248 of file SRSManagerDialog.cpp.

Referenced by SRSManagerDialog().

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

Definition at line 255 of file SRSManagerDialog.cpp.

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

Definition at line 229 of file SRSManagerDialog.cpp.

References TE_UNKNOWN_SRS.

Referenced by SRSManagerDialog().

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

Definition at line 178 of file SRSManagerDialog.cpp.

Referenced by SRSManagerDialog().

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

Definition at line 217 of file SRSManagerDialog.cpp.

Referenced by SRSManagerDialog().

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

Member Data Documentation

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

Definition at line 110 of file SRSManagerDialog.h.

Referenced by SRSManagerDialog().

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

The selected SRS.

Definition at line 109 of file SRSManagerDialog.h.

Referenced by getSRS(), and SRSManagerDialog().

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

Dialog form.

Definition at line 108 of file SRSManagerDialog.h.

Referenced by SRSManagerDialog().


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