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

Patchcord QGraphicsObject class. More...

#include <UIPatchcord.h>

Inheritance diagram for tilde::UIPatchcord:
tilde::UIItem

Signals

void selected ()
 
void shiftClicked ()
 

basic select signal - same as in UIObject class

More...
 
void altClicked ()
 

deletes object and makes new line from obj2 out 'new line'

More...
 
- Signals inherited from tilde::UIItem
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

 UIPatchcord (UIItem *_obj1, UIItem *_out1, UIItem *_obj2, UIItem *_in2)
 
 ~UIPatchcord ()
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *)
 
QPoint startPoint ()
 
QPoint endPoint ()
 
void setPatchcordType (patchcordTypeEnum v)
 
void remove ()
 
UIObjectobj1 ()
 
UIObjectobj2 ()
 
int outletIndex ()
 
int inletIndex ()
 
bool isConnectedToObject (UIItem *obj)
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *)
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *)
 
void mousePressEvent (QGraphicsSceneMouseEvent *)
 
void setServerPatchcord (ServerPatchcord *p)
 
ServerPatchcord * serverPatchcord ()
 
- Public Member Functions inherited from tilde::UIItem
 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 ()
 

Additional Inherited Members

- Public Attributes inherited from tilde::UIItem
QPoint dragOffset
 

Detailed Description

Patchcord QGraphicsObject class.

gui representation of Pd patchcord

Constructor & Destructor Documentation

tilde::UIPatchcord::UIPatchcord ( UIItem _obj1,
UIItem _out1,
UIItem _obj2,
UIItem _in2 
)
explicit
tilde::UIPatchcord::~UIPatchcord ( )

Member Function Documentation

void tilde::UIPatchcord::altClicked ( )
signal

deletes object and makes new line from obj2 out 'new line'

QPoint tilde::UIPatchcord::endPoint ( )
void tilde::UIPatchcord::hoverEnterEvent ( QGraphicsSceneHoverEvent *  )
void tilde::UIPatchcord::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  )
int tilde::UIPatchcord::inletIndex ( )
bool tilde::UIPatchcord::isConnectedToObject ( UIItem obj)
void tilde::UIPatchcord::mousePressEvent ( QGraphicsSceneMouseEvent *  )
UIObject * tilde::UIPatchcord::obj1 ( )
UIObject * tilde::UIPatchcord::obj2 ( )
int tilde::UIPatchcord::outletIndex ( )
void tilde::UIPatchcord::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  ,
QWidget *   
)
void tilde::UIPatchcord::remove ( )
void tilde::UIPatchcord::selected ( )
signal
ServerPatchcord* tilde::UIPatchcord::serverPatchcord ( )
inline
void tilde::UIPatchcord::setPatchcordType ( patchcordTypeEnum  v)
void tilde::UIPatchcord::setServerPatchcord ( ServerPatchcord *  p)
inline
void tilde::UIPatchcord::shiftClicked ( )
signal

basic select signal - same as in UIObject class

QPoint tilde::UIPatchcord::startPoint ( )

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