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

#include <SystematicScaleOutside.h>

Inheritance diagram for te::layout::SystematicScaleOutside:
te::layout::OutsideObserver te::layout::Observer

Signals

void systematicApply (double scale, SystematicScaleType type)
 

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 ()
 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...
 
virtual void refresh ()
 Updated model state. More...
 
virtual void setPosition (const double &x, const double &y)
 Change coordinate llx,lly of the MVC widget. Reimplement this function in a ItemController subclass to provide the controller's create implementation. More...
 
 SystematicScaleOutside (OutsideController *controller, Observable *o)
 
virtual void updateObserver (ContextItem context)
 Reimplemented from Observer. More...
 
virtual ~SystematicScaleOutside ()
 

Protected Slots

virtual void on_btnCancel_clicked ()
 
virtual void on_btnOK_clicked ()
 

Protected Member Functions

virtual SystematicScaleType getType (double scale)
 

Protected Attributes

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

Private Attributes

std::auto_ptr
< Ui::SystematicScale > 
m_ui
 

Detailed Description

Definition at line 50 of file SystematicScaleOutside.h.

Constructor & Destructor Documentation

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

Definition at line 49 of file SystematicScaleOutside.cpp.

References m_ui.

te::layout::SystematicScaleOutside::~SystematicScaleOutside ( )
virtual

Definition at line 61 of file SystematicScaleOutside.cpp.

Member Function Documentation

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

Returns the "Controller" part of the MVC.

Returns
controller

Definition at line 59 of file OutsideObserver.cpp.

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

Returns the "Model" part of the MVC.

Returns
model

Definition at line 64 of file OutsideObserver.cpp.

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

te::gm::Coord2D te::layout::SystematicScaleOutside::getPosition ( )
virtual

Method that returns the position llx, lly Reimplement this function in a ItemObserver subclass to provide the item's getPosition implementation.

Returns
coordinate

Implements te::layout::OutsideObserver.

Definition at line 81 of file SystematicScaleOutside.cpp.

References te::gm::Coord2D::x, and te::gm::Coord2D::y.

te::layout::Properties * te::layout::OutsideObserver::getProperties ( ) const
virtualinherited

Reimplemented from Observer.

Definition at line 54 of file OutsideObserver.cpp.

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

te::layout::SystematicScaleType te::layout::SystematicScaleOutside::getType ( double  scale)
protectedvirtual

Definition at line 110 of file SystematicScaleOutside.cpp.

References S100000, S25000, S250000, and S50000.

void te::layout::SystematicScaleOutside::on_btnCancel_clicked ( )
protectedvirtualslot

Definition at line 105 of file SystematicScaleOutside.cpp.

void te::layout::SystematicScaleOutside::on_btnOK_clicked ( )
protectedvirtualslot

Definition at line 94 of file SystematicScaleOutside.cpp.

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

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.

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

Change coordinate llx,lly of the MVC widget. Reimplement this function in a ItemController subclass to provide the controller's create implementation.

Parameters
xllx
ylly

Implements te::layout::OutsideObserver.

Definition at line 75 of file SystematicScaleOutside.cpp.

void te::layout::SystematicScaleOutside::systematicApply ( double  scale,
SystematicScaleType  type 
)
signal
void te::layout::SystematicScaleOutside::updateObserver ( ContextItem  context)
virtual

Reimplemented from Observer.

Implements te::layout::OutsideObserver.

Definition at line 66 of file SystematicScaleOutside.cpp.

References te::layout::ContextItem::isShow().

Member Data Documentation

OutsideController* te::layout::OutsideObserver::m_controller
protectedinherited

"Controller" part of MVC widget.

Definition at line 119 of file OutsideObserver.h.

Observable* te::layout::OutsideObserver::m_model
protectedinherited
std::auto_ptr<Ui::SystematicScale> te::layout::SystematicScaleOutside::m_ui
private

Definition at line 83 of file SystematicScaleOutside.h.

Referenced by SystematicScaleOutside().


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