Changes between Version 8 and Version 9 of TEXT_CHAINING_BEHAVIOUR_R0


Ignore:
Timestamp:
05/28/09 16:38:28 (16 years ago)
Author:
nenko
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TEXT_CHAINING_BEHAVIOUR_R0

    v8 v9  
    5050 
    5151= Design = 
    52 ^(Describe your design here.)^ 
     52To have this implemented the model of text view must be extended. In our case this is HotTextFrameContent. It will be extended with tree properties: 
     53 * next - this is the next frame view where the text that doesn't fit in the current frame will be flowed 
     54 * prev - this is the previous frame in the chaining. Could be null if the current frame is the main one. Also this property should be read only. 
     55 * main - this is the frame content whoes mainResource property will be used through the whole chain. 
     56 
     57Also the text layout should be extended. It will support functionality to inform its clients if a text can be fitted in particular bounds and what part of a text can be shown in a frame. A new metohd will be added - canFitText (bounds : ImmRect) 
     58 
     59New halo menu will be defined. It will be visible only if the current text frame can't show any more glyphs. This menu will contain one halo button which will open a HUD. In the HUD will be two controls: 
     60 * label - indicating which is the previous frame view 
     61 * combo box that the next frame view can be chosen 
     62This halo buton will appear in the center of the botom border and will have an icon with arrow. The described functionality will use the new defined method in the text layout - if the text can't fit in the current frame the halo will appear. 
     63 
     64[[Image(source:branches/private/nenko/sophie2-platform/doc/uml-design-diagrams/hotText/textChaining_r0.png)]] 
     65 
    5366 
    5467= Implementation =