| 52 | * Create an AlignElementsHud which will be responsible for aligning page elements. |
| 53 | * It should have a tool-tip: "Align the selected page elements." |
| 54 | * the size of the hud cannot be defined since we do not know how much space will the controls take. |
| 55 | * The hud should be put in the [source:/trunk/sophie2-platform/modules/org.sophie2.main.view.halos/src/main/java/org/sophie2/main/view/halos/huds/ huds package]. |
| 56 | * Create an AlignElementsHaloButton which would show the AlignElementsHud. |
| 57 | * the button should be visible if and only if there are selected page elements. |
| 58 | * create an icon for the button. |
| 59 | * It will be put in the MainHaloMenu. |
| 60 | * Its child is the AlignElementsHud. |
| 61 | * Tool-tip: "Align the selected page elements." |
| 62 | * The icon should be named alignElements.png so that it is consistent with other icons. |
| 63 | * The button should be put in the [source:/trunk/sophie2-platform/modules/org.sophie2.main.view.halos/src/main/java/org/sophie2/main/view/halos/buttons/huds halo buttons that display huds package] |
| 64 | * The aligning of the page elements should be done by providing a List<ScenePageElement> which contains the selected page elements. |
| 65 | * the actual aligning would be done by the AlignElementsHud controls. These controls do not need to be bound controls. A simple group of radio buttons will be enough. |
| 66 | * depending on the aligning option chosen, all the elements' position will be changed. |
| 67 | * some helper methods might be needed to compute the position of every element. |