home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xhyper10.zip / XHyper_v1.0 / xapp / main.c < prev    next >
C/C++ Source or Header  |  1992-11-05  |  3KB  |  104 lines

  1. /*
  2.  * Generated by the ICS builderXcessory (BX).
  3.  *
  4.  *
  5.  * Builder Xcessory 1.0.1.
  6.  *
  7.  */
  8. /*
  9.  * REQUIRED MOTIF INCLUDE FILES
  10.  */
  11. #include <Xm/Xm.h>
  12. #include <X11/Shell.h>
  13. #include <Xm/DialogS.h>
  14. /*
  15.  * USER SUPPLIED INCLUDE FILES
  16.  */
  17.  
  18. /* DEFINE SECTION */
  19. #define BX_APP_NAME "builderProduct"
  20. #define BX_APP_CLASS "BuilderProduct"
  21.  
  22. /*
  23.  * SHELL CALLBACK PROCEDURE DECLARATIONS
  24.  */
  25.  
  26.  
  27. /* GLOBAL WIDGET VARIABLES */
  28. Widget Shell000;
  29. Widget Mmlpanel;
  30. Widget Createmmlpanel();
  31. Widget Shell001;
  32. Widget Ivpanel;
  33. Widget Createivpanel();
  34. Widget Shell002;
  35. Widget Xwinpanel;
  36. Widget Createxwinpanel();
  37. Widget Shell003;
  38. Widget Form;
  39. Widget Createform();
  40.  
  41. /* MAIN PROGRAM */
  42. Display *theDisplay;
  43.  
  44. main(argc, argv)
  45. int argc;
  46. char **argv;
  47. {
  48.     Arg     args[256];
  49.     int     argcnt;
  50.     XtAppContext context;
  51.  
  52.     XtToolkitInitialize();
  53.     context = XtCreateApplicationContext();
  54.     theDisplay = XtOpenDisplay(context, 0, BX_APP_NAME, BX_APP_CLASS,
  55.         0, 0, &argc, argv);
  56.     if(theDisplay == NULL)
  57.     {
  58.     XtWarning("cannot open display");
  59.     exit(1);
  60.     }
  61.     XmRegisterConverters();
  62.     argcnt = 0;
  63.     XtSetArg(args[argcnt], XmNborderWidth, (Dimension)0); argcnt++;
  64.     XtSetArg(args[argcnt], XmNgeometry, "+400+170"); argcnt++;
  65.     XtSetArg(args[argcnt], XmNtitle, "MML"); argcnt++;
  66.     XtSetArg(args[argcnt], XmNx, 441); argcnt++;
  67.     XtSetArg(args[argcnt], XmNy, 205); argcnt++;
  68.     Shell000 = XtAppCreateShell( BX_APP_NAME, BX_APP_CLASS,
  69.         applicationShellWidgetClass, theDisplay, args, argcnt);
  70.     argcnt = 0;
  71.     XtSetArg(args[argcnt], XmNgeometry, "+700+170"); argcnt++;
  72.     XtSetArg(args[argcnt], XmNtitle, "InterViews"); argcnt++;
  73.     XtSetArg(args[argcnt], XmNiconName, ""); argcnt++;
  74.     XtSetArg(args[argcnt], XmNx, 717); argcnt++;
  75.     XtSetArg(args[argcnt], XmNy, 205); argcnt++;
  76.     Shell001 = XtAppCreateShell( BX_APP_NAME, BX_APP_CLASS,
  77.         applicationShellWidgetClass, theDisplay, args, argcnt);
  78.     argcnt = 0;
  79.     XtSetArg(args[argcnt], XmNgeometry, "+100+170"); argcnt++;
  80.     XtSetArg(args[argcnt], XmNtitle, "X Windows"); argcnt++;
  81.     XtSetArg(args[argcnt], XmNx, 114); argcnt++;
  82.     XtSetArg(args[argcnt], XmNy, 203); argcnt++;
  83.     Shell002 = XtAppCreateShell( BX_APP_NAME, BX_APP_CLASS,
  84.         applicationShellWidgetClass, theDisplay, args, argcnt);
  85.     argcnt = 0;
  86.     XtSetArg(args[argcnt], XmNgeometry, "+200+500"); argcnt++;
  87.     XtSetArg(args[argcnt], XmNtitle, "Main Shell"); argcnt++;
  88.     XtSetArg(args[argcnt], XmNx, 218); argcnt++;
  89.     XtSetArg(args[argcnt], XmNy, 528); argcnt++;
  90.     Shell003 = XtAppCreateShell( BX_APP_NAME, BX_APP_CLASS,
  91.         applicationShellWidgetClass, theDisplay, args, argcnt);
  92.     Mmlpanel = Createmmlpanel(Shell000);
  93.     XtManageChild(Mmlpanel);
  94.     Ivpanel = Createivpanel(Shell001);
  95.     XtManageChild(Ivpanel);
  96.     Xwinpanel = Createxwinpanel(Shell002);
  97.     XtManageChild(Xwinpanel);
  98.     Form = Createform(Shell003);
  99.     XtManageChild(Form);
  100.     XtRealizeWidget(Shell003);
  101.  
  102.     XtAppMainLoop(context);
  103. }
  104.