/*
 * replace_interface_ui.c - User interface object initialization functions.
 * This file was generated by `gxv' from `replace_interface.G'.
 * DO NOT EDIT BY HAND.
 */

#include <stdio.h>
#include <sys/param.h>
#include <sys/types.h>
#include <xview/xview.h>
#include <xview/canvas.h>
#include <xview/panel.h>
#include <xview/scrollbar.h>
#include <xview/svrimage.h>
#include <xview/termsw.h>
#include <xview/text.h>
#include <xview/tty.h>
#include <xview/xv_xrect.h>
#include "replace_interface_ui.h"

/*
 * Initialize an instance of object `pop'.
 */
replace_interface_pop_objects *
replace_interface_pop_objects_initialize(ip, owner)
	replace_interface_pop_objects	*ip;
	Xv_opaque	owner;
{
	if (!ip && !(ip = (replace_interface_pop_objects *) calloc(1, sizeof (replace_interface_pop_objects))))
		return (replace_interface_pop_objects *) NULL;
	if (!ip->pop)
		ip->pop = replace_interface_pop_pop_create(ip, owner);
	if (!ip->controls1)
		ip->controls1 = replace_interface_pop_controls1_create(ip, ip->pop);
	if (!ip->attribute_list)
		ip->attribute_list = replace_interface_pop_attribute_list_create(ip, ip->controls1);
	if (!ip->replace_button)
		ip->replace_button = replace_interface_pop_replace_button_create(ip, ip->controls1);
	if (!ip->tuples_message)
		ip->tuples_message = replace_interface_pop_tuples_message_create(ip, ip->controls1);
	if (!ip->tuple_slider)
		ip->tuple_slider = replace_interface_pop_tuple_slider_create(ip, ip->controls1);
	if (!ip->which_tuple_setting)
		ip->which_tuple_setting = replace_interface_pop_which_tuple_setting_create(ip, ip->controls1);
	if (!ip->attribute_value_field)
		ip->attribute_value_field = replace_interface_pop_attribute_value_field_create(ip, ip->controls1);
	if (!ip->type_message)
		ip->type_message = replace_interface_pop_type_message_create(ip, ip->controls1);
	return ip;
}

/*
 * Create object `pop' in the specified instance.
 */
Xv_opaque
replace_interface_pop_pop_create(ip, owner)
	replace_interface_pop_objects	*ip;
	Xv_opaque	owner;
{
	Xv_opaque	obj;
	
	obj = xv_create(owner, FRAME_CMD,
		XV_KEY_DATA, INSTANCE, ip,
		XV_WIDTH, 467,
		XV_HEIGHT, 229,
		FRAME_SHOW_FOOTER, TRUE,
		FRAME_SHOW_RESIZE_CORNER, FALSE,
		FRAME_CMD_PUSHPIN_IN, FALSE,
		NULL);
	xv_set(xv_get(obj, FRAME_CMD_PANEL), WIN_SHOW, FALSE, NULL);
	return obj;
}

/*
 * Create object `controls1' in the specified instance.
 */
Xv_opaque
replace_interface_pop_controls1_create(ip, owner)
	replace_interface_pop_objects	*ip;
	Xv_opaque	owner;
{
	Xv_opaque	obj;
	
	obj = xv_create(owner, PANEL,
		XV_KEY_DATA, INSTANCE, ip,
		XV_X, 0,
		XV_Y, 0,
		XV_WIDTH, 460,
		XV_HEIGHT, WIN_EXTEND_TO_EDGE,
		WIN_BORDER, FALSE,
		NULL);
	return obj;
}

/*
 * Create object `attribute_list' in the specified instance.
 */
Xv_opaque
replace_interface_pop_attribute_list_create(ip, owner)
	replace_interface_pop_objects	*ip;
	Xv_opaque	owner;
{
	extern int		attribute_select_replace();
	Xv_opaque	obj;
	
	obj = xv_create(owner, PANEL_LIST,
		XV_KEY_DATA, INSTANCE, ip,
		XV_X, 8,
		XV_Y, 8,
		PANEL_LIST_WIDTH, 200,
		PANEL_LIST_DISPLAY_ROWS, 7,
		PANEL_LABEL_STRING, "Attributes",
		PANEL_LAYOUT, PANEL_VERTICAL,
		PANEL_READ_ONLY, TRUE,
		PANEL_CHOOSE_ONE, TRUE,
		PANEL_CHOOSE_NONE, TRUE,
		PANEL_NOTIFY_PROC, attribute_select_replace,
		NULL);
	return obj;
}

/*
 * Create object `replace_button' in the specified instance.
 */
