31 #ifndef __TERRALIB_LAYOUT_INTERNAL_TEXT_ITEM_H
32 #define __TERRALIB_LAYOUT_INTERNAL_TEXT_ITEM_H
35 #include "../../core/pattern/mvc/ItemObserver.h"
37 #include "../../core/Config.h"
41 #include <QGraphicsTextItem>
49 class QGraphicsSceneMouseEvent;
51 class QGraphicsSceneContextMenuEvent;
97 virtual void paint ( QPainter * painter,
const QStyleOptionGraphicsItem * option, QWidget * widget = 0 );
99 virtual void refreshDocument();
106 virtual bool isEditable();
113 virtual void setEditable(
bool editable);
118 virtual QRectF boundingRect()
const;
130 virtual QVariant itemChange ( GraphicsItemChange change,
const QVariant & value );
135 virtual void keyPressEvent ( QKeyEvent * event );
140 virtual void mouseDoubleClickEvent ( QGraphicsSceneMouseEvent * event );
145 virtual void mouseMoveEvent ( QGraphicsSceneMouseEvent * event );
150 virtual void mousePressEvent ( QGraphicsSceneMouseEvent * event );
155 virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
159 virtual QImage createImage();
166 virtual void getDocumentSizeMM(
double &w,
double &h);
168 virtual void resetEdit();
170 virtual void updateTextConfig();
Abstract class to represent an observable. "Model" part of MVC component.
Class responsible for maintaining the drawing context of a MVC component. It is always used by the "M...
#define TELAYOUTEXPORT
You can use this macro in order to export/import classes and functions from this module.
An utility struct for representing 2D coordinates.
Abstract class to represent a controller. "Controller" part of MVC component. All classes representin...
Abstract class that represents a graphic item. This object is of type QGraphicsObject.
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
Abstract class that represents a graphic item. Its coordinate system is the same of scene (millimeter...
Abstract class that represents a graphic item. Its coordinate system is the same of scene (millimeter...
Class that represents text. This object is of type QGraphicsTextItem. He is directly editable via use...