64 QTransform* _transformMatrix;
67 QAction* _pmProperties;
74 explicit CanvasView(QGraphicsView* parent = 0);
77 QPoint newObjectPos();
80 void setDragObject(
UIObject*
object);
84 void setZoom(
float zoomDirection);
91 void setGridEnabled(
bool val);
92 void setGridSnap(
bool val);
97 void setKeepPdObject(
bool v);
100 void setReadOnly(
bool val);
104 QSize minimumCanvasSize();
106 void setWindowSize(QSize wsize);
108 void setReplaceObject(
UIObject* obj);
118 void mouseMoveEvent(QMouseEvent* ev);
119 void mousePressEvent(QMouseEvent* ev);
120 void mouseReleaseEvent(QMouseEvent* ev);
124 void resizeToObjects();
126 Q_SLOT
void slotSelectBox(
UIItem* box, QGraphicsSceneMouseEvent* ev);
128 Q_SLOT
void slotMoveBox(
UIItem* box, QGraphicsSceneMouseEvent* event);
130 void cancelPatchcord();
134 void portLocalCountUpdated();
136 void showNewObjectMaker();
138 void canvasFromPdStrings(QStringList strings);
142 void resizeEvent(QResizeEvent*);
143 void createContextMenu();
149 void slotPopupMenu();
153 void slotInletMousePress(
UIItem* obj, QGraphicsSceneMouseEvent* ev);
154 void slotInletMouseRelease(
UIItem* obj, QGraphicsSceneMouseEvent* ev);
156 void slotInletMouseEnter(
UIItem* obj, QGraphicsSceneHoverEvent* ev);
157 void slotInletMouseLeave(
UIItem* obj, QGraphicsSceneHoverEvent* ev);
159 void slotOutletMousePressed(
UIItem* obj, QGraphicsSceneMouseEvent*);
160 void slotOutletMouseReleased(
UIItem*, QGraphicsSceneMouseEvent*);
165 void slotPortCountUpdated();
172 void slotObjectStartsEdit(
void* obj);
175 pair<QMainWindow*, tilde::UIObject*> createSubpatchWindow();
176 void signalUpdatePortCount();
179 void signalSelectObject(
UIObject*
object);
182 void signalMousePress(QPoint pos);
183 void signalMouseMove(QPoint pos);
184 void signalMouseRelease(QPoint pos);
186 void signalDeselectObjects();
188 void signalSelectionFrame(QPoint start, QPoint end);
189 void signalMoveSelectedBoxes(QPoint eventPos);
191 void signalPopupMenu();
195 #endif // CM_CANVAS_H
selection rectangle QGraphicsObject (UIItem)
Definition: SelectionRect.h:17
UIItem QGraphicsObject class.
Definition: UIItem.h:15
New patchcord - dashed line.
Definition: UINewPatchcord.h:13
The Patch window controller.
Definition: PatchWindowController.h:48
creates QLineEdit box for new object
Definition: ObjectMaker.h:18
Grid for the canvas.
Definition: Grid.h:14
t_editMode
edit mode types
Definition: CommonTypes.h:13
Definition: UIObject.h:44
Canvas View - used by Patch window controller.
Definition: CanvasView.h:36