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>
Public Member Functions | |
virtual OutsideController * | getController () |
Returns the "Controller" part of the MVC. More... | |
virtual Observable * | getModel () |
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 Properties * | getProperties () 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 | |
OutsideController * | m_controller |
"Controller" part of MVC widget. More... | |
Observable * | m_model |
"Model" part of MVC widget. More... | |
Abstract class to represent an observer. "View" part of MVC widget. All classes representing the graphics component must inherit from this class.
Definition at line 52 of file OutsideObserver.h.
te::layout::OutsideObserver::OutsideObserver | ( | OutsideController * | controller, |
Observable * | o | ||
) |
Constructor.
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.
|
virtual |
Destructor.
Definition at line 42 of file OutsideObserver.cpp.
|
virtual |
Returns the "Controller" part of the MVC.
Definition at line 59 of file OutsideObserver.cpp.
|
virtual |
Returns the "Model" part of the MVC.
Definition at line 64 of file OutsideObserver.cpp.
Referenced by te::layout::DialogPropertiesBrowser::onShowGridSettingsDlg().
|
pure virtual |
Method that returns the position llx, lly Reimplement this function in a ItemObserver subclass to provide the item's getPosition implementation.
Implemented in te::layout::PropertiesOutside, te::layout::ToolbarOutside, te::layout::MapLayerChoiceOutside, te::layout::GridSettingsOutside, te::layout::ObjectInspectorOutside, te::layout::TextGridSettingsOutside, te::layout::EditTemplateOutside, te::layout::PageSetupOutside, and te::layout::SystematicScaleOutside.
|
virtual |
Reimplemented from Observer.
Definition at line 54 of file OutsideObserver.cpp.
References te::layout::Properties::getProperties().
|
virtual |
Updated model state.
true | if refresh the current position, false otherwise |
Definition at line 48 of file OutsideObserver.cpp.
References te::gm::Coord2D::x, and te::gm::Coord2D::y.
|
pure virtual |
Change coordinate llx,lly of the MVC widget. Reimplement this function in a ItemController subclass to provide the controller's create implementation.
x | llx |
y | lly |
Implemented in te::layout::PropertiesOutside, te::layout::ToolbarOutside, te::layout::MapLayerChoiceOutside, te::layout::GridSettingsOutside, te::layout::ObjectInspectorOutside, te::layout::TextGridSettingsOutside, te::layout::EditTemplateOutside, te::layout::PageSetupOutside, and te::layout::SystematicScaleOutside.
|
pure virtual |
Reimplemented from Observer.
Implements te::layout::Observer.
Implemented in te::layout::PropertiesOutside, te::layout::ToolbarOutside, te::layout::MapLayerChoiceOutside, te::layout::GridSettingsOutside, te::layout::ObjectInspectorOutside, te::layout::TextGridSettingsOutside, te::layout::EditTemplateOutside, te::layout::PageSetupOutside, and te::layout::SystematicScaleOutside.
|
protected |
"Controller" part of MVC widget.
Definition at line 119 of file OutsideObserver.h.
|
protected |
"Model" part of MVC widget.
Definition at line 120 of file OutsideObserver.h.
Referenced by te::layout::ObjectInspectorOutside::ObjectInspectorOutside(), OutsideObserver(), and te::layout::PropertiesOutside::PropertiesOutside().