mit menu angefangen
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* @file menu.h
|
||||
* @author Alexander Klein (alex@kleiax.de)
|
||||
* @brief
|
||||
* @version 0.1
|
||||
* @date 2022-01-12
|
||||
*
|
||||
* @copyright Copyright (c) 2022
|
||||
*
|
||||
*/
|
||||
#ifndef MENU_H
|
||||
#define MENU_H
|
||||
|
||||
#include <list>
|
||||
|
||||
#include "menuEntry.h"
|
||||
|
||||
class Menu {
|
||||
public:
|
||||
Menu(MenuEntry* firstEntry);
|
||||
|
||||
void printMenu();
|
||||
|
||||
void nextEntry();
|
||||
void prevEntry();
|
||||
void enterEntry();
|
||||
void enterParentMenu();
|
||||
|
||||
private:
|
||||
bool active = false;
|
||||
|
||||
Menu* parentMenu;
|
||||
|
||||
std::list<MenuEntry*> entrys;
|
||||
std::list<MenuEntry*>::iterator it;
|
||||
|
||||
};
|
||||
|
||||
#endif // MENU_H
|
||||
Reference in New Issue
Block a user