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

Properties tree for any item, MVC component, using Qt for presentation and editing. More...

#include <PropertiesOutside.h>

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

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 itemsSelected (QList< QGraphicsItem * > graphicsItems, QList< QGraphicsItem * > allItems)
 
 PropertiesOutside (OutsideController *controller, Observable *o, PropertyBrowser *propertyBrowser=0)
 
virtual void refresh ()
 Updated model state. More...
 
virtual void refreshOutside ()
 
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 ~PropertiesOutside ()
 

Protected Slots

virtual void onClear (std::vector< std::string > names)
 

Protected Member Functions

virtual void changeMapVisitable (Property property)
 
virtual void closeEvent (QCloseEvent *event)
 
virtual void createLayout ()
 
virtual MapModelgetMapModel (std::string nameMap)
 
virtual bool sendPropertyToSelectedItem (Property property)
 
virtual bool sendPropertyToSelectedItems (Property property)
 

Protected Attributes

QList< QGraphicsItem * > m_allItems
 
QToolButton * m_configurePropertyEditor
 
OutsideControllerm_controller
 "Controller" part of MVC widget. More...
 
QList< QGraphicsItem * > m_graphicsItems
 
PropertyBrowserm_layoutPropertyBrowser
 
Observablem_model
 "Model" part of MVC widget. More...
 
QLabel * m_nameLabel
 
QLineEdit * m_propertyFilterEdit
 
PropertiesUtilsm_propUtils
 
SharedPropertiesm_sharedProps
 
bool m_updatingValues
 

Private Slots

void onChangePropertyValue (Property property)
 

Detailed Description

Properties tree for any item, MVC component, using Qt for presentation and editing.

See also
te::layout::OutsideObserver

Definition at line 71 of file PropertiesOutside.h.

Constructor & Destructor Documentation

te::layout::PropertiesOutside::~PropertiesOutside ( )
virtual

Definition at line 85 of file PropertiesOutside.cpp.

Member Function Documentation

void te::layout::PropertiesOutside::closeEvent ( QCloseEvent *  event)
protectedvirtual

Definition at line 340 of file PropertiesOutside.cpp.

void te::layout::PropertiesOutside::createLayout ( )
protectedvirtual

Definition at line 106 of file PropertiesOutside.cpp.

Referenced by PropertiesOutside().

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::MapModel * te::layout::PropertiesOutside::getMapModel ( std::string  nameMap)
protectedvirtual
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::PropertiesOutside::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 161 of file PropertiesOutside.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::PropertiesOutside::itemsSelected ( QList< QGraphicsItem * >  graphicsItems,
QList< QGraphicsItem * >  allItems 
)
virtual
void te::layout::PropertiesOutside::onClear ( std::vector< std::string >  names)
protectedvirtualslot

Definition at line 406 of file PropertiesOutside.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::PropertiesOutside::refreshOutside ( )
virtual

Definition at line 401 of file PropertiesOutside.cpp.

void te::layout::PropertiesOutside::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 155 of file PropertiesOutside.cpp.

void te::layout::PropertiesOutside::updateObserver ( ContextItem  context)
virtual

Reimplemented from Observer.

Implements te::layout::OutsideObserver.

Definition at line 146 of file PropertiesOutside.cpp.

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

Member Data Documentation

QList<QGraphicsItem*> te::layout::PropertiesOutside::m_allItems
protected

Definition at line 118 of file PropertiesOutside.h.

QToolButton* te::layout::PropertiesOutside::m_configurePropertyEditor
protected

Definition at line 121 of file PropertiesOutside.h.

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

"Controller" part of MVC widget.

Definition at line 119 of file OutsideObserver.h.

QList<QGraphicsItem*> te::layout::PropertiesOutside::m_graphicsItems
protected

Definition at line 117 of file PropertiesOutside.h.

PropertyBrowser* te::layout::PropertiesOutside::m_layoutPropertyBrowser
protected

Definition at line 115 of file PropertiesOutside.h.

Referenced by PropertiesOutside().

Observable* te::layout::OutsideObserver::m_model
protectedinherited
QLabel* te::layout::PropertiesOutside::m_nameLabel
protected

Definition at line 119 of file PropertiesOutside.h.

QLineEdit* te::layout::PropertiesOutside::m_propertyFilterEdit
protected

Definition at line 120 of file PropertiesOutside.h.

PropertiesUtils* te::layout::PropertiesOutside::m_propUtils
protected

Definition at line 124 of file PropertiesOutside.h.

Referenced by PropertiesOutside().

SharedProperties* te::layout::PropertiesOutside::m_sharedProps
protected

Definition at line 123 of file PropertiesOutside.h.

Referenced by PropertiesOutside().

bool te::layout::PropertiesOutside::m_updatingValues
protected

Definition at line 122 of file PropertiesOutside.h.


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