All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::layout::MapLayerChoiceOutside Class Reference

#include <MapLayerChoiceOutside.h>

Inheritance diagram for te::layout::MapLayerChoiceOutside:
te::layout::OutsideObserver te::layout::Observer

Public Member Functions

virtual OutsideControllergetController ()
 Returns the "Controller" part of the MVC. More...
 
te::da::DataSourcePtr getDataSource ()
 
te::map::AbstractLayerPtr getLayer ()
 
virtual ObservablegetModel ()
 Returns the "Model" part of the MVC. More...
 
virtual te::gm::Coord2D getPosition ()
 Method that returns the position llx, lly Reimplement this function in a ItemObserver subclass to provide the item's getPosition implementation. More...
 
virtual PropertiesgetProperties () const
 Reimplemented from Observer. More...
 
 MapLayerChoiceOutside (OutsideController *controller, Observable *o)
 
virtual void refresh ()
 Updated model state. More...
 
void setLayers (std::list< te::map::AbstractLayerPtr > layers)
 Set the layer that can be used. More...
 
virtual void setPosition (const double &x, const double &y)
 Change coordinate llx,lly of the MVC widget. Reimplement this function in a ItemController subclass to provide the controller's create implementation. More...
 
virtual void updateObserver (ContextItem context)
 Reimplemented from Observer. More...
 
 ~MapLayerChoiceOutside ()
 

Protected Slots

void onCancelPushButtonClicked ()
 
void onOkPushButtonClicked ()
 

Protected Attributes

OutsideControllerm_controller
 "Controller" part of MVC widget. More...
 
Observablem_model
 "Model" part of MVC widget. More...
 

Private Attributes

te::da::DataSourcePtr m_dataSource
 
std::list
< te::map::AbstractLayerPtr
m_layers
 List of layers. More...
 
te::map::AbstractLayerPtr m_selectedLayer
 Layer used for address geocoding. More...
 
std::vector< std::string > m_selectedProps
 Selected properties related to the selected Layer. More...
 
std::auto_ptr< Ui::MapLayerChoice > m_ui
 
std::auto_ptr
< te::qt::widgets::DoubleListWidget
m_widget
 

Detailed Description

Definition at line 55 of file MapLayerChoiceOutside.h.

Constructor & Destructor Documentation

te::layout::MapLayerChoiceOutside::MapLayerChoiceOutside ( OutsideController controller,
Observable o 
)
te::layout::MapLayerChoiceOutside::~MapLayerChoiceOutside ( )

Definition at line 89 of file MapLayerChoiceOutside.cpp.

Member Function Documentation

te::layout::OutsideController * te::layout::OutsideObserver::getController ( )
virtualinherited

Returns the "Controller" part of the MVC.

Returns
controller

Definition at line 59 of file OutsideObserver.cpp.

te::da::DataSourcePtr te::layout::MapLayerChoiceOutside::getDataSource ( )

Definition at line 117 of file MapLayerChoiceOutside.cpp.

te::map::AbstractLayerPtr te::layout::MapLayerChoiceOutside::getLayer ( )

Definition at line 112 of file MapLayerChoiceOutside.cpp.

te::layout::Observable * te::layout::OutsideObserver::getModel ( )
virtualinherited

Returns the "Model" part of the MVC.

Returns
model

Definition at line 64 of file OutsideObserver.cpp.

Referenced by te::layout::DialogPropertiesBrowser::onShowGridSettingsDlg().

te::gm::Coord2D te::layout::MapLayerChoiceOutside::getPosition ( )
virtual

Method that returns the position llx, lly Reimplement this function in a ItemObserver subclass to provide the item's getPosition implementation.

Returns
coordinate

Implements te::layout::OutsideObserver.

Definition at line 217 of file MapLayerChoiceOutside.cpp.

References te::gm::Coord2D::x, and te::gm::Coord2D::y.

te::layout::Properties * te::layout::OutsideObserver::getProperties ( ) const
virtualinherited

Reimplemented from Observer.

Definition at line 54 of file OutsideObserver.cpp.

References te::layout::Properties::getProperties().

void te::layout::MapLayerChoiceOutside::onCancelPushButtonClicked ( )
protectedslot

Definition at line 197 of file MapLayerChoiceOutside.cpp.

Referenced by MapLayerChoiceOutside().

void te::layout::MapLayerChoiceOutside::onOkPushButtonClicked ( )
protectedslot
void te::layout::OutsideObserver::refresh ( )
virtualinherited

Updated model state.

Parameters
trueif refresh the current position, false otherwise

Definition at line 48 of file OutsideObserver.cpp.

References te::gm::Coord2D::x, and te::gm::Coord2D::y.

void te::layout::MapLayerChoiceOutside::setLayers ( std::list< te::map::AbstractLayerPtr layers)

Set the layer that can be used.

Parameters
layersList of AbstractLayerPtr

Definition at line 93 of file MapLayerChoiceOutside.cpp.

References te::da::GetFirstGeomProperty(), and te::gm::GeometryProperty::getGeometryType().

void te::layout::MapLayerChoiceOutside::setPosition ( const double &  x,
const double &  y 
)
virtual

Change coordinate llx,lly of the MVC widget. Reimplement this function in a ItemController subclass to provide the controller's create implementation.

Parameters
xllx
ylly

Implements te::layout::OutsideObserver.

Definition at line 211 of file MapLayerChoiceOutside.cpp.

void te::layout::MapLayerChoiceOutside::updateObserver ( ContextItem  context)
virtual

Reimplemented from Observer.

Implements te::layout::OutsideObserver.

Definition at line 202 of file MapLayerChoiceOutside.cpp.

References te::layout::ContextItem::isShow().

Member Data Documentation

OutsideController* te::layout::OutsideObserver::m_controller
protectedinherited

"Controller" part of MVC widget.

Definition at line 119 of file OutsideObserver.h.

te::da::DataSourcePtr te::layout::MapLayerChoiceOutside::m_dataSource
private

Definition at line 93 of file MapLayerChoiceOutside.h.

std::list<te::map::AbstractLayerPtr> te::layout::MapLayerChoiceOutside::m_layers
private

List of layers.

Definition at line 92 of file MapLayerChoiceOutside.h.

Observable* te::layout::OutsideObserver::m_model
protectedinherited
te::map::AbstractLayerPtr te::layout::MapLayerChoiceOutside::m_selectedLayer
private

Layer used for address geocoding.

Definition at line 94 of file MapLayerChoiceOutside.h.

std::vector<std::string> te::layout::MapLayerChoiceOutside::m_selectedProps
private

Selected properties related to the selected Layer.

Definition at line 95 of file MapLayerChoiceOutside.h.

std::auto_ptr<Ui::MapLayerChoice> te::layout::MapLayerChoiceOutside::m_ui
private

Definition at line 90 of file MapLayerChoiceOutside.h.

Referenced by MapLayerChoiceOutside().

std::auto_ptr<te::qt::widgets::DoubleListWidget> te::layout::MapLayerChoiceOutside::m_widget
private

Definition at line 91 of file MapLayerChoiceOutside.h.

Referenced by MapLayerChoiceOutside().


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