| 1 | [[BackLinksMenu]] |
| 2 | |
| 3 | [[TicketQuery(summary=FRAME_PLACEMENT_POINT_SELECT_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 | = Analysis = |
| 6 | |
| 7 | == Overview == |
| 8 | |
| 9 | Frame`s location can be calculated relation to 9 different points of the frame - TOP_LEFT, TOP_MIDDLE, TOP_RIGHT, MIDDLE_LEFT, MIDDLE, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_MIDDLE, BOTTOM_RIGHT. |
| 10 | |
| 11 | == Task requirements == |
| 12 | |
| 13 | * Those 9 points should be represented by 9 radio buttons arranged in a square 3x3 in the frame properties hud. |
| 14 | |
| 15 | * The default value should be TOP_LEFT. This means that the upper leftmost of the dots should be selected. |
| 16 | |
| 17 | * When the user changes the special point from the hud the values for X and Y are recalculated as the coordinates of the new point. |
| 18 | |
| 19 | * When the user changes the X and/or Y values in the hud, the frame is moved so that the chosen special point is placed to the designated coordinates. |
| 20 | |
| 21 | == Task result == |
| 22 | The result of this task is source code. |
| 23 | |
| 24 | == Implementation idea == |
| 25 | |
| 26 | Create 9 radio buttons in the frame hud arranged accordingly. |
| 27 | Auto compute the X and Y coordinates of the special point by the getLocation method in the Frame. It takes special point as argument. |
| 28 | When the value of the X and Y boxes changes in the hud use the setLocation method in Frame to set the new frame coordinates. It takes special point as argument. |
| 29 | |
| 30 | ==Related== |
| 31 | |
| 32 | * [wiki:FRAME_BOUNDS_R0] |
| 33 | |
| 34 | == How to demo == |
| 35 | |
| 36 | * Open the frame hud and move its special point demonstrating the recalculation of the X and Y observing the location of the chosen point. |
| 37 | * Move the frame by its bottom right most corner. |
| 38 | = Design = |
| 39 | |
| 40 | |
| 41 | = Implementation = |
| 42 | ^(Implementation results should be described and linked here (from the wiki or the repository))^ |
| 43 | |
| 44 | = Testing = |
| 45 | |
| 46 | = Comments = |
| 47 | ^(Write comments for this or later revisions here.) |
| 48 | |