DCC-EX Simple Throttle
Simple throttle for a DCC-EX CommandStation
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
MenuManager Class Reference

#include <MenuManager.h>

Collaboration diagram for MenuManager:
Collaboration graph
[legend]

Public Member Functions

 MenuManager (EventManager *eventManager)
 Constructor for the menu manager.
 
SelectActionMenugetSelectActionMenu ()
 Get the Select Action menu.
 
SelectLocoMenugetSelectLocoMenu ()
 Get the Select Loco menu.
 
SelectCommandStationMenugetSelectCommandStationMenu ()
 Get the Select CommandStation menu.
 
void setupLocoMenu (Loco *firstRosterLoco)
 Set up the loco menu based on the provided roster linked list and (if enabled) the local roster.
 
void setupActionMenu ()
 Set up the action menu.
 

Private Attributes

EventManager_eventManager
 
SelectActionMenu_selectActionMenu
 
SelectLocoMenu_selectLocoMenu
 
SelectCommandStationMenu_selectCommandStationMenu
 

Constructor & Destructor Documentation

◆ MenuManager()

MenuManager::MenuManager ( EventManager eventManager)

Constructor for the menu manager.

Parameters
eventManagerPointer to the event manager

Member Function Documentation

◆ getSelectActionMenu()

SelectActionMenu * MenuManager::getSelectActionMenu ( )

Get the Select Action menu.

Returns
Menu
Here is the caller graph for this function:

◆ getSelectCommandStationMenu()

SelectCommandStationMenu * MenuManager::getSelectCommandStationMenu ( )

Get the Select CommandStation menu.

Returns
Menu
Here is the caller graph for this function:

◆ getSelectLocoMenu()

SelectLocoMenu * MenuManager::getSelectLocoMenu ( )

Get the Select Loco menu.

Returns
Menu
Here is the caller graph for this function:

◆ setupActionMenu()

void MenuManager::setupActionMenu ( )

Set up the action menu.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setupLocoMenu()

void MenuManager::setupLocoMenu ( Loco *  firstRosterLoco)

Set up the loco menu based on the provided roster linked list and (if enabled) the local roster.

Parameters
firstRosterLocoPointer to the first loco in the roster
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _eventManager

EventManager* MenuManager::_eventManager
private

◆ _selectActionMenu

SelectActionMenu* MenuManager::_selectActionMenu
private

◆ _selectCommandStationMenu

SelectCommandStationMenu* MenuManager::_selectCommandStationMenu
private

◆ _selectLocoMenu

SelectLocoMenu* MenuManager::_selectLocoMenu
private

The documentation for this class was generated from the following files: