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