Code refactor
This commit is contained in:
1 parent
673b58caec
commit
c69c420781
7 files changed
+315
-289
No files matched your search
@@ -1,20 +1,23 @@
|
||||
#ifndef WINDOWS_H
|
||||
#define WINDOWS_H
|
||||
#ifndef WINDOWSBACK_H
|
||||
#define WINDOWSBACK_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ncurses.h>
|
||||
|
||||
int runMainMenu();
|
||||
void runOptionsMenu();
|
||||
WINDOW *create_newwin(int height, int width, int starty, int startx);
|
||||
void destroy_win(WINDOW *local_win);
|
||||
|
||||
void wwrap_print(WINDOW *win, int start_y, int start_x, const char *str);
|
||||
int uiToggleSwitch(WINDOW *win, int y, int x, int state);
|
||||
void uiTextInput(WINDOW *win, int y, int x, char *input, int max_len);
|
||||
int uiSelectMenu(WINDOW *win, int start_y, int start_x, char **options, int n_options);
|
||||
void print_menu(WINDOW *menu_win, int y, int x, int highlight);
|
||||
|
||||
void warningf(const char *fmt, ...);
|
||||
void warning(char *string);
|
||||
void statusf(const char *fmt, ...);
|
||||
void status(char *msg);
|
||||
WINDOW *create_newwin(int height, int width, int starty, int startx);
|
||||
void destroy_win(WINDOW *local_win);
|
||||
void print_menu(WINDOW *menu_win, int y, int x, int highlight);
|
||||
void wwrap_print(WINDOW *win, int start_y, int start_x, const char *str);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,13 @@
|
||||
#ifndef WINDOWSDECLARATION_H
|
||||
#define WINDOWSDECLARATION_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ncurses.h>
|
||||
|
||||
int runMainMenu();
|
||||
void runOptionsMenu();
|
||||
void example_window();
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user