61 | | 3.2 - When the swing frame is iconified in DefaultDocumentWindow, make sure Sophie knows it is deselected by calling userActs. This is important as the desktop panes only use swing calls to iconify/deiconify the window. Also, set the window's visible to false so it does not show on the desktop. |
| 61 | 2.3 - When the swing frame is decionified in DefaultDocumentWindow, make sure Sophie knows it is selected by calling userActs. This is important as the desktop panes only use swing calls to iconify/deiconify the window. |
| 62 | |
| 63 | 2.4 - In BookLogic, when a book is selected, make sure it's window is told to show(). This ensures that anything in Sophie that selects a book (ie a click, or a menu item) makes sure that the window for the newly selected book is deiconified and showing. |
| 64 | |
| 65 | 3. The default position of the page work area should be at the center of the book window |
| 66 | |
| 67 | 3.1 TBD |
63 | | 3.3 - When the swing frame is decionified in DefaultDocumentWindow, make sure Sophie knows it is selected by calling userActs. This is important as the desktop panes only use swing calls to iconify/deiconify the window. |
| 69 | 4. Change the page work area to consider the size of the book window as well as the page |
| 70 | |
| 71 | 4.1 - Add minimalViewRect() property to minimalViewRect, which defines the smallest size a scene visual should be |
| 72 | |
| 73 | 4.2 - Modify SimpleSceneVisual actualViewRect() to take minimalViewRect into account |
| 74 | |
| 75 | 4.3 - Add a ComponentListener to DefaultDocumentWindow so that it can know when the swing internalFrame is resized |
| 76 | |
| 77 | 4.4 - Add a AutoProperty to DefaultDocumentWindow to track the window's size |
| 78 | |
| 79 | 4.5 - Add a resource property to PageWorkArea to track the document window's size and set it's minimalViewRect and repaint (force update) |
| 80 | |
| 81 | |
| 82 | 5 - Define minimum size of the book window, so that scroll bars for the controls (bottom book panel) do not appear |
| 83 | |
| 84 | 5.1 - Add getMinimalBookWindowSize() to XXX (DefaultDocumentWindow/ BookDocumentWindow) that returns the size of the window, but no smaller than the width of the book bottom panel. |
65 | | 3.4 - In BookLogic, when a book is selected, make sure it's window is told to show(). This ensures that anything in Sophie that selects a book (ie a click, or a menu item) makes sure that the window for the newly selected book is deiconified and showing. |
66 | | |
67 | | 4. The default position of the page work area should be at the center of the book window |
68 | | |
69 | | 4.1 This will not be implemented, because the page work area should be the size of the window or the size of the bounds enclosing the frames, whichever is larger |
70 | | |
71 | | 5. Change the page work area to consider the size of the book window as well as the page |
72 | | |
73 | | 5.1 - Add a call getMinimalBookWindowSize() to BookDocumentWindow that returns the size of the window, but no smaller than the width of the book bottom panel. |
74 | | |
75 | | 5.2 - Change the PageWorkArea logic to not only resize itself to the page size, but also it's parent window. See 5.1 |
76 | | |
77 | | 6. Will not make the background color skinnable in this task due to time boxing |
78 | | |
79 | | 7. Make sure that the logic to determine the book window is bounded by the book bottom panel. In other words, when asked what the minimal book window size can be, the logic will not return a window narrower than the book panel. This logic will be used by the PageWorkArea when considering how to size itself. This will be done as a part of task requirement 5. |
| 86 | 5.2 - Make sure the preferredSize for the scroll area does not get smaller than this size |