| 1 | [[BackLinksMenu]] |
| 2 | |
| 3 | [[TicketQuery(summary=PAGE_ELEMENT_ALIGNING_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|)]] |
| 4 | |
| 5 | |
| 6 | |
| 7 | = Analysis = |
| 8 | |
| 9 | == Overview == |
| 10 | |
| 11 | Users need to be able to align frames. Alignment is done via a HUD to the current selection. Alignment is only viable when the selection contains more than one item. See the related section of this task for the multi-select task, which should be done before this task. |
| 12 | |
| 13 | Alignment should be undoable, and may rely on the PRO_CHANGE tasks (see related). Alignment via the sides and centers of objects is a good start. Later we can add distribution if deemed necessary. |
| 14 | |
| 15 | == Task requirements == |
| 16 | |
| 17 | * Add a halo for alignment to frames if there is more than one frame selected |
| 18 | * The halo's hud will have buttons for choosing the alignment (see implementation idea) |
| 19 | * Alignment operations should be undoable (might be blocked by PRO_CHANGE work) |
| 20 | |
| 21 | == Task result == |
| 22 | |
| 23 | The result of this task is code |
| 24 | |
| 25 | == Implementation idea == |
| 26 | |
| 27 | * Use the [wiki:PAGE_ELEMENT_MULTI_SELECT_R0] changes to determine if there is more than one item selected |
| 28 | * Due to the fact that we don't have grouping yet, put the alignment halo on the last frame added to the selection (this may be part of [wiki:PAGE_ELEMENT_MULTI_SELECT_R0] that I missed) |
| 29 | * Support the following alignments: |
| 30 | * Align left sides |
| 31 | * Align top sides |
| 32 | * Align bottom sides |
| 33 | * Align right sides |
| 34 | * Align vertical centers |
| 35 | * Align horizontal centers |
| 36 | |
| 37 | * The first frame in the selection is the master frame in terms of which frame to align to |
| 38 | |
| 39 | == Related == |
| 40 | |
| 41 | [wiki:PAGE_ELEMENT_MULTI_SELECT_R0] |
| 42 | |
| 43 | == How to demo == |
| 44 | |
| 45 | Demo the alignment hud, selecting several frames and aligning them |
| 46 | |
| 47 | = Design = |
| 48 | |
| 49 | = Implementation = |
| 50 | ^(Implementation results should be described and linked here (from the wiki or the repository))^ |
| 51 | |
| 52 | = Testing = |
| 53 | |
| 54 | = Comments = |
| 55 | ^(Write comments for this or later revisions here.) |