| 1 | struct DipSwitch : HorizontalLayout { |
| 2 | Label name; |
| 3 | ComboButton value; |
| 4 | vector<unsigned> values; |
| 5 | |
| 6 | DipSwitch(); |
| 7 | }; |
| 8 | |
| 9 | struct DipSwitches : Window { |
| 10 | enum : unsigned { Slots = 8 }; |
| 11 | |
| 12 | VerticalLayout layout; |
| 13 | DipSwitch dip[Slots]; |
| 14 | HorizontalLayout controlLayout; |
| 15 | Widget spacer; |
| 16 | Button accept; |
| 17 | |
| 18 | unsigned run(const Markup::Node& node); |
| 19 | DipSwitches(); |
| 20 | }; |
| 21 | |
| 22 | extern DipSwitches* dipSwitches; |