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

Canvas View - used by Patch window controller. More...

#include <CanvasView.h>

Inheritance diagram for tilde::CanvasView:

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 ()
 
UIObjectdragObject ()
 
void setDragObject (UIObject *object)
 
void setController (PatchWindowController *c)
 
void setZoom (float zoomDirection)
 
float getZoom ()
 
virtual t_editMode getEditMode ()
 
virtual t_editModegetEditModeRef ()
 
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)
 
UIObjectreplaceObject ()
 >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)
 

change size to fit all objects

More...
 
Q_SLOT void slotMoveBox (UIItem *box, QGraphicsSceneMouseEvent *event)
 

slot called by box when it is selected

More...
 
void cancelPatchcord ()
 

TODO check. slot called by box when it starts moving

More...
 
ObjectMakerobjectMaker ()
 

cancels patchcord creation

More...
 
void portLocalCountUpdated ()
 

pointer to objectMaker widget

More...
 
void showNewObjectMaker ()
 

this is called when 'inlet' etc object is created in subpatch

More...
 
void canvasFromPdStrings (QStringList strings)
 

shows object maker for 'new object' menu command

More...
 
void resizeEvent (QResizeEvent *)
 

deprecated

More...
 
void createContextMenu ()
 

Detailed Description

Canvas View - used by Patch window controller.

Constructor & Destructor Documentation

tilde::CanvasView::CanvasView ( QGraphicsView *  parent = 0)
explicit

Member Function Documentation

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 ( )
pair<QMainWindow*, tilde::UIObject*> tilde::CanvasView::createSubpatchWindow ( )
signal
UIObject * tilde::CanvasView::dragObject ( )
t_editMode tilde::CanvasView::getEditMode ( )
virtual
t_editMode * tilde::CanvasView::getEditModeRef ( )
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

void tilde::CanvasView::signalDeselectObjects ( )
signal
void tilde::CanvasView::signalMouseMove ( QPoint  pos)
signal
void tilde::CanvasView::signalMousePress ( QPoint  pos)
signal
void tilde::CanvasView::signalMouseRelease ( QPoint  pos)
signal
void tilde::CanvasView::signalMoveSelectedBoxes ( QPoint  eventPos)
signal
void tilde::CanvasView::signalPatchcord ( UIObject src,
int  nOut,
UIObject dest,
int  nIn 
)
signal
void tilde::CanvasView::signalPopupMenu ( )
signal
void tilde::CanvasView::signalSelectionFrame ( QPoint  start,
QPoint  end 
)
signal
void tilde::CanvasView::signalSelectObject ( UIObject object)
signal
void tilde::CanvasView::signalUpdatePortCount ( )
signal
void tilde::CanvasView::slotInletMouseEnter ( UIItem obj,
QGraphicsSceneHoverEvent *  ev 
)
slot
void tilde::CanvasView::slotInletMouseLeave ( UIItem obj,
QGraphicsSceneHoverEvent *  ev 
)
slot
void tilde::CanvasView::slotInletMousePress ( UIItem obj,
QGraphicsSceneMouseEvent *  ev 
)
slot
void tilde::CanvasView::slotInletMouseRelease ( UIItem obj,
QGraphicsSceneMouseEvent *  ev 
)
slot
void tilde::CanvasView::slotMoveBox ( UIItem box,
QGraphicsSceneMouseEvent *  event 
)

slot called by box when it is selected

Canvas::s_MoveBox.

Parameters
box
event
Deprecated:
move to UIBox
void tilde::CanvasView::slotObjectStartsEdit ( void *  obj)
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

Parameters
obj
void tilde::CanvasView::slotOutletMousePressed ( UIItem obj,
QGraphicsSceneMouseEvent *   
)
slot
void tilde::CanvasView::slotOutletMouseReleased ( UIItem ,
QGraphicsSceneMouseEvent *   
)
slot
void tilde::CanvasView::slotPortCountUpdated ( )
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


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