| 11 | Form::~Form() = default; |
| 12 | |
| 13 | void Form::readFormStyle(pugi::xml_node *node) |
| 14 | { |
| 15 | if (node == nullptr) |
| 16 | { |
| 17 | return; |
| 18 | } |
| 19 | UString nodename; |
| 20 | this->Name = node->attribute("id").as_string(); |
| 21 | |
| 22 | for (auto child = node->first_child(); child; child = child.next_sibling()) |
| 23 | { |
| 24 | nodename = child.name(); |
| 25 | if (nodename == "style") |
| 26 | { |
| 27 | // TODO: Determine best "style" based on minwidth and minheight attributes |
| 28 | configureFromXml(&child); |
| 29 | resolveLocation(); |
| 30 | } |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | void Form::eventOccured(Event *e) { Control::eventOccured(e); } |
| 35 | |