Xv_opaque
replace_interface_pop_replace_button_create(ip, owner)
	replace_interface_pop_objects	*ip;
	Xv_opaque	owner;
{
	extern void		replace_tuple_proc();
	Xv_opaque	obj;
	
	obj = xv_create(owner, PANEL_BUTTON,
		XV_KEY_DATA, INSTANCE, ip,
		XV_X, 252,
		XV_Y, 28,
		PANEL_LABEL_STRING, "replace",
		PANEL_NOTIFY_PROC, replace_tuple_proc,
		NULL);
	return obj;
}

/*
 * Create object `tuples_message' in the specified instance.
 */
Xv_opaque
replace_interface_pop_tuples_message_create(ip, owner)
	replace_interface_pop_objects	*ip;
	Xv_opaque	owner;
{
	Xv_opaque	obj;
	
	obj = xv_create(owner, PANEL_MESSAGE,
		XV_KEY_DATA, INSTANCE, ip,
		XV_X, 368,
		XV_Y, 32,
		PANEL_LABEL_STRING, "Tuples",
		PANEL_LABEL_BOLD, TRUE,
		NULL);
	return obj;
}

/*
 * Create object `tuple_slider' in the specified instance.
 */
Xv_opaque
replace_interface_pop_tuple_slider_create(ip, owner)
	replace_interface_pop_objects	*ip;
	Xv_opaque	owner;
{
	extern void		replace_tuples_easy_travel();
	Xv_opaque	obj;
	
	obj = xv_create(owner, PANEL_SLIDER,
		XV_KEY_DATA, INSTANCE, ip,
		XV_X, 352,
		XV_Y, 56,
		PANEL_SLIDER_WIDTH, 100,
		PANEL_TICKS, 0,
		PANEL_DIRECTION, PANEL_VERTICAL,
		PANEL_SLIDER_END_BOXES, FALSE,
		PANEL_SHOW_RANGE, TRUE,
		PANEL_SHOW_VALUE, TRUE,
		PANEL_MIN_VALUE, 0,
		PANEL_MAX_VALUE, 100,
		PANEL_NOTIFY_PROC, replace_tuples_easy_travel,
		NULL);
	return obj;
}

/*
 * Create object `which_tuple_setting' in the specified instance.
 */
Xv_opaque
replace_interface_pop_which_tuple_setting_create(ip, owner)
	replace_interface_pop_objects	*ip;
	Xv_opaque	owner;
{
	extern void		which_tuple_proc();
	Xv_opaque	obj;
	
	obj = xv_create(owner, PANEL_CHOICE,
		XV_KEY_DATA, INSTANCE, ip,
		XV_X, 252,
		XV_Y, 84,
		PANEL_CHOICE_NROWS, 3,
		PANEL_LAYOUT, PANEL_VERTICAL,
		PANEL_CHOOSE_NONE, FALSE,
		PANEL_LABEL_STRING, "  Tuple",
		PANEL_NOTIFY_PROC, which_tuple_proc,
		PANEL_CHOICE_STRINGS,
			"Next",
			"Present",
			"Past",
			NULL,
		NULL);
	return obj;
}

/*
 * Create object `attribute_value_field' in the specified instance.
 */
Xv_opaque
replace_interface_pop_attribute_value_field_create(ip, owner)
	replace_interface_pop_objects	*ip;
	Xv_opaque	owner;
{
	extern Panel_setting	attribute_value_change_replace();
	Xv_opaque	obj;
	
	obj = xv_create(owner, PANEL_TEXT,
		XV_KEY_DATA, INSTANCE, ip,
		XV_X, 12,
		XV_Y, 180,
		PANEL_VALUE_DISPLAY_LENGTH, 25,
		PANEL_VALUE_STORED_LENGTH, 80,
		PANEL_LAYOUT, PANEL_VERTICAL,
		PANEL_READ_ONLY, FALSE,
		PANEL_NOTIFY_PROC, attribute_value_change_replace,
		NULL);
	return obj;
}

/*
 * Create object `type_message' in the specified instance.
 */
Xv_opaque
replace_interface_pop_type_message_create(ip, owner)
	replace_interface_pop_objects	*ip;
	Xv_opaque	owner;
{
	Xv_opaque	obj;
	
	obj = xv_create(owner, PANEL_MESSAGE,
		XV_KEY_DATA, INSTANCE, ip,
		XV_X, 216,
		XV_Y, 200,
		PANEL_LABEL_STRING, "::type",
		PANEL_LABEL_BOLD, FALSE,
		NULL);
	return obj;
}

