OpenASIP
2.0
|
#include <RootEditPart.hh>
Public Member Functions | |
RootEditPart () | |
virtual | ~RootEditPart () |
EditPart * | contents () const |
void | setContents (EditPart *contents) |
![]() | |
EditPart () | |
virtual | ~EditPart () |
void | putGarbage (std::set< EditPart * > &trashbag) |
EditPart * | parent () const |
void | setParent (EditPart *parent) |
TTAMachine::MachinePart * | model () const |
void | setModel (TTAMachine::MachinePart *model) |
Figure * | figure () const |
void | setFigure (Figure *figure) |
EditPart * | find (wxPoint point) |
EditPart * | find (const TTAMachine::MachinePart *model) |
EditPart * | findNearest (wxPoint point, const EditPart *exclude=NULL) |
int | findInRange (wxPoint point, float radius, std::vector< EditPart * > &found) |
bool | hasEditPartRecursive (const EditPart *part) const |
bool | selectable () const |
bool | selected () const |
void | setSelectable (bool selectable) |
void | setSelected (bool select) |
void | installEditPolicy (EditPolicy *editpolicy) |
void | addChild (EditPart *child) |
int | childCount () const |
EditPart * | child (unsigned int index) const |
ComponentCommand * | performRequest (Request *request) const |
bool | canHandle (Request *request) const |
Private Member Functions | |
RootEditPart & | operator= (RootEditPart &old) |
Assignment not allowed. More... | |
RootEditPart (RootEditPart &old) | |
Copying not allowed. More... | |
void | collectTrash () |
Private Attributes | |
EditPart * | contents_ |
Contents EditPart which parents all EditParts in the View. More... | |
Additional Inherited Members | |
![]() | |
EditPart * | parent_ |
Parent of this EditPart. More... | |
Figure * | figure_ |
Figure of this EditPart. More... | |
TTAMachine::MachinePart * | model_ |
Machine component corresponding to this EditPart. More... | |
bool | selectable_ |
Tells whether the EditPart is selectable or not. More... | |
bool | selected_ |
Tells whether the EditPart is selected or not. More... | |
bool | garbageCollected_ |
Helper member to prevent improper deletion. More... | |
std::vector< EditPolicy * > | editPolicies_ |
List of supported EditPolicies. More... | |
std::vector< EditPart * > | children_ |
List of children EditParts. More... | |
The root EditPart of the whole processor view.
Contains contents EditPart.
Definition at line 44 of file RootEditPart.hh.
RootEditPart::RootEditPart | ( | ) |
The Constructor.
Definition at line 45 of file RootEditPart.cc.
|
virtual |
The Destructor.
Collects garbage from the contents EditPart and deletes it all.
Definition at line 53 of file RootEditPart.cc.
References collectTrash().
|
private |
Copying not allowed.
|
private |
Collects trash from the contents EditPart and deletes it.
Definition at line 73 of file RootEditPart.cc.
References contents_, EditPart::garbageCollected_, and EditPart::putGarbage().
Referenced by setContents(), and ~RootEditPart().
EditPart* RootEditPart::contents | ( | ) | const |
|
private |
Assignment not allowed.
void RootEditPart::setContents | ( | EditPart * | contents | ) |
Sets the contents EditPart of the whole view.
contents | The new contents EditPart. |
Definition at line 63 of file RootEditPart.cc.
References collectTrash(), contents(), contents_, and EditPart::garbageCollected_.
Referenced by MachineCanvas::updateMachine().
|
private |
Contents EditPart which parents all EditParts in the View.
Definition at line 60 of file RootEditPart.hh.
Referenced by collectTrash(), and setContents().