DCC-EX Simple Throttle
Simple throttle for a DCC-EX CommandStation
Loading...
Searching...
No Matches
/home/runner/work/DCCEXSimpleThrottle/DCCEXSimpleThrottle/ActionMenuItem.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 ACTIONMENUITEM_H
20
#define ACTIONMENUITEM_H
21
22
#include "
BaseMenuItem.h
"
23
#include "
EventStructure.h
"
24
27
class
ActionMenuItem
:
public
BaseMenuItem
{
28
public
:
32
ActionMenuItem
(
const
char
*name,
Event
*event);
33
36
Event
*
getEvent
();
37
38
private
:
39
Event
*
_event
;
40
};
41
42
#endif
// ACTIONMENUITEM_H
BaseMenuItem.h
EventStructure.h
ActionMenuItem
Extension of the BaseMenuItem class for users to select items that publish an event Each action must ...
Definition
ActionMenuItem.h:27
ActionMenuItem::getEvent
Event * getEvent()
Get the Event associated with this item.
Definition
ActionMenuItem.cpp:23
ActionMenuItem::_event
Event * _event
Definition
ActionMenuItem.h:39
BaseMenuItem
Base class for all menu item types, and all menu item types must inherit from this....
Definition
BaseMenuItem.h:28
Event
Structure for each Event that is published.
Definition
EventStructure.h:102
Generated by
1.9.8