|
3 | 3 | #include "Parameters.h" |
4 | 4 | #include "SettingsStore.h" |
5 | 5 |
|
6 | | -Dasher::CPressFilter::CPressFilter(CSettingsStore* pSettingsStore, CDasherInterfaceBase* pInterface, CFrameRate* pFramerate, const char *szName) : CDefaultFilter(pSettingsStore, pInterface, pFramerate, szName) |
7 | | -{ |
8 | | - declareSwitchSetting(BP_LM_ADAPTIVE, _("Switch Setting 1"), _("Test Description")); |
9 | | - declareSwitchSetting(BP_LM_ADAPTIVE, _("Switch Setting 2"), _("Test Description")); |
| 6 | +Dasher::CPressFilter::CPressFilter(CSettingsStore* pSettingsStore, CDasherInterfaceBase* pInterface, CFrameRate* pFramerate, const char *szName) : CDefaultFilter(pSettingsStore, pInterface, pFramerate, szName){} |
| 7 | + |
| 8 | +void Dasher::CPressFilter::GetUISettings(UISettingList& List){ |
| 9 | + DeclareSwitchSetting(List, BP_LM_ADAPTIVE, _("Switch Setting 1"), _("Test Description")); |
| 10 | + DeclareSwitchSetting(List, BP_LM_ADAPTIVE, _("Switch Setting 2"), _("Test Description")); |
10 | 11 |
|
11 | | - declareDropdownSetting(LP_GEOMETRY, "Dropdown Setting 1", "Test Description", { |
| 12 | + DeclareDropdownSetting(List, LP_GEOMETRY, "Dropdown Setting 1", "Test Description", { |
12 | 13 | {"Old Style", Dasher::Options::ScreenGeometry::old_style}, |
13 | 14 | {"Square without Crosshair", Dasher::Options::ScreenGeometry::square_no_xhair}, |
14 | 15 | {"Squish", Dasher::Options::ScreenGeometry::squish}, |
15 | 16 | {"Squaish + Log", Dasher::Options::ScreenGeometry::squish_and_log}, |
16 | 17 | }); |
17 | | - declareDropdownSetting(LP_GEOMETRY, "Dropdown Setting 2", "Test Description", { |
| 18 | + DeclareDropdownSetting(List, LP_GEOMETRY, "Dropdown Setting 2", "Test Description", { |
18 | 19 | {"Old Style", Dasher::Options::ScreenGeometry::old_style}, |
19 | 20 | {"Square without Crosshair", Dasher::Options::ScreenGeometry::square_no_xhair}, |
20 | 21 | {"Squish", Dasher::Options::ScreenGeometry::squish}, |
21 | 22 | {"Squaish + Log", Dasher::Options::ScreenGeometry::squish_and_log}, |
22 | 23 | }); |
23 | 24 |
|
24 | | - declareTextboxSetting(SP_ALPHABET_3, "Textbox Setting 1", "Test Description"); |
25 | | - declareTextboxSetting(SP_ALPHABET_3, "Textbox Setting 2", "Test Description"); |
| 25 | + DeclareTextboxSetting(List, SP_ALPHABET_3, "Textbox Setting 1", "Test Description"); |
| 26 | + DeclareTextboxSetting(List, SP_ALPHABET_3, "Textbox Setting 2", "Test Description"); |
26 | 27 |
|
27 | | - declareSliderSetting(LP_MAX_BITRATE, "Slider Setting 1", "Test Description", 1, 1000, 10); |
28 | | - declareSliderSetting(LP_MAX_BITRATE, "Slider Setting 2", "Test Description", 1, 1000, 50); |
| 28 | + DeclareSliderSetting(List, LP_MAX_BITRATE, "Slider Setting 1", "Test Description", 1, 1000, 10); |
| 29 | + DeclareSliderSetting(List, LP_MAX_BITRATE, "Slider Setting 2", "Test Description", 1, 1000, 50); |
29 | 30 |
|
30 | | - declareSpinButtonSetting(LP_X_LIMIT_SPEED, "Spin Setting 1", "Test Description", 1, 1000, 10); |
31 | | - declareSpinButtonSetting(LP_X_LIMIT_SPEED, "Spin Setting 2", "Test Description", 1, 1000, 50); |
32 | | -} |
| 31 | + DeclareSpinButtonSetting(List, LP_X_LIMIT_SPEED, "Spin Setting 1", "Test Description", 1, 1000, 10); |
| 32 | + DeclareSpinButtonSetting(List, LP_X_LIMIT_SPEED, "Spin Setting 2", "Test Description", 1, 1000, 50); |
| 33 | +}; |
33 | 34 |
|
34 | 35 | void Dasher::CPressFilter::KeyDown(unsigned long iTime, Keys::VirtualKey Key, CDasherView* pDasherView, CDasherInput* pInput, CDasherModel* pModel) |
35 | 36 | { |
|
0 commit comments