-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMENU.CLASS.h
executable file
·61 lines (54 loc) · 1.55 KB
/
MENU.CLASS.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef MENU_CLASS_H
#define MENU_CLASS_H
#include "TOOL.BOX.CLASS.h"
using namespace std;
struct HAUPTMENU {
int HMID;
string HMName;
WINDOW *HMWin {nullptr};
MENU *HMMenu {nullptr};
ITEM **HMItem {nullptr};
//###############################################
struct UNTERMENU {
int UMID;
string UMEName;
WINDOW *UMEWin;
MENU *UMEMenu;
ITEM **UMEItem;
}UME;
void LoescheUME(){
int E = item_count(UME.UMEMenu);
unpost_menu(UME.UMEMenu);
SAFE_DELETE(UME.UMEMenu);
SAFE_DELETE_ARRAY(UME.UMEItem);
wborder(UME.UMEWin, ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ');
touchline(UME.UMEWin,0,E+1);
delwin(UME.UMEWin);
endwin();
refresh();
}
};
class MenuClass
{
public:
//############################variablen#########
static HAUPTMENU MENEU;
static int MeInAl;
static WINDOW *TMPWIN;
static MENU *TMPMENU;
//##########MENÜ################################
static void Hauptmenu(void);
static void Datei_menu(void);
static void System_menu(void);
static void Server_menu(void);
static void Software_menu(void);
static void Info_menu(void);
static MENU *tmpMe(string name, int id);
static WINDOW *tmpWi(string name, int id);
static void fensterwahl(string wahl);
static void QUIT(void);
static void MenuStart(void);
private:
protected:
};
#endif // MENU_CLASS_H