1
0
mirror of https://github.com/Dejvino/lilybook.git synced 2024-11-13 03:47:30 +00:00
lilybook/main/modes/SettingsMenuMode.cpp

54 lines
867 B
C++

#include "core/common.h"
#include "core/buttons.h"
#include "core/display.h"
#include <epaper/EPD.h>
#include "SettingsMenuMode.h"
static char* options[] = {
"[Back]",
"Reader Option X",
"Reader Option Y",
"Reader Option Z",
};
void SettingsMenuMode::start()
{
display_refresh();
}
void SettingsMenuMode::finish()
{}
char* SettingsMenuMode::getTitle()
{
return "Settings";
}
char** SettingsMenuMode::getOptions()
{
return options;
}
int SettingsMenuMode::getOptionsSize()
{
return 4;
}
void SettingsMenuMode::onOptionSelected(int option)
{
switch (option) {
case 0:
this->setFinished();
return;
case 1:
// TODO
break;
case 2:
// TODO
break;
case 3:
// TODO
break;
}
}