LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TextBox Class Reference

#include <textbox.h>

Inheritance diagram for TextBox:
[legend]
Collaboration diagram for TextBox:
[legend]

Signals

void signalInnerTextChanged (const QString &)
 
- Signals inherited from ThingPaintable
void signalGeometryChanged (const QRectF &, const QRectF &)
 
void signalGeometryChanged ()
 
void signalUiStateChanged ()
 
void signalPositionChanged ()
 
- Signals inherited from Thing
void signalThingGeometryChanged (const QRectF &)
 

Public Member Functions

 TextBox (PixmapObject *p_backgroundPmo, const QRectF &geom)
 
 TextBox (PixmapObject *p_backgroundPmo, const QRectF &geom, const QString &inner_text)
 
virtual ~TextBox ()
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option=0, QWidget *widget=0)
 
virtual void paintOffscreen (QPainter *painter)
 
virtual QString innerText () const
 
virtual void setInnerText (const QString &v)
 
virtual void resetInnerText ()
 
- Public Member Functions inherited from ThingPaintable
 ThingPaintable (const QRectF &geom)
 
virtual ~ThingPaintable ()
 
virtual QString readUiState () const
 
virtual void writeUiState (const QString &s)
 
virtual void resetUiState ()
 
virtual QRectF geometry () const
 
virtual QRectF positionRelativeGeometry () const
 
virtual QRectF untranslateFromPosition (const QRectF &rect) const
 
virtual QRectF boundingRect () const
 
virtual bool resize (const QSize &newSize)
 
virtual bool resize (quint32 newWidth, quint32 newHeight)
 
virtual void paint (QPainter *painter, const QRectF &sourceRect)
 
virtual void paint (QPainter *painter, const QRectF &sourceRect, qint32 renderOpt)
 
virtual void paint (QPainter *painter, const QRectF &sourceRect, const QPointF &painterTranslate)
 
virtual void paint (QPainter *painter, const QRectF &sourceRect, const QPointF &painterTranslate, qint32 renderOpt)
 
virtual void paintOffscreen (QPainter *painter, const QRect &sourceRect, const QPoint &targetOrigin)
 
virtual void paintOffscreen (QPainter *painter, const QRect &sourceRect, const QRect &targetRect)
 
- Public Member Functions inherited from Thing
 Thing ()
 
virtual ~Thing ()
 
virtual QUuid uid () const
 
virtual bool offer (Thing *p_offer, Thing *p_offeringThing)
 
virtual bool take (Thing *p_takerThing)
 
virtual bool taking (Thing *p_victimThing, Thing *p_takerThing)
 
virtual void taken (Thing *p_takenThing, Thing *p_takerThing)
 
virtual uint hashValue () const
 
virtual void touchTrackedPointStarted (int id, const QPointF &scenePosition, const QPointF &lastScenePosition, const QPointF &initialPosition)
 
virtual void touchTrackedPointMoved (int id, const QPointF &scenePosition, const QPointF &lastScenePosition, const QPointF &initialPosition)
 
virtual void touchTrackedPointReleased (int id, const QPointF &scenePosition, const QPointF &lastScenePosition, const QPointF &initialPosition)
 
virtual void redirectTouchPrepare (Thing *p_sourceThing, const TouchRegister &touchRegister, int contextHint=0)
 
virtual void redirectedTouchTrackedPointMoved (Thing *p_sourceThing, int id, const QPointF &scenePosition, const QPointF &lastScenePosition, const QPointF &initialPosition, const RedirectContext &redirContext)
 
virtual void redirectedTouchTrackedPointReleased (Thing *p_sourceThing, int id, const QPointF &scenePosition, const QPointF &lastScenePosition, const QPointF &initialPosition, const RedirectContext &redirContext)
 

Static Public Member Functions

static QFont staticLabelFontForTextBox ()
 
- Static Public Member Functions inherited from ThingPaintable
static bool isItemThingPaintable (QGraphicsItem *p_qgitem)
 
static ThingPaintablethingpaintable_cast (QGraphicsItem *p_qgitem)
 

Static Public Attributes

static const char * InnerTextPropertyName = "innertext"
 
- Static Public Attributes inherited from ThingPaintable
static int MagicTypePropertyKey = 1111
 
static int MagicTypePropertyValue = 2222
 

Protected Member Functions

virtual void recalculateMaxTextGeomForCurrentGeom ()
 protected: More...
 
virtual void redoInnerTextLayout ()
 
virtual void recalculateInnerTextPosition ()
 
- Protected Member Functions inherited from ThingPaintable
 ThingPaintable (const QUuid &specificUid, const QRectF &geom)
 
virtual void recomputeBoundingRect ()
 
virtual void recomputeBoundingRect (const QRectF &virtualGeom)
 
- Protected Member Functions inherited from Thing
 Thing (const QUuid &specificUid)
 

Protected Attributes

QString m_innerText
 
QPointer< PixmapObjectm_qp_background
 
QPointF m_innerTextPosICS
 
QPoint m_innerTextPosPntCS
 
QRect m_innerTextMaxGeom
 
QRect m_innerTextGeom
 
QTextLayout m_textLayoutObject
 
QPointer< PixmapObjectm_qp_prerenderedInnerTextPixmap
 
- Protected Attributes inherited from ThingPaintable
QRectF m_geom
 
QRectF m_boundingRect
 
QString m_uiState
 
- Protected Attributes inherited from Thing
QPointer< Thingm_qp_takerOwner
 

Properties

QString innertext
 
- Properties inherited from ThingPaintable
QString uistate
 
QPointF animatePosition
 

Additional Inherited Members

- Public Slots inherited from Thing
virtual void slotEnableIconAutoRepaint ()
 
virtual void slotDisableIconAutoRepaint ()
 

Constructor & Destructor Documentation

TextBox::TextBox ( PixmapObject p_backgroundPmo,
const QRectF &  geom 
)
TextBox::TextBox ( PixmapObject p_backgroundPmo,
const QRectF &  geom,
const QString &  inner_text 
)
TextBox::~TextBox ( )
virtual

Member Function Documentation

QString TextBox::innerText ( ) const
virtual
void TextBox::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option = 0,
QWidget *  widget = 0 
)
virtual

Implements ThingPaintable.

void TextBox::paintOffscreen ( QPainter *  painter)
virtual

Implements ThingPaintable.

void TextBox::recalculateInnerTextPosition ( )
protectedvirtual
void TextBox::recalculateMaxTextGeomForCurrentGeom ( )
protectedvirtual

protected:

void TextBox::redoInnerTextLayout ( )
protectedvirtual
void TextBox::resetInnerText ( )
virtual
void TextBox::setInnerText ( const QString &  v)
virtual
void TextBox::signalInnerTextChanged ( const QString &  )
signal
QFont TextBox::staticLabelFontForTextBox ( )
static

Member Data Documentation

const char * TextBox::InnerTextPropertyName = "innertext"
static
QString TextBox::m_innerText
protected
QRect TextBox::m_innerTextGeom
protected
QRect TextBox::m_innerTextMaxGeom
protected
QPointF TextBox::m_innerTextPosICS
protected
QPoint TextBox::m_innerTextPosPntCS
protected
QPointer<PixmapObject> TextBox::m_qp_background
protected
QPointer<PixmapObject> TextBox::m_qp_prerenderedInnerTextPixmap
protected
QTextLayout TextBox::m_textLayoutObject
protected

Property Documentation

QString TextBox::innertext
readwrite

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