Changes between Version 7 and Version 8 of GROUP_SCRIPTING_R0


Ignore:
Timestamp:
07/07/09 17:35:31 (16 years ago)
Author:
mitex
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GROUP_SCRIPTING_R0

    v7 v8  
    4848 * Create subpackages model, view and logic. 
    4949 
     50 
    5051 * model: 
    5152  * class ScriptResource that extends Resource. 
     
    7475    * a text area that fires EDIT_SCRIPT 
    7576    * and "Run" {{{LogicR3Button}}} that fires RUN_SCRIPT 
     77  * class {{{ScriptDocumentWindowProvider}}} implements {{{DocumentWindowProvider}}} (see below) 
     78   * getWindow should return a new {{{ScriptDocumentWindow}}} for the given script resource 
     79   * register it as an extension 
    7680  * resource preview of scripts (in Resource Preview Palette): 
    7781   * class {{{ScriptResourcePreviewProvider}}} implements {{{ResourcePreviewProvider}}} 
     
    106110   * EDIT_SCRIPT 
    107111    * the following solution can be optimized: 
    108      * create a new AutoChange that changes the text in the resource with that from the text area. Register the change to current book. 
     112     * create a new AutoChange that changes the text in the resource with that from the text area. Register the change to script's book. 
    109113   * register the enum as an extension 
    110114 
    111  * Refactor {{{App}}} and {{{AppDocumentsDesktop}}}: 
     115 * Currently all open documents are books. Sophie's main window should display also images, scripts and so on. 
     116  * Rename the {{{books}}} property in {{{App}}} to {{{documents}}}. 
     117  * Create an interface {{{org.sophie2.main.app.commons.windows.DocumentWindowProvider}}} 
     118   * String getResourceKind() - Gets the resource kind of the resource for which this provider should create appropriate document window. 
     119   * DocumentWindow getWindow(ResourceRef ref) - Creates a new concrete implementation of {{{DocumentWindow}}} for the given resource. 
     120  * Create an extension point in {{{MainAppModule}}} for document window providers 
     121  * Class {{{org.sophie2.main.app.commons.windows.BookDocumentWindowProvider}}} implements {{{DocumentWindowProvider}}} and creates book document windows 
     122   * Register it as an extension 
     123  * Class {{{org.sophie2.main.app.commons.windows.DocumentWindowProviderFactory}}} 
     124   * static DocumentWindow createWindow(ResourceRef ref) that iterates over all extensions in the extension point and if an appropriate provider is found, creates a document window with it. 
     125  * On book closing close all children resources too (currently they can be scripts). 
    112126 
    113127 * Source code: [source:/branches/private/deni/scripting/]