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

Abstract class to represent a controller. "Controller" part of MVC widget. All classes representing the controller of a widget must inherit from this class. More...

#include <OutsideController.h>

Inheritance diagram for te::layout::OutsideController:
te::layout::EditTemplateController te::layout::GridSettingsController te::layout::MapLayerChoiceController te::layout::ObjectInspectorController te::layout::PageSetupController te::layout::PropertiesController te::layout::SystematicScaleController te::layout::TextGridSettingsController te::layout::ToolbarController

Public Member Functions

const ObservablegetModel ()
 Returns the "Model" part of the MVC widget. More...
 
const ObservergetView ()
 Returns the "View" part of the MVC widget. More...
 
 OutsideController (Observable *o)
 Constructor. More...
 
 OutsideController (Observable *o, EnumType *type)
 Constructor. More...
 
virtual void setPosition (const double &x, const double &y)
 Change coordinate llx,lly of the MVC widget. More...
 
virtual ~OutsideController ()
 Destructor. More...
 

Protected Member Functions

virtual void create ()
 Call factory to create the "View" part of the MVC widget and passes the model and himself as controller. More...
 

Protected Attributes

Observablem_model
 "Model" part of the MVC widget. More...
 
Observerm_view
 "View" part of the MVC widget. More...
 

Detailed Description

Abstract class to represent a controller. "Controller" part of MVC widget. All classes representing the controller of a widget must inherit from this class.

Definition at line 48 of file OutsideController.h.

Constructor & Destructor Documentation

te::layout::OutsideController::OutsideController ( Observable o)

Constructor.

Parameters
o"Model" part of MVC widget

Definition at line 37 of file OutsideController.cpp.

References create().

te::layout::OutsideController::OutsideController ( Observable o,
EnumType type 
)

Constructor.

Parameters
o"Model" part of MVC widget
typetype of the MVC widget.

Definition at line 43 of file OutsideController.cpp.

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

te::layout::OutsideController::~OutsideController ( )
virtual

Destructor.

Definition at line 52 of file OutsideController.cpp.

Member Function Documentation

void te::layout::OutsideController::create ( )
protectedvirtual

Call factory to create the "View" part of the MVC widget and passes the model and himself as controller.

Definition at line 73 of file OutsideController.cpp.

References te::common::Singleton< Context >::getInstance(), te::layout::Context::getOutsideFactory(), and te::layout::AbstractOutsideFactory::make().

Referenced by OutsideController().

const te::layout::Observable * te::layout::OutsideController::getModel ( )

Returns the "Model" part of the MVC widget.

Returns
model

Definition at line 63 of file OutsideController.cpp.

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

Change coordinate llx,lly of the MVC widget.

Parameters
xllx
ylly

Definition at line 81 of file OutsideController.cpp.

References te::layout::OutsideModelObservable::setPosition().

Member Data Documentation

Observable* te::layout::OutsideController::m_model
protected

"Model" part of the MVC widget.

Definition at line 101 of file OutsideController.h.

Referenced by OutsideController().

Observer* te::layout::OutsideController::m_view
protected

"View" part of the MVC widget.

Definition at line 102 of file OutsideController.h.


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