2020-08-14 03:46:37 -04:00
|
|
|
#pragma once
|
|
|
|
|
2020-10-02 15:16:48 -04:00
|
|
|
#include <functional>
|
2020-08-14 03:46:37 -04:00
|
|
|
#include <vector>
|
2020-10-02 15:16:48 -04:00
|
|
|
|
|
|
|
#include "components/ble/NimbleController.h"
|
2020-08-14 03:46:37 -04:00
|
|
|
#include "Screen.h"
|
|
|
|
#include "Label.h"
|
|
|
|
#include "ScreenList.h"
|
|
|
|
#include "Gauge.h"
|
|
|
|
#include "Meter.h"
|
|
|
|
|
|
|
|
namespace Pinetime {
|
|
|
|
namespace Applications {
|
|
|
|
namespace Screens {
|
|
|
|
class ApplicationList : public Screen {
|
|
|
|
public:
|
|
|
|
explicit ApplicationList(DisplayApp* app);
|
|
|
|
~ApplicationList() override;
|
|
|
|
bool Refresh() override;
|
|
|
|
bool OnButtonPushed() override;
|
|
|
|
bool OnTouchEvent(TouchEvents event) override;
|
|
|
|
private:
|
|
|
|
bool running = true;
|
|
|
|
|
2020-08-14 14:47:21 -04:00
|
|
|
ScreenList<2> screens;
|
2020-08-14 03:46:37 -04:00
|
|
|
std::unique_ptr<Screen> CreateScreen1();
|
|
|
|
std::unique_ptr<Screen> CreateScreen2();
|
|
|
|
std::unique_ptr<Screen> CreateScreen3();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|