| 57 | } |
| 58 | |
| 59 | void WidgetsWindow::initialise() |
| 60 | { |
| 61 | const SkinGroups& groups = WidgetTypes::getInstance().getSkinGroups(); |
| 62 | for (const auto& group : groups) |
| 63 | { |
| 64 | MyGUI::TabItem* page = mTabSkins->addItem(group.first); |
| 65 | MyGUI::ItemBox* box = page->createWidget<MyGUI::ItemBox>( |
| 66 | "ItemBoxEmpty", |
| 67 | MyGUI::IntCoord(0, 0, page->getSize().width, page->getSize().height), |
| 68 | MyGUI::Align::Stretch); |
| 69 | mItemBoxs.push_back(box); |
| 70 | |
| 71 | box->requestCreateWidgetItem = MyGUI::newDelegate(this, &WidgetsWindow::requestCreateWidgetItem); |
| 72 | box->requestCoordItem = MyGUI::newDelegate(this, &WidgetsWindow::requestCoordItem); |
| 73 | box->requestDrawItem = MyGUI::newDelegate(this, &WidgetsWindow::requestDrawItem); |
| 74 | |
| 75 | for (const auto& iterSkin : group.second) |
| 76 | { |
| 77 | box->addItem(iterSkin); |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | bool WidgetsWindow::getCellSelected(MyGUI::Widget* _widget) |
| 83 | { |
nothing calls this directly
no test coverage detected