diff options
| author | Softwaresale <[email protected]> | 2017-09-24 17:41:18 -0400 |
|---|---|---|
| committer | Softwaresale <[email protected]> | 2017-09-24 17:41:18 -0400 |
| commit | d5a7d2224c06151580bc12db491ff5cf674644a3 (patch) | |
| tree | 48cd3eaca95fc1c0985a0298db750aac211abdca | |
| parent | ce472fac2c701613ef86f535393fdc798df8aac3 (diff) | |
| download | archiver-master.tar.gz | |
| -rw-r--r-- | include/archiver/ui/ui.h | 48 |
1 files changed, 45 insertions, 3 deletions
diff --git a/include/archiver/ui/ui.h b/include/archiver/ui/ui.h index aacfbde..e9197ad 100644 --- a/include/archiver/ui/ui.h +++ b/include/archiver/ui/ui.h @@ -25,7 +25,9 @@ #include <ncurses.h> #include <panel.h> +#include <form.h> #include <menu.h> +#include <readline/readline.h> // struct for holding parts of interface @@ -38,13 +40,53 @@ extern const char** menu_items = { typedef struct _archive_ui { - + // represents option menu struct { - MENU* cmd_menu; // menu with command data + MENU* main_menu; // menu with command data ITEM** cmd_items; // commands to go in menu ITEM* cur_item; // item currently selected - } menu; + } main_menu; + + // represents command menu (add, remove file, etc) + struct + { + MENU* cmd_menu; // menu + ITEM** cmd_items; // items + ITEM* cur_item; // current item + } command_menu; + + // represents file view + struct + { + WINDOW* wind; // window of file viewer + MENU* file_menu; // menu containing all of the files + ITEM** files; // list of files + ITEM* cur_file; // current selected file + + ITEM*** backup_files; // lists of backuped files + ITEM** backup_cur_file; // stores last batchs + int backup_levels; // levels of backup (as levels increase, number increases) + } system_file; + + // used for viewing archive's contents + struct + { + WINDOW* wind; // window around menu + MENU* file_menu; // actual menu + ITEM** files; // list of files being displayed + ITEM* cur_file; // pointer to currently selected file + + ITEM*** backup_files; // list of backup files + ITEM** backup_cur_file; // backup of most recently selected file + int backup_level; // how many levels up it has gone + } archive_viewer; + + // represents command line + struct + { + WINDOW* window; // window where editor will go + } command_line; } ui_t; |
