-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui_actions.hpp
73 lines (60 loc) · 1.2 KB
/
ui_actions.hpp
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
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef UI_ACTIONS_H
#define UI_ACTIONS_H
#include <iostream>
// Flag for printing time when manual data structure control
extern bool print_time;
/**
* Returns 1 - this will be handled by menu and interpreted as call for menu exit
*
* @return int
*/
int exit_action();
/**
* Returns 3 - this will be handled and interpreted as launching new menu, not used anymore
*
* @return int
*/
int launch_menu_action();
/**
* Returns user input as int number
*
* @return int
*/
int user_input_action(std::string input_field_label);
/**
* Returns user input as unsigned int number
*
* @return unsigned int
*/
unsigned int user_input_action_unsigned(std::string input_field_label);
/**
* Returns user input as string
*
* @return string
*/
std::string user_input_action_string(std::string input_field_label);
/**
* Displays given string
*
* @return int
*/
int display_action(std::string display_label);
/**
* Displays 2 given strings
*
* @return int
*/
int display_action2(std::string display_label, std::string display_label2);
/**
* Displays help page
*
* @return int
*/
int display_help();
/**
* Changes print_time flag
*
* @return int
*/
int change_print_flag();
#endif