![]() |
IOT
0.5
I Only Think
|
Classe abstraite implementant les methodes par defaut permettant de dessiner les items. More...
#include <AbstractItem.h>
Public Member Functions | |
AbstractItem (Box const *box, QGraphicsItem *parent=0) | |
Box const * | getBox () const |
IAction * | getEvent () 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 |
Classe abstraite implementant les methodes par defaut permettant de dessiner les items.
Un ensemble d'item forme une scene
AbstractItem::AbstractItem | ( | Box const * | box, |
QGraphicsItem * | parent = 0 |
||
) |
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] |
QString AbstractItem::_color [protected] |
Box const* AbstractItem::_model [protected] |