Changes between Version 1 and Version 2 of UNPLANNED_SCRIPTING_REFACTORING_R0
- Timestamp:
- 09/02/09 15:05:11 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UNPLANNED_SCRIPTING_REFACTORING_R0
v1 v2 6 6 7 7 == Overview == 8 The goal of this task is to restore the previously working functionality of scripting in Sophie, replacing all obsolete code with new one, using the new model and views. 8 * The goal of this task is to restore the previously working functionality of scripting in Sophie, replacing all obsolete code with new one, using the new model and views. 9 * This is a refactoring task, so no new functionality will be implemented. 9 10 10 11 == Task requirements == 11 ^(List the necessary requirements that the task must fulfill.)^ 12 13 * Reimplement the following functionality, using the new model and views: 14 * The user should have access to the current book and should be able to do the following actions with it: 15 * get/set its title 16 * get/set the page size (width and height) 17 * get a list of all pages or a page with a given index 18 * add a new page in it 19 * remove a page 20 * reorder the pages 21 * get/set the current page 22 * For every page the user should be able to: 23 * get its name 24 * get its index (but not set it) 25 * get a list of all frames 26 * add a new frame 27 * remove a frame 28 * For every frame the user should be able to: 29 * get/set its size 30 * [Optional] get/set its z-order 31 * get/set its content location 32 * get/set its rotation angle 33 * The user should be able to create a new book (which will be automatically added to the list of open books). 34 35 * All model changes should be performed in {{{AutoAction}}}s. 36 37 * Remove the deprecated code in {{{ScriptResourceH}}}. 38 39 * Refactor all tests. 12 40 13 41 == Task result == … … 16 44 17 45 == Implementation idea == 18 ^(Provide some rough implementation idea(s).)^ 46 * Currently {{{BookH}}}, {{{PageH}}} and {{{FrameH}}} are adapted for use in javascript. Instead, make the adapters to adapt {{{BookView}}}, {{{RootPageView}}} and {{{FrameView}}}, respectively. 19 47 20 48 == Related == … … 23 51 24 52 == How to demo == 25 ^(Provide instructions for demonstration of the task.)^ 53 * Insert a new script in current book and run it. 26 54 27 55 = Design =