34#ifndef TTA_EDIT_PART_HH
35#define TTA_EDIT_PART_HH
65 void putGarbage(std::set<EditPart*>& trashbag);
76 std::vector<EditPart*>& found);
115 static float distance(wxPoint p, wxRect r);
bool selected_
Tells whether the EditPart is selected or not.
void setModel(TTAMachine::MachinePart *model)
int findInRange(wxPoint point, float radius, std::vector< EditPart * > &found)
EditPart & operator=(EditPart &old)
Assignment not allowed.
EditPart * findNearest(wxPoint point, const EditPart *exclude=NULL)
EditPart(EditPart &old)
Copying not allowed.
std::vector< EditPolicy * > editPolicies_
List of supported EditPolicies.
TTAMachine::MachinePart * model_
Machine component corresponding to this EditPart.
static float distance(wxPoint p, wxRect r)
Figure * figure_
Figure of this EditPart.
void installEditPolicy(EditPolicy *editpolicy)
std::vector< EditPart * > children_
List of children EditParts.
void setFigure(Figure *figure)
bool hasEditPartRecursive(const EditPart *part) const
void setSelectable(bool selectable)
bool canHandle(Request *request) const
ComponentCommand * performRequest(Request *request) const
EditPart * parent_
Parent of this EditPart.
bool garbageCollected_
Helper member to prevent improper deletion.
void setParent(EditPart *parent)
void setSelected(bool select)
EditPart * parent() const
EditPart * child(unsigned int index) const
void addChild(EditPart *child)
EditPart * find(wxPoint point)
TTAMachine::MachinePart * model() const
void putGarbage(std::set< EditPart * > &trashbag)
bool selectable_
Tells whether the EditPart is selectable or not.