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

#include <UIObject.h>

Inheritance diagram for tilde::UIObject:
tilde::UIItem tilde::UIBang tilde::UIBox tilde::UIDSP tilde::UIFloat tilde::UILink tilde::UIMatrix tilde::UIMessage tilde::UISignal tilde::UISlider tilde::UIText tilde::UIToggle

Public Slots

void slotResizeDeselectedBox (int dx, int dy)
 
void slotRepaint ()
 >deprecated More...
 

Signals

void signalEditObject (void *box)
 

basic update - calls update() probably remove later

More...
 
void signalCallRepaint ()
 this is needed for proper threading More...
 
void signalSendMessage (ObjectId obj, QString msg)
 
void signalOpenPropertiesWindow ()
 
void signalOpenHelpWindow ()
 
void signalObjectHoverEnter ()
 
void signalObjectHoverLeave ()
 
- 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

 UIObject (UIItem *parent=0)
 
CanvasViewparentCanvasView ()
 
virtual void setParentCanvasView (CanvasView *v)
 
PatchWindowControllerparentController ()
 
void setParentController (PatchWindowController *p)
 
void setObjectData (UIObjectData *m)
 
UIObjectDataobjectData ()
 
virtual ObjectId serverObjectId ()
 
virtual void setServerObjectId (ObjectId o)
 
ObjectObserverPtr observer ()
 
virtual void initProperties ()
 
PropertyListproperties ()
 >init properties for the class - called from constructor More...
 
virtual void paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *)
 

UIObject properties

More...
 
virtual void fromQString (QString objData)
 

template

More...
 
QString toQString ()
 

sets object text data

More...
 
QString objectClass ()
 

gets object text data /usually overriden by ui objects/

More...
 
void createPopupMenu ()
 
void showPopupMenu (QPoint pos)
 

createContextMenu

More...
 
void doSetSize (QSize size)
 
virtual void resizeEvent ()
 
virtual void autoResize ()
 

custom resize event

More...
 
virtual std::string asPdFileString ()
 

call this after setting object data

More...
 
void setEditModeRef (t_editMode *canvasEditMode)
 >returns object's text for client-based file saving More...
 
SizeBoxsizeBox ()
 
void hideSizeBox ()
 
virtual void sync ()
 
bool errorBox ()
 
void setErrorBox (bool val)
 

returns true if object doesn't exist

More...
 
void setHelpName (QString name)
 

sets object box error flag

More...
 
QString fullHelpName ()
 

set short name for help patch (without path)

More...
 
virtual void setInletsPos ()
 

returns help patch name with path if the file is found

More...
 
virtual void setOutletsPos ()
 

sets inlet position. could be overriden for custom inlet positions

More...
 
virtual void addInlet ()
 

sets inlet position. could be overriden for custom inlet positions

More...
 
virtual void addInlet (int _portClass_)
 

adds single inlet. now no need to be overriden

More...
 
virtual void addOutlet ()
 
virtual void addOutlet (int _portClass_)
 

adds single outlet.

More...
 
PortinletAt (int idx)
 
PortoutletAt (int idx)
 

gets inlet (UIPort) at specified index

More...
 
int inletCount ()
 

gets outlet (UIPort) at specified index

More...
 
int outletCount ()
 
int pdInletClass (int idx)
 
int pdOutletClass (int idx)
 

returns 1 if signal~

More...
 
void removeXLets ()
 

returns 1 if signal~

More...
 
virtual void objectPressEvent (QGraphicsSceneMouseEvent *)
 
virtual void objectMoveEvent (QGraphicsSceneMouseEvent *)
 
virtual void objectReleaseEvent (QGraphicsSceneMouseEvent *)
 
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
 
virtual void updateUI (t_cpd_list *)
 
PdObject * serverObjectPtr ()
 
- 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 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 *)
 

Protected Member Functions

virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *)
 
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *)
 

Additional Inherited Members

- Public Attributes inherited from tilde::UIItem
QPoint dragOffset
 

Constructor & Destructor Documentation

UIObject::UIObject ( UIItem parent = 0)
explicit

Member Function Documentation

void UIObject::addInlet ( )
virtual

sets inlet position. could be overriden for custom inlet positions

void UIObject::addInlet ( int  _portClass_)
virtual

adds single inlet. now no need to be overriden

void UIObject::addOutlet ( )
virtual
void UIObject::addOutlet ( int  _portClass_)
virtual

adds single outlet.

std::string UIObject::asPdFileString ( )
virtual

call this after setting object data

