61 | | * Create a menu in the main menu bar called View. (class ViewMenu) |
62 | | * Title - "View" |
63 | | * Tool-tip - "View menu" |
64 | | * Mnemonic - KeyEvent.VK_V |
65 | | * Create a preview mode menu item. (class PreviewModeItem) |
66 | | * Title - "Preview mode" |
67 | | * Tool-tip - "Switch current book in preview mode." |
68 | | * Memonic - KeyEvent.VK_P |
69 | | * ViewMenu and PreivewModeItem should go in:[source:trunk/sophie2-platform/modules/org.sophie2.main.view.menus] package. The new package should be called "org.sophie2.main.view.menus.view". |
70 | | * Done - check commit before merging the release (when merging the release branch it was forgotten). |
71 | | * Disable the menus that should not be active by checking the inPreviewMode() value of the BookDocumentWindow. |
72 | | * Some menu items in File menu: |
73 | | * Save menu item - [source:/trunk/sophie2-platform/modules/org.sophie2.main.view.menus/src/main/java/org/sophie2/main/view/menus/file/SaveBookItem.java SaveBookItem] - done |
74 | | * Save as menu item [source:/trunk/sophie2-platform/modules/org.sophie2.main.view.menus/src/main/java/org/sophie2/main/view/menus/file/SaveBookAsItem.java SaveBookAsItem] - done |
75 | | * Save as template menu item [source:/trunk/sophie2-platform/modules/org.sophie2.main.view.menus/src/main/java/org/sophie2/main/view/menus/file/SaveBookAsTemplateItem.java SaveAsTemplateItem] - done |
76 | | * Most of the items in the Edit menu except for: [source:/trunk/sophie2-platform/modules/org.sophie2.main.view.menus/src/main/java/org/sophie2/main/view/menus/edit/UndoItem.java UndoItem] and [source:/trunk/sophie2-platform/modules/org.sophie2.main.view.menus/src/main/java/org/sophie2/main/view/menus/edit/RedoItem.java RedoItem] which should be available for Stickies and Comment frames only. - partially done (should fix the Undo and Redo items). |
77 | | * Whole Insert menu. [source:/trunk/sophie2-platform/modules/org.sophie2.main.view.menus/src/main/java/org/sophie2/main/view/menus/insert/InsertMenu.java InsertMenu] |
78 | | * Hide HaloMenus and Frame borders, changing the computeVisible() method by checking the inPreviewMode() value of the [source:trunk/sophie2-platform/modules/org.sophie2.main.view/src/main/java/org/sophie2/main/view/book/BookDocumentWindow.java BookDocumentWindow]. |
79 | | * Create a copy of the book that should be used for preview mode. It should be computed for every BookWindow. |
80 | | * the book() method should return an AutoProperty that return either the original book or a copy of it depending on whether the BookDocumentWindow is in preview mode. |
81 | | * the original book should be set in a value property editableBook(). |
82 | | * In in preview mode the scene interaction should not be included. Check the [source:/trunk/sophie2-platform/modules/org.sophie2.base.scene/src/main/java/org/sophie2/base/scene/events/SceneInteractionLogic.java SceneInteractionLogic] class for more details. It should not handle most of the input events in preview mode. |
| 61 | |
| 62 | * Disable the menus that should not be active: |
| 63 | * Save menu item - already done |
| 64 | * Save as menu item - already done |
| 65 | * Save as template menu item - done |
| 66 | * Most of the items in the Edit menu except for: |
| 67 | * Whole Insert menu. |
| 68 | * Hide all halo menus. |
| 69 | * In in preview mode the scene interaction should not be included. Check the SceneInteractionLogic class for more details. It should not handle most of the input events in preview mode. |