A dock widget for DataSetTableView objects. More...
#include <DataSetTableDockWidget.h>
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... | |
| void | triggered (te::qt::af::evt::Event *e) |
Public Member Functions | |
| DataSetTableDockWidget (QWidget *parent=0) | |
| Constructor. More... | |
| te::map::AbstractLayer * | getLayer () const |
| Returns the layer being used. More... | |
| void | setHighlightColor (QColor color) |
| Defines the color to be used as Highlight. More... | |
| void | setLayer (te::map::AbstractLayer *layer, const bool &editable=true) |
| 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 | onAutoPanEnabled (const bool &enabled) |
| Enable or disable display auto pan to selecteds. 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::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 74 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 chartDisplayCreated(), createChartDisplay(), te::qt::af::GetAlternateRowColorsFromSettings(), te::qt::af::GetStyleSheetFromSettings(), m_view, onAutoPanEnabled(), removeSelectedOIds(), and selectionChanged().
| te::qt::af::DataSetTableDockWidget::~DataSetTableDockWidget | ( | ) |
|
protectedslot |
Broadcasts the creation of a new chartWidget to the application.
| chartWidget | The widget containing the generated chart. |
Definition at line 91 of file DataSetTableDockWidget.cpp.
References createChartDisplay(), and getLayer().
Referenced by DataSetTableDockWidget().
|
signal |
Emitted before this widget was closed.
Referenced by ~DataSetTableDockWidget().
|
signal |
Broadcasts the creation of a new chartWidget to the application.
| chartWidget | The widget containing the generated chart. |
Referenced by chartDisplayCreated(), and DataSetTableDockWidget().
| te::map::AbstractLayer * te::qt::af::DataSetTableDockWidget::getLayer | ( | ) | const |
Returns the layer being used.
Definition at line 81 of file DataSetTableDockWidget.cpp.
References m_layer.
Referenced by chartDisplayCreated().
|
protectedslot |
Used for capture events sent by application framework.
Definition at line 96 of file DataSetTableDockWidget.cpp.
References te::map::AbstractLayer::getId(), te::qt::af::GetStyleSheetFromColors(), te::qt::widgets::DataSetTableView::highlightOIds(), 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, m_layer, te::qt::af::evt::LayerSelectedObjectsChanged::m_layer, te::qt::af::evt::LayerRemoved::m_layers, te::qt::af::evt::TableAlternatingColorsChanged::m_primaryColor, te::qt::af::evt::TableAlternatingColorsChanged::m_secondaryColor, m_view, and te::qt::af::evt::TABLE_ALTERNATE_COLORS_CHANGED.
|
protectedslot |
Enable or disable display auto pan to selecteds.
| enabled | Define enable or disable |
Definition at line 163 of file DataSetTableDockWidget.cpp.
References triggered().
Referenced by DataSetTableDockWidget().
|
protectedslot |
Removes the oids from the list of selected in the Layer.
| oids | Set of objects ids to be removed. |
Definition at line 152 of file DataSetTableDockWidget.cpp.
References te::map::AbstractLayer::deselect(), te::map::AbstractLayer::getSelected(), m_layer, and triggered().
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. |
| env | Bounding box of the last object selected. |
Definition at line 141 of file DataSetTableDockWidget.cpp.
References te::map::AbstractLayer::clearSelected(), m_layer, te::map::AbstractLayer::select(), and triggered().
Referenced by DataSetTableDockWidget().
| void te::qt::af::DataSetTableDockWidget::setHighlightColor | ( | QColor | color | ) |
Defines the color to be used as Highlight.
| color | the Highlight color; |
Definition at line 86 of file DataSetTableDockWidget.cpp.
References m_view, and te::qt::widgets::DataSetTableView::setHighlightColor().
Referenced by te::qt::af::BaseApplication::onLayerShowTableTriggered().
| void te::qt::af::DataSetTableDockWidget::setLayer | ( | te::map::AbstractLayer * | layer, |
| const bool & | editable = true |
||
| ) |
Sets the layer to be showed on view. This DOES NOT takes the ownership of layer.
| layer | The layer to be showed. |
| editable | True to allow layer editions. |
Definition at line 60 of file DataSetTableDockWidget.cpp.
References te::map::AbstractLayer::getSelected(), te::map::AbstractLayer::getTitle(), te::qt::widgets::DataSetTableView::highlightOIds(), m_layer, m_view, and te::qt::widgets::DataSetTableView::setLayer().
Referenced by te::qt::af::BaseApplication::onLayerShowTableTriggered().
|
signal |
Referenced by onAutoPanEnabled(), removeSelectedOIds(), and selectionChanged().
|
protected |
Layer being visualized.
Definition at line 180 of file DataSetTableDockWidget.h.
Referenced by getLayer(), onApplicationTriggered(), removeSelectedOIds(), selectionChanged(), and setLayer().
|
protected |
The table view.
Definition at line 178 of file DataSetTableDockWidget.h.
Referenced by DataSetTableDockWidget(), onApplicationTriggered(), setHighlightColor(), and setLayer().