All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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...
 

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 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)
 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 68 of file DataSetTableDockWidget.h.

Constructor & Destructor Documentation

te::qt::af::DataSetTableDockWidget::DataSetTableDockWidget ( QWidget *  parent = 0)
te::qt::af::DataSetTableDockWidget::~DataSetTableDockWidget ( )

Destructor.

Definition at line 53 of file DataSetTableDockWidget.cpp.

Member Function Documentation

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

Emitted before this widget was closed.

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

Returns the layer being used.

Returns
Layer being used.

Definition at line 79 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 138 of file DataSetTableDockWidget.cpp.

Referenced by DataSetTableDockWidget().

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

Used for selection changed on table view.

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

Definition at line 127 of file DataSetTableDockWidget.cpp.

References te::qt::af::ApplicationController::broadcast(), and te::qt::af::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 58 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 138 of file DataSetTableDockWidget.h.

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

The table view.

Definition at line 136 of file DataSetTableDockWidget.h.

Referenced by DataSetTableDockWidget().


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