A dock widget for DataSetTableView objects. More...
#include <DataSetTableDockWidget.h>
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::AbstractLayer * | getLayer () 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::AbstractLayer * | m_layer |
Layer being visualized. More... | |
te::qt::widgets::DataSetTableView * | m_view |
The table view. More... | |
A dock widget for DataSetTableView objects.
Definition at line 68 of file DataSetTableDockWidget.h.
te::qt::af::DataSetTableDockWidget::DataSetTableDockWidget | ( | QWidget * | parent = 0 | ) |
Constructor.
parent | The widget parent. |
Definition at line 32 of file DataSetTableDockWidget.cpp.
References te::qt::af::GetAlternateRowColorsFromSettings(), te::qt::af::GetStyleSheetFromSettings(), m_view, removeSelectedOIds(), and selectionChanged().
te::qt::af::DataSetTableDockWidget::~DataSetTableDockWidget | ( | ) |
Destructor.
Definition at line 53 of file DataSetTableDockWidget.cpp.
|
signal |
Emitted before this widget was closed.
te::map::AbstractLayer * te::qt::af::DataSetTableDockWidget::getLayer | ( | ) | const |
Returns the layer being used.
Definition at line 79 of file DataSetTableDockWidget.cpp.
|
protectedslot |
Used for capture events sent by application framework.
Definition at line 84 of file DataSetTableDockWidget.cpp.
References te::qt::af::GetStyleSheetFromColors(), te::qt::af::evt::LAYER_REMOVED, te::qt::af::evt::LAYER_SELECTED_OBJECTS_CHANGED, te::qt::af::evt::Event::m_id, te::qt::af::evt::TableAlternatingColorsChanged::m_isAlternating, te::qt::af::evt::LayerRemoved::m_layer, te::qt::af::evt::LayerSelectedObjectsChanged::m_layer, te::qt::af::evt::TableAlternatingColorsChanged::m_primaryColor, te::qt::af::evt::TableAlternatingColorsChanged::m_secondaryColor, and te::qt::af::evt::TABLE_ALTERNATE_COLORS_CHANGED.
|
protectedslot |
Removes the oids from the list of selected in the Layer.
oids | Set of objects ids to be removed. |
Definition at line 138 of file DataSetTableDockWidget.cpp.
Referenced by DataSetTableDockWidget().
|
protectedslot |
Used for selection changed on table view.
oids | The selected object ids. |
add | True to add to previous selection, false to discard older selection. |
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.
layer | The layer to be showed. |
Definition at line 58 of file DataSetTableDockWidget.cpp.
Referenced by te::qt::af::BaseApplication::onLayerShowTableTriggered().
|
protected |
Layer being visualized.
Definition at line 138 of file DataSetTableDockWidget.h.
|
protected |
The table view.
Definition at line 136 of file DataSetTableDockWidget.h.
Referenced by DataSetTableDockWidget().