Monday, 8 February 2010

Working on the mouse actions design

Thinking the objects in the model need to store their selected state, and when it changes fire out so the view knows to redraw. The object needs to know how to draw itself in a selected state too, so the user can see it's selected.

Maybe we need a Set which allows the editor to quickly navigate through which objects are selected, e.g. if user clicks the mouse with the shift key down, then the object at the co-ords gets added to the Set, aswell as changing its state. Then any action triggered, through either menu or other means is applied to all items in the Set of selected objects.

This then allows moving a number of items together for example, or deleting them. If all the items are of the same type then maybe we can format them to eg same font or size - adds tricky stuff so maybe v2.

No comments:

Post a Comment