2020-08-14 09:46:37 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <Components/Ble/NimbleController.h>
|
|
|
|
#include "Screen.h"
|
|
|
|
#include "Label.h"
|
|
|
|
#include "ScreenList.h"
|
|
|
|
#include "Gauge.h"
|
|
|
|
#include "Meter.h"
|
|
|
|
#include <functional>
|
|
|
|
|
|
|
|
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 20:47:21 +02:00
|
|
|
ScreenList<2> screens;
|
2020-08-14 09:46:37 +02:00
|
|
|
std::unique_ptr<Screen> CreateScreen1();
|
|
|
|
std::unique_ptr<Screen> CreateScreen2();
|
|
|
|
std::unique_ptr<Screen> CreateScreen3();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|