2021-07-09 08:11:20 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include <lvgl/lvgl.h>
|
|
|
|
#include "components/datetime/DateTimeController.h"
|
2022-01-02 10:24:34 -05:00
|
|
|
#include "components/settings/Settings.h"
|
2021-07-09 08:11:20 -04:00
|
|
|
#include "displayapp/screens/Screen.h"
|
|
|
|
|
|
|
|
namespace Pinetime {
|
|
|
|
namespace Applications {
|
|
|
|
namespace Screens {
|
2022-01-09 10:39:04 -05:00
|
|
|
class SettingSetTime : public Screen {
|
|
|
|
public:
|
|
|
|
SettingSetTime(DisplayApp* app,
|
|
|
|
Pinetime::Controllers::DateTime& dateTimeController,
|
|
|
|
Pinetime::Controllers::Settings& settingsController);
|
|
|
|
~SettingSetTime() override;
|
2021-07-09 08:11:20 -04:00
|
|
|
|
2022-01-09 10:39:04 -05:00
|
|
|
void HandleButtonPress(lv_obj_t* object, lv_event_t event);
|
2022-01-02 10:24:34 -05:00
|
|
|
|
2022-01-09 10:39:04 -05:00
|
|
|
private:
|
|
|
|
Controllers::DateTime& dateTimeController;
|
|
|
|
Controllers::Settings& settingsController;
|
2021-07-09 08:11:20 -04:00
|
|
|
|
2022-01-09 10:39:04 -05:00
|
|
|
int hoursValue;
|
|
|
|
int minutesValue;
|
|
|
|
lv_obj_t* lblHours;
|
|
|
|
lv_obj_t* lblMinutes;
|
|
|
|
lv_obj_t* lblampm;
|
|
|
|
lv_obj_t* btnHoursPlus;
|
|
|
|
lv_obj_t* btnHoursMinus;
|
|
|
|
lv_obj_t* btnMinutesPlus;
|
|
|
|
lv_obj_t* btnMinutesMinus;
|
|
|
|
lv_obj_t* btnSetTime;
|
2021-07-09 08:11:20 -04:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|