Changes between Version 7 and Version 8 of GROUP_SCRIPTING_R0
- Timestamp:
- 07/07/09 17:35:31 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GROUP_SCRIPTING_R0
v7 v8 48 48 * Create subpackages model, view and logic. 49 49 50 50 51 * model: 51 52 * class ScriptResource that extends Resource. … … 74 75 * a text area that fires EDIT_SCRIPT 75 76 * 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 76 80 * resource preview of scripts (in Resource Preview Palette): 77 81 * class {{{ScriptResourcePreviewProvider}}} implements {{{ResourcePreviewProvider}}} … … 106 110 * EDIT_SCRIPT 107 111 * 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 currentbook.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. 109 113 * register the enum as an extension 110 114 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). 112 126 113 127 * Source code: [source:/branches/private/deni/scripting/]