4 #ifndef CM_CANVAS_TYPES_H
5 #define CM_CANVAS_TYPES_H
77 bool hasObjects() {
return ((_boxes.size() > 0) || (_patchcords.size() > 0)); }
78 bool hasSelectedObjects() {
return ((_selectedBoxes.size() > 0) || (_selectedPatchcords.size() > 0)); }
139 #endif // CM_CANVAS_TYPES_H
UIObject * getObjectByIndex(int idx)
Definition: CanvasData.cpp:187
int findPatchcord(patchcordVec *patchcords, UIPatchcord *pcord)
Definition: CanvasData.cpp:66
PropertyList * properties()
Definition: CanvasData.h:69
void setFileName(QString fName)
Definition: CanvasData.h:60
void addUniquePatchcord(patchcordVec *patchcords, UIPatchcord *pcord)
Definition: CanvasData.cpp:43
shared canvas data model - boxes, patchcords
Definition: CanvasData.h:22
patchcordVec * patchcords()
Definition: CanvasData.h:81
QString canvasAsPdFileString()
Definition: CanvasData.cpp:314
void selectPatchcord(UIPatchcord *pc)
Definition: CanvasData.cpp:109
int findBox(objectVec *boxes, UIObject *box)
Definition: CanvasData.cpp:55
void setFilePath(QString filePath)
Definition: CanvasData.h:63
t_patchcordAsNumbers patchcordAsNumbers(UIPatchcord *pcord)
Definition: CanvasData.cpp:276
std::vector< UIObject * > objectVec
Definition: ArrangeObjects.h:12
void deselectPatchcords()
Definition: CanvasData.cpp:131
std::string patchcordAsPdFileString(UIPatchcord *pcord)
Definition: CanvasData.cpp:232
QString filePath()
Definition: CanvasData.h:64
std::vector< Port * > portItemVec
Definition: UIObjectData.h:13
QStringList objectsAsPdFileStrings()
Definition: CanvasData.cpp:305
Patchcord QGraphicsObject class.
Definition: UIPatchcord.h:36
bool hasSelectedObjects()
Definition: CanvasData.h:78
void selectBoxesInFrame(QPoint start, QPoint end)
Definition: CanvasData.cpp:77
bool firstSave()
Definition: CanvasData.h:67
std::vector< UIPatchcord * > patchcordVec
Definition: CanvasData.h:17
QStringList boxesAsPdFileStrings(objectVec *boxes)
Definition: CanvasData.cpp:216
int findObjectIndex(UIObject *obj)
Definition: CanvasData.cpp:176
objectVec * boxes()
Definition: CanvasData.h:80
void cut()
Definition: CanvasData.cpp:154
void setProperties(PropertyList *p)
Definition: CanvasData.h:70
QString fileName()
Definition: CanvasData.h:61
void setOutlets(portItemVec *outlets)
Definition: CanvasData.h:58
QStringList patchcordsAsPdFileStrings(patchcordVec *patchcords)
Definition: CanvasData.cpp:256
patchcordVec patchcordsForObject(UIObject *obj)
Definition: CanvasData.cpp:198
void setFirstSave(bool fs)
Definition: CanvasData.h:66
void paste()
Definition: CanvasData.cpp:170
portItemVec * inlets()
Definition: CanvasData.h:54
void deletePatchcord(UIPatchcord *pc)
Definition: CanvasData.cpp:147
Property handling class for ui object - property list.
Definition: PropertyList.h:34
patchcordVec * selectedPatchcords()
Definition: CanvasData.h:83
The Clipboard class - just a QStringList with Pd strings for objects.
Definition: Clipboard.h:13
void setPosition(QPoint p)
Definition: CanvasData.h:73
patchcord as numbers
Definition: UIPatchcord.h:20
CanvasData()
Definition: CanvasData.cpp:10
void moveSelectedBoxes(QPoint pos, bool gridSnap)
void deselectBoxes()
Definition: CanvasData.cpp:115
void setSize(QSize s)
Definition: CanvasData.h:74
void selectBox(UIObject *box)
Definition: CanvasData.cpp:103
QStringList asPdFileStrings()
Definition: CanvasData.cpp:337
portItemVec * outlets()
Definition: CanvasData.h:55
void addPatchcord(UIPatchcord *pc)
Definition: CanvasData.h:99
void addBox(UIObject *box)
Definition: CanvasData.h:98
void copy()
Definition: CanvasData.cpp:163
void addUniqueBox(objectVec *boxes, UIObject *box)
Definition: CanvasData.cpp:31
Definition: UIObject.h:44
objectVec * selectedBoxes()
Definition: CanvasData.h:82
void setInlets(portItemVec *inlets)
Definition: CanvasData.h:57
bool hasObjects()
Definition: CanvasData.h:77