23 #include "../../../maptools/AbstractLayer.h" 24 #include "../../../memory/DataSet.h" 25 #include "../../widgets/table/DataSetTableView.h" 26 #include "../../widgets/utils/ScopedCursor.h" 27 #include "../events/LayerEvents.h" 28 #include "../events/TableEvents.h" 29 #include "../ApplicationController.h" 40 setAttribute(Qt::WA_DeleteOnClose,
true);
50 m_view->setAlternatingRowColors(
true);
76 setWindowTitle(lName);
78 setObjectName(QString(
"TableView_") + lName);
119 m_view->setStyleSheet(
"background-color: white;");
129 for(std::list<te::map::AbstractLayerPtr>::iterator it = ev->
m_layers.begin(); it != ev->
m_layers.end(); ++it)
virtual const std::string & getId() const
It returns the layer id.
This is the base class for layers.
te::map::AbstractLayerPtr m_layer
Layer whose selected objects were changed.
virtual const std::string & getTitle() const
It returns the layer title.
This event signals that table has alternating row colors.
A base class for application events.
This event indicates that the selected objects of the layer were changed.
This event signals that table has auto pan enabled.
TEQTAFEXPORT bool GetAlternateRowColorsFromSettings()
An Envelope defines a 2D rectangular region.
TEQTAFEXPORT QString GetStyleSheetFromColors(QColor primaryColor, QColor secondaryColor)
This class represents a set of unique ids created in the same context. i.e. from the same data set...
virtual void clearSelected()
It clears the selected group of this Layer.
virtual void select(te::da::ObjectIdSet *oids)
It adds the given oids to the selected group of this Layer.
virtual const te::da::ObjectIdSet * getSelected() const
It returns the selected group of this Layer.
TEQTAFEXPORT QString GetStyleSheetFromSettings()
std::list< te::map::AbstractLayerPtr > m_layers
Layer removed.
virtual void deselect(const te::da::ObjectIdSet *oids)
It removes the given oids from the selected group of this Layer.