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