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

gui object: oopd class (pdclass) More...

#include <UIClass.h>

Inheritance diagram for tilde::UIClass:
tilde::UIBox tilde::UIObject tilde::UIItem

Signals

void mouseMoved ()
 
void rightClicked ()
 
void updateUISignal ()
 
- Signals inherited from tilde::UIBox
void mouseMoved ()
 
void rightClicked ()
 
- Signals inherited from tilde::UIObject
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

 UIClass ()
 
 ~UIClass ()
 
virtual void paint (QPainter *p, const QStyleOptionGraphicsItem *, QWidget *)
 paint event More...
 
void mousePressEvent (QGraphicsSceneMouseEvent *ev)
 mouse down More...
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *)
 mouse up More...
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
 mouse move More...
 
void setPdMessage (QString message)
 
void msgNewClass (PdArguments msg)
 
void msgAddProperty (PdArguments msg)
 
void msgDelProperty (PdArguments msg)
 
void msgAddMethod (PdArguments msg)
 
void msgDelMethod (PdArguments msg)
 
void msgInfo (PdArguments)
 
- Public Member Functions inherited from tilde::UIBox
 UIBox ()
 
PatchWindowControllersubpatchController ()
 
virtual void setSubpatchController (PatchWindowController *cwindow)
 
void objectPressEvent (QGraphicsSceneMouseEvent *event)
 mouse down More...
 
void objectMoveEvent (QGraphicsSceneMouseEvent *event)
 

object mouse down

More...
 
void fromQString (QString message)
 

basic mouse up

More...
 
void sync ()
 
virtual string asPdFileString ()
 

call this after setting object data

More...
 
virtual void autoResize ()
 

custom resize event

More...
 
- Public Member Functions inherited from tilde::UIObject
 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...
 
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 ()
 
void setEditModeRef (t_editMode *canvasEditMode)
 >returns object's text for client-based file saving More...
 
SizeBoxsizeBox ()
 
void hideSizeBox ()
 
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 objectReleaseEvent (QGraphicsSceneMouseEvent *)
 
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 *)
 

Static Public Member Functions

static UIObjectcreateObject (QString objectData, t_canvas *pdCanvas, QGraphicsView *parent=0)
 
static void updateUI (void *uiobj, PdArguments msg)
 
- Static Public Member Functions inherited from tilde::UIBox
static UIObjectcreateObj (QString data)
 

Additional Inherited Members

- Public Slots inherited from tilde::UIBox
void propertyEmbed ()
 
- Public Slots inherited from tilde::UIObject
void slotResizeDeselectedBox (int dx, int dy)
 
void slotRepaint ()
 >deprecated More...
 
- Public Attributes inherited from tilde::UIItem
QPoint dragOffset
 
- Protected Member Functions inherited from tilde::UIObject
virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *)
 
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *)
 

Detailed Description

gui object: oopd class (pdclass)

Constructor & Destructor Documentation

tilde::UIClass::UIClass ( )
explicit
tilde::UIClass::~UIClass ( )
inline

Member Function Documentation

static UIObject* tilde::UIClass::createObject ( QString  objectData,
t_canvas pdCanvas,
QGraphicsView *  parent = 0 
)
inlinestatic
void tilde::UIClass::mouseMoved ( )
signal
void tilde::UIClass::mouseMoveEvent ( QGraphicsSceneMouseEvent *  event)
inlinevirtual

mouse move

Parameters
event

Reimplemented from tilde::UIObject.

void tilde::UIClass::mousePressEvent ( QGraphicsSceneMouseEvent *  ev)
inlinevirtual

mouse down

Parameters
ev

Reimplemented from tilde::UIObject.

void tilde::UIClass::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  )
inlinevirtual

mouse up

Reimplemented from tilde::UIBox.

void tilde::UIClass::msgAddMethod ( PdArguments  msg)
inline
void tilde::UIClass::msgAddProperty ( PdArguments  msg)
inline
void tilde::UIClass::msgDelMethod ( PdArguments  msg)
inline
void tilde::UIClass::msgDelProperty ( PdArguments  msg)
inline
void tilde::UIClass::msgInfo ( PdArguments  )
inline
void tilde::UIClass::msgNewClass ( PdArguments  msg)
inline
virtual void tilde::UIClass::paint ( QPainter *  p,
const QStyleOptionGraphicsItem *  ,
QWidget *   
)
inlinevirtual

paint event

Reimplemented from tilde::UIBox.

void tilde::UIClass::rightClicked ( )
signal
void tilde::UIClass::setPdMessage ( QString  message)
inline
static void tilde::UIClass::updateUI ( void *  uiobj,
PdArguments  msg 
)
inlinestatic
void tilde::UIClass::updateUISignal ( )
signal

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