This class handles the communication between ScriptComponentEditListeners. More...
Public Member Functions | |
| void | addToSelection (ScriptComponent *componentToAdd, NotificationType notifyListeners=sendNotification) |
| Call this whenever you add a ScriptComponent to the selection. More... | |
| void | clearSelection (NotificationType notifyListeners=sendNotification) |
| Call this when you need to clear the selection. More... | |
| void | removeFromSelection (ScriptComponent *componentToRemove, NotificationType nofifyListeners=sendNotification) |
| Call this when you want to remove a component from the selection. More... | |
| void | setSelection (ScriptComponent *componentToSet, NotificationType notifyListeners=sendNotification) |
| Sets the selection to the given ScriptComponent. More... | |
This class handles the communication between ScriptComponentEditListeners.
It holds a list of selected components and updates it's registered listeners whenever the selection or a property changes.
| void addToSelection | ( | ScriptComponent * | componentToAdd, |
| NotificationType | notifyListeners = sendNotification |
||
| ) |
Call this whenever you add a ScriptComponent to the selection.
It will send a message to all listeners so make sure you don't call this from the callback.
| void clearSelection | ( | NotificationType | notifyListeners = sendNotification | ) |
Call this when you need to clear the selection.
| void removeFromSelection | ( | ScriptComponent * | componentToRemove, |
| NotificationType | nofifyListeners = sendNotification |
||
| ) |
Call this when you want to remove a component from the selection.
| void setSelection | ( | ScriptComponent * | componentToSet, |
| NotificationType | notifyListeners = sendNotification |
||
| ) |
Sets the selection to the given ScriptComponent.