-
-
Notifications
You must be signed in to change notification settings - Fork 984
/
Copy pathSettingHeartRate.h
47 lines (37 loc) · 1.07 KB
/
SettingHeartRate.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#pragma once
#include <cstdint>
#include <lvgl/lvgl.h>
#include "components/settings/Settings.h"
#include "displayapp/screens/ScreenList.h"
#include "displayapp/screens/Screen.h"
#include "displayapp/screens/Symbols.h"
#include "displayapp/screens/CheckboxList.h"
namespace Pinetime {
namespace Applications {
namespace Screens {
struct Option {
const int intervalInSeconds;
const char* name;
};
class SettingHeartRate : public Screen {
public:
SettingHeartRate(Pinetime::Controllers::Settings& settings);
~SettingHeartRate() override;
void UpdateSelected(lv_obj_t* object, lv_event_t event);
private:
Pinetime::Controllers::Settings& settingsController;
static constexpr std::array<Option, 8> options = {{
{-1, " Off"},
{0, "Cont"},
{15, " 15s"},
{30, " 30s"},
{60, " 1m"},
{5 * 60, " 5m"},
{10 * 60, " 10m"},
{30 * 60, " 30m"},
}};
lv_obj_t* cbOption[options.size()];
};
}
}
}