| 1 | [[BackLinksMenu]] |
| 2 | |
| 3 | [[TicketQuery(summary=FRAME_INSETS_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 | = Analysis = |
| 7 | |
| 8 | == Overview == |
| 9 | Frame insets are the fields surrounding the frame content in the order - padding, border, margins. (see the picture) They could differe in width for left, right, top and bottom. |
| 10 | |
| 11 | == Task requirements == |
| 12 | * There should be common way of keeping the four widhts. |
| 13 | * There should be common way of setting the same width for left, right, top and bottom. |
| 14 | * There should be common way of setting four different widths. |
| 15 | * There should be communal hud for setting the insets. |
| 16 | |
| 17 | == Task result == |
| 18 | The result of this task is source code. |
| 19 | |
| 20 | == Implementation idea == |
| 21 | * Create class Insets for the four properties - left, right, bottom, top. |
| 22 | * Create methods for setting and getting the insets. |
| 23 | * Create communal hud for setting the insets. |
| 24 | |
| 25 | == Related == |
| 26 | |
| 27 | * [source:trunk/sophie2-platform/doc/spec-diagrams/FrameBounds.png] |
| 28 | * [wiki:FRAME_BORDERS_R0] |
| 29 | * [wiki:FRAME_MARGINS_R0] |
| 30 | * [wiki:FRAME_PADDING_R0] |
| 31 | * [wiki:FRAME_BOUNDS_R0] |
| 32 | |
| 33 | == How to demo == |
| 34 | * Create inset with only one value for width and check if it is set to all four. |
| 35 | * Check if the user set values (through the hud) are corectly set to the insets. |
| 36 | |
| 37 | = Design = |
| 38 | |
| 39 | = Implementation = |
| 40 | ^(Implementation results should be described and linked here (from the wiki or the repository))^ |
| 41 | |
| 42 | = Testing = |
| 43 | |
| 44 | = Comments = |
| 45 | ^(Write comments for this or later revisions here.) |