\File{main\-c.c},{07:36},{May 19 1991}
\L{\LB{\C{}\/*}}
\L{\LB{ * Generated by the ICS builderXcessory (BX).}}
\L{\LB{ *}}
\L{\LB{ *}}
\L{\LB{ * Builder Xcessory 1.0.1.}}
\L{\LB{ *}}
\L{\LB{ *\/\CE{}}}
\L{\LB{\C{}\/*}}
\L{\LB{ * REQUIRED MOTIF INCLUDE FILES}}
\L{\LB{ *\/\CE{}}}
\L{\LB{\K{\#include} \<Xm\/Xm.h\>}}
\L{\LB{\K{\#include} \<X11\/Shell.h\>}}
\L{\LB{\K{\#include} \<Xm\/DialogS.h\>}}
\L{\LB{\C{}\/*}}
\L{\LB{ * USER SUPPLIED INCLUDE FILES}}
\L{\LB{ *\/\CE{}}}
\L{\LB{}}
\L{\LB{}}
\L{\LB{\K{\#include} \<stdio.h\>}}
\L{\LB{\K{\#include} \S{}\"widgets.h\"\SE{}}}
\L{\LB{}}
\L{\LB{\K{\#include} \S{}\"params.h\"\SE{}}}
\L{\LB{\C{}\/* DEFINE SECTION *\/\CE{}}}
\L{\LB{}}
\L{\LB{\C{}\/*}}
\L{\LB{ * SHELL CALLBACK PROCEDURE DECLARATIONS}}
\L{\LB{ *\/\CE{}}}
\L{\LB{}}
\L{\LB{}}
\L{\LB{\C{}\/* GLOBAL WIDGET VARIABLES *\/\CE{}}}
\L{\LB{Widget Shell000;}}
\L{\LB{Widget Lucyform;}}
\L{\LB{Widget Createlucyform();}}
\L{\LB{Widget Shell001;}}
\L{\LB{Widget Shell002;}}
\L{\LB{Widget Helpform;}}
\L{\LB{Widget Createhelpform();}}
\L{\LB{Widget DialogbulletinBoard;}}
\L{\LB{Widget CreatedialogbulletinBoard();}}
\L{\LB{}}
\L{\LB{}}
\L{\LB{\C{}\/* more global widget variables *\/\CE{}}}
\L{\LB{Widget        lucyform;}}
\L{\LB{Widget        lucymenuBar;}}
\L{\LB{Widget        menuShell;}}
\L{\LB{Widget        filepulldownMenu;}}
\L{\LB{Widget        viewbrowserButton;}}
\L{\LB{Widget        quitButton;}}
\L{\LB{Widget        lucyButton;}}
\L{\LB{Widget        fileButton;}}
\L{\LB{Widget        menuShell1;}}
\L{\LB{Widget        editpulldownMenu;}}
\L{\LB{Widget        enterquestionButton;}}
\L{\LB{Widget        sendquestionButton;}}
\L{\LB{Widget        editButton;}}
\L{\LB{Widget        menuShell2;}}
\L{\LB{Widget        helppulldownMenu;}}
\L{\LB{Widget        gethelpButton;}}
\L{\LB{Widget        helpButton;}}
\L{\LB{Widget        lucypanedWindow;}}
\L{\LB{Widget        lucytopframe;}}
\L{\LB{Widget        lucyscrolledWindow;}}
\L{\LB{Widget        lucylist;}}
\L{\LB{Widget        lucyscrolledWindow2;}}
\L{\LB{Widget        lucybottomframe;}}
\L{\LB{Widget        lucytext;}}
\L{\LB{}}
\L{\LB{Widget}\Tab{8}{helpform;}}
\L{\LB{Widget}\Tab{8}{helpmenuBar;}}
\L{\LB{Widget}\Tab{8}{menuShell3;}}
\L{\LB{Widget}\Tab{8}{exitpulldownMenu;}}
\L{\LB{Widget}\Tab{8}{exitpushButton;}}
\L{\LB{Widget}\Tab{8}{exithelpButton;}}
\L{\LB{Widget}\Tab{8}{helppanedWindow;}}
\L{\LB{Widget}\Tab{8}{helptopframe;}}
\L{\LB{Widget}\Tab{8}{helpscrolledWindow;}}
\L{\LB{Widget}\Tab{8}{helplist;}}
\L{\LB{Widget}\Tab{8}{helpbottomframe;}}
\L{\LB{Widget}\Tab{8}{helpscrolledWindow2;}}
\L{\LB{Widget  helptext;}}
\L{\LB{}}
\L{\LB{Widget}\Tab{8}{dialogbulletinBoard;}}
\L{\LB{Widget}\Tab{8}{subjectlabel;}}
\L{\LB{Widget}\Tab{8}{publishQuestionlabel;}}
\L{\LB{Widget}\Tab{8}{personalReplylabel;}}
\L{\LB{Widget}\Tab{8}{sendReplytolabel;}}
\L{\LB{Widget}\Tab{8}{subjecttext;}}
\L{\LB{Widget}\Tab{8}{persReplytext;}}
\L{\LB{Widget}\Tab{8}{publishradioBox;}}
\L{\LB{Widget}\Tab{8}{publishYestoggle;}}
\L{\LB{Widget}\Tab{8}{publishNotoggle;}}
\L{\LB{Widget}\Tab{8}{replyradioBox;}}
\L{\LB{Widget}\Tab{8}{replyYestoggle;}}
\L{\LB{Widget}\Tab{8}{replyNotoggle;}}
\L{\LB{Widget}\Tab{8}{messageframe;}}
\L{\LB{Widget}\Tab{8}{messageBox;}}
\L{\LB{}}
\L{\LB{}}
\L{\LB{}}
\L{\LB{\C{}\/* MAIN PROGRAM *\/\CE{}}}
\L{\LB{\Proc{main}main(argc, argv)}}
\L{\LB{\K{int} argc;}}
\L{\LB{\K{char} **argv;}}
\L{\LB{\{}}
\L{\LB{    Display *display;}}
\L{\LB{    Arg }\Tab{16}{args[256];}}
\L{\LB{    \K{int} }\Tab{16}{argcnt;}}
\L{\LB{    XtAppContext context;}}
\L{\LB{}}
\L{\LB{    XtToolkitInitialize();}}
\L{\LB{    context = XtCreateApplicationContext();}}
\L{\LB{    display = XtOpenDisplay(context, 0, BX\_APP\_NAME, BX\_APP\_CLASS,}}
\L{\LB{        0, 0, \&argc, argv);}}
\L{\LB{    \K{if}(display == NULL)}}
\L{\LB{    \{}}
\L{\LB{}\Tab{8}{XtWarning(\S{}\"cannot open display\"\SE{});}}
\L{\LB{}\Tab{8}{exit(1);}}
\L{\LB{    \}}}
\L{\LB{    XmRegisterConverters();}}
\L{\LB{    argcnt = 0;}}
\L{\LB{    XtSetArg(args[argcnt], XmNx, 71); argcnt++;}}
\L{\LB{    XtSetArg(args[argcnt], XmNy, 322); argcnt++;}}
\L{\LB{    Shell000 = XtAppCreateShell( BX\_APP\_NAME, BX\_APP\_CLASS,}}
\L{\LB{        applicationShellWidgetClass, display, args, argcnt);}}
\L{\LB{}}
\L{\LB{    argcnt = 0;}}
\L{\LB{    XtSetArg(args[argcnt], XmNx, 541); argcnt++;}}
\L{\LB{    XtSetArg(args[argcnt], XmNy, 485); argcnt++;}}
\L{\LB{    XtSetArg(args[argcnt], XmNwidth, 400); argcnt++;}}
\L{\LB{    XtSetArg(args[argcnt], XmNheight, 400); argcnt++;}}
\L{\LB{    XtSetArg(args[argcnt], XmNtitle, HELPNAME); argcnt++;}}
\L{\LB{    }}
\L{\LB{\C{}\/*    Shell001 = XtAppCreateShell( BX\_APP\_NAME, BX\_APP\_CLASS,}}
\L{\LB{        applicationShellWidgetClass, display, args, argcnt); *\/\CE{}}}
\L{\LB{    Shell001 = XtCreatePopupShell(\S{}\"popuphelp\"\SE{}, topLevelShellWidgetClass,}}
\L{\LB{}\Tab{32}{  Shell000, args, argcnt);}}
\L{\LB{}}
\L{\LB{    argcnt = 0;}}
\L{\LB{    XtSetArg(args[argcnt], XmNallowShellResize, False); argcnt++;}}
\L{\LB{    XtSetArg(args[argcnt], XmNx, 37); argcnt++;}}
\L{\LB{    XtSetArg(args[argcnt], XmNy, 212); argcnt++;}}
\L{\LB{\C{}\/*    Shell002 = XtAppCreateShell( BX\_APP\_NAME, BX\_APP\_CLASS,}}
\L{\LB{        applicationShellWidgetClass, display, args, argcnt);  *\/\CE{}}}
\L{\LB{}}
\L{\LB{    \C{}\/* just realized that I don\'t need to create an explicit shell *\/\CE{}}}
\L{\LB{\C{}\/*    Shell002 = XtCreatePopupShell(\"dialog\", xmDialogShellWidgetClass,}}
\L{\LB{}\Tab{32}{  Shell000, args, argcnt);  *\/\CE{}}}
\L{\LB{    }}
\L{\LB{    }}
\L{\LB{    Lucyform = Createlucyform(Shell000);}}
\L{\LB{    XtManageChild(Lucyform);}}
\L{\LB{    Helpform = Createhelpform(Shell001);}}
\L{\LB{    XtManageChild(Helpform);}}
\L{\LB{}}
\L{\LB{    DialogbulletinBoard = CreatedialogbulletinBoard(Shell000);}}
\L{\LB{\C{}\/*    XtManageChild(DialogbulletinBoard); *\/\CE{}}}
\L{\LB{    }}
\L{\LB{    }}
\L{\LB{    XtRealizeWidget(Shell000);}}
\L{\LB{\C{}\/*    XtRealizeWidget(Shell001);  *\/\CE{}}}
\L{\LB{\C{}\/*    XtRealizeWidget(Shell002);  *\/\CE{}}}
\L{\LB{}}
\L{\LB{    XtAppMainLoop(context);}}
\L{\LB{\}}}
