MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / readFormStyle

Method readFormStyle

forms/form.cpp:13–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11Form::~Form() = default;
12
13void 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
34void Form::eventOccured(Event *e) { Control::eventOccured(e); }
35

Callers 1

loadFormMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected