2020-10-20 14:16:46 +02:00
|
|
|
#include <ncurses.h>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#ifndef __UI_HPP_
|
|
|
|
#define __UI_HPP_
|
|
|
|
|
|
|
|
namespace ui {
|
2020-10-27 16:39:38 +01:00
|
|
|
extern int g_maxLines, g_maxCols, g_begCol, g_begLine, g_menuWith;
|
2020-10-28 16:12:21 +01:00
|
|
|
//int8_t error;
|
2020-10-27 16:39:38 +01:00
|
|
|
extern bool g_mensaje;
|
2020-10-20 14:16:46 +02:00
|
|
|
|
2020-10-27 16:39:38 +01:00
|
|
|
int8_t initUI(const int8_t *menu_principal, const int8_t *menu_error);
|
2020-10-20 14:16:46 +02:00
|
|
|
|
2020-10-27 16:39:38 +01:00
|
|
|
void closeUI();
|
2020-10-28 16:12:21 +01:00
|
|
|
std::vector<std::string> showCentralInputBox(std::vector<std::string> *textos, const int8_t *num_box, std::vector<std::string> *elems, const int8_t *color_error);
|
|
|
|
std::vector<std::string> showCentralInputBox(std::vector<std::string> *textos, const int8_t *num_box, std::vector<std::string> *elems, long title_size, const int8_t *color_error);
|
2020-10-27 16:39:38 +01:00
|
|
|
void showCenterMensaje(std::vector<std::string> *mensaje, const int8_t *menu_color);
|
|
|
|
void showTopTitle(const std::vector<std::string> *titulo);
|
2020-10-20 14:16:46 +02:00
|
|
|
} // namespace ui
|
|
|
|
#endif // __UI_HPP_
|