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

Abstract class to represent an observer. "View" part of MVC widget. All classes representing the graphics component must inherit from this class. More...

#include <OutsideObserver.h>

Inheritance diagram for te::layout::OutsideObserver:
te::layout::Observer te::layout::EditTemplateOutside te::layout::GridSettingsOutside te::layout::MapLayerChoiceOutside te::layout::ObjectInspectorOutside te::layout::PageSetupOutside te::layout::PropertiesOutside te::layout::SystematicScaleOutside te::layout::TextGridSettingsOutside te::layout::ToolbarOutside

Public Member Functions

virtual OutsideControllergetController ()
 Returns the "Controller" part of the MVC. More...
 
virtual ObservablegetModel ()
 Returns the "Model" part of the MVC. More...
 
virtual te::gm::Coord2D getPosition ()=0
 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...
 
 OutsideObserver (OutsideController *controller, Observable *o)
 Constructor. More...
 
virtual void refresh ()
 Updated model state. More...
 
virtual void setPosition (const double &x, const double &y)=0
 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)=0
 Reimplemented from Observer. More...
 
virtual ~OutsideObserver ()
 Destructor. More...
 

Protected Attributes

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

Detailed Description

Abstract class to represent an observer. "View" part of MVC widget. All classes representing the graphics component must inherit from this class.

See also
te::layout::Observer

Definition at line 52 of file OutsideObserver.h.

Constructor & Destructor Documentation

te::layout::OutsideObserver::OutsideObserver ( OutsideController controller,
Observable o 
)

Constructor.

Parameters
controller"Controller" part of MVC widget
o"Model" part of MVC widget

Definition at line 35 of file OutsideObserver.cpp.

References te::layout::Observable::addObserver(), and m_model.

te::layout::OutsideObserver::~OutsideObserver ( )
virtual

Destructor.

Definition at line 42 of file OutsideObserver.cpp.

Member Function Documentation

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

Returns the "Controller" part of the MVC.

Returns
controller

Definition at line 59 of file OutsideObserver.cpp.

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

Returns the "Model" part of the MVC.

Returns
model

Definition at line 64 of file OutsideObserver.cpp.

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

virtual te::gm::Coord2D te::layout::OutsideObserver::getPosition ( )
pure virtual
te::layout::Properties * te::layout::OutsideObserver::getProperties ( ) const
virtual

Reimplemented from Observer.

Definition at line 54 of file OutsideObserver.cpp.

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

void te::layout::OutsideObserver::refresh ( )
virtual

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.

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

Member Data Documentation

OutsideController* te::layout::OutsideObserver::m_controller
protected

"Controller" part of MVC widget.

Definition at line 119 of file OutsideObserver.h.

Observable* te::layout::OutsideObserver::m_model
protected

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