Changes between Version 14 and Version 15 of HALOS_REDESIGN_R0


Ignore:
Timestamp:
07/29/09 18:29:16 (16 years ago)
Author:
mitex
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HALOS_REDESIGN_R0

    v14 v15  
    6767  * Refactor {{{HudDialog.swingComponent}}}: 
    6868   * In the {{{setup}}} method: 
    69     * Calculate the top left point of the hud - it should be exactly below the bottom left corner of the corresponding button. ///////////parent hud??? 
     69    * Calculate the top left point of the hud - it should be exactly below the bottom left corner of the corresponding button (get the button with the parent property). 
    7070    * Call {{{res.setLocation}}}. 
    7171    * Be sure to test the hud location when the zoom level is not equal to 100%. 
     
    7777  * Refactor the {{{HudDialog.shown}}} property: 
    7878   * Make it an auto property. 
    79    * It should return true if (and only if) the hud dialog is set as current. 
    80    * Instead of using {{{shown().set(true)}}}, set the desired hud as active. ///////subHud??? 
     79   * It should return true if (and only if) the hud dialog is set as current. ////// 
     80   * Instead of using {{{shown().set(true)}}}, set the desired hud as active. ///////subHud??? extensionHud? 
    8181   * Instead of using {{{shown().set(false)}}}, set the {{{activeHud}}} to be null. ////////// 
    8282 
    8383 * '''Make extensible huds:''' 
    84   * Extensions should be defined as different huds, whose JPanels are attached to the parent hud. 
    85   * Make a property {{{RwProp<HudDialog> extensionHud}}} in {{{HudDialog}}}. 
    86   * ....visibility of extended hud? 
     84  * Extensions should be defined as different huds, whose {{{JPanel}}}s are attached to the parent hud. 
     85  * Make a property {{{@Own Prop<HudDialog> extensionHud}}} in {{{HudDialog}}}, analogical to {{{HudHaloButton.hud}}}. 
     86  * Make a value property {{{RwProp<Boolean> extensionVisible}}} in {{{HudDialog}}}. 
     87  * Add a resource property {{{extensionShowButton}}} that sets {{{extensionVisible}}} to be true. 
     88  * Add a resource property {{{extensionHideButton}}} that sets {{{extensionVisible}}} in the parent hud to be false. 
     89  * Add a resource property {{{extensionShowHidePanel}}}: 
     90   * If {{{extensionHud}}} is not null and {{{extensionVisible}}} is false, add the show button. 
     91   * If this hud is an extension hud and the parent's {{{extensionVisible}}} is true, add the hide button. 
     92  * In {{{HudDialog.swingComponent}}}, {{{setupElements}}}, add the {{{extensionShowHidePanel}}}. 
    8793 
    8894 * '''The size of the hud depends on the size of its subcomponents:''' 
     
    9096  * In all huds remove the skin records with {{{HUD_SIZE_PROP_ID}}}. 
    9197  * In {{{HudDialog.computeSize}}} use the sizes of all swing components of the items in the {{{elements}}} list: 
    92    * The height should be the sum of all heights, plus some margin for each item. 
    93    * The width should be the maximum width of all elements, plus some margin. 
     98   * The height should be the sum of all heights, plus the gap from the layout for each item ({{{FlowLayout.getVGap}}}), plus 2*BORDER_SIZE. 
     99    * Add the height of {{{extensionShowHidePanel}}} too. 
     100   * The width should be the maximum width of all elements, plus 2*{{{FlowLayout.getHGap}}}, plus 2*BORDER_SIZE. 
    94101 
    95102 * '''The subhud should align with the sub hud button:''' 
    96   * .... 
     103  * After implementing previous bullets, huds are aligned with their parent element. That logic will be used here too. 
    97104 
    98105 * '''Change the hud halo button icon depending on hud visibility:''' 
     
    106113   * Use the icons provided by Shift Global. 
    107114 
    108  * Source code: ... 
    109  * Tests: ... 
     115 * Source code: [source:/branches/private/mitex/halos-redesign-r0/] 
     116  * Tests: [source:/branches/private/mitex/halos-redesign-r0/modules/org.sophie2.base.halos/src/test/java/org/sophie2/base/halos?order=date&desc=1] 
    110117 
    111118= Implementation =