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