te::qt::widgets::QueryDialog Class Reference

This file defines a class for a Query Dialog Dialog. More...

#include <QueryDialog.h>

Inheritance diagram for te::qt::widgets::QueryDialog:
QDialog te::qt::widgets::InterfaceController

Signals

void createLayer (te::map::AbstractLayerPtr layer)
 
void highlightLayerObjects (const te::map::AbstractLayerPtr &layer, te::da::DataSet *dataset, const QColor &color)
 
void layerSelectedObjectsChanged (const te::map::AbstractLayerPtr &layer)
 

Public Member Functions

te::da::WheregetWhere ()
 
virtual void layerAdded (te::map::AbstractLayerPtr layer)
 This method is used to add a new layer. More...
 
virtual void layerRemoved (te::map::AbstractLayerPtr layer)
 This method is used to remove a layer. More...
 
virtual void layerSelected (te::map::AbstractLayerPtr layer)
 This method is used to set current layer. More...
 
 QueryDialog (QWidget *parent=0, Qt::WindowFlags f=0)
 
std::string setAliasName (std::string value)
 This method is used to set the alias name. More...
 
void setCurrentLayer (te::map::AbstractLayerPtr layer)
 This method is used to set current layer. More...
 
void setLayerList (std::list< te::map::AbstractLayerPtr > &layerList)
 This method is used to set the list of layers. More...
 
 ~QueryDialog ()
 

Protected Slots

void onApplyPushButtonClicked ()
 
void onCreateLayerPushButtonClicked ()
 
void onInputLayerActivated (QString value)
 

Private Attributes

ColorPickerToolButtonm_colorPicker
 
std::unique_ptr< Ui::QueryDialogForm > m_ui
 
std::unique_ptr< te::qt::widgets::WhereClauseWidgetm_whereClauseWidget
 

Detailed Description

This file defines a class for a Query Dialog Dialog.

Definition at line 66 of file QueryDialog.h.

Constructor & Destructor Documentation

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

Referenced by Q_DECLARE_METATYPE().

Member Function Documentation

void te::qt::widgets::QueryDialog::createLayer ( te::map::AbstractLayerPtr  layer)
signal
te::da::Where * te::qt::widgets::QueryDialog::getWhere ( )

Definition at line 163 of file QueryDialog.cpp.

References m_whereClauseWidget.

Referenced by onApplyPushButtonClicked(), and onCreateLayerPushButtonClicked().

void te::qt::widgets::QueryDialog::highlightLayerObjects ( const te::map::AbstractLayerPtr layer,
te::da::DataSet dataset,
const QColor &  color 
)
signal

This signal is emitted when the layer objects must be highlighted.

Referenced by onApplyPushButtonClicked().

void te::qt::widgets::QueryDialog::layerAdded ( te::map::AbstractLayerPtr  layer)
virtual

This method is used to add a new layer.

Implements te::qt::widgets::InterfaceController.

Definition at line 173 of file QueryDialog.cpp.

References m_ui, m_whereClauseWidget, and onInputLayerActivated().

void te::qt::widgets::QueryDialog::layerRemoved ( te::map::AbstractLayerPtr  layer)
virtual

This method is used to remove a layer.

Implements te::qt::widgets::InterfaceController.

Definition at line 198 of file QueryDialog.cpp.

References m_ui, m_whereClauseWidget, and onInputLayerActivated().

void te::qt::widgets::QueryDialog::layerSelected ( te::map::AbstractLayerPtr  layer)
virtual

This method is used to set current layer.

Implements te::qt::widgets::InterfaceController.

Definition at line 168 of file QueryDialog.cpp.

void te::qt::widgets::QueryDialog::layerSelectedObjectsChanged ( const te::map::AbstractLayerPtr layer)
signal

This signal is emitted when the layer selection changed.

Referenced by onApplyPushButtonClicked().

std::string te::qt::widgets::QueryDialog::setAliasName ( std::string  value)

This method is used to set the alias name.

Definition at line 144 of file QueryDialog.cpp.

Referenced by onInputLayerActivated().

void te::qt::widgets::QueryDialog::setCurrentLayer ( te::map::AbstractLayerPtr  layer)

This method is used to set current layer.

Definition at line 122 of file QueryDialog.cpp.

References m_ui, and onInputLayerActivated().

Referenced by TerraView::onQueryLayerTriggered().

void te::qt::widgets::QueryDialog::setLayerList ( std::list< te::map::AbstractLayerPtr > &  layerList)

This method is used to set the list of layers.

Definition at line 94 of file QueryDialog.cpp.

References m_ui, m_whereClauseWidget, and onInputLayerActivated().

Referenced by TerraView::onQueryLayerTriggered().

Member Data Documentation

ColorPickerToolButton* te::qt::widgets::QueryDialog::m_colorPicker
private

Definition at line 142 of file QueryDialog.h.

Referenced by onApplyPushButtonClicked().

std::unique_ptr<Ui::QueryDialogForm> te::qt::widgets::QueryDialog::m_ui
private
std::unique_ptr<te::qt::widgets::WhereClauseWidget> te::qt::widgets::QueryDialog::m_whereClauseWidget
private

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