GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
BaseListTextIconListView.h
Go to the documentation of this file.
1#pragma once
2
3#include "BaseListListView.h"
6
7namespace gui_framework
8{
12 public BaseListListView,
14 {
15 protected:
17
18 protected:
19 virtual void updateLocalization(size_t index, std::wstring_view localizedText) override;
20
21 public:
22 BaseListTextIconListView(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);
23
26 virtual size_t getHash() const override = 0;
27
28 virtual json::JSONBuilder getStructure() const override;
29
30 virtual LRESULT addTextIconItem(std::string_view localizationKey, const std::filesystem::path& pathToIcon) final override;
31
32 virtual LRESULT insertTextIconItem(std::string_view localizationKey, const std::filesystem::path& pathToIcon, size_t index) final override;
33
34 virtual LRESULT changeTextIconItem(std::string_view localizationKey, const std::filesystem::path& pathToIcon, size_t index) final override;
35
36 virtual ~BaseListTextIconListView() = default;
37
39
41
43 };
44}
Base class for all windows that has children windows.
Base class for all list views in list mode.
Base class for all list views in list mode with text and icon items.
BaseListTextIconListView(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)
virtual LRESULT addTextIconItem(std::string_view localizationKey, const std::filesystem::path &pathToIcon) final override
virtual json::JSONBuilder getStructure() const override
virtual LRESULT insertTextIconItem(std::string_view localizationKey, const std::filesystem::path &pathToIcon, size_t index) final override
virtual size_t getHash() const override=0
Used as key in creators.
virtual LRESULT changeTextIconItem(std::string_view localizationKey, const std::filesystem::path &pathToIcon, size_t index) final override
virtual void updateLocalization(size_t index, std::wstring_view localizedText) override
Change localization of combo boxes, list views, tab controls, etc.
Provides adding text and icon items for list views.
virtual LRESULT addTextIconItem(std::wstring_view text, const std::filesystem::path &pathToIcon)
virtual LRESULT changeTextIconItem(std::wstring_view text, const std::filesystem::path &pathToIcon, size_t index)
virtual LRESULT insertTextIconItem(std::wstring_view text, const std::filesystem::path &pathToIcon, size_t index)