Changes between Version 13 and Version 14 of BOOK_PROPERTIES_DIALOG_R0


Ignore:
Timestamp:
05/28/09 18:21:33 (16 years ago)
Author:
diana
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BOOK_PROPERTIES_DIALOG_R0

    v13 v14  
    77 
    88== 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 
     9This 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. 
    1610 
    1711== 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: 
    1913  * Title 
    2014  * Page width 
    2115  * Page height 
    22  * The keyboard shortcut for opening the book properties dialog should be Ctrl+Shift+B. 
    2316 * 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. 
    2421 
    2522== Task result == 
     
    2724 
    2825== 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. 
     26A new BookInfo class should be created with the following properties: 
     27 * BookTitle 
     28 * PageWidth 
     29 * PageHeight 
     30This is required because the dialog should be displayed before the new book is created. 
    3031 
    3132== Related == 
     
    3738 
    3839= 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]) 
    4840 
    4941= Implementation =