
/*
 * lib=UI env=A4GL_UI lib_prefix=UILIB_ api_prefix=
 * @file
 * Function prototypes
 *
 * This file was created from .spec file of same name, using dlmagic script
 * - if you need to edit it, edit .spec file instad, and use [make filename.h]
 * to re-create it.
 *
 * @todo See if the functions are static
 * or to be externally seen
 */

/*******************************************************************
* (c) 1997-2005 Aubit Computing Ltd.
*
*
********************************************************************/

/*
=====================================================================
                    Functions prototypes
=====================================================================
*/

#ifdef DEBUG
#define DEBUG_SPEC
#endif
#ifndef __UI_H__
#define __UI_H__
#ifdef __cplusplus
extern "C"
{
#endif

int A4GLUI_initlib (void);
#include <stdarg.h>
void* A4GL_cr_window(char* s,int iswindow,int form_line,int error_line,int prompt_line,int menu_line,int border,int comment_line,int message_line,int attrib,char* style,char* text,char* config);

int A4GL_cr_window_form(char* name,int iswindow,int form_line,int error_line,int prompt_line,int menu_line,int border,int comment_line,int message_line,int attrib,char* style,char* text,char* config);

int A4GL_disp_fields_ap(int n,int attr,va_list* ap);

int A4GL_disp_form_fields_ap(int n,int attr,char* formname,va_list* ap);

int A4GL_open_form(char* name);

void A4GL_close_form(char* name);

int A4GL_disp_form(char* name,int attr);

int A4GL_current_window(char* win_name);

int aclfgl_fgl_drawbox(int n);

void* A4GL_new_menu_create_with_attr(char* title,int x,int y,int mn_type,int help_no,char* comment,char* style,char* image,char* normal,char* highlight);

void A4GL_add_menu_option(void* menu,char* txt,char* keys,char* desc,int helpno,int attr);

void A4GL_ensure_menu_title(char* title);

void A4GL_ensure_menu_option(int optno,void* menu,char* txt,char* keys,char* desc,int helpno,int attr);

int A4GL_show_help_within_ui(int helpno);

int A4GL_set_help_file_within_ui(char* filename);

void A4GL_add_menu_timeout(void* menu,char timeout_type,int timeoutlen,int cmd_no_on_timeout,long* timeoutvar);

void A4GL_add_menu_action(void* menu,char* action,int cmd_no_on_timeout);

void A4GL_finish_create_menu(void* menu);

void A4GL_disp_h_menu(void* menu);

int A4GL_menu_loop_v2(void* menu,void* evt);

void A4GL_next_option(void* menu,char* nextopt);

int A4GL_free_menu(void* menu);

int A4GL_req_field_input(void* s,char type,va_list* ap);

int A4GL_req_field_input_array(void* s,char type,va_list* ap);

int A4GL_menu_hide_ap(void* menu,va_list* ap);

int A4GL_menu_show_ap(void* menu,va_list* ap);

void aclfgli_pr_message_internal(int attr,int wait,char* s);

void A4GL_display_error(int attr,int wait);

void* A4GL_get_curr_form(int warn_if_no_form);

void A4GL_set_option_value_for_current_window(char type,long keyval);

long A4GL_get_option_value_for_current_window(char type);

int A4GL_widget_name_match(void* w,char* name);

int A4GL_gen_field_chars_ap(void* field_list,void* formdets,va_list* ap,int replace_0);

int A4GL_gen_field_list_from_slist(void* field_listv,void* formdetsv,void* listv);

int A4GL_form_loop_v2(void* s,int init,void* evt);

int A4GL_push_constr(void* s);

int A4GL_set_fields(void* sio);

void A4GL_sync_fields(void* sio);

void A4GL_display_internal(int x,int y,char* s,int a,int clr_line);

int A4GL_movewin(char* winname,int absol);

void A4GL_hide_window(char* winname);

void A4GL_show_window(char* winname);

int A4GL_fgl_infield_ap(void* inp,va_list* ap);

int A4GL_fgl_infield_ia_ap(void* inp,va_list* ap);

void A4GL_clr_window(char* winname);

void A4GL_sleep_i(void );

void A4GL_remove_window(char* win_name);

int A4GL_disp_arr_v2(void* disp,void* ptr,char* srecname,int attrib,char* scrollf,int scrollw,void* evt);

int A4GL_inp_arr_v2(void* disp,int defs,char* srecname,int attrib,int init,void* evt);

int A4GL_prompt_loop_v2(void* prompt,int timeout,void* evt_list);

int A4GL_start_prompt(void* prompt,int ap,int c,int h,int af,char* text,char* style,int dtype_hint);

int A4GL_endis_fields_ap(int en_dis,va_list* ap);

void A4GL_clr_form(int to_defaults);

void A4GL_clr_form_fields(int to_defaults,char* defs);

void A4GL_clr_fields_ap(int to_defaults,va_list* ap);

int A4GL_fgl_getfldbuf_ap(void* inp,ts_field_name* fldlist,va_list* ap);

int A4GL_fgl_getfldbuf_ia_ap(void* inp,ts_field_name* fldlist,va_list* ap);

void A4GL_zrefresh(void );

void A4GL_gotolinemode(void );

char* A4GL_get_currwin_name(void );

void A4GL_gui_run_til_no_more(void );

int A4GL_read_fields(void* formdets);

int A4GL_read_metrics(void* formdets);

int aclfgl_a4gl_set_page(int n);

int aclfgl_a4gl_get_page(int n);

int aclfgl_a4gl_run_gui(int nargs);

void A4GL_set_infield_from_stack(void );

int A4GL_open_gui_form_internal(long* form_variable,char* name_orig,int absolute,int nat,char* like,int disable,void* handler_e,void* handler_c);

int A4GL_fgl_fieldnametoid(char* f,char* s,int n);

int aclfgl_set_window_title(int nargs);

void A4GL_finish_screenio(void* sio,char* siotype);

void* A4GL_make_pixmap_gw(char* filename);

int aclfgl_aclfgl_dump_screen(int n);

int A4GL_get_curr_width(void );

int A4GL_get_curr_height(void );

int A4GL_iscurrborder(void );

void A4GL_init_color(int n,int r,int g,int b);

int A4GL_fgl_fieldtouched_input_ap(void* input,va_list* ap);

int A4GL_fgl_fieldtouched_input_array_ap(void* input,va_list* ap);

int A4GLUI_ui_init(int argc,char** argv);

void A4GL_acli_scroll_ap(int n,va_list* ap);

int A4GL_get_key(int timeout);

void* A4GL_create_menu(void* m,char* id,int mode,void* handler);

void A4GL_reset_state_for(void* sio,char* siotype);

int aclfgl_fgl_set_arrline(int nparam);

int aclfgl_fgl_set_scrline(int nparam);

void A4GL_report_pause(char* s);

void A4GL_reset_delims(void* vformdets,void* field,char* delims);

void A4GLUI_set_intr(void );

int A4GL_screen_mode(int sm);

void A4GL_ui_exit(int exitstatus);

char* A4GL_ui_fgl_winquestion(char* title,char* text,char* def,char* pos,char* icon,int danger,int winbutton);

void A4GL_direct_to_ui(char* what,char* string);

int aclfgl_aclfgl_add_to_toolbar(int nparam);

int aclfgl_aclfgl_set_display_field_delimiters(int nparam);

int aclfgl_aclfgl_add_acs_mapping(int nparam);

int aclfgl_aclfgl_set_application_xml(int nparam);

void A4GL_ui_frontcall(char* module,char* name,void* ibind,int ni,void* obind,int no);

void A4GL_ui_cancel(int type);

int A4GL_ui_send_report_to_ui(char* filename,int noLinesPerPage,char* mode);

void A4GL_ui_run_info(int mode,char* cmdline,int runcnt,int startstop);

#ifdef __cplusplus
}
#endif
#endif  /* #ifdef __(UI)_H__  */

