| 27 | } |
| 28 | |
| 29 | GuiXml::GuiXml() |
| 30 | { |
| 31 | LOG("Loading gui.xml file...\n"); |
| 32 | |
| 33 | ResourceFinder rf; |
| 34 | rf.includeDataDir("gui.xml"); |
| 35 | if (!rf.findFirst()) |
| 36 | throw base::Exception("gui.xml was not found"); |
| 37 | |
| 38 | // Load the XML file. As we've already checked "path" existence, |
| 39 | // in a case of exception we should show the error and stop. |
| 40 | m_doc = app::open_xml(rf.filename()); |
| 41 | } |
| 42 | |
| 43 | std::string GuiXml::version() |
| 44 | { |