/*
 * gcc_stubs.c - Notify and event callback function stubs.
 * This file was generated by `gxv' from `gcc.G'.
 */

#include <stdio.h>
#include <sys/param.h>
#include <sys/types.h>
#include <xview/xview.h>
#include <xview/panel.h>
#include <xview/textsw.h>
#include <xview/xv_xrect.h>
#include "gcc_ui.h"


/*
 * Global object definitions.
 */
gcc_win_objects	*Gcc_win;

#ifdef MAIN

/*
 * Instance XV_KEY_DATA key.  An instance is a set of related
 * user interface objects.  A pointer to an object's instance
 * is stored under this key in every object.  This must be a
 * global variable.
 */
Attr_attribute	INSTANCE;

main(argc, argv)
	int	argc;
	char	**argv;
{
	/*
	 * Initialize XView.
	 */
	xv_init(XV_INIT_ARGC_PTR_ARGV, &argc, argv, NULL);
	INSTANCE = xv_unique_key();
	
	/*
	 * Initialize user interface components.
	 * Do NOT edit the object initializations by hand.
	 */
	Gcc_win = gcc_win_objects_initialize(NULL, NULL);
	
	
	/*
	 * Turn control over to XView.
	 */
	xv_main_loop(Gcc_win->win);
	exit(0);
}

#endif


/*
 * Notify callback function for `color_list'.
 */
int
gcc_list_proc(item, string, client_data, op, event, row)
	Panel_item	item;
	char		*string;
	Xv_opaque	client_data;
	Panel_list_op	op;
	Event		*event;
	int		row;
{
	gcc_win_objects *ip = (gcc_win_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
	
	switch(op) {
	case PANEL_LIST_OP_DESELECT:
		fprintf(stderr, "gcc: gcc_list_proc: PANEL_LIST_OP_DESELECT: %s\n",string);
		break;

	case PANEL_LIST_OP_SELECT:
		fprintf(stderr, "gcc: gcc_list_proc: PANEL_LIST_OP_SELECT: %s\n",string);
		break;

	case PANEL_LIST_OP_VALIDATE:
		fprintf(stderr, "gcc: gcc_list_proc: PANEL_LIST_OP_VALIDATE: %s\n",string);
		break;

	case PANEL_LIST_OP_DELETE:
		fprintf(stderr, "gcc: gcc_list_proc: PANEL_LIST_OP_DELETE: %s\n",string);
		break;
	}
	
	/* gxv_start_connections DO NOT EDIT THIS SECTION */

	/* gxv_end_connections */

	return XV_OK;
}

/*
 * Notify callback function for `apply'.
 */
void
gcc_apply(item, event)
	Panel_item	item;
	Event		*event;
{
	gcc_win_objects *ip = (gcc_win_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
	
	fputs("gcc: gcc_apply\n", stderr);
	
	/* gxv_start_connections DO NOT EDIT THIS SECTION */

	/* gxv_end_connections */

}

/*
 * Notify callback function for `reset'.
 */
void
gcc_reset(item, event)
	Panel_item	item;
	Event		*event;
{
	gcc_win_objects *ip = (gcc_win_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
	
	fputs("gcc: gcc_reset\n", stderr);
	
	/* gxv_start_connections DO NOT EDIT THIS SECTION */

	/* gxv_end_connections */

}
