tilde~
Puredata Qt-based GUI
|
Canvas View - used by Patch window controller. More...
#include <CanvasView.h>
Public Slots | |
void | slotInletMousePress (UIItem *obj, QGraphicsSceneMouseEvent *ev) |
void | slotInletMouseRelease (UIItem *obj, QGraphicsSceneMouseEvent *ev) |
void | slotInletMouseEnter (UIItem *obj, QGraphicsSceneHoverEvent *ev) |
void | slotInletMouseLeave (UIItem *obj, QGraphicsSceneHoverEvent *ev) |
void | slotOutletMousePressed (UIItem *obj, QGraphicsSceneMouseEvent *) |
void | slotOutletMouseReleased (UIItem *, QGraphicsSceneMouseEvent *) |
void | slotPortCountUpdated () |
slot in Box-style canvas for handling new ins/outs More... | |
void | slotObjectStartsEdit (void *obj) |
creates objectmaker atop existiong object box More... | |
Signals | |
pair< QMainWindow *, tilde::UIObject * > | createSubpatchWindow () |
void | signalUpdatePortCount () |
void | signalSelectObject (UIObject *object) |
void | signalPatchcord (UIObject *src, int nOut, UIObject *dest, int nIn) |
void | signalMousePress (QPoint pos) |
void | signalMouseMove (QPoint pos) |
void | signalMouseRelease (QPoint pos) |
void | signalDeselectObjects () |
void | signalSelectionFrame (QPoint start, QPoint end) |
void | signalMoveSelectedBoxes (QPoint eventPos) |
void | signalPopupMenu () |
Public Member Functions | |
CanvasView (QGraphicsView *parent=0) | |
QPoint | newObjectPos () |
UIObject * | dragObject () |
void | setDragObject (UIObject *object) |
void | setController (PatchWindowController *c) |
void | setZoom (float zoomDirection) |
float | getZoom () |
virtual t_editMode | getEditMode () |
virtual t_editMode * | getEditModeRef () |
void | setEditMode (t_editMode mode) |
void | setGridEnabled (bool val) |
void | setGridSnap (bool val) |
bool | gridSnap () |
int | gridStep () |
void | setKeepPdObject (bool v) |
bool | keepPdObject () |
void | setReadOnly (bool val) |
bool | readOnly () |
QSize | minimumCanvasSize () |
void | setWindowSize (QSize wsize) |
void | setReplaceObject (UIObject *obj) |
UIObject * | replaceObject () |
>sets 'replaceobject' pointer More... | |
void | addInlet () |
void | addOutlet () |
void | mouseMoveEvent (QMouseEvent *ev) |
void | mousePressEvent (QMouseEvent *ev) |
void | mouseReleaseEvent (QMouseEvent *ev) |
void | resizeToObjects () |
Q_SLOT void | slotSelectBox (UIItem *box, QGraphicsSceneMouseEvent *ev) |
More... | |
Q_SLOT void | slotMoveBox (UIItem *box, QGraphicsSceneMouseEvent *event) |
More... | |
void | cancelPatchcord () |
More... | |
ObjectMaker * | objectMaker () |
More... | |
void | portLocalCountUpdated () |
More... | |
void | showNewObjectMaker () |
More... | |
void | canvasFromPdStrings (QStringList strings) |
More... | |
void | resizeEvent (QResizeEvent *) |
More... | |
void | createContextMenu () |
Canvas View - used by Patch window controller.
|
explicit |
void tilde::CanvasView::addInlet | ( | ) |
void tilde::CanvasView::addOutlet | ( | ) |
void tilde::CanvasView::cancelPatchcord | ( | ) |
TODO check. slot called by box when it starts moving
void tilde::CanvasView::canvasFromPdStrings | ( | QStringList | strings | ) |
shows object maker for 'new object' menu command
void tilde::CanvasView::createContextMenu | ( | ) |
|
signal |
UIObject * tilde::CanvasView::dragObject | ( | ) |
|
virtual |
|
virtual |
float tilde::CanvasView::getZoom | ( | ) |
bool tilde::CanvasView::gridSnap | ( | ) |
int tilde::CanvasView::gridStep | ( | ) |
bool tilde::CanvasView::keepPdObject | ( | ) |
QSize tilde::CanvasView::minimumCanvasSize | ( | ) |
void tilde::CanvasView::mouseMoveEvent | ( | QMouseEvent * | ev | ) |
void tilde::CanvasView::mousePressEvent | ( | QMouseEvent * | ev | ) |
void tilde::CanvasView::mouseReleaseEvent | ( | QMouseEvent * | ev | ) |
QPoint tilde::CanvasView::newObjectPos | ( | ) |
ObjectMaker * tilde::CanvasView::objectMaker | ( | ) |
cancels patchcord creation
void tilde::CanvasView::portLocalCountUpdated | ( | ) |
pointer to objectMaker widget
bool tilde::CanvasView::readOnly | ( | ) |
UIObject * tilde::CanvasView::replaceObject | ( | ) |
>sets 'replaceobject' pointer
void tilde::CanvasView::resizeEvent | ( | QResizeEvent * | ) |
deprecated
void tilde::CanvasView::resizeToObjects | ( | ) |
void tilde::CanvasView::setController | ( | PatchWindowController * | c | ) |
void tilde::CanvasView::setDragObject | ( | UIObject * | object | ) |
void tilde::CanvasView::setEditMode | ( | t_editMode | mode | ) |
void tilde::CanvasView::setGridEnabled | ( | bool | val | ) |
void tilde::CanvasView::setGridSnap | ( | bool | val | ) |
void tilde::CanvasView::setKeepPdObject | ( | bool | v | ) |
void tilde::CanvasView::setReadOnly | ( | bool | val | ) |
void tilde::CanvasView::setReplaceObject | ( | UIObject * | obj | ) |
void tilde::CanvasView::setWindowSize | ( | QSize | wsize | ) |
void tilde::CanvasView::setZoom | ( | float | zoomDirection | ) |
void tilde::CanvasView::showNewObjectMaker | ( | ) |
this is called when 'inlet' etc object is created in subpatch
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
slot |
|
slot |
|
slot |
|
slot |
void tilde::CanvasView::slotMoveBox | ( | UIItem * | box, |
QGraphicsSceneMouseEvent * | event | ||
) |
slot called by box when it is selected
Canvas::s_MoveBox.
box | |
event |
|
slot |
creates objectmaker atop existiong object box
after typing the text in the objectmaker with nonzero 'replaceobject' the old object is deleted, the new object is created and old connections are restored
obj |
|
slot |
|
slot |
|
slot |
slot in Box-style canvas for handling new ins/outs
void tilde::CanvasView::slotSelectBox | ( | UIItem * | box, |
QGraphicsSceneMouseEvent * | ev | ||
) |
change size to fit all objects