| well, the obvious is to add data fields to the shape object, so that all shapes drawn can store the sound file, the location, and the finding. a location can be an object, with the heirarchy as described above, with any attached information that goes with a location in the location object. the next step is to create a new event, and the messages in the event handler that set up a recorder when an annotation is desired. something like pressing 'a' when a shape is selected, starts the recorder. alan fay |
| well, that wasn't my interpretation of what was asked. however, i don't see why the design would have to change to add in the tool. wasn't the point to follow good OO to not have to change the design when new functionality is desired? the way our drawing editor was set up, all that is required to do this is to add a new button, a new shape, and a couple of event-handling messages to the program. alan fay |
| not an ascii master, so i'll just say again a new command must be added: DrawingEditorPenCommand; a new shape: DrawingEditorFreeFormShape; and a couple of messages in the event-handler, something like penStillDown: evt and the like. alan fay |