GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
ComboBoxAdditionalCreationData.h
Go to the documentation of this file.
1#pragma once
2
7
8namespace gui_framework
9{
10 namespace utility
11 {
13 template<>
15 {
16 protected:
17 std::vector<std::wstring> values;
18 std::function<void(BaseComboBox&)> onSelectionChange;
19 std::string functionName;
20 std::string moduleName;
21
22 public:
24
25 AdditionalCreationData(const std::vector<std::wstring>& values, const std::function<void(BaseComboBox&)>& onSelectionChange = nullptr);
26
27 AdditionalCreationData(const std::vector<std::wstring>& values, const std::string& functionName, const std::string& moduleName);
28
29 virtual std::any getData() const;
30
31 virtual ~AdditionalCreationData() = default;
32 };
33
35 template<>
37 {
38 protected:
39 std::vector<std::wstring> values;
40 std::function<void(BaseComboBox&)> onSelectionChange;
41 std::string functionName;
42 std::string moduleName;
43
44 public:
46
47 AdditionalCreationData(const std::vector<std::wstring>& values, const std::function<void(BaseComboBox&)>& onSelectionChange = nullptr);
48
49 AdditionalCreationData(const std::vector<std::wstring>& values, const std::string& functionName, const std::string& moduleName);
50
51 virtual std::any getData() const;
52
53 virtual ~AdditionalCreationData() = default;
54 };
55
57 template<>
59 {
60 protected:
61 std::vector<std::wstring> values;
62 std::function<void(BaseComboBox&)> onSelectionChange;
63 std::string functionName;
64 std::string moduleName;
65
66 public:
68
69 AdditionalCreationData(const std::vector<std::wstring>& values, const std::function<void(BaseComboBox&)>& onSelectionChange = nullptr);
70
71 AdditionalCreationData(const std::vector<std::wstring>& values, const std::string& functionName, const std::string& moduleName);
72
73 virtual std::any getData() const;
74
75 virtual ~AdditionalCreationData() = default;
76 };
77 }
78}
#define GUI_FRAMEWORK_API
Base class for all combo boxes.
Standard drop down combo box.
Standard drop down list combo box.
Standard simple combo box.
AdditionalCreationData(const std::vector< std::wstring > &values, const std::function< void(BaseComboBox &)> &onSelectionChange=nullptr)
AdditionalCreationData(const std::vector< std::wstring > &values, const std::string &functionName, const std::string &moduleName)
AdditionalCreationData(const std::vector< std::wstring > &values, const std::string &functionName, const std::string &moduleName)
AdditionalCreationData(const std::vector< std::wstring > &values, const std::function< void(BaseComboBox &)> &onSelectionChange=nullptr)
AdditionalCreationData(const std::vector< std::wstring > &values, const std::string &functionName, const std::string &moduleName)
AdditionalCreationData(const std::vector< std::wstring > &values, const std::function< void(BaseComboBox &)> &onSelectionChange=nullptr)
Base templated class for component creators.