tilde~
Puredata Qt-based GUI
|
#include <UIObject.h>
Public Slots | |
void | slotResizeDeselectedBox (int dx, int dy) |
void | slotRepaint () |
>deprecated More... | |
Signals | |
void | signalEditObject (void *box) |
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) | |
CanvasView * | parentCanvasView () |
virtual void | setParentCanvasView (CanvasView *v) |
PatchWindowController * | parentController () |
void | setParentController (PatchWindowController *p) |
void | setObjectData (UIObjectData *m) |
UIObjectData * | objectData () |
virtual ObjectId | serverObjectId () |
virtual void | setServerObjectId (ObjectId o) |
ObjectObserverPtr | observer () |
virtual void | initProperties () |
PropertyList * | properties () |
>init properties for the class - called from constructor More... | |
virtual void | paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *) |
More... | |
virtual void | fromQString (QString objData) |
More... | |
QString | toQString () |
More... | |
QString | objectClass () |
More... | |
void | createPopupMenu () |
void | showPopupMenu (QPoint pos) |
More... | |
void | doSetSize (QSize size) |
virtual void | resizeEvent () |
virtual void | autoResize () |
More... | |
virtual std::string | asPdFileString () |
More... | |
void | setEditModeRef (t_editMode *canvasEditMode) |
>returns object's text for client-based file saving More... | |
SizeBox * | sizeBox () |
void | hideSizeBox () |
virtual void | sync () |
bool | errorBox () |
void | setErrorBox (bool val) |
More... | |
void | setHelpName (QString name) |
More... | |
QString | fullHelpName () |
More... | |
virtual void | setInletsPos () |
More... | |
virtual void | setOutletsPos () |
More... | |
virtual void | addInlet () |
More... | |
virtual void | addInlet (int _portClass_) |
More... | |
virtual void | addOutlet () |
virtual void | addOutlet (int _portClass_) |
More... | |
Port * | inletAt (int idx) |
Port * | outletAt (int idx) |
More... | |
int | inletCount () |
More... | |
int | outletCount () |
int | pdInletClass (int idx) |
int | pdOutletClass (int idx) |
More... | |
void | removeXLets () |
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 () |
More... | |
bool | isSelected () |
More... | |
virtual t_editMode * | getEditModeRef () |
t_editMode | getEditMode () |
More... | |
QRectF | boundingRect () const |
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 |
|
explicit |
|
virtual |
sets inlet position. could be overriden for custom inlet positions
|
virtual |
adds single inlet. now no need to be overriden
|
virtual |
|
virtual |
adds single outlet.
|
virtual |
call this after setting object data
Reimplemented in tilde::UIBox, tilde::UIMessage, and tilde::UIFloat.
|
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 | ( | ) |
|
virtual |
template
Reimplemented in tilde::UIBox, tilde::UIArray, tilde::UILink, tilde::UIScript, tilde::UIMessage, and tilde::UIText.
QString UIObject::fullHelpName | ( | ) |
set short name for help patch (without path)
void UIObject::hideSizeBox | ( | ) |
|
protectedvirtual |
Reimplemented in tilde::UILink.
|
protectedvirtual |
Reimplemented in tilde::UILink.
|
virtual |
Reimplemented in tilde::UIScriptBox, tilde::UIArray, tilde::UILink, tilde::UIMatrix, tilde::UIScript, tilde::UIText, tilde::UIDSP, tilde::UIFloat, and tilde::UIToggle.
Port * UIObject::inletAt | ( | int | idx | ) |
int UIObject::inletCount | ( | ) |
gets outlet (UIPort) at specified index
|
virtual |
Reimplemented in tilde::UIClass, tilde::UISignal, tilde::UIMethod, tilde::UIMatrix, tilde::UIArray, tilde::UISlider, and tilde::UIFloat.
|
virtual |
Reimplemented in tilde::UIClass, tilde::UISignal, tilde::UIMethod, tilde::UIMatrix, tilde::UIArray, and tilde::UISlider.
|
virtual |
Reimplemented in tilde::UIClass, tilde::UISignal, tilde::UIMethod, tilde::UIBox, tilde::UIMatrix, tilde::UIArray, tilde::UIFloat, and tilde::UISlider.
QString UIObject::objectClass | ( | ) |
gets object text data /usually overriden by ui objects/
UIObjectData * UIObject::objectData | ( | ) |
|
virtual |
Reimplemented in tilde::UIBox.
|
virtual |
Reimplemented in tilde::UIScriptBox, tilde::UIBox, tilde::UILink, tilde::UIText, tilde::UIBang, tilde::UIFloat, tilde::UIMessage, tilde::UIToggle, and tilde::UIDSP.
|
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 | ( | ) |
|
inlinevirtual |
UIObject properties
Reimplemented in tilde::UIClass, tilde::UIScriptBox, tilde::UIBox, tilde::UIMatrix, tilde::UISignal, tilde::UIMethod, tilde::UIArray, tilde::UIScript, tilde::UIDSP, tilde::UILink, tilde::UISlider, tilde::UIText, tilde::UIBang, tilde::UIFloat, tilde::UIMessage, and tilde::UIToggle.
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~
|
virtual |
Reimplemented from tilde::UIItem.
Reimplemented in tilde::UIMatrix, tilde::UISlider, tilde::UIScript, tilde::UIBang, tilde::UIMessage, and tilde::UIToggle.
|
virtual |
PdObject * UIObject::serverObjectPtr | ( | ) |
|
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
|
virtual |
returns help patch name with path if the file is found
void UIObject::setObjectData | ( | UIObjectData * | m | ) |
|
virtual |
sets inlet position. could be overriden for custom inlet positions
|
virtual |
Reimplemented in tilde::UIMessage.
void UIObject::setParentController | ( | PatchWindowController * | p | ) |
|
virtual |
void UIObject::showPopupMenu | ( | QPoint | pos | ) |
createContextMenu
|
signal |
this is needed for proper threading
pd calls UIUpdate(...) -> it emits 's_repaint()' that is connected to 'callRepaint()'
|
signal |
basic update - calls update() probably remove later
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
SizeBox * UIObject::sizeBox | ( | ) |
|
slot |
>deprecated
|
slot |
|
virtual |
Reimplemented in tilde::UIScriptBox, tilde::UIBox, tilde::UIArray, tilde::UIScript, tilde::UIText, and tilde::UIFloat.
QString UIObject::toQString | ( | ) |
sets object text data
|
inlinevirtual |
Reimplemented in tilde::UIScriptBox, tilde::UIMatrix, tilde::UILink, tilde::UIMessage, tilde::UIScript, tilde::UISlider, tilde::UIToggle, tilde::UIDSP, tilde::UIFloat, and tilde::UIBang.