te::qt::widgets::CreateLayerWidget Class Reference

This interface is used to create new layer operation. More...

#include <CreateLayerWidget.h>

Inheritance diagram for te::qt::widgets::CreateLayerWidget:
QWidget

Public Member Functions

void clear ()
 
bool createLayer (std::string &errorMessage)
 
 CreateLayerWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 
te::map::AbstractLayerPtr getLayer ()
 
void setDataSource (te::da::DataSourceInfoPtr dsInfo)
 
void setReferenceLayers (std::list< te::map::AbstractLayerPtr > refLayers)
 
 ~CreateLayerWidget ()
 

Protected Slots

void onAddPushButtonClicked ()
 
void onClearToolButtonTriggered ()
 
void onRefLayerComboBoxActivated (int)
 
void onRemoveAttrExecuted (int row)
 
void onTableWidgetCellChanged (int row, int column)
 
void onTargetDatasourceToolButtonPressed ()
 
void onTargetFileToolButtonPressed ()
 

Protected Member Functions

void listProperties ()
 

Private Attributes

te::qt::widgets::NewPropertyWidgetm_newPropWidget
 
te::da::DataSourceInfoPtr m_outputDatasource
 
std::vector< te::dt::Property * > m_props
 
QSignalMapper * m_removeMapper
 The mapper used to know which action was executed. More...
 
bool m_toFile
 
std::unique_ptr< Ui::CreateLayerWidgetForm > m_ui
 

Detailed Description

This interface is used to create new layer operation.

This interface is used to create a new layer based on a layer with selected objects.

Definition at line 61 of file CreateLayerWidget.h.

Constructor & Destructor Documentation

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

Default Constructor

te::qt::widgets::CreateLayerWidget::~CreateLayerWidget ( )

Default Destructor

Definition at line 83 of file CreateLayerWidget.cpp.

References clear().

Member Function Documentation

void te::qt::widgets::CreateLayerWidget::clear ( )
bool te::qt::widgets::CreateLayerWidget::createLayer ( std::string &  errorMessage)
te::map::AbstractLayerPtr te::qt::widgets::CreateLayerWidget::getLayer ( )
void te::qt::widgets::CreateLayerWidget::onClearToolButtonTriggered ( )
protectedslot

Definition at line 137 of file CreateLayerWidget.cpp.

References clear(), and listProperties().

void te::qt::widgets::CreateLayerWidget::onRefLayerComboBoxActivated ( int  index)
protectedslot

Definition at line 116 of file CreateLayerWidget.cpp.

References listProperties(), m_props, and m_ui.

void te::qt::widgets::CreateLayerWidget::onRemoveAttrExecuted ( int  row)
protectedslot

Definition at line 380 of file CreateLayerWidget.cpp.

References listProperties(), and m_props.

void te::qt::widgets::CreateLayerWidget::onTableWidgetCellChanged ( int  row,
int  column 
)
protectedslot

Definition at line 428 of file CreateLayerWidget.cpp.

References m_props, and m_ui.

Referenced by listProperties().

void te::qt::widgets::CreateLayerWidget::setDataSource ( te::da::DataSourceInfoPtr  dsInfo)
void te::qt::widgets::CreateLayerWidget::setReferenceLayers ( std::list< te::map::AbstractLayerPtr refLayers)

Definition at line 105 of file CreateLayerWidget.cpp.

References m_ui.

Referenced by te::qt::widgets::CreateLayerDialog::setReferenceLayers().

Member Data Documentation

te::qt::widgets::NewPropertyWidget* te::qt::widgets::CreateLayerWidget::m_newPropWidget
private
te::da::DataSourceInfoPtr te::qt::widgets::CreateLayerWidget::m_outputDatasource
private
std::vector<te::dt::Property*> te::qt::widgets::CreateLayerWidget::m_props
private
QSignalMapper* te::qt::widgets::CreateLayerWidget::m_removeMapper
private

The mapper used to know which action was executed.

Definition at line 117 of file CreateLayerWidget.h.

Referenced by listProperties().

bool te::qt::widgets::CreateLayerWidget::m_toFile
private
std::unique_ptr<Ui::CreateLayerWidgetForm> te::qt::widgets::CreateLayerWidget::m_ui
private

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