| 36 | * Most of the functionality is in place. |
| 37 | * We need to add a ReadPageWorkArea and a SimpleSceneVisual property in PagePreviewPalette. The ReadPageWorkArea should be used to set the current page as the page changes so a Scene object can be extracted from it. The Scene object should be set in the SimpleSceneVisual object to initiliaze it. In PagePreviewPaletteCellRenderer a java.awt.Component is obtained from the SimpleSceneVisual and SwingUtilities is used to draw it to the graphic in the paint method of the PageThumbnail - a JPanel subclass of PagePreviewPaletteCellRenderer used to draw a JList element. Before the drawing the Graphics object is scaled by the ratio of thumbwidth/pagewidth. |
| 38 | * Functionality for setting the selected thumbnail as current page is already in place. |
| 39 | * Functionality for deleting a page is already in place. |
| 40 | * Two resource properties for the two buttons (add page before/after) should be created in PagePreviewPalette and added to the head of the palette in the initHead method. Currently I think its impossible to add them to the bottom. |
| 41 | * Classes to be changed: |
| 42 | * PagePreviewPalette |
| 43 | * PagePreviewPaletteCellRenderer |
| 44 | * MainAppLayoutModule to add the palette to the Pages tab. |
| 45 | |
| 46 | |
| 47 | [[Image(source:/branches/private/sveto/sveto2/sophie2-platform/modules/org.sophie2.main.app.layout/doc/PAGE_PREVIEW_PALETTE_R0.jpg)]] |
| 48 | |