Changes between Version 13 and Version 14 of BOOK_PROPERTIES_DIALOG_R0
- Timestamp:
- 05/28/09 18:21:33 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BOOK_PROPERTIES_DIALOG_R0
v13 v14 7 7 8 8 == Overview == 9 This task is about providing a book properties dialog. It should display some basic meta information for the book and allow editing part of it. Currently we have a dialog that displays: 10 * Book title 11 * Book Comment 12 * Number of pages 13 * File size 14 * Creation time 15 * Last modification time 9 This task is about providing a book properties dialog. It should display the book title and page size. This dialog appears when a new book is created and when the book properties item is selected from the file menu. 16 10 17 11 == Task requirements == 18 * The following fields should be made editable:12 * Provide a modal dialog with cancel/ok buttons that displays the following properties which should be editable: 19 13 * Title 20 14 * Page width 21 15 * Page height 22 * The keyboard shortcut for opening the book properties dialog should be Ctrl+Shift+B.23 16 * The book properties dialog should be displayed when a new book is created. 17 * If the user clicks the cancel button no book is created. 18 * Otherwise a book with the specified properties is created. 19 * These properties can be changed when the dialog is displayed. 20 * The keyboard shortcut for opening this dialog should be Ctrl+Shift+B. 24 21 25 22 == Task result == … … 27 24 28 25 == Implementation idea == 29 Use the idea implemented in ResourceDetailsPalette class to show the meta data in grids in order to keep the consistency of the overview. 26 A new BookInfo class should be created with the following properties: 27 * BookTitle 28 * PageWidth 29 * PageHeight 30 This is required because the dialog should be displayed before the new book is created. 30 31 31 32 == Related == … … 37 38 38 39 = Design = 39 This task requires only the following changes:40 * Create a table model for the properties similar to the model of the resource palette.41 * It should get its content from the meta information of the resource.42 * Add extra fields for book title, page height and page width.43 * Change the userCreateNewBook method in AppLogic class to display the bookPropertieesDialog for the new book.44 * Change the mnemoic for the bookPropertiesDialog to Ctrl+Shift+B.45 * Add a new class BookPropertiesDialogLogic to handle the events of the dialog.46 47 Initial unit tests can be found here: [source:branches/private/diana/sophie2-platform/modules/org.sophie2.main.app.commons/src/test/java/org/sophie2/main/app/commons/dialogs] (changeset [2903], [2911], [2920], [2913])48 40 49 41 = Implementation =