32 #include "../../enum/EnumType.h"
33 #include "../factory/AbstractOutsideFactory.h"
34 #include "../factory/OutsideParamsCreate.h"
35 #include "../singleton/Context.h"
78 m_view = (
Observer*)factory->
make(m_model->getType(), params);
Abstract class to represent an observable. "Model" part of MVC component.
AbstractOutsideFactory * getOutsideFactory()
Returns Abstract Factory provide an interface for creating families of related or dependent graphic w...
virtual Observer * make(EnumType *type, OutsideParamsCreate params=OutsideParamsCreate())=0
Method that builds and returns a new widget (MVC widget) of the type defined as parameter.
virtual void setPosition(const double &x, const double &y)
Change coordinate llx,lly of the MVC widget.
Abstract class to represent an observer. "View" part of MVC widget. All classes representing the grap...
const Observable * getModel()
Returns the "Model" part of the MVC widget.
Abstract class to represent an observer. "View" part of MVC component.
Parameters to creation new object. Ex.: "Model" and "Controller" of the new object (MVC widget)...
static Context & getInstance()
It returns a reference to the singleton instance.
virtual void setType(EnumType *type)=0
Change the type of component. Reimplement this function in a Observable subclass to provide the model...
virtual void setPosition(const double &x, const double &y)
Change coordinate llx,lly of the MVC widget.
const Observer * getView()
Returns the "View" part of the MVC widget.
Abstract class to represent an observable. "Model" part of MVC widget. All classes representing the m...
Abstract class to represent an observable. "Model" part of MVC widget. All classes representing the m...
Abstract class to represent a controller. "Controller" part of MVC widget. All classes representing t...
virtual void create()
Call factory to create the "View" part of the MVC widget and passes the model and himself as controll...
Class that represents the value of an enumeration. An enumeration is made of "1..n" objects EnumType...
OutsideController(Observable *o)
Constructor.
Abstract Factory provide an interface for creating families of related or dependent graphic widgets (...
Observable * m_model
"Model" part of the MVC widget.
virtual ~OutsideController()
Destructor.