Saturday, 3 April 2010

Preferences version 1

Simple dialog box now in place, got tied up trying to replicate the look and feel of the pref dlg in Eclipse, confusing my inner being with GridBagLayout etc. Enough already!! Job is to get a working app going then prettify it.

Decided not to allow change of orientation at the moment as it raises too many questions and therefore probably lots of code! If you change the shape of the page then all the objects on it need realigning to fit within - code code code. So am going to do a New Score wizard dlg that asks this at creation time and that's it. So we're restricted to 1 page and get the orientation right at creation time. I wouldn't pay money for that.

Back to the main app now, dlg box for changing properties of a text widget can come later. I think I've decided the score graphic objects on the page will have their real world dimensions translated to logical page dimensions (using dots per inch) when they are loaded up so they are always stored in ready to use dimensions. Should take the overheads off zooming, moving etc. I really want to solve the moving problem I have at the moment where if the mouse moves too fast off page the last few moves aren't sent to the app. Perhaps making it quicker to process the moves will help. Certainly putting additional unit conversions on the critical path won't help.

So the only time real world units get used for say the distance between notes is when saving to disk, and of course converted back when read in. Let's see what that decision brings us!!

No comments:

Post a Comment