All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::qt::af::LayerExplorer Class Reference

A connector for the te::qt::widgets::LayerExplorer class to the Application Framework. More...

#include <LayerExplorer.h>

Inheritance diagram for te::qt::af::LayerExplorer:

Public Member Functions

te::qt::widgets::LayerExplorergetExplorer () 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::LayerExplorerm_explorer
 Pointer to a component te::qt::widgets::LayerExplorer. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

te::qt::af::LayerExplorer::LayerExplorer ( te::qt::widgets::LayerExplorer explorer,
QObject *  parent = 0 
)

Constructor.

Parameters
explorerte::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.

Member Function Documentation

te::qt::widgets::LayerExplorer * te::qt::af::LayerExplorer::getExplorer ( ) const

Definition at line 52 of file LayerExplorer.cpp.

void te::qt::af::LayerExplorer::onLayerVisibilityChanged ( te::map::AbstractLayerPtr  layer)
protectedslot
void te::qt::af::LayerExplorer::onSelectedLayersChanged ( const std::list< te::map::AbstractLayerPtr > &  selectedLayers)
protectedslot

It indicates whenever there are changes in the selection of layers in the layer explorer.

Parameters
selectedLayersThe 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().

void te::qt::af::LayerExplorer::onTreeItemDoubleClicked ( te::qt::widgets::AbstractTreeItem item)
protectedslot

Member Data Documentation

te::qt::widgets::LayerExplorer* te::qt::af::LayerExplorer::m_explorer
protected

Pointer to a component te::qt::widgets::LayerExplorer.

Definition at line 116 of file LayerExplorer.h.

Referenced by LayerExplorer().


The documentation for this class was generated from the following files: