/* $Id: main.c,v 1.4 93/04/08 07:20:45 bert Exp Locker: bert $ */

/*****   SIPB project Q   (X interface)   *****/
/*** being developed by someone ***/

#include <X11/StringDefs.h>
#include <X11/Intrinsic.h>
#include "main.h"
#include "callback.h"

Widget appShell;
XtAppContext app;

/****   main   ****/

void main ( argc, argv )
    int    argc;
    char*  argv[];
{
    /*  intialize Toolkit creating the application shell */
    appShell= XtAppInitialize(&app, "Xq", NULL, 0, &argc, argv, NULL, NULL, 0);

    /*  register all widget classes and constructors, initialize stuff */
    XqSetUpStuff ( app );

    /*  create widget tree below toplevel shell using Xrm database */
    WcWidgetCreation ( appShell );

    /*  realize the widget tree */
    XtRealizeWidget ( appShell );

    /* get the application resources */

#define XqAppResCount(ar) sizeof(ar)/sizeof(XtResource)

    /*  finally, enter the main application loop */
    XtAppMainLoop ( app );
}
