21 styles::IconListViewStyles(type),
24 ITextIconListView(handle, icons),
25 icons(iconsWidth, iconsHeight, count)
32 using json::utility::jsonObject;
34 uint32_t codepage = ISerializable::getCodepage();
37 vector<jsonObject> textValues;
38 vector<jsonObject> iconValues;
46 for (
size_t i = 0; i <
size; i++)
52 json::utility::appendArray(pathToIcon.string(), iconValues);
55 current.data.push_back({
"listViewTextValues"s, move(textValues) });
56 current.data.push_back({
"listViewIconValues"s, move(iconValues) });
BaseTextIconListView(const std::wstring &listViewName, const utility::ComponentSettings &settings, BaseComposite *parent, utility::iconListViewType type, uint16_t iconsWidth, uint16_t iconsHeight, size_t count=standard_sizes::defaultImagesCount)
utility::IconsHolder icons
virtual json::JSONBuilder getStructure() const override
virtual void updateLocalization(size_t index, std::wstring_view localizedText) override
virtual LRESULT insertTextIconItem(std::string_view localizationKey, const std::filesystem::path &pathToIcon, size_t index) override final
virtual LRESULT changeTextIconItem(std::string_view localizationKey, const std::filesystem::path &pathToIcon, size_t index) override final
virtual LRESULT addTextIconItem(std::string_view localizationKey, const std::filesystem::path &pathToIcon) override final
void addLocalizationKey(std::string_view localizationKey)
virtual std::tuple< std::wstring, uint16_t, std::filesystem::path > getTextIconItem(size_t index) const