Properties tree for any item, MVC component, using Qt for presentation and editing. More...
#include <PropertiesOutside.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 () |
| 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... | |
| 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 MapModel * | getMapModel (std::string nameMap) |
| virtual bool | sendPropertyToSelectedItem (Property property) |
| virtual bool | sendPropertyToSelectedItems (Property property) |
Protected Attributes | |
| QList< QGraphicsItem * > | m_allItems |
| QToolButton * | m_configurePropertyEditor |
| OutsideController * | m_controller |
| "Controller" part of MVC widget. More... | |
| QList< QGraphicsItem * > | m_graphicsItems |
| PropertyBrowser * | m_layoutPropertyBrowser |
| Observable * | m_model |
| "Model" part of MVC widget. More... | |
| QLabel * | m_nameLabel |
| QLineEdit * | m_propertyFilterEdit |
| PropertiesUtils * | m_propUtils |
| SharedProperties * | m_sharedProps |
| bool | m_updatingValues |
Private Slots | |
| void | onChangePropertyValue (Property property) |
Properties tree for any item, MVC component, using Qt for presentation and editing.
Definition at line 71 of file PropertiesOutside.h.
| te::layout::PropertiesOutside::PropertiesOutside | ( | OutsideController * | controller, |
| Observable * | o, | ||
| PropertyBrowser * | propertyBrowser = 0 |
||
| ) |
Definition at line 57 of file PropertiesOutside.cpp.
References createLayout(), te::layout::Observable::getBox(), te::gm::Envelope::getHeight(), te::gm::Envelope::getWidth(), m_layoutPropertyBrowser, te::layout::OutsideObserver::m_model, m_propUtils, m_sharedProps, and onChangePropertyValue().
|
virtual |
Definition at line 85 of file PropertiesOutside.cpp.
|
protectedvirtual |
Definition at line 345 of file PropertiesOutside.cpp.
References te::common::Singleton< Context >::getInstance(), te::common::Singleton< T >::getInstance(), te::layout::Context::getItemUtils(), te::layout::ItemUtils::getMapItem(), te::layout::ItemObserver::getModel(), and te::layout::Property::getName().
|
protectedvirtual |
Definition at line 340 of file PropertiesOutside.cpp.
|
protectedvirtual |
Definition at line 106 of file PropertiesOutside.cpp.
Referenced by PropertiesOutside().
|
virtualinherited |
Returns the "Controller" part of the MVC.
Definition at line 59 of file OutsideObserver.cpp.
|
protectedvirtual |
Definition at line 379 of file PropertiesOutside.cpp.
References te::common::Singleton< Context >::getInstance(), te::layout::Context::getItemUtils(), te::layout::ItemUtils::getMapItem(), and te::layout::ItemObserver::getModel().
|
virtualinherited |
Returns the "Model" part of the MVC.
Definition at line 64 of file OutsideObserver.cpp.
Referenced by te::layout::DialogPropertiesBrowser::onShowGridSettingsDlg().
|
virtual |
Method that returns the position llx, lly Reimplement this function in a ItemObserver subclass to provide the item's getPosition implementation.
Implements te::layout::OutsideObserver.
Definition at line 161 of file PropertiesOutside.cpp.
References te::gm::Coord2D::x, and te::gm::Coord2D::y.
|
virtualinherited |
Reimplemented from Observer.
Definition at line 54 of file OutsideObserver.cpp.
References te::layout::Properties::getProperties().
|
virtual |
Definition at line 174 of file PropertiesOutside.cpp.
References te::layout::Properties::getObjectName(), te::layout::Properties::getProperties(), te::layout::Property::isMenu(), te::layout::Property::isVisible(), and te::layout::Properties::setHasWindows().
|
privateslot |
Definition at line 209 of file PropertiesOutside.cpp.
References te::layout::EnumDataType::getDataTypeNone(), te::layout::Enums::getEnumDataType(), te::common::Singleton< Enums >::getInstance(), te::common::Singleton< Context >::getInstance(), te::layout::Property::getParentItemHashCode(), te::layout::Context::getScene(), and te::layout::Property::getType().
Referenced by PropertiesOutside().
|
protectedvirtualslot |
Definition at line 406 of file PropertiesOutside.cpp.
|
virtualinherited |
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.
|
virtual |
Definition at line 401 of file PropertiesOutside.cpp.
|
protectedvirtual |
Definition at line 231 of file PropertiesOutside.cpp.
References te::layout::Properties::addProperty(), te::layout::Scene::addUndoStack(), te::common::Singleton< Context >::getInstance(), te::layout::ItemObserver::getModel(), te::layout::Properties::getObjectName(), te::layout::Observable::getProperties(), te::layout::Context::getScene(), te::layout::Properties::getTypeObj(), te::layout::ItemObserver::redraw(), te::layout::Properties::setObjectName(), te::layout::Properties::setTypeObj(), and te::layout::Observable::updateProperties().
|
protectedvirtual |
Definition at line 286 of file PropertiesOutside.cpp.
References te::layout::Properties::addProperty(), te::layout::Scene::addUndoStack(), te::common::Singleton< Context >::getInstance(), te::layout::ItemObserver::getModel(), te::layout::Properties::getObjectName(), te::layout::Observable::getProperties(), te::layout::Context::getScene(), te::layout::Properties::getTypeObj(), te::layout::ItemObserver::redraw(), te::layout::Properties::setObjectName(), te::layout::Properties::setTypeObj(), and te::layout::Observable::updateProperties().
|
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 |
Implements te::layout::OutsideObserver.
Definition at line 155 of file PropertiesOutside.cpp.
|
virtual |
Reimplemented from Observer.
Implements te::layout::OutsideObserver.
Definition at line 146 of file PropertiesOutside.cpp.
References te::layout::ContextItem::isShow().
|
protected |
Definition at line 118 of file PropertiesOutside.h.
|
protected |
Definition at line 121 of file PropertiesOutside.h.
|
protectedinherited |
"Controller" part of MVC widget.
Definition at line 119 of file OutsideObserver.h.
|
protected |
Definition at line 117 of file PropertiesOutside.h.
|
protected |
Definition at line 115 of file PropertiesOutside.h.
Referenced by PropertiesOutside().
|
protectedinherited |
"Model" part of MVC widget.
Definition at line 120 of file OutsideObserver.h.
Referenced by te::layout::ObjectInspectorOutside::ObjectInspectorOutside(), te::layout::OutsideObserver::OutsideObserver(), and PropertiesOutside().
|
protected |
Definition at line 119 of file PropertiesOutside.h.
|
protected |
Definition at line 120 of file PropertiesOutside.h.
|
protected |
Definition at line 124 of file PropertiesOutside.h.
Referenced by PropertiesOutside().
|
protected |
Definition at line 123 of file PropertiesOutside.h.
Referenced by PropertiesOutside().
|
protected |
Definition at line 122 of file PropertiesOutside.h.