Reimplemented in tilde::UIBox, tilde::UIMessage, and tilde::UIFloat.

void UIObject::autoResize ( )
virtual

custom resize event

Reimplemented in tilde::UIBox, tilde::UIMessage, tilde::UILink, tilde::UIText, and tilde::UIFloat.

void UIObject::createPopupMenu ( )
void UIObject::doSetSize ( QSize  size)
bool UIObject::errorBox ( )
void UIObject::fromQString ( QString  objData)
virtual
QString UIObject::fullHelpName ( )

set short name for help patch (without path)

void UIObject::hideSizeBox ( )
void UIObject::hoverEnterEvent ( QGraphicsSceneHoverEvent *  )
protectedvirtual

Reimplemented in tilde::UILink.

void UIObject::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  )
protectedvirtual

Reimplemented in tilde::UILink.

void UIObject::initProperties ( )
virtual
Port * UIObject::inletAt ( int  idx)
int UIObject::inletCount ( )

gets outlet (UIPort) at specified index

void UIObject::mouseMoveEvent ( QGraphicsSceneMouseEvent *  event)
virtual
void UIObject::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
virtual
void UIObject::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
virtual
QString UIObject::objectClass ( )

gets object text data /usually overriden by ui objects/

UIObjectData * UIObject::objectData ( )
void UIObject::objectMoveEvent ( QGraphicsSceneMouseEvent *  )
virtual

Reimplemented in tilde::UIBox.

void UIObject::objectPressEvent ( QGraphicsSceneMouseEvent *  )
virtual
void UIObject::objectReleaseEvent ( QGraphicsSceneMouseEvent *  )
virtual

Reimplemented in tilde::UILink, and tilde::UIMessage.

ObjectObserverPtr UIObject::observer ( )
Port * UIObject::outletAt ( int  idx)

gets inlet (UIPort) at specified index

int UIObject::outletCount ( )
virtual void tilde::UIObject::paint ( QPainter *  ,
const QStyleOptionGraphicsItem *  ,
QWidget *   
)
inlinevirtual
CanvasView * UIObject::parentCanvasView ( )
PatchWindowController * UIObject::parentController ( )
int UIObject::pdInletClass ( int  idx)
int UIObject::pdOutletClass ( int  idx)

returns 1 if signal~

PropertyList * UIObject::properties ( )

>init properties for the class - called from constructor

void UIObject::removeXLets ( )

returns 1 if signal~

void UIObject::resizeEvent ( )
virtual
ObjectId UIObject::serverObjectId ( )
virtual
PdObject * UIObject::serverObjectPtr ( )
void UIObject::setEditModeRef ( t_editMode canvasEditMode)
virtual

>returns object's text for client-based file saving

Reimplemented from tilde::UIItem.

void UIObject::setErrorBox ( bool  val)

returns true if object doesn't exist

void UIObject::setHelpName ( QString  name)

sets object box error flag

void UIObject::setInletsPos ( )
virtual

returns help patch name with path if the file is found

void UIObject::setObjectData ( UIObjectData m)
void UIObject::setOutletsPos ( )
virtual

sets inlet position. could be overriden for custom inlet positions

void UIObject::setParentCanvasView ( CanvasView v)
virtual

Reimplemented in tilde::UIMessage.

void UIObject::setParentController ( PatchWindowController p)
void UIObject::setServerObjectId ( ObjectId  o)
virtual
void UIObject::showPopupMenu ( QPoint  pos)

createContextMenu

void tilde::UIObject::signalCallRepaint ( )
signal

this is needed for proper threading

pd calls UIUpdate(...) -> it emits 's_repaint()' that is connected to 'callRepaint()'

void tilde::UIObject::signalEditObject ( void *  box)
signal

basic update - calls update() probably remove later

void tilde::UIObject::signalObjectHoverEnter ( )
signal
void tilde::UIObject::signalObjectHoverLeave ( )
signal
void tilde::UIObject::signalOpenHelpWindow ( )
signal
void tilde::UIObject::signalOpenPropertiesWindow ( )
signal
void tilde::UIObject::signalSendMessage ( ObjectId  obj,
QString  msg 
)
signal
SizeBox * UIObject::sizeBox ( )
void UIObject::slotRepaint ( )
slot

>deprecated

void UIObject::slotResizeDeselectedBox ( int  dx,
int  dy 
)
slot
void UIObject::sync ( )
virtual
QString UIObject::toQString ( )

sets object text data

virtual void tilde::UIObject::updateUI ( t_cpd_list *  )
inlinevirtual

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