/*
 * Generated by the ICS builderXcessory (BX).
 *
 *
 * Builder Xcessory 1.0.1.
 *
 */
/*
 * REQUIRED MOTIF INCLUDE FILES
 */
#include <Xm/Xm.h>
#include <X11/Shell.h>
#include <Xm/DialogS.h>
/*
 * USER SUPPLIED INCLUDE FILES
 */


#include <stdio.h>
#include "widgets.h"

#include "params.h"
/* DEFINE SECTION */

/*
 * SHELL CALLBACK PROCEDURE DECLARATIONS
 */


/* GLOBAL WIDGET VARIABLES */
Widget Shell000;
Widget Lucyform;
Widget Createlucyform();
Widget Shell001;
Widget Shell002;
Widget Helpform;
Widget Createhelpform();
Widget DialogbulletinBoard;
Widget CreatedialogbulletinBoard();


/* more global widget variables */
Widget        lucyform;
Widget        lucymenuBar;
Widget        menuShell;
Widget        filepulldownMenu;
Widget        viewbrowserButton;
Widget        quitButton;
Widget        lucyButton;
Widget        fileButton;
Widget        menuShell1;
Widget        editpulldownMenu;
Widget        enterquestionButton;
Widget        sendquestionButton;
Widget        editButton;
Widget        menuShell2;
Widget        helppulldownMenu;
Widget        gethelpButton;
Widget        helpButton;
Widget        lucypanedWindow;
Widget        lucytopframe;
Widget        lucyscrolledWindow;
Widget        lucylist;
Widget        lucyscrolledWindow2;
Widget        lucybottomframe;
Widget        lucytext;

Widget	helpform;
Widget	helpmenuBar;
Widget	menuShell3;
Widget	exitpulldownMenu;
Widget	exitpushButton;
Widget	exithelpButton;
Widget	helppanedWindow;
Widget	helptopframe;
Widget	helpscrolledWindow;
Widget	helplist;
Widget	helpbottomframe;
Widget	helpscrolledWindow2;
Widget  helptext;

Widget	dialogbulletinBoard;
Widget	subjectlabel;
Widget	publishQuestionlabel;
Widget	personalReplylabel;
Widget	sendReplytolabel;
Widget	subjecttext;
Widget	persReplytext;
Widget	publishradioBox;
Widget	publishYestoggle;
Widget	publishNotoggle;
Widget	replyradioBox;
Widget	replyYestoggle;
Widget	replyNotoggle;
Widget	messageframe;
Widget	messageBox;



/* MAIN PROGRAM */
main(argc, argv)
int argc;
char **argv;
{
    Display *display;
    Arg 	args[256];
    int 	argcnt;
    XtAppContext context;

    XtToolkitInitialize();
    context = XtCreateApplicationContext();
    display = XtOpenDisplay(context, 0, BX_APP_NAME, BX_APP_CLASS,
        0, 0, &argc, argv);
    if(display == NULL)
    {
	XtWarning("cannot open display");
	exit(1);
    }
    XmRegisterConverters();
    argcnt = 0;
    XtSetArg(args[argcnt], XmNx, 71); argcnt++;
    XtSetArg(args[argcnt], XmNy, 322); argcnt++;
    Shell000 = XtAppCreateShell( BX_APP_NAME, BX_APP_CLASS,
        applicationShellWidgetClass, display, args, argcnt);

    argcnt = 0;
    XtSetArg(args[argcnt], XmNx, 541); argcnt++;
    XtSetArg(args[argcnt], XmNy, 485); argcnt++;
    XtSetArg(args[argcnt], XmNwidth, 400); argcnt++;
    XtSetArg(args[argcnt], XmNheight, 400); argcnt++;
    XtSetArg(args[argcnt], XmNtitle, HELPNAME); argcnt++;
    
/*    Shell001 = XtAppCreateShell( BX_APP_NAME, BX_APP_CLASS,
        applicationShellWidgetClass, display, args, argcnt); */
    Shell001 = XtCreatePopupShell("popuphelp", topLevelShellWidgetClass,
				  Shell000, args, argcnt);

    argcnt = 0;
    XtSetArg(args[argcnt], XmNallowShellResize, False); argcnt++;
    XtSetArg(args[argcnt], XmNx, 37); argcnt++;
    XtSetArg(args[argcnt], XmNy, 212); argcnt++;
/*    Shell002 = XtAppCreateShell( BX_APP_NAME, BX_APP_CLASS,
        applicationShellWidgetClass, display, args, argcnt);  */

    /* just realized that I don't need to create an explicit shell */
/*    Shell002 = XtCreatePopupShell("dialog", xmDialogShellWidgetClass,
				  Shell000, args, argcnt);  */
    
    
    Lucyform = Createlucyform(Shell000);
    XtManageChild(Lucyform);
    Helpform = Createhelpform(Shell001);
    XtManageChild(Helpform);

    DialogbulletinBoard = CreatedialogbulletinBoard(Shell000);
/*    XtManageChild(DialogbulletinBoard); */
    
    
    XtRealizeWidget(Shell000);
/*    XtRealizeWidget(Shell001);  */
/*    XtRealizeWidget(Shell002);  */

    XtAppMainLoop(context);
}
