13 auto [data, imagesWidth, imagesHeight] = any_cast<tuple<vector<TabControl::tabData>, uint16_t, uint16_t>>(additionalData);
17 for (
const auto& i : data)
19 if (i.text.size() && !i.pathToImage.empty())
21 if (i.functionName.empty())
23 result->appendTextAndImage(i.text, i.pathToImage, i.callback);
27 result->appendTextAndImage(i.text, i.pathToImage, i.functionName, i.moduleName);
30 else if (i.text.size())
32 if (i.functionName.empty())
34 result->appendText(i.text, i.callback);
38 result->appendText(i.text, i.functionName, i.moduleName);
41 else if (!i.pathToImage.empty())
43 if (i.functionName.empty())
45 result->appendImage(i.pathToImage, i.callback);
49 result->appendImage(i.pathToImage, i.functionName, i.moduleName);