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>
Public Member Functions | |
const Observable * | getModel () |
Returns the "Model" part of the MVC widget. More... | |
const Observer * | getView () |
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 | |
Observable * | m_model |
"Model" part of the MVC widget. More... | |
Observer * | m_view |
"View" part of the MVC widget. More... | |
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.
te::layout::OutsideController::OutsideController | ( | Observable * | o | ) |
Constructor.
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.
o | "Model" part of MVC widget |
type | type of the MVC widget. |
Definition at line 43 of file OutsideController.cpp.
References m_model, and te::layout::Observable::setType().
|
virtual |
Destructor.
Definition at line 52 of file OutsideController.cpp.
|
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.
Definition at line 63 of file OutsideController.cpp.
const te::layout::Observer * te::layout::OutsideController::getView | ( | ) |
Returns the "View" part of the MVC widget.
Definition at line 68 of file OutsideController.cpp.
Referenced by te::layout::BuildGraphicsOutside::createEditTemplate(), te::layout::BuildGraphicsOutside::createGridSettings(), te::layout::BuildGraphicsOutside::createMapLayerChoice(), te::layout::BuildGraphicsOutside::createObjectInspector(), te::layout::BuildGraphicsOutside::createPageSetup(), te::layout::BuildGraphicsOutside::createProperties(), te::layout::BuildGraphicsOutside::createSystematicScale(), te::layout::BuildGraphicsOutside::createTextGridSettingss(), te::layout::BuildGraphicsOutside::createToolbar(), te::layout::View::showPageSetup(), and te::layout::View::showSystematicScale().
|
virtual |
Change coordinate llx,lly of the MVC widget.
x | llx |
y | lly |
Definition at line 81 of file OutsideController.cpp.
References te::layout::OutsideModelObservable::setPosition().
|
protected |
"Model" part of the MVC widget.
Definition at line 101 of file OutsideController.h.
Referenced by OutsideController().
|
protected |
"View" part of the MVC widget.
Definition at line 102 of file OutsideController.h.