/*
 * altfontsel_ui.c - User interface object initialization functions.
 * This file was generated by `gxv' from `altfontsel.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 "altfontsel_ui.h"

/*
 * Initialize an instance of object `baseframe'.
 */
altfontsel_baseframe_objects *
altfontsel_baseframe_objects_initialize(altfontsel_baseframe_objects *ip, Xv_opaque owner)
{
	if (!ip && !(ip = (altfontsel_baseframe_objects *) calloc(1, sizeof (altfontsel_baseframe_objects))))
		return (altfontsel_baseframe_objects *) NULL;
	if (!ip->baseframe)
		ip->baseframe = altfontsel_baseframe_baseframe_create(ip, owner);
	if (!ip->controls1)
		ip->controls1 = altfontsel_baseframe_controls1_create(ip, ip->baseframe);
	if (!ip->list1)
		ip->list1 = altfontsel_baseframe_list1_create(ip, ip->controls1);
	if (!ip->ApplyButton)
		ip->ApplyButton = altfontsel_baseframe_ApplyButton_create(ip, ip->controls1);
	if (!ip->CancelButton)
		ip->CancelButton = altfontsel_baseframe_CancelButton_create(ip, ip->controls1);
	return ip;
}

/*
 * Create object `baseframe' in the specified instance.
 */
Xv_opaque
altfontsel_baseframe_baseframe_create(altfontsel_baseframe_objects *ip, Xv_opaque owner)
{
	Xv_opaque	obj;
	
	obj = xv_create(owner, FRAME,
		XV_KEY_DATA, INSTANCE, ip,
		XV_WIDTH, 397,
		XV_HEIGHT, 177,
		XV_LABEL, "Font Selector",
		FRAME_SHOW_FOOTER, TRUE,
		FRAME_SHOW_RESIZE_CORNER, FALSE,
		NULL);
	return obj;
}

/*
 * Create object `controls1' in the specified instance.
 */
Xv_opaque
altfontsel_baseframe_controls1_create(altfontsel_baseframe_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, WIN_EXTEND_TO_EDGE,
		XV_HEIGHT, WIN_EXTEND_TO_EDGE,
		WIN_BORDER, FALSE,
		NULL);
	return obj;
}

/*
 * Create object `list1' in the specified instance.
 */
Xv_opaque
altfontsel_baseframe_list1_create(altfontsel_baseframe_objects *ip, Xv_opaque owner)
{
	Xv_opaque	obj;
	
	obj = xv_create(owner, PANEL_LIST,
		XV_KEY_DATA, INSTANCE, ip,
		XV_X, 52,
		XV_Y, 30,
		PANEL_LIST_WIDTH, 200,
		PANEL_LIST_DISPLAY_ROWS, 4,
		PANEL_LABEL_STRING, "Typeface:",
		PANEL_LAYOUT, PANEL_HORIZONTAL,
		PANEL_READ_ONLY, TRUE,
		PANEL_CHOOSE_ONE, TRUE,
		PANEL_CHOOSE_NONE, FALSE,
		PANEL_LIST_STRINGS,
			"Courier",
			"Helvetica",
			"Lucida",
			"Times",
			"Zapf Chancery",
			NULL,
		PANEL_LIST_SELECT, 0, TRUE,
		NULL);
	return obj;
}

/*
 * Create object `ApplyButton' in the specified instance.
 */
Xv_opaque
altfontsel_baseframe_ApplyButton_create(altfontsel_baseframe_objects *ip, Xv_opaque owner)
{
	extern void		do_ApplyButton(Panel_item, Event *);
	Xv_opaque	obj;
	
	obj = xv_create(owner, PANEL_BUTTON,
		XV_KEY_DATA, INSTANCE, ip,
		XV_X, 131,
		XV_Y, 140,
		PANEL_LABEL_STRING, "Apply",
		PANEL_NOTIFY_PROC, do_ApplyButton,
		NULL);
	return obj;
}

/*
 * Create object `CancelButton' in the specified instance.
 */
Xv_opaque
altfontsel_baseframe_CancelButton_create(altfontsel_baseframe_objects *ip, Xv_opaque owner)
{
	extern void		do_CancelButton(Panel_item, Event *);
	Xv_opaque	obj;
	
	obj = xv_create(owner, PANEL_BUTTON,
		XV_KEY_DATA, INSTANCE, ip,
		XV_X, 207,
		XV_Y, 140,
		PANEL_LABEL_STRING, "Cancel",
		PANEL_NOTIFY_PROC, do_CancelButton,
		NULL);
	return obj;
}

