DCC-EX Simple Throttle
Simple throttle for a DCC-EX CommandStation
Loading...
Searching...
No Matches
/home/runner/work/DCCEXSimpleThrottle/DCCEXSimpleThrottle/SelectLocoMenu.h
Go to the documentation of this file.
1
/*
2
* © 2024 Peter Cole
3
* © 2023 Peter Cole
4
*
5
* This is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* It is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this code. If not, see <https://www.gnu.org/licenses/>.
17
*/
18
19
#ifndef SELECTLOCOMENU_H
20
#define SELECTLOCOMENU_H
21
22
#include "
BaseMenu.h
"
23
24
class
SelectLocoMenu
:
public
BaseMenu
{
25
public
:
29
SelectLocoMenu
(
const
char
*name,
EventManager
*eventManager);
30
33
void
handleUserConfirmationAction
(
UserConfirmationAction
action)
override
;
34
35
private
:
38
void
_selectLoco
(uint8_t locoIndex);
39
};
40
41
#endif
// SELECTLOCOMENU_H
BaseMenu.h
UserConfirmationAction
UserConfirmationAction
User confirmation action data types available.
Definition
UserConfirmationInterface.h:23
BaseMenu
Class for maintaining a linked list of menu items to form a menu.
Definition
BaseMenu.h:31
EventManager
Class to centrally manage all events for the application Exposes methods to register subscribers that...
Definition
EventManager.h:28
SelectLocoMenu
Definition
SelectLocoMenu.h:24
SelectLocoMenu::_selectLoco
void _selectLoco(uint8_t locoIndex)
Trigger an event that sets the currently selected Loco and switches to the Throttle screen.
Definition
SelectLocoMenu.cpp:46
SelectLocoMenu::handleUserConfirmationAction
void handleUserConfirmationAction(UserConfirmationAction action) override
Implement this method to respond to user confirmation actions.
Definition
SelectLocoMenu.cpp:27
Generated by
1.9.8