29 lines
776 B
C++
29 lines
776 B
C++
#pragma once
|
|
#include <freertos/FreeRTOS.h>
|
|
#include <freertos/semphr.h>
|
|
#include <freertos/task.h>
|
|
|
|
#include "activities/Activity.h"
|
|
#include "util/ButtonNavigator.h"
|
|
|
|
// Reader status bar configuration activity
|
|
class StatusBarSettingsActivity final : public Activity {
|
|
public:
|
|
explicit StatusBarSettingsActivity(GfxRenderer& renderer, MappedInputManager& mappedInput)
|
|
: Activity("StatusBarSettings", renderer, mappedInput) {}
|
|
|
|
void onEnter() override;
|
|
void onExit() override;
|
|
void loop() override;
|
|
void render(RenderLock&&) override;
|
|
|
|
private:
|
|
ButtonNavigator buttonNavigator;
|
|
|
|
int selectedIndex = 0;
|
|
// Decided in onEnter() based on halClock.isAvailable() so clock entries are hidden on X4.
|
|
int visibleItemCount = 0;
|
|
|
|
void handleSelection();
|
|
};
|