|
1 | 1 | #include "PressFilter.h" |
2 | 2 | #include "I18n.h" |
| 3 | +#include "Parameters.h" |
| 4 | +#include "SettingsStore.h" |
3 | 5 |
|
4 | 6 | Dasher::CPressFilter::CPressFilter(CSettingsStore* pSettingsStore, CDasherInterfaceBase* pInterface, CFrameRate* pFramerate, const char *szName) : CDefaultFilter(pSettingsStore, pInterface, pFramerate, szName) |
5 | 7 | { |
6 | | - UIList.push_back(Dasher::Settings::SwitchSetting(BP_REMAP_XTREME, _("At top and bottom, scroll more and translate less (makes error-correcting easier)"))); |
7 | | - UIList.push_back(Dasher::Settings::EnumSetting(LP_GEOMETRY, "Screen geometry", { |
| 8 | + declareSwitchSetting(BP_LM_ADAPTIVE, _("Switch Setting 1"), _("Test Description")); |
| 9 | + declareSwitchSetting(BP_LM_ADAPTIVE, _("Switch Setting 2"), _("Test Description")); |
| 10 | + |
| 11 | + declareDropdownSetting(LP_GEOMETRY, "Dropdown Setting 1", "Test Description", { |
| 12 | + {"Old Style", Dasher::Options::ScreenGeometry::old_style}, |
| 13 | + {"Square without Crosshair", Dasher::Options::ScreenGeometry::square_no_xhair}, |
| 14 | + {"Squish", Dasher::Options::ScreenGeometry::squish}, |
| 15 | + {"Squaish + Log", Dasher::Options::ScreenGeometry::squish_and_log}, |
| 16 | + }); |
| 17 | + declareDropdownSetting(LP_GEOMETRY, "Dropdown Setting 2", "Test Description", { |
8 | 18 | {"Old Style", Dasher::Options::ScreenGeometry::old_style}, |
9 | 19 | {"Square without Crosshair", Dasher::Options::ScreenGeometry::square_no_xhair}, |
10 | 20 | {"Squish", Dasher::Options::ScreenGeometry::squish}, |
11 | 21 | {"Squaish + Log", Dasher::Options::ScreenGeometry::squish_and_log}, |
12 | | - })); |
13 | | - UIList.push_back(Dasher::Settings::EnumSetting(LP_SHAPE_TYPE, "Rendering Geometry", { |
14 | | - {"Rectangle", Dasher::Options::RenderingShapeTypes::OVERLAPPING_RECTANGLE}, |
15 | | - {"Triangle", Dasher::Options::RenderingShapeTypes::TRIANGLE}, |
16 | | - {"Truncated Triangle", Dasher::Options::RenderingShapeTypes::TRUNCATED_TRIANGLE}, |
17 | | - {"Quadric", Dasher::Options::RenderingShapeTypes::QUADRIC}, |
18 | | - {"Circle", Dasher::Options::RenderingShapeTypes::CIRCLE} |
19 | | - })); |
| 22 | + }); |
| 23 | + |
| 24 | + declareTextboxSetting(SP_ALPHABET_3, "Textbox Setting 1", "Test Description"); |
| 25 | + declareTextboxSetting(SP_ALPHABET_3, "Textbox Setting 2", "Test Description"); |
| 26 | + |
| 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); |
| 29 | + |
| 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); |
20 | 32 | } |
21 | 33 |
|
22 | 34 | void Dasher::CPressFilter::KeyDown(unsigned long iTime, Keys::VirtualKey Key, CDasherView* pDasherView, CDasherInput* pInput, CDasherModel* pModel) |
|
0 commit comments