Creating a toolbar framework
The first thing we'll do is create a simplistic toolbar framework that supports editing pictures using the various types of input elements-action buttons, manipulation tools, and modal menus. Our framework will require us to create the following components:
PictureController
: A component on the root parent Picture object that maintains the state of the picture editingPictureAction
- A component on buttons and other clickable objects that sends commands to thePictureController
PictureMenu
- A component on modal menus where users can choose from a list of objectsClickableObject
- A utility component used by thePictureMenu
to handle selection events
We will implement the first two now. The menu components will be introduced when we get to the Frame and Image selection menus later on.
For the moment, we will implement a simple mechanism. The PictureController
manages picture updates based on user commands through the UI as the picture is being edited. When you click...