37 #include "../../../../geometry/Envelope.h"
41 #include <QGraphicsWidget>
44 QDockWidget(
"", 0, 0),
50 setWindowTitle(
"Layout - Inspetor de Objetos");
51 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
53 setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea | Qt::BottomDockWidgetArea);
83 qreal valuex = posF.x();
84 qreal valuey = posF.y();
87 coordinate.
x = valuex;
88 coordinate.
y = valuey;
95 m_layoutPropertyBrowser->clearAll();
97 m_graphicsItems = graphicsItems;
99 if(m_graphicsItems.empty())
103 foreach( QGraphicsItem *item, graphicsItems)
107 QGraphicsWidget* outside =
dynamic_cast<QGraphicsWidget*
>(item);
114 QGraphicsItem* parentItem = item->parentItem();
115 zValue = item->zValue();
124 QGraphicsObject* itemObj =
dynamic_cast<QGraphicsObject*
>(item);
129 zValue = itemObj->zValue();
virtual void itemsInspector(QList< QGraphicsItem * > graphicsItems)
QtTreePropertyBrowser * getPropertyEditor()
virtual te::gm::Envelope getBox()=0
virtual te::gm::Coord2D getPosition()
double getWidth() const
It returns the envelope width.
virtual std::vector< Property > getProperties()
An utility struct for representing 2D coordinates.
virtual void setPosition(const double &x, const double &y)
An Envelope defines a 2D rectangular region.
ObjectInspectorOutside(OutsideController *controller, Observable *o)
virtual void updateObserver(ContextItem context)
virtual te::layout::Properties * getProperties() const
ObjectInspectorPropertyBrowser * m_layoutPropertyBrowser
virtual ~ObjectInspectorOutside()
double getHeight() const
It returns the envelope height.