mit menu angefangen

This commit is contained in:
2022-01-12 18:58:52 +01:00
parent be6f20d96b
commit 4ba7995bb4
4 changed files with 152 additions and 0 deletions
+39
View File
@@ -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