4 #ifndef CM_OBJECTITEM_H
5 #define CM_OBJECTITEM_H
9 #include "../../xpd-transition/xpd-headers.h"
41 class PatchWindowController;
58 QAction* _pmProperties;
65 ObjectId _serverObjectId;
70 virtual void hoverEnterEvent(QGraphicsSceneHoverEvent*);
71 virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent*);
79 virtual void setParentCanvasView(
CanvasView* v);
87 virtual ObjectId serverObjectId();
88 virtual void setServerObjectId(ObjectId o);
92 virtual void initProperties();
97 virtual void paint(QPainter*,
const QStyleOptionGraphicsItem*, QWidget*){};
101 virtual void fromQString(QString objData);
104 QString objectClass();
110 void createPopupMenu();
111 void showPopupMenu(QPoint pos);
113 void doSetSize(QSize size);
114 virtual void resizeEvent();
115 virtual void autoResize();
117 virtual std::string asPdFileString();
119 void setEditModeRef(
t_editMode* canvasEditMode);
127 void setErrorBox(
bool val);
129 void setHelpName(QString name);
131 QString fullHelpName();
135 virtual void setInletsPos();
136 virtual void setOutletsPos();
138 virtual void addInlet();
139 virtual void addInlet(
int _portClass_);
141 virtual void addOutlet();
142 virtual void addOutlet(
int _portClass_);
144 Port* inletAt(
int idx);
145 Port* outletAt(
int idx);
150 int pdInletClass(
int idx);
151 int pdOutletClass(
int idx);
157 virtual void objectPressEvent(QGraphicsSceneMouseEvent*);
158 virtual void objectMoveEvent(QGraphicsSceneMouseEvent*);
159 virtual void objectReleaseEvent(QGraphicsSceneMouseEvent*);
161 virtual void mousePressEvent(QGraphicsSceneMouseEvent* event);
162 virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event);
163 virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event);
170 PdObject* serverObjectPtr();
173 void openPropertiesWindow();
174 void openHelpWindow();
177 virtual void propertyFontSize();
179 void propertyPosition();
180 void propertyReceiveSymbol();
182 void propertyUpdate();
185 void signalEditObject(
void* box);
189 void signalCallRepaint();
191 void signalSendMessage(ObjectId obj, QString msg);
193 void signalOpenPropertiesWindow();
194 void signalOpenHelpWindow();
196 void signalObjectHoverEnter();
197 void signalObjectHoverLeave();
200 void slotResizeDeselectedBox(
int dx,
int dy);
211 #endif // CM_OBJECT_H
std::shared_ptr< ObjectObserver > ObjectObserverPtr
Definition: objectObserver.h:31
SizeBox QGraphicsObject class.
Definition: SizeBox.h:14
virtual void updateUI(t_cpd_list *)
Definition: UIObject.h:167
std::vector< Port * > portItemVec
Definition: UIObjectData.h:13
UIItem QGraphicsObject class.
Definition: UIItem.h:15
virtual void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *)
UIObject properties
Definition: UIObject.h:97
The Patch window controller.
Definition: PatchWindowController.h:48
Property handling class for ui object - property list.
Definition: PropertyList.h:34
t_editMode
edit mode types
Definition: CommonTypes.h:13
Port QGraphicsItem class.
Definition: Port.h:18
Data model for UIObject.
Definition: UIObjectData.h:20
Definition: UIObject.h:44
Canvas View - used by Patch window controller.
Definition: CanvasView.h:36