GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
ComboBoxAdditionalCreationData.cpp
Go to the documentation of this file.
2
3using namespace std;
4
5namespace gui_framework
6{
7 namespace utility
8 {
9 AdditionalCreationData<DropDownComboBox>::AdditionalCreationData(const vector<wstring>& values, const function<void(BaseComboBox&)>& onSelectionChange) :
10 values(values),
11 onSelectionChange(onSelectionChange)
12 {
13
14 }
15
16 AdditionalCreationData<DropDownComboBox>::AdditionalCreationData(const vector<wstring>& values, const string& functionName, const string& moduleName) :
17 values(values),
18 functionName(functionName),
19 moduleName(moduleName)
20 {
21
22 }
23
25 {
26 return make_any<tuple<vector<wstring>, function<void(BaseComboBox&)>, string, string>>(values, onSelectionChange, functionName, moduleName);
27 }
28
29 AdditionalCreationData<DropDownListComboBox>::AdditionalCreationData(const vector<wstring>& values, const function<void(BaseComboBox&)>& onSelectionChange) :
30 values(values),
31 onSelectionChange(onSelectionChange)
32 {
33
34 }
35
36 AdditionalCreationData<DropDownListComboBox>::AdditionalCreationData(const vector<wstring>& values, const string& functionName, const string& moduleName) :
37 values(values),
38 functionName(functionName),
39 moduleName(moduleName)
40 {
41
42 }
43
45 {
46 return make_any<tuple<vector<wstring>, function<void(BaseComboBox&)>, string, string>>(values, onSelectionChange, functionName, moduleName);
47 }
48
49 AdditionalCreationData<SimpleComboBox>::AdditionalCreationData(const vector<wstring>& values, const function<void(BaseComboBox&)>& onSelectionChange) :
50 values(values),
51 onSelectionChange(onSelectionChange)
52 {
53
54 }
55
56 AdditionalCreationData<SimpleComboBox>::AdditionalCreationData(const vector<wstring>& values, const string& functionName, const string& moduleName) :
57 values(values),
58 functionName(functionName),
59 moduleName(moduleName)
60 {
61
62 }
63
65 {
66 return make_any<tuple<vector<wstring>, function<void(BaseComboBox&)>, string, string>>(values, onSelectionChange, functionName, moduleName);
67 }
68 }
69}
Base class for all combo boxes.
Base templated class for component creators.