Changes between Version 1 and Version 2 of BASE_SKINS_COMMONS_R0


Ignore:
Timestamp:
03/06/09 18:42:22 (16 years ago)
Author:
sriggins
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BASE_SKINS_COMMONS_R0

    v1 v2  
    99Skins define the look and interactions of a visual element.  Properties such as size, location, color, keyboard shortcuts and messages to send are all parts of skins. 
    1010 
    11 SkinPart defines a piece of a skin. ElementID refers to a class.  propID refers to the property in the element and value refers to the property value. 
    12  
    13 Skins use properties, so changing skin values at runtime should reflect the change in Sophie. 
    14  
    15 Annotations are used to define the internalSkin values, @SkinPartDef  
    16  
    17 '''Persistence''' 
    18  
    19 Skins need to be able to be written to files for the sake of persistence.  Skins with media (images) should be stored in an archive. 
    20  
    21  
    22 '''Naming Conventions''' 
    23  
    24 Skins are hierarchical, starting with the InternalSkin,  While there is no Sophie restricted naming convention, we should use the following naming convention for our skins: 
    25  
    26  * The base skin file is the name of the skin, for example, "CoolBlueSkin" 
    27  * Any child skins that define language specific parts of a skin should be named <base><language>, for example, CoolBlueSkinEN or CoolBlueSkinBG 
     11In this task, because Milo has done a lot of the base work, document and write a short tutorial on what is needed to use skins.  Include how to code default values for the Internal Skin, as well as how the skin hierarchy works. 
    2812 
    2913== Task requirements == 
     
    3115 
    3216== Task result == 
    33 ^(List the end product of the task (for example "Source code", "Wiki page", etc.))^ 
     17 
     18 * Document the current skins implementation 
     19 * Write a short tutorial on how someone uses skins in their visual elements 
     20 * Document the ENUMs used to define internal skin parts 
     21 * Document skin naming conventions 
    3422 
    3523== Implementation idea == 
    36 ^(Provide some rough implementation idea(s).)^ 
     24 
     25 * Watch the discussion 2009-02-17-Design Discussion (Part 1).mpg, 2009-02-17-Design Discussion (Part 2).mpg, 2009-02-17-Design Discussion (Part 3).mpg for more skin details 
     26 * org.sophie2.base.skins is milo's current implementation 
     27 * SkinPart defines a piece of a skin. ElementID refers to a class.  propID refers to the property in the element and value refers to the property value. 
     28 * Skins use properties, so changing skin values at runtime should reflect the change in Sophie. 
     29 * Annotations are used to define the internalSkin values, @SkinPartDef  
     30 * See class SampleView in /sophie2/trunk/sophie2-platform/modules/org.sophie2.base.visual/src/test/java/org/sophie2/base/visual/interaction/InteractionDemoTest.java 
     31 * See /sophie2-platform/modules/org.sophie2.base.bound/src/main/java/org/sophie2/base/bound/BaseBoundControl.java for a @SkinPartDef example 
     32'''Persistence''' 
     33 
     34 * Skins need to be able to be written to files for the sake of persistence.  Skins with media (images) should be stored in an archive. 
     35 
     36'''Naming Conventions''' 
     37 
     38 * Skins are hierarchical, starting with the InternalSkin,  While there is no Sophie restricted naming convention, we should use the following naming convention for our skins: 
     39 
     40  * The base skin file is the name of the skin, for example, "CoolBlueSkin" 
     41  * Any child skins that define language specific parts of a skin should be named <base><language>, for example, CoolBlueSkinEN or CoolBlueSkinBG 
    3742 
    3843== Related == 
    39 ^(Add links to related tasks that could be useful or helpful.)^ 
    4044 
     45These links added so that future tasks can refer back to this task. 
     46 
     47 * [wiki:BASE_SKINS_POINT_R0] 
     48 * [wiki:BASE_SKINS_DEFAULT_SKIN_R0] 
     49 * [wiki:BASE_SKINS_HACKERS_SKIN_R0] 
     50  
    4151== How to demo == 
    42 ^(Provide instructions for demonstration of the task.)^ 
     52 
     53I think it would be great if you could show how a skin is applied, how a value is created and changed.  The video discussions cover the big picture, but never gave a concrete example on how to use the skins.   
    4354 
    4455= Design =