wiki:ANCHORING_MODE_COMMONS_R0

Version 5 (modified by mira, 16 years ago) (diff)

--

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

Error: Macro TicketQuery(summary=ANCHORING_MODE_COMMONS_R0, 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

There are six different anchoring modes defining the way a frame should move according to the frame it is anchored to.

Task requirements

  • When the anchoring halo is dropped in an admissible point the anchoring hud should be displayed.

  • The hud should allow choice between the six different anchoring modes – CHARACTER, INLINE, LINE, PARAGRAPH, FRAME and PAGE.
  • The anchoring mode should be kept along with the anchoring point.

Task result

The result of this task is source code.

Implementation idea

Create enum for the six different modes. Add a value property mode into the FrameView of the anchored frame so that for the different modes its position could be calculated accordingly.

ANCHOR_HALO_R0
ANCHORING_MODE_PAGE_R0

How to demo

  • Drag and drop the anchoring halo in admissible point and show the anchoring modes hud.

Design

Implementation

(Implementation results should be described and linked here (from the wiki or the repository))

Testing

Comments

(Write comments for this or later revisions here.)