Changes between Version 15 and Version 16 of TEXT_CHAINING_BEHAVIOUR_R1


Ignore:
Timestamp:
09/20/09 16:25:52 (16 years ago)
Author:
boyan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TEXT_CHAINING_BEHAVIOUR_R1

    v15 v16  
    6767 
    6868= Design = 
    69 The new resource design has already taken in mind text chaining by having two kinds of text frames - head and tail. Here's a more detailed description of the idea plus additional things that are needed. 
     69The new resource design has already taken in mind text chaining by having two kinds of text frames - head and tail. Here's a more detailed description of the idea and the classes that will be created/modified. 
    7070 
    7171 * HeadTextFrameR4 extends FrameR4 implements ResourceFrame 
     
    7575 * There is a corresponding hierarchy of helpers that have methods for getting these keys. 
    7676 
    77 When a user inserts a text frame, a HeadTextFrame is inserted with a default chaining mode of None. When a user clicks the chain halo button, a hud appears that allows the user to select a frame to be chained or to turn on auto chaining. A frame that is chained is changed to TailTextFrame and its keys for chain head and order are set. The view is responsible for taking information about chaining from the model and redirecting the areas for text displaying to the text layout. 
     77When a user inserts a text frame, a HeadTextFrame is inserted with a default chaining mode of None. When a user clicks the chain halo button, a HUD appears that allows the user to select a frame to be chained or to turn on auto chaining. A frame that is chained is changed to TailTextFrame and its keys for chain head and order are set. The view is responsible for taking information about chaining from the model and redirecting the areas for text displaying to the text layout. 
    7878 
    79 The existing text chain halo button and hud will be used as a GUI for the chaining. They will be improved by adding a label for the previous/next frame chained and options for auto-chaining and no chaining. 
     79The existing text chain halo button and HUD will be used as a GUI for the chaining. They will be improved by adding a label for the previous/next frame chained. Options for auto-chaining and no chaining will be added as part of TEXT_AUTO_CHAIN_BEHAVIOUR_R1. They are just part of the overall design for chaining in this task. 
    8080 
    8181TextChainingLogic class will be rewritten to provide the expected behaviour for chaining/unchaining frames. It should also be responsible for taking the appropriate action when a chained frame is deleted (this should be done in an operation with a sort key lower than that of the remove frame operation). The same is true for deleting a page that contains head text frames. 
     
    8383The hierarchy of the views follows the hierarchy of the resources and helpers. Each text view holds a TextViewFlow that is used by the layout to display the text. For the layout to display the text correspondingly it is enough to track the chained frames in the getAreas method. 
    8484 
    85 Here follows a class diagram of text classes related to chaining: 
     85Some things from that was not clearly described in the analysis is uchaining. Logic for it will be written in the following manner: 
     86 Clicking either of the unchain button a frame can have breaks the chain at that place. Text is preserved in the first part of the chain, while the second part remains chained but empty. 
     87 
     88Some things from the overview of the analysis are for next revisions: overflow indicator, outlining, and reordering of chained frames. 
    8689 
    8790An initial version of the system test for the chaining can be found here: 
    8891 
    8992= Implementation = 
    90 ^(Describe and link the implementation results here (from the wiki or the repository).)^ 
     93Describe and link the implementation results here (from the wiki or the repository). 
    9194 
    9295= Testing = 
    93 ^(Place the testing results here.)^ 
     96Place the testing results here. 
    9497 
    9598= Comments = 
    96 ^(Write comments for this or later revisions here.) 
     99Write comments for this or later revisions here.