|
JUCE Designer
|
This class represents the actions for create, undo and redo of components creation. More...
Public Member Functions | |
| PlaceableComponent (String selectedToolName, String parentComponentID, Rectangle< int > bounds, String componentID=String::empty) | |
| Creates a PlaceableComponent object. | |
| bool | perform () |
| Method called by the UndoManager to create the specified component (redo also). | |
| bool | undo () |
| Method called by the UndoManager to undo the creation of the represented component. | |
| Component * | getComponent () |
| Returns a pointer to the component being represented by this object. | |
Friends | |
| class | BigTree |
This class represents the actions for create, undo and redo of components creation.
Definition at line 38 of file PlaceableComponent.h.
| PlaceableComponent::PlaceableComponent | ( | String | selectedToolName, |
| String | parentComponentID, | ||
| Rectangle< int > | bounds, | ||
| String | componentID = String::empty |
||
| ) |
Creates a PlaceableComponent object.
| selectedToolName | String containing the name of the component class to represent. |
| parentComponentID | parent's component ID |
| bounds | Rectangle<int> containing the bounds that will occupy the new component. |
| componentID | Optional String that will set component's ID to this value when creating it. |
Definition at line 13 of file PlaceableComponent.cpp.
| Component * PlaceableComponent::getComponent | ( | ) |
Returns a pointer to the component being represented by this object.
Definition at line 259 of file PlaceableComponent.cpp.
| bool PlaceableComponent::perform | ( | ) |
Method called by the UndoManager to create the specified component (redo also).
Definition at line 50 of file PlaceableComponent.cpp.
References BigTree::getChildWithProperty(), and Constructor::getInstance().
| bool PlaceableComponent::undo | ( | ) |
Method called by the UndoManager to undo the creation of the represented component.
Definition at line 171 of file PlaceableComponent.cpp.
References BigTree::getChildWithProperty(), and Constructor::getInstance().