|
C-Menu 0.2.9
A User Interface Toolkit
|
Headder for C-Menu Menu, Form, Pick, and View components. More...
#include <ncursesw/ncurses.h>#include <cm.h>#include <form.h>#include <menu.h>#include <pick.h>#include <view.h>#include <stddef.h>Go to the source code of this file.
Data Structures | |
| struct | Init |
| Gathers runtime information for C-Menu Menu, Form, Pick, and View components, used for passing common data and state during initialization and processing of these componentsi. More... | |
Macros | |
| #define | _GNU_SOURCE |
| #define | _XOPEN_SOURCE_EXTENDED 1 |
| #define | NCURSES_WIDECHAR 1 |
| #define | USE_PAD TRUE |
| #define | MIN_COLS 40 |
| #define | MAX_WIDE_LEN 1024 |
| #define | COLOR_LEN 8 |
| #define | PICK_MAX_ARG_LEN 256 |
| #define | MAX_PICK_OBJS 1024 |
| #define | ACCEPT_PROMPT_CHAR '_' |
| #define | MENU_HELP_FILE "menu.help" |
| #define | FORM_HELP_FILE "form.help" |
| #define | PICK_HELP_FILE "pick.help" |
| #define | VIEW_HELP_FILE "view.help" |
| #define | VIEW_PRT_FILE "prtout" |
| #define | DEFAULTEDITOR "vi" |
| #define | MINITRC ".minitrc" |
| #define | ABOUT ".about" |
| #define | MAPP_DIR "~/menuapp" |
| #define | PRINTCMD "lp -c -s" |
| #define | MAXOPTS 50 |
| #define | EIGHT 8 |
| #define | F_VIEW 0x01 |
| #define | P_READ 0 |
| #define | P_WRITE 1 |
| #define | TRUE 1 |
| #define | new_cmenu() |
| #define | destroy_cmenu() |
Typedefs | |
| typedef Menu | Menu |
| typedef Form | Form |
| typedef Pick | Pick |
| typedef View | View |
Enumerations | |
| enum | Caller { VIEW , FORM , PICK , MENU } |
| enum | OptType { OT_STRING , OT_INT , OT_BOOL , OT_HEX } |
| option types More... | |
| enum | OptGroup { OG_FILES , OG_DIRS , OG_SPECS , OG_MISC , OG_PARMS , OG_FLAGS , OG_COL } |
| option groups More... | |
| enum | { IC_MENU , IC_PICK , IC_FORM , IC_VIEW } |
Functions | |
| void | mapp_initialization (Init *, int, char **) |
| Main initialization function for MAPP - Menu Application. | |
| Init * | new_init (int, char **) |
| Create and initialize Init structure. | |
| View * | new_view (Init *) |
| Create and initialize View structure. | |
| Form * | new_form (Init *, int, char **, int, int) |
| Create and initialize Form structure. | |
| Pick * | new_pick (Init *, int, char **, int, int) |
| Create and initialize Pick structure. | |
| Menu * | new_menu (Init *, int, char **, int, int) |
| Create and initialize Menu structure. | |
| int | popup_menu (Init *, int, char **, int, int) |
| int | popup_form (Init *, int, char **, int, int) |
| int | popup_pick (Init *, int, char **, int, int) |
| int | popup_view (Init *, int, char **, int, int, int, int) |
| int | popup_ckeys () |
| Display Curses Keys Responds to curses keys and mouse events, displaying the key code and description. | |
| Menu * | destroy_menu (Init *init) |
| Destroy Menu structure. | |
| Pick * | destroy_pick (Init *init) |
| Destroy Pick structure. | |
| Form * | destroy_form (Init *init) |
| Destroy Form structure. | |
| View * | destroy_view (Init *init) |
| Destroy View structure. | |
| Init * | destroy_init (Init *init) |
| Destroy Init structure. | |
| int | parse_opt_args (Init *, int, char **) |
| void | zero_opt_args (Init *) |
| Initialize optional arguments in the Init struct to default values. | |
| int | write_config (Init *) |
| Write the current configuration to a file specified in init->minitrc. | |
| bool | derive_file_spec (char *, char *, char *) |
| Derive full file specification from directory and file name. | |
| bool | init_menu_files (Init *, int, char **) |
| Initialize Menu file specifications. | |
| unsigned int | menu_engine (Init *) |
| The main loop of the menu system. | |
| unsigned int | parse_menu_description (Init *) |
| Parse menu description file and create Menu. | |
| int | init_form (Init *, int, char **, int, int) |
| Initialize form data structure and parse description file. | |
| int | init_pick (Init *, int, char **, int, int) |
| Initializes pick structure and opens pick input file or pipe. | |
| int | open_pick_win (Init *) |
| Initializes the pick window based on the parameters specified in the Pick structure. | |
| int | pick_engine (Init *) |
| Initializes pick interface, calculates window size and position, and enters picker loop. | |
| int | view_file (Init *) |
| Start view. | |
| int | init_view_full_screen (Init *) |
| Initialize C-Menu View in full screen mode. | |
| int | init_view_boxwin (Init *, char *) |
| Initialize the C-Menu View in box window mode. | |
| int | view_init_input (View *, char *) |
| Initialize the input for a C-Menu View. | |
| int | cmd_processor (Init *) |
Variables | |
| Init * | init |
| int | init_cnt |
| char | minitrc [MAXLEN] |
Headder for C-Menu Menu, Form, Pick, and View components.
Definition in file common.h.
| #define _GNU_SOURCE |
| #define destroy_cmenu | ( | ) |
Definition at line 67 of file common.h.
| #define new_cmenu | ( | ) |
Definition at line 54 of file common.h.
| enum OptGroup |
| enum OptType |
|
extern |
|
extern |
Definition at line 393 of file init.c.
References Init::argc.
Referenced by menu_cmd_processor(), popup_form(), popup_menu(), popup_pick(), and popup_view().
|
extern |
Display Curses Keys Responds to curses keys and mouse events, displaying the key code and description.
Definition at line 23 of file curskeys.c.
References display_error(), em0, em1, em2, handle_signal(), Perror(), sig_received, strnz__cat(), strnz__cpy(), win_box, win_del(), win_new(), win_ptr, and win_win.
Referenced by main(), and menu_cmd_processor().
|
extern |
Definition at line 34 of file popups.c.
References Init::argc, Init::argv, destroy_form(), Init::form, init_form(), new_form(), parse_opt_args(), and zero_opt_args().
Referenced by enter_file_spec(), and menu_cmd_processor().
|
extern |
Definition at line 8 of file popups.c.
References Init::argc, Init::argv, destroy_menu(), Init::menu, menu_engine(), new_menu(), parse_opt_args(), and zero_opt_args().
|
extern |
Definition at line 21 of file popups.c.
References Init::argc, Init::argv, destroy_pick(), init_pick(), new_pick(), parse_opt_args(), Init::pick, and zero_opt_args().
Referenced by menu_cmd_processor().
|
extern |
Definition at line 47 of file popups.c.
References Init::begx, View::begx, Init::begy, View::begy, Init::cols, View::cols, destroy_view(), View::f_full_screen, init_view_boxwin(), Init::lines, View::lines, new_view(), parse_opt_args(), Init::title, Init::view, view, view_file(), win_del(), and zero_opt_args().
Referenced by display_pick_help(), exec_objects(), form_engine(), menu_cmd_processor(), and view_display_help().
|
extern |
Definition at line 43 of file mem.c.
Referenced by destroy_init(), and new_init().