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

A dock widget for DataSetTableView objects. More...

#include <DataSetTableDockWidget.h>

Inheritance diagram for te::qt::af::DataSetTableDockWidget:

Signals

void closed (te::qt::af::DataSetTableDockWidget *)
 Emitted before this widget was closed. More...
 
void createChartDisplay (te::qt::widgets::ChartDisplayWidget *, te::map::AbstractLayer *layer)
 Broadcasts the creation of a new chartWidget to the application. More...
 

Public Member Functions

 DataSetTableDockWidget (QWidget *parent=0)
 Constructor. More...
 
te::map::AbstractLayergetLayer () const
 Returns the layer being used. More...
 
void setLayer (te::map::AbstractLayer *layer)
 Sets the layer to be showed on view. This DOES NOT takes the ownership of layer. More...
 
 ~DataSetTableDockWidget ()
 Destructor. More...
 

Protected Slots

void chartDisplayCreated (te::qt::widgets::ChartDisplayWidget *chartWidget)
 Broadcasts the creation of a new chartWidget to the application. More...
 
void onApplicationTriggered (te::qt::af::evt::Event *evt)
 Used for capture events sent by application framework. More...
 
void removeSelectedOIds (te::da::ObjectIdSet *oids)
 Removes the oids from the list of selected in the Layer. More...
 
void selectionChanged (te::da::ObjectIdSet *oids, const bool &add, te::gm::Envelope *env)
 Used for selection changed on table view. More...
 

Protected Attributes

te::map::AbstractLayerm_layer
 Layer being visualized. More...
 
te::qt::widgets::DataSetTableViewm_view
 The table view. More...
 

Detailed Description

A dock widget for DataSetTableView objects.

Definition at line 74 of file DataSetTableDockWidget.h.

Constructor & Destructor Documentation

te::qt::af::DataSetTableDockWidget::~DataSetTableDockWidget ( )

Destructor.

Definition at line 56 of file DataSetTableDockWidget.cpp.

Member Function Documentation

void te::qt::af::DataSetTableDockWidget::chartDisplayCreated ( te::qt::widgets::ChartDisplayWidget chartWidget)
protectedslot

Broadcasts the creation of a new chartWidget to the application.

Parameters
chartWidgetThe widget containing the generated chart.

Definition at line 87 of file DataSetTableDockWidget.cpp.

Referenced by DataSetTableDockWidget().

void te::qt::af::DataSetTableDockWidget::closed ( te::qt::af::DataSetTableDockWidget )
signal

Emitted before this widget was closed.

void te::qt::af::DataSetTableDockWidget::createChartDisplay ( te::qt::widgets::ChartDisplayWidget ,
te::map::AbstractLayer layer 
)
signal

Broadcasts the creation of a new chartWidget to the application.

Parameters
chartWidgetThe widget containing the generated chart.

Referenced by DataSetTableDockWidget().

te::map::AbstractLayer * te::qt::af::DataSetTableDockWidget::getLayer ( ) const

Returns the layer being used.

Returns
Layer being used.

Definition at line 82 of file DataSetTableDockWidget.cpp.

void te::qt::af::DataSetTableDockWidget::removeSelectedOIds ( te::da::ObjectIdSet oids)
protectedslot

Removes the oids from the list of selected in the Layer.

Parameters
oidsSet of objects ids to be removed.
Note
This WILL NOT TAKE the ownership of oids.

Definition at line 146 of file DataSetTableDockWidget.cpp.

References te::qt::af::ApplicationController::broadcast(), and te::common::Singleton< ApplicationController >::getInstance().

Referenced by DataSetTableDockWidget().

void te::qt::af::DataSetTableDockWidget::selectionChanged ( te::da::ObjectIdSet oids,
const bool &  add,
te::gm::Envelope env 
)
protectedslot

Used for selection changed on table view.

Parameters
oidsThe selected object ids.
addTrue to add to previous selection, false to discard older selection.
envBounding box of the last object selected.
Note
This function WILL TAKE the ownership of oids. It gives the ownership to the layer.

Definition at line 135 of file DataSetTableDockWidget.cpp.

References te::qt::af::ApplicationController::broadcast(), and te::common::Singleton< ApplicationController >::getInstance().

Referenced by DataSetTableDockWidget().

void te::qt::af::DataSetTableDockWidget::setLayer ( te::map::AbstractLayer layer)

Sets the layer to be showed on view. This DOES NOT takes the ownership of layer.

Parameters
layerThe layer to be showed.

Definition at line 61 of file DataSetTableDockWidget.cpp.

Referenced by te::qt::af::BaseApplication::onLayerShowTableTriggered().

Member Data Documentation

te::map::AbstractLayer* te::qt::af::DataSetTableDockWidget::m_layer
protected

Layer being visualized.

Definition at line 162 of file DataSetTableDockWidget.h.

te::qt::widgets::DataSetTableView* te::qt::af::DataSetTableDockWidget::m_view
protected

The table view.

Definition at line 160 of file DataSetTableDockWidget.h.

Referenced by DataSetTableDockWidget().


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