A connector for the te::qt::widgets::LayerExplorer class to the Application Framework. More...
#include <LayerExplorer.h>
Public Member Functions | |
te::qt::widgets::LayerExplorer * | getExplorer () const |
LayerExplorer (te::qt::widgets::LayerExplorer *explorer, QObject *parent=0) | |
Constructor. More... | |
~LayerExplorer () | |
Destructor. More... | |
Protected Slots | |
void | onApplicationTriggered (te::qt::af::evt::Event *evt) |
Listener to the application framewrork events. More... | |
void | onLayerOrderChanged () |
void | onLayerVisibilityChanged (te::map::AbstractLayerPtr layer) |
void | onSelectedLayersChanged (const std::list< te::map::AbstractLayerPtr > &selectedLayers) |
It indicates whenever there are changes in the selection of layers in the layer explorer. More... | |
void | onTreeItemDoubleClicked (te::qt::widgets::AbstractTreeItem *item) |
Protected Attributes | |
te::qt::widgets::LayerExplorer * | m_explorer |
Pointer to a component te::qt::widgets::LayerExplorer. More... | |
A connector for the te::qt::widgets::LayerExplorer class to the Application Framework.
It is used to listen events sent by the application framework. It is a proxy for the te::qt::widgets::LayerExplorer.
Definition at line 70 of file LayerExplorer.h.
te::qt::af::LayerExplorer::LayerExplorer | ( | te::qt::widgets::LayerExplorer * | explorer, |
QObject * | parent = 0 |
||
) |
Constructor.
explorer | te::qt::widgets::LayerExplorer to be listened. |
Definition at line 36 of file LayerExplorer.cpp.
References m_explorer, onLayerOrderChanged(), onLayerVisibilityChanged(), onSelectedLayersChanged(), and onTreeItemDoubleClicked().
te::qt::af::LayerExplorer::~LayerExplorer | ( | ) |
Destructor.
Definition at line 48 of file LayerExplorer.cpp.
te::qt::widgets::LayerExplorer * te::qt::af::LayerExplorer::getExplorer | ( | ) | const |
Definition at line 52 of file LayerExplorer.cpp.
|
protectedslot |
Listener to the application framewrork events.
evt | An event sent by framework. |
Definition at line 57 of file LayerExplorer.cpp.
References te::qt::af::Project::add(), te::qt::af::ApplicationController::broadcast(), te::qt::af::evt::GET_LAYER_SELECTED, te::common::Singleton< ApplicationController >::getInstance(), te::qt::widgets::AbstractTreeItem::getItemType(), te::qt::widgets::AbstractTreeItem::getLayer(), te::qt::af::ApplicationController::getProject(), te::se::GetRasterSymbolizer(), te::qt::af::Project::getTopLayers(), te::qt::af::evt::ITEM_OF_LAYER_REMOVED, te::qt::af::evt::LAYER_ADDED, te::qt::af::evt::LAYER_POPUP_ADD_ACTION, te::qt::af::evt::LAYER_POPUP_REMOVE_ACTION, te::qt::af::evt::LAYER_REMOVED, te::qt::af::evt::LayerPopUpAddAction::m_action, te::qt::af::evt::LayerPopUpRemoveAction::m_action, te::qt::af::evt::Event::m_id, te::qt::af::evt::ItemOfLayerRemoved::m_item, te::qt::af::evt::LayerPopUpAddAction::m_itemType, te::qt::af::evt::LayerAdded::m_layer, te::qt::af::evt::LayerRemoved::m_layer, te::qt::af::evt::GetLayerSelected::m_layer, te::qt::af::evt::LayerPopUpAddAction::m_menuSelectionType, te::qt::af::evt::LayerAdded::m_parentLayer, te::qt::af::evt::ProjectAdded::m_proj, te::qt::af::evt::PROJECT_ADDED, te::qt::af::Project::remove(), and te::se::RasterSymbolizer::setColorMap().
|
protectedslot |
Definition at line 213 of file LayerExplorer.cpp.
References te::qt::af::ApplicationController::broadcast(), te::common::Singleton< ApplicationController >::getInstance(), te::qt::af::ApplicationController::getProject(), and te::qt::af::Project::setTopLayers().
Referenced by LayerExplorer().
|
protectedslot |
Definition at line 204 of file LayerExplorer.cpp.
References te::qt::af::ApplicationController::broadcast(), and te::common::Singleton< ApplicationController >::getInstance().
Referenced by LayerExplorer().
|
protectedslot |
It indicates whenever there are changes in the selection of layers in the layer explorer.
selectedLayers | The new list of selected layers. |
Definition at line 189 of file LayerExplorer.cpp.
References te::qt::af::ApplicationController::broadcast(), te::common::Singleton< ApplicationController >::getInstance(), te::qt::af::ApplicationController::getProject(), and te::qt::af::Project::setSelectedLayers().
Referenced by LayerExplorer().
|
protectedslot |
Definition at line 221 of file LayerExplorer.cpp.
References te::qt::af::ApplicationController::broadcast(), te::common::Singleton< ApplicationController >::getInstance(), and te::qt::widgets::AbstractTreeItem::getLayer().
Referenced by LayerExplorer().
|
protected |
Pointer to a component te::qt::widgets::LayerExplorer.
Definition at line 116 of file LayerExplorer.h.
Referenced by LayerExplorer().