All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::qt::widgets::TableLinkDialog Class Reference

This class represents a TableLinkDialog component. More...

#include <TableLinkDialog.h>

Inheritance diagram for te::qt::widgets::TableLinkDialog:

Public Slots

int exec ()
 

Public Member Functions

te::da::JoingetJoin ()
 Returns the generated Join. More...
 
te::map::AbstractLayerPtr getQueryLayer ()
 Returns a new query layer based on the requested parameters. More...
 
te::da::Select getSelectQuery ()
 Returns a new query based on the requested parameters. More...
 
void setInputLayer (te::map::AbstractLayerPtr inLayer)
 It sets the Datasource that is being used to generate the new Layer. More...
 
 TableLinkDialog (QWidget *parent=0, Qt::WindowFlags f=0)
 Constructor. More...
 
 ~TableLinkDialog ()
 Destructor. More...
 

Protected Slots

void done (int r)
 
void onAdvancedToolButtonnClicked ()
 Displays or hides the widget's used to configure the query's fields. More...
 
void onDataCBIndexChanged (int index)
 
void onDataToolButtonnClicked ()
 Displays or hides the data of the tabular Dataset. More...
 
void onOkPushButtonClicked ()
 

Protected Member Functions

void getDataSets ()
 
void getProperties ()
 

Private Attributes

te::da::DataSourcePtr m_ds
 The dasource of the layers to be linked. More...
 
std::auto_ptr< FieldsDialogm_fieldsDialog
 The widget used to select which fields will be added to the query. More...
 
te::map::DataSetLayerPtr m_inputLayer
 The layer the will serve as the base for the link. More...
 
std::auto_ptr< DataSetTableViewm_tabularView
 The widget used to preview the data of the tabular dataset. More...
 
std::auto_ptr
< Ui::TableLinkDialogForm > 
m_ui
 The widget's form. More...
 

Detailed Description

This class represents a TableLinkDialog component.

Definition at line 57 of file TableLinkDialog.h.

Constructor & Destructor Documentation

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

Constructor.

It constructs a TableLinkDialog.

Parameters
parentthis dialogs's parent
fWindow flags used to configure this dialog

Definition at line 57 of file TableLinkDialog.cpp.

References m_fieldsDialog, m_tabularView, m_ui, onDataCBIndexChanged(), onDataToolButtonnClicked(), and onOkPushButtonClicked().

te::qt::widgets::TableLinkDialog::~TableLinkDialog ( )

Destructor.

Definition at line 94 of file TableLinkDialog.cpp.

Member Function Documentation

void te::qt::widgets::TableLinkDialog::done ( int  r)
protectedslot

Definition at line 302 of file TableLinkDialog.cpp.

References te::dt::INT16_TYPE, te::dt::STRING_TYPE, and te::dt::UINT64_TYPE.

int te::qt::widgets::TableLinkDialog::exec ( )
slot

Definition at line 333 of file TableLinkDialog.cpp.

void te::qt::widgets::TableLinkDialog::getDataSets ( )
protected

Definition at line 175 of file TableLinkDialog.cpp.

References te::da::GetDataSetNames().

te::da::Join * te::qt::widgets::TableLinkDialog::getJoin ( )

Returns the generated Join.

Note
The caller will take ownership of the returned pointer

Definition at line 110 of file TableLinkDialog.cpp.

void te::qt::widgets::TableLinkDialog::getProperties ( )
protected
te::map::AbstractLayerPtr te::qt::widgets::TableLinkDialog::getQueryLayer ( )

Returns a new query layer based on the requested parameters.

Definition at line 150 of file TableLinkDialog.cpp.

References te::se::CreateFeatureTypeStyle(), te::da::GetFirstGeomProperty(), and te::gm::GeometryProperty::setSRID().

te::da::Select te::qt::widgets::TableLinkDialog::getSelectQuery ( )

Returns a new query based on the requested parameters.

Definition at line 133 of file TableLinkDialog.cpp.

References te::da::Select::getFields().

void te::qt::widgets::TableLinkDialog::onAdvancedToolButtonnClicked ( )
protectedslot

Displays or hides the widget's used to configure the query's fields.

Definition at line 379 of file TableLinkDialog.cpp.

void te::qt::widgets::TableLinkDialog::onDataCBIndexChanged ( int  index)
protectedslot

Definition at line 351 of file TableLinkDialog.cpp.

Referenced by TableLinkDialog().

void te::qt::widgets::TableLinkDialog::onDataToolButtonnClicked ( )
protectedslot

Displays or hides the data of the tabular Dataset.

Definition at line 363 of file TableLinkDialog.cpp.

Referenced by TableLinkDialog().

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

Definition at line 388 of file TableLinkDialog.cpp.

Referenced by TableLinkDialog().

void te::qt::widgets::TableLinkDialog::setInputLayer ( te::map::AbstractLayerPtr  inLayer)

It sets the Datasource that is being used to generate the new Layer.

Parameters
datasourceThe dasource being used.

Definition at line 98 of file TableLinkDialog.cpp.

References te::common::Singleton< DataSourceManager >::getInstance().

Member Data Documentation

te::da::DataSourcePtr te::qt::widgets::TableLinkDialog::m_ds
private

The dasource of the layers to be linked.

Definition at line 137 of file TableLinkDialog.h.

std::auto_ptr<FieldsDialog> te::qt::widgets::TableLinkDialog::m_fieldsDialog
private

The widget used to select which fields will be added to the query.

Definition at line 139 of file TableLinkDialog.h.

Referenced by TableLinkDialog().

te::map::DataSetLayerPtr te::qt::widgets::TableLinkDialog::m_inputLayer
private

The layer the will serve as the base for the link.

Definition at line 136 of file TableLinkDialog.h.

std::auto_ptr<DataSetTableView> te::qt::widgets::TableLinkDialog::m_tabularView
private

The widget used to preview the data of the tabular dataset.

Definition at line 138 of file TableLinkDialog.h.

Referenced by TableLinkDialog().

std::auto_ptr<Ui::TableLinkDialogForm> te::qt::widgets::TableLinkDialog::m_ui
private

The widget's form.

Definition at line 140 of file TableLinkDialog.h.

Referenced by TableLinkDialog().


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