| 27 | } |
| 28 | |
| 29 | void CUIPdaContactsWnd::Init() |
| 30 | { |
| 31 | CUIXml uiXml; |
| 32 | bool xml_result = uiXml.Init(CONFIG_PATH, UI_PATH, PDA_CONTACTS_XML); |
| 33 | R_ASSERT3(xml_result, "xml file not found", PDA_CONTACTS_XML); |
| 34 | |
| 35 | CUIXmlInit xml_init; |
| 36 | |
| 37 | xml_init.InitWindow(uiXml, "main_wnd", 0, this); |
| 38 | |
| 39 | UIFrameContacts = xr_new<CUIFrameWindow>(); |
| 40 | UIFrameContacts->SetAutoDelete(true); |
| 41 | AttachChild(UIFrameContacts); |
| 42 | xml_init.InitFrameWindow(uiXml, "left_frame_window", 0, UIFrameContacts); |
| 43 | |
| 44 | UIContactsHeader = xr_new<CUIFrameLineWnd>(); |
| 45 | UIContactsHeader->SetAutoDelete(true); |
| 46 | UIFrameContacts->AttachChild(UIContactsHeader); |
| 47 | xml_init.InitFrameLine(uiXml, "left_frame_line", 0, UIContactsHeader); |
| 48 | |
| 49 | UIRightFrame = xr_new<CUIFrameWindow>(); |
| 50 | UIRightFrame->SetAutoDelete(true); |
| 51 | AttachChild(UIRightFrame); |
| 52 | xml_init.InitFrameWindow(uiXml, "right_frame_window", 0, UIRightFrame); |
| 53 | |
| 54 | UIRightFrameHeader = xr_new<CUIFrameLineWnd>(); |
| 55 | UIRightFrameHeader->SetAutoDelete(true); |
| 56 | UIRightFrame->AttachChild(UIRightFrameHeader); |
| 57 | xml_init.InitFrameLine(uiXml, "right_frame_line", 0, UIRightFrameHeader); |
| 58 | |
| 59 | if (uiXml.NavigateToNode("a_static")) |
| 60 | { |
| 61 | UIAnimation = xr_new<CUIAnimatedStatic>(); |
| 62 | UIAnimation->SetAutoDelete(true); |
| 63 | UIContactsHeader->AttachChild(UIAnimation); |
| 64 | xml_init.InitAnimatedStatic(uiXml, "a_static", 0, UIAnimation); |
| 65 | } |
| 66 | |
| 67 | UIListWnd = xr_new<CUIScrollView>(); |
| 68 | UIListWnd->SetAutoDelete(true); |
| 69 | UIFrameContacts->AttachChild(UIListWnd); |
| 70 | xml_init.InitScrollView(uiXml, "list", 0, UIListWnd); |
| 71 | |
| 72 | UIDetailsWnd = xr_new<CUIScrollView>(); |
| 73 | UIDetailsWnd->SetAutoDelete(true); |
| 74 | UIRightFrame->AttachChild(UIDetailsWnd); |
| 75 | xml_init.InitScrollView(uiXml, "detail_list", 0, UIDetailsWnd); |
| 76 | |
| 77 | xml_init.InitAutoStatic(uiXml, "left_auto_static", UIFrameContacts); |
| 78 | xml_init.InitAutoStatic(uiXml, "right_auto_static", UIRightFrame); |
| 79 | } |
| 80 | |
| 81 | void CUIPdaContactsWnd::Update() |
| 82 | { |
no test coverage detected