Deluge Firmware 1.3.0
Build date: 2026.03.02
Loading...
Searching...
No Matches
new_clip_type.h
1/*
2 * ContextMenu\Clip_Settings\New_Clip_Type.h
3 *
4 * Created on: 4 Aug 2024
5 * Author: Sean
6 */
7
8#pragma once
9
10#include "gui/context_menu/context_menu.h"
11#include "hid/led/indicator_leds.h"
12
13using namespace indicator_leds;
14
15namespace deluge::gui::context_menu::clip_settings {
16
17class NewClipType final : public ContextMenu {
18
19public:
20 NewClipType() = default;
21 void selectEncoderAction(int8_t offset) override;
22 bool setupAndCheckAvailability();
23 bool canSeeViewUnderneath() override { return true; }
24 bool acceptCurrentOption() override; // If returns false, will cause UI to exit
25 ActionResult buttonAction(deluge::hid::Button b, bool on, bool inCardRoutine) override;
26 void updateSelectedOption();
27 void updateOutputToCreate();
28
29 LED getLedFromOption(int32_t option);
30 void disableLedForOption(int32_t option);
31 void blinkLedForOption(int32_t option);
32
33 OutputType toCreate = OutputType::NONE;
34
36 char const* getTitle() override;
37
39 std::span<const char*> getOptions() override;
40 ActionResult padAction(int32_t x, int32_t y, int32_t on) override;
41};
42
43extern NewClipType newClipType;
44} // namespace deluge::gui::context_menu::clip_settings
char const * getTitle() override
Title.
Definition new_clip_type.cpp:19
std::span< const char * > getOptions() override
Options.
Definition new_clip_type.cpp:24