GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
TextIconListViewCreator.cpp
Go to the documentation of this file.
2
4
5using namespace std;
6
7namespace gui_framework
8{
9 namespace utility
10 {
11 BaseComponent* TextIconListViewCreator::create(const wstring& windowName, const utility::ComponentSettings& settings, const any& additionalData, BaseComposite* parent)
12 {
13 auto [type, data] = any_cast<tuple<utility::iconListViewType, vector<pair<wstring, filesystem::path>>>>(additionalData);
14
15 TextIconListView* result = new TextIconListView(windowName, settings, parent, type);
16
17 for (const auto& i : data)
18 {
19 static_cast<interfaces::ITextIconListView*>(result)->addTextIconItem(i.first, i.second);
20 }
21
22 return result;
23 }
24 }
25}
Base class for all windows, controls, etc.
Base class for all windows that has children windows.
Standard list view with text and icon items.
Provides adding text and icon items for list views.
BaseComponent * create(const std::wstring &windowName, const utility::ComponentSettings &settings, const std::any &additionalData, BaseComposite *parent) override