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

#include <PageSetupOutside.h>

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

Signals

void changeConfig ()
 

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 load ()
 
 PageSetupOutside (OutsideController *controller, Observable *o)
 
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...
 
virtual void updateObserver (ContextItem context)
 Reimplemented from Observer. More...
 
virtual ~PageSetupOutside ()
 

Protected Member Functions

virtual void configureOrientationPage ()
 Configures the orientation page getting from layout. More...
 
virtual void configurePageSize ()
 Configures the page size getting from layout. More...
 
virtual void init ()
 
virtual void switchSize ()
 

Protected Attributes

OutsideControllerm_controller
 "Controller" part of MVC widget. More...
 
Observablem_model
 "Model" part of MVC widget. More...
 
te::layout::LayoutOrientationType m_orientation
 
te::layout::LayoutAbstractPaperType m_paperType
 

Private Slots

virtual void on_cmbPageSize_currentIndexChanged (const QString &text)
 
virtual void on_pbApply_clicked ()
 
virtual void on_rdbLandscape_clicked ()
 
virtual void on_rdbPortrait_clicked ()
 

Private Attributes

std::auto_ptr< Ui::PageSetup > m_ui
 

Detailed Description

Definition at line 50 of file PageSetupOutside.h.

Constructor & Destructor Documentation

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

Definition at line 49 of file PageSetupOutside.cpp.

References init(), and m_ui.

te::layout::PageSetupOutside::~PageSetupOutside ( )
virtual

Definition at line 64 of file PageSetupOutside.cpp.

Member Function Documentation

void te::layout::PageSetupOutside::changeConfig ( )
signal
void te::layout::PageSetupOutside::configureOrientationPage ( )
protectedvirtual

Configures the orientation page getting from layout.

Definition at line 115 of file PageSetupOutside.cpp.

References te::layout::Landscape.

void te::layout::PageSetupOutside::configurePageSize ( )
protectedvirtual
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::PageSetupOutside::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 90 of file PageSetupOutside.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().

void te::layout::PageSetupOutside::init ( )
protectedvirtual

Definition at line 69 of file PageSetupOutside.cpp.

Referenced by PageSetupOutside().

void te::layout::PageSetupOutside::load ( )
virtual
void te::layout::PageSetupOutside::on_cmbPageSize_currentIndexChanged ( const QString &  text)
privatevirtualslot
void te::layout::PageSetupOutside::on_rdbLandscape_clicked ( )
privatevirtualslot

Definition at line 224 of file PageSetupOutside.cpp.

References te::layout::Landscape.

void te::layout::PageSetupOutside::on_rdbPortrait_clicked ( )
privatevirtualslot

Definition at line 232 of file PageSetupOutside.cpp.

References te::layout::Portrait.

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::PageSetupOutside::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 84 of file PageSetupOutside.cpp.

void te::layout::PageSetupOutside::switchSize ( )
protectedvirtual
void te::layout::PageSetupOutside::updateObserver ( ContextItem  context)
virtual

Reimplemented from Observer.

Implements te::layout::OutsideObserver.

Definition at line 75 of file PageSetupOutside.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
te::layout::LayoutOrientationType te::layout::PageSetupOutside::m_orientation
protected

Definition at line 96 of file PageSetupOutside.h.

te::layout::LayoutAbstractPaperType te::layout::PageSetupOutside::m_paperType
protected

Definition at line 97 of file PageSetupOutside.h.

std::auto_ptr<Ui::PageSetup> te::layout::PageSetupOutside::m_ui
private

Definition at line 101 of file PageSetupOutside.h.

Referenced by PageSetupOutside().


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