Changes between Version 11 and Version 12 of TEXT_STABLE_SELECTION_R0


Ignore:
Timestamp:
05/20/09 22:21:33 (16 years ago)
Author:
nenko
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TEXT_STABLE_SELECTION_R0

    v11 v12  
    4646 
    4747= Design = 
    48 ^(Describe your design here.)^ 
     48Text selection is something that is related to the text frame, so two new properties will be added in org.sophie2.base.scene.interfaces.HotTextSceneElement : 
     49 * markPos : HotPos - will represent the selection position in the text. When there's no selection markPos is the same as the caretPos 
     50 * selectedUnits : List<HotUnits> - will repsent the selected units. When there's no selection this list is empty 
     51 
     52For selected text will be considered everything that is between caretPos and markPos. The HotUnits there should be added to selectedUnits. 
     53 
     54For presentation of the selected text to the user will be used reverse background/color model (color XORmodel). For now this feature is part of HotTextLayout related classes and more specially Atom. 
     55 
     56HotTextPlaceLogic is an enumeration that handles text interaction which is related to some positioning - events that have parameter Place. In it there are literals for - navigating through text and deleting text (both using Place as an argument for their events), so it's a good place to add a new enumeration literal - SELECT_OPERATION. It will be handler for selection activities (shift + left/right arrow etc.). In the same enumeration support for markPos must be added to already existing literals : 
     57 * When navigating through text markPos and caretPos should advance in same way 
     58 * When deleting text markPos and caretPos should be positioned in the same place 
    4959 
    5060= Implementation =