wiki:TEXT_VIEW_MODEL

Version 7 (modified by kyli, 15 years ago) (diff)

--

Error: Macro BackLinksMenu(None) failed
compressed data is corrupt

Error: Macro TicketQuery(summary=TEXT_VIEW_MODEL, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|) failed
current transaction is aborted, commands ignored until end of transaction block

Analysis

Overview

  • After the TEXT_MODEL_REDESIGN task the positions of the caret and mark in the text views are not updating.
  • The text links and the search highlights are not visualizing.

After the task these two bugs shold be fixed.

Task requirements

  • Fix the updating of the caret, mark and search highlights position.
  • Implement search highlight visualization in the text views.
  • Implement link attachment visualization (as foreground color) in the text views.

Task result

The result should be code.

Implementation idea

  • Create a new class related to the text views that updates the indexes.
  • Create processors to help text layout draw the search highlights.
  • The processors add some attributes to the raw text (the text in the model) and produce a final text with all attributes added (as highlights and selection etc.) that can be laid out.

TEXT_MODEL_REDESIGN

How to demo

  • Run sophie, insert text frame, type some text, select some of the text.
  • Run sophie, insert text frame, type some text, add text link.
  • Run sophie, insert text frame, search an existing word from the search palette.

Design

(Describe your design here.)

Implementation

(Describe and link the implementation results here (from the wiki or the repository).)

Testing

(Place the testing results here.)

Comments

(Write comments for this or later revisions here.)