te::qt::widgets::DirectExchangerDialog Class Reference

#include <DirectExchangerDialog.h>

Inheritance diagram for te::qt::widgets::DirectExchangerDialog:
QDialog

Public Member Functions

 DirectExchangerDialog (QWidget *parent=0, Qt::WindowFlags f=0)
 
void setLastDataSource (std::string dataSource)
 Function used to set the last data source used. More...
 
void setLayers (std::list< te::map::AbstractLayerPtr > layers)
 Set the layer that can be used. More...
 
 ~DirectExchangerDialog ()
 

Protected Slots

void onDataSoruceToolButtonClicked ()
 
void onDataSourceTypeActivated (int index)
 
void onDirToolButtonClicked ()
 
void onInputLayerActivated (QString value)
 
void onOkPushButtonClicked ()
 
void onOutputLayerSRSTriggered ()
 
void setOutputDataSources ()
 

Protected Member Functions

bool exchangeToDatabase ()
 
bool exchangeToFile ()
 
void setDataSources ()
 Set the list of data sources that can be used. More...
 

Private Attributes

bool m_exchangeToFile
 
std::string m_lastDsType
 
std::list< te::map::AbstractLayerPtrm_layers
 
std::string m_outputDataSourceType
 
std::unique_ptr< Ui::DirectExchangerDialogForm > m_ui
 

Detailed Description

Definition at line 51 of file DirectExchangerDialog.h.

Constructor & Destructor Documentation

te::qt::widgets::DirectExchangerDialog::DirectExchangerDialog ( QWidget parent = 0,
Qt::WindowFlags  f = 0 
)
te::qt::widgets::DirectExchangerDialog::~DirectExchangerDialog ( )
default

Referenced by Q_DECLARE_METATYPE().

Member Function Documentation

void te::qt::widgets::DirectExchangerDialog::onDataSoruceToolButtonClicked ( )
protectedslot

Definition at line 708 of file DirectExchangerDialog.cpp.

References m_lastDsType, and setDataSources().

void te::qt::widgets::DirectExchangerDialog::onDataSourceTypeActivated ( int  index)
protectedslot
void te::qt::widgets::DirectExchangerDialog::onDirToolButtonClicked ( )
protectedslot

Definition at line 697 of file DirectExchangerDialog.cpp.

References m_ui.

void te::qt::widgets::DirectExchangerDialog::onInputLayerActivated ( QString  value)
protectedslot

Definition at line 664 of file DirectExchangerDialog.cpp.

References m_ui, onDataSourceTypeActivated(), and TE_UNKNOWN_SRS.

Referenced by setLayers().

void te::qt::widgets::DirectExchangerDialog::onOkPushButtonClicked ( )
protectedslot
void te::qt::widgets::DirectExchangerDialog::onOutputLayerSRSTriggered ( )
protectedslot
void te::qt::widgets::DirectExchangerDialog::setDataSources ( )
protected

Set the list of data sources that can be used.

Definition at line 130 of file DirectExchangerDialog.cpp.

References te::common::Singleton< DataSourceInfoManager >::getInstance(), m_outputDataSourceType, and m_ui.

Referenced by onDataSoruceToolButtonClicked(), and onDataSourceTypeActivated().

void te::qt::widgets::DirectExchangerDialog::setLastDataSource ( std::string  dataSource)

Function used to set the last data source used.

Parameters
dataSourceLast data source name used

Definition at line 125 of file DirectExchangerDialog.cpp.

References m_lastDsType.

Referenced by TerraView::onToolsDataExchangerDirectTriggered().

void te::qt::widgets::DirectExchangerDialog::setLayers ( std::list< te::map::AbstractLayerPtr layers)

Set the layer that can be used.

Parameters
layersList of AbstractLayerPtr

Definition at line 94 of file DirectExchangerDialog.cpp.

References m_layers, m_ui, and onInputLayerActivated().

Referenced by TerraView::onToolsDataExchangerDirectPopUpTriggered(), and TerraView::onToolsDataExchangerDirectTriggered().

void te::qt::widgets::DirectExchangerDialog::setOutputDataSources ( )
protectedslot

Member Data Documentation

bool te::qt::widgets::DirectExchangerDialog::m_exchangeToFile
private

Definition at line 113 of file DirectExchangerDialog.h.

Referenced by onDataSourceTypeActivated(), and onOkPushButtonClicked().

std::string te::qt::widgets::DirectExchangerDialog::m_lastDsType
private

Definition at line 111 of file DirectExchangerDialog.h.

Referenced by onDataSoruceToolButtonClicked(), and setLastDataSource().

std::list<te::map::AbstractLayerPtr> te::qt::widgets::DirectExchangerDialog::m_layers
private

Definition at line 107 of file DirectExchangerDialog.h.

Referenced by setLayers().

std::string te::qt::widgets::DirectExchangerDialog::m_outputDataSourceType
private
std::unique_ptr<Ui::DirectExchangerDialogForm> te::qt::widgets::DirectExchangerDialog::m_ui
private

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