21 #include "../../../maptools/AbstractLayer.h" 22 #include "../../../maptools/DataSetLayer.h" 23 #include "../../../maptools/RasterLayer.h" 24 #include "../../../qt/widgets/layer/explorer/LayerItemView.h" 25 #include "../../../qt/widgets/se/StyleDockWidget.h" 26 #include "../events/ApplicationEvents.h" 27 #include "../events/LayerEvents.h" 28 #include "../ApplicationController.h" 38 m_internalEvent(false)
63 if (layer->isValid() && layer->getStyle())
77 if (layer->isValid() && layer->getStyle())
93 hexColor.sprintf(
"#%02x%02x%02x%02x", color.alpha(), color.red(), color.green(), color.blue());
105 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.
bool m_internalEvent
Flag used for internal sent events.
This is the base class for layers.
A base class for application events.
te::qt::widgets::LayerItemView * m_layerExplorer
StyleExplorer(te::qt::widgets::StyleDockWidget *explorer, te::qt::af::ApplicationController *app, QObject *parent=0)
Constructor.
The base API for TerraLib applications.
te::map::AbstractLayerPtr m_layer
Pointer to the selected layer.
A connector for the te::qt::widgets::StyleDockWidget class to the Application Framework.
te::qt::widgets::StyleDockWidget * getExplorer() const
This event indicates that the layer style was selected on the layer explorer.
void triggered(te::qt::af::evt::Event *e)
This event indicates that the layer has been selected.
void styleChanged(te::map::AbstractLayer *l)
QColor getSelectionColor() const
Returns the application selection color.
~StyleExplorer()
Destructor.
te::qt::widgets::StyleDockWidget * m_explorer
Pointer to a component te::qt::widgets::StyleDockWidget.
void onApplicationTriggered(te::qt::af::evt::Event *evt)
Listener to the application framewrork events.
te::se::Rule * m_rule
Rule whose style was selected.
te::map::AbstractLayer * m_layer
Layer selected.
te::qt::af::ApplicationController * m_app
Pointer to applicatin controller;.
std::list< te::map::AbstractLayerPtr > m_layers
Layer removed.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
te::map::AbstractLayerPtr m_layer
Layer whose style was selected.