| 1 | [[BackLinksMenu]] |
| 2 | |
| 3 | [[TicketQuery(summary=BOOK_PROPERTIES_DIALOG_R0, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|)]] |
| 4 | |
| 5 | |
| 6 | |
| 7 | = Analysis = |
| 8 | |
| 9 | == Overview == |
| 10 | Display simple dialog window with properties of the book file. |
| 11 | |
| 12 | == Task requirements == |
| 13 | Pre-alpha 2 already has book properties dialog. It displays: |
| 14 | * Book title |
| 15 | * Number of pages |
| 16 | * File size (local file or file on server) |
| 17 | * Version ID |
| 18 | * Creation time |
| 19 | * Last modification time |
| 20 | |
| 21 | According to [wiki:BOOK_PROPERTIES_DIALOG] some field should be changed and new fields should be added: |
| 22 | * The title should be editable. |
| 23 | * Page width - This field changes horizontal dimensions of books' pages. When applying a template or changing this dimension by dragging page corner, this field is changed automatically. |
| 24 | * Page height - This field changes vertical dimensions of books' pages. When applying a template or changing this dimension by dragging page corner, this field is changed automatically. |
| 25 | |
| 26 | The visual appearance of the dialog should be improved. |
| 27 | It will be good the displayed information to be able to be copied to the clipboard. |
| 28 | |
| 29 | Keyboard shortcut Ctrl+B should not be used for Book Properties. It is reserved for Bold. If this dialog will be invoked frequently, use Ctrl+Shift+B. |
| 30 | |
| 31 | == Task result == |
| 32 | The result should be source code. |
| 33 | |
| 34 | == Implementation idea == |
| 35 | Use JTextField for each value (book title, file size, etc.) with editing disabled for most of them (<object>.setEditable(false)). |
| 36 | |
| 37 | == Related == |
| 38 | |
| 39 | == How to demo == |
| 40 | * Run Sophie2 |
| 41 | * Create a new book |
| 42 | * Open Book Properties. Check the displayed information (e.g. number of pages should be 1, etc.) |
| 43 | * Change the title and close the dialog. |
| 44 | * Go to page 2 and insert a text frame. |
| 45 | * Open Book Properties again. |
| 46 | |
| 47 | = Design = |
| 48 | |
| 49 | = Implementation = |
| 50 | ^(Implementation results should be described and linked here (from the wiki or the repository))^ |
| 51 | |
| 52 | = Testing = |
| 53 | |
| 54 | = Comments = |
| 55 | ^(Write comments for this or later revisions here.) |