A connector for the te::qt::widgets::StyleDockWidget class to the Application Framework. More...
#include <StyleExplorer.h>
Public Slots | |
| void | onApplicationTriggered (te::qt::af::evt::Event *evt) |
| Listener to the application framewrork events. More... | |
| void | styleChanged (te::map::AbstractLayer *l) |
Signals | |
| void | triggered (te::qt::af::evt::Event *e) |
Public Member Functions | |
| te::qt::widgets::StyleDockWidget * | getExplorer () const |
| StyleExplorer (te::qt::widgets::StyleDockWidget *explorer, te::qt::af::ApplicationController *app, QObject *parent=0) | |
| Constructor. More... | |
| ~StyleExplorer () | |
| Destructor. More... | |
Protected Attributes | |
| te::qt::af::ApplicationController * | m_app |
| Pointer to applicatin controller;. More... | |
| te::qt::widgets::StyleDockWidget * | m_explorer |
| Pointer to a component te::qt::widgets::StyleDockWidget. More... | |
| bool | m_internalEvent |
| Flag used for internal sent events. More... | |
A connector for the te::qt::widgets::StyleDockWidget class to the Application Framework.
It is used to listen events sent by the application framework.
Definition at line 63 of file af/connectors/StyleExplorer.h.
| te::qt::af::StyleExplorer::StyleExplorer | ( | te::qt::widgets::StyleDockWidget * | explorer, |
| te::qt::af::ApplicationController * | app, | ||
| QObject * | parent = 0 |
||
| ) |
Constructor.
| explorer | te::qt::widgets::StyleDockWidget to be listened. |
Definition at line 34 of file af/connectors/StyleExplorer.cpp.
References m_explorer, styleChanged(), and ~StyleExplorer().
|
default |
Destructor.
Referenced by StyleExplorer().
| te::qt::widgets::StyleDockWidget * te::qt::af::StyleExplorer::getExplorer | ( | ) | const |
Definition at line 47 of file af/connectors/StyleExplorer.cpp.
References m_explorer.
Referenced by te::qt::af::BaseApplication::initSlotsConnections(), TerraView::makeDialog(), te::qt::af::BaseApplication::makeDialog(), TerraView::resetComponents(), and TerraView::~TerraView().
|
slot |
Listener to the application framewrork events.
| evt | An event sent by framework. |
Definition at line 52 of file af/connectors/StyleExplorer.cpp.
References te::qt::widgets::StyleDockWidget::clear(), te::map::AbstractLayer::getId(), te::qt::widgets::StyleDockWidget::getLayer(), te::qt::af::ApplicationController::getSelectionColor(), te::qt::af::evt::LAYER_CHANGED, te::qt::af::evt::LAYER_REMOVED, te::qt::af::evt::LAYER_SELECTED, te::qt::af::evt::LAYER_STYLE_SELECTED, m_app, m_explorer, te::qt::af::evt::Event::m_id, m_internalEvent, te::qt::af::evt::LayerSelected::m_layer, te::qt::af::evt::LayerStyleSelected::m_layer, te::qt::af::evt::LayerChanged::m_layer, te::qt::af::evt::LayerRemoved::m_layers, te::qt::af::evt::LayerStyleSelected::m_rule, and te::qt::widgets::StyleDockWidget::setLayer().
|
slot |
Definition at line 120 of file af/connectors/StyleExplorer.cpp.
References m_internalEvent, te::qt::af::evt::GetLayerExplorer::m_layerExplorer, triggered(), and te::qt::widgets::LayerItemView::updateLegend().
Referenced by StyleExplorer().
|
signal |
Referenced by styleChanged().
|
protected |
Pointer to applicatin controller;.
Definition at line 98 of file af/connectors/StyleExplorer.h.
Referenced by onApplicationTriggered().
|
protected |
Pointer to a component te::qt::widgets::StyleDockWidget.
Definition at line 100 of file af/connectors/StyleExplorer.h.
Referenced by getExplorer(), onApplicationTriggered(), and StyleExplorer().
|
protected |
Flag used for internal sent events.
Definition at line 102 of file af/connectors/StyleExplorer.h.
Referenced by onApplicationTriggered(), and styleChanged().