Add demo page to get play logic out of settings page. Add a demo page and a Settings page to the home screen.
25 lines
560 B
C++
25 lines
560 B
C++
#include "HardwareAbstract.hpp"
|
|
#include "PageBase.hpp"
|
|
|
|
namespace UI::Widget{
|
|
class Button;
|
|
class List;
|
|
}
|
|
namespace UI::Page {
|
|
class SettingsPage : public Base {
|
|
public:
|
|
SettingsPage(std::shared_ptr<HardwareAbstract> aHardware = nullptr);
|
|
|
|
bool OnKeyEvent(KeyPressAbstract::KeyEvent aKeyEvent) override{return false;};
|
|
|
|
void PushDisplaySettings();
|
|
|
|
protected:
|
|
void OnShow() override{};
|
|
void OnHide() override{};
|
|
|
|
Widget::Button *mButton;
|
|
Widget::List *mSettingsList;
|
|
std::shared_ptr<HardwareAbstract> mHardware;
|
|
};
|
|
} // namespace UI::Page
|