IOT  0.5
I Only Think
Public Member Functions | Protected Member Functions | Protected Attributes
AbstractItem Class Reference

Classe abstraite implementant les methodes par defaut permettant de dessiner les items. More...

#include <AbstractItem.h>

Inheritance diagram for AbstractItem:
CustomItem DefaultItem MenuItem

List of all members.

Public Member Functions

 AbstractItem (Box const *box, QGraphicsItem *parent=0)
Box const * getBox () const
IActiongetEvent () const

Protected Member Functions

virtual void focusInEvent (QFocusEvent *event)
virtual void focusOutEvent (QFocusEvent *event)
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
void paintText (QPainter *painter, BoxStyle const &style)
void paintImage (QPainter *painter, BoxStyle const &style)

Protected Attributes

QString _color
Box const * _model

Detailed Description

Classe abstraite implementant les methodes par defaut permettant de dessiner les items.

Un ensemble d'item forme une scene


Constructor & Destructor Documentation

AbstractItem::AbstractItem ( Box const *  box,
QGraphicsItem *  parent = 0 
)

Member Function Documentation

void AbstractItem::focusInEvent ( QFocusEvent *  event) [protected, virtual]
void AbstractItem::focusOutEvent ( QFocusEvent *  event) [protected, virtual]
Box const * AbstractItem::getBox ( ) const
IAction * AbstractItem::getEvent ( ) const
void AbstractItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
) [protected, virtual]
void AbstractItem::paintImage ( QPainter *  painter,
BoxStyle const &  style 
) [protected]
void AbstractItem::paintText ( QPainter *  painter,
BoxStyle const &  style 
) [protected]

Member Data Documentation

QString AbstractItem::_color [protected]
Box const* AbstractItem::_model [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator