2021-04-19 10:28:38 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include <lvgl/lvgl.h>
|
|
|
|
#include "Screen.h"
|
|
|
|
#include <components/motion/MotionController.h>
|
|
|
|
|
|
|
|
namespace Pinetime {
|
|
|
|
|
|
|
|
namespace Controllers {
|
|
|
|
class Settings;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Applications {
|
|
|
|
namespace Screens {
|
|
|
|
|
|
|
|
class Steps : public Screen {
|
2021-07-19 09:26:12 -04:00
|
|
|
public:
|
|
|
|
Steps(DisplayApp* app, Controllers::MotionController& motionController, Controllers::Settings& settingsController);
|
|
|
|
~Steps() override;
|
2021-04-19 10:28:38 -04:00
|
|
|
|
2021-07-19 09:26:12 -04:00
|
|
|
void Refresh() override;
|
2021-04-19 10:28:38 -04:00
|
|
|
|
2021-07-19 09:26:12 -04:00
|
|
|
private:
|
|
|
|
Controllers::MotionController& motionController;
|
|
|
|
Controllers::Settings& settingsController;
|
2021-04-19 10:28:38 -04:00
|
|
|
|
2021-07-19 09:26:12 -04:00
|
|
|
lv_obj_t* lSteps;
|
|
|
|
lv_obj_t* lStepsIcon;
|
|
|
|
lv_obj_t* stepsArc;
|
2021-04-19 10:28:38 -04:00
|
|
|
|
2021-07-19 09:26:12 -04:00
|
|
|
uint32_t stepsCount;
|
2021-04-19 10:28:38 -04:00
|
|
|
|
2021-07-19 09:26:12 -04:00
|
|
|
lv_task_t* taskRefresh;
|
2021-04-19 10:28:38 -04:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|