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

#include <GraphicsItemContainer.h>

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

Public Types

enum  ContainerBackgroundType { NoBackground = 0, SolidRectBackground, PopupBackground, TransientAlertBackground }
 
typedef enum
GraphicsItemContainer::ContainerBackgroundType 
t_backgroundType
 

Public Member Functions

 GraphicsItemContainer (int width, int height, t_backgroundType backgroundType=NoBackground)
 
 ~GraphicsItemContainer ()
 
void setBackgroundType (t_backgroundType backgroundType)
 
bool hasBackground () const
 
void setBlockGesturesAndMouse (bool block)
 
void setBrush (const QBrush &brush)
 
void raiseChild (QGraphicsItem *item)
 
void resize (int width, int height)
 
int width () const
 
int height () const
 
virtual QRectF boundingRect () const
 
int getMarginOffset ()
 

Protected Member Functions

virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *)
 
virtual void paintPopup (QPainter *painter)
 
virtual bool sceneEvent (QEvent *event)
 
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event)
 

Protected Attributes

int m_contentWidth
 
int m_contentHeight
 
int m_bkgImgMarging
 
t_backgroundType m_bkgType
 
bool m_blockGesturesAndMouse
 
QBrush m_brush
 
Pixmap9TileObjectm_background9Tile
 

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
NoBackground 
SolidRectBackground 
PopupBackground 
TransientAlertBackground 

Constructor & Destructor Documentation

GraphicsItemContainer::GraphicsItemContainer ( int  width,
int  height,
t_backgroundType  backgroundType = NoBackground 
)
GraphicsItemContainer::~GraphicsItemContainer ( )

Member Function Documentation

QRectF GraphicsItemContainer::boundingRect ( ) const
virtual

Reimplemented in DashboardWindowContainer.

int GraphicsItemContainer::getMarginOffset ( )
inline
bool GraphicsItemContainer::hasBackground ( ) const
int GraphicsItemContainer::height ( ) const
void GraphicsItemContainer::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
protectedvirtual
void GraphicsItemContainer::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  ,
QWidget *   
)
protectedvirtual
void GraphicsItemContainer::paintPopup ( QPainter *  painter)
protectedvirtual
void GraphicsItemContainer::raiseChild ( QGraphicsItem item)
void GraphicsItemContainer::resize ( int  width,
int  height 
)
bool GraphicsItemContainer::sceneEvent ( QEvent event)
protectedvirtual
void GraphicsItemContainer::setBackgroundType ( t_backgroundType  backgroundType)
void GraphicsItemContainer::setBlockGesturesAndMouse ( bool  block)
void GraphicsItemContainer::setBrush ( const QBrush &  brush)
int GraphicsItemContainer::width ( ) const

Member Data Documentation

Pixmap9TileObject* GraphicsItemContainer::m_background9Tile
protected
int GraphicsItemContainer::m_bkgImgMarging
protected
t_backgroundType GraphicsItemContainer::m_bkgType
protected
bool GraphicsItemContainer::m_blockGesturesAndMouse
protected
QBrush GraphicsItemContainer::m_brush
protected
int GraphicsItemContainer::m_contentHeight
protected
int GraphicsItemContainer::m_contentWidth
protected

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