tilde~
Puredata Qt-based GUI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Signals | Public Member Functions | Public Attributes | List of all members
tilde::UIItem Class Reference

UIItem QGraphicsObject class. More...

#include <UIItem.h>

Inheritance diagram for tilde::UIItem:
tilde::Grid tilde::LinkLine tilde::Port tilde::SelectionRect tilde::SizeBox tilde::UINewPatchcord tilde::UIObject tilde::UIPatchcord

Signals

void mousePressed (UIItem *obj, QGraphicsSceneMouseEvent *ev)
 
void mouseReleased (UIItem *obj, QGraphicsSceneMouseEvent *ev)
 
void mouseEntered (UIItem *obj, QGraphicsSceneHoverEvent *ev)
 
void mouseLeaved (UIItem *obj, QGraphicsSceneHoverEvent *ev)
 
void selectBox (UIItem *box, QGraphicsSceneMouseEvent *event)
 
void moveBox (UIItem *box, QGraphicsSceneMouseEvent *event)
 

Public Member Functions

 UIItem (QGraphicsObject *parent=0)
 
void setSize (QSize size)
 
void setSize (float w, float h)
 
void setWidth (float w)
 
void setHeight (float h)
 
void setMinWidth (float w)
 
void setMinHeight (float h)
 
float width ()
 
float height ()
 
float minWidth ()
 
float minHeight ()
 
QSize size ()
 
QColor bgColor ()
 
void setBgColor (QColor bgc)
 
bool hover ()
 
void setHover (bool h)
 
void select ()
 
void deselect ()
 

select object

More...
 
bool isSelected ()
 

deselect object

More...
 
virtual void setEditModeRef (t_editMode *canvasEditModeRef)
 

get object's selected flag

More...
 
virtual t_editModegetEditModeRef ()
 
t_editMode getEditMode ()
 

get edit mode pointer - for inlets/outlets

More...
 
QRectF boundingRect () const
 

get edit mode flag value

More...
 
QPainterPath shape () const
 
virtual void move (float x, float y)
 
virtual void move (QPoint pos)
 
virtual void move (QPointF pos)
 
void paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *)
 
virtual void resizeEvent ()
 

Public Attributes

QPoint dragOffset
 

Detailed Description

UIItem QGraphicsObject class.

parent class for all objects in the canvas

Constructor & Destructor Documentation

tilde::UIItem::UIItem ( QGraphicsObject *  parent = 0)
explicit

Member Function Documentation

QColor tilde::UIItem::bgColor ( )
inline
QRectF tilde::UIItem::boundingRect ( ) const
inline

get edit mode flag value

void tilde::UIItem::deselect ( )

select object

t_editMode tilde::UIItem::getEditMode ( )

get edit mode pointer - for inlets/outlets

t_editMode * tilde::UIItem::getEditModeRef ( )
virtual
float tilde::UIItem::height ( )
inline
bool tilde::UIItem::hover ( )
inline
bool tilde::UIItem::isSelected ( )

deselect object

float tilde::UIItem::minHeight ( )
inline
float tilde::UIItem::minWidth ( )
inline
void tilde::UIItem::mouseEntered ( UIItem obj,
QGraphicsSceneHoverEvent *  ev 
)
signal
void tilde::UIItem::mouseLeaved ( UIItem obj,
QGraphicsSceneHoverEvent *  ev 
)
signal
void tilde::UIItem::mousePressed ( UIItem obj,
QGraphicsSceneMouseEvent *  ev 
)
signal
void tilde::UIItem::mouseReleased ( UIItem obj,
QGraphicsSceneMouseEvent *  ev 
)
signal
void tilde::UIItem::move ( float  x,
float  y 
)
virtual

Reimplemented in tilde::UIMessage.

void tilde::UIItem::move ( QPoint  pos)
virtual

Reimplemented in tilde::UIMessage.

void tilde::UIItem::move ( QPointF  pos)
virtual

Reimplemented in tilde::UIMessage.

void tilde::UIItem::moveBox ( UIItem box,
QGraphicsSceneMouseEvent *  event 
)
signal
void tilde::UIItem::paint ( QPainter *  ,
const QStyleOptionGraphicsItem *  ,
QWidget *   
)
inline
virtual void tilde::UIItem::resizeEvent ( )
inlinevirtual
void tilde::UIItem::select ( )
void tilde::UIItem::selectBox ( UIItem box,
QGraphicsSceneMouseEvent *  event 
)
signal
void tilde::UIItem::setBgColor ( QColor  bgc)
inline
void tilde::UIItem::setEditModeRef ( t_editMode canvasEditModeRef)
virtual

get object's selected flag

sets pointer to edit mode flag in parent canvas

this is set by "constructor" (createObj etc) in canvas

Deprecated:
needs fix
Parameters
canvasEditMode

Reimplemented in tilde::UIObject.

void tilde::UIItem::setHeight ( float  h)
inline
void tilde::UIItem::setHover ( bool  h)
inline
void tilde::UIItem::setMinHeight ( float  h)
inline
void tilde::UIItem::setMinWidth ( float  w)
inline
void tilde::UIItem::setSize ( QSize  size)
inline
void tilde::UIItem::setSize ( float  w,
float  h 
)
inline
void tilde::UIItem::setWidth ( float  w)
inline
QPainterPath tilde::UIItem::shape ( ) const
QSize tilde::UIItem::size ( )
inline
float tilde::UIItem::width ( )
inline

Member Data Documentation

QPoint tilde::UIItem::dragOffset

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