Changes between Version 1 and Version 2 of UNPLANNED_SCRIPTING_REFACTORING_R0


Ignore:
Timestamp:
09/02/09 15:05:11 (16 years ago)
Author:
mitex
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UNPLANNED_SCRIPTING_REFACTORING_R0

    v1 v2  
    66 
    77== 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. 
    910 
    1011== 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.  
    1240 
    1341== Task result == 
     
    1644 
    1745== 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. 
    1947 
    2048== Related == 
     
    2351 
    2452== How to demo == 
    25 ^(Provide instructions for demonstration of the task.)^ 
     53 * Insert a new script in current book and run it. 
    2654 
    2755= Design =