1: /* 2: * README: Portions of this file are merged at file generation 3: * time. Edits can be made *only* in between specified code blocks, look 4: * for keywords <Begin user code> and <End user code>. 5: */ 6: /* 7: * Generated by the ICS Builder Xcessory (BX). 8: * 9: * Builder Xcessory 4.0 10: * Code Generator Xcessory 2.0 (09/09/96) 11: * 12: */ 13: /* 14: * Motif required Headers 15: */ 16: #include <X11/StringDefs.h> 17: #include <Xm/Xm.h> 18: #include <Xm/DialogS.h> 19: #if (XmVersion >= 1002) 20: #include <Xm/RepType.h> 21: #endif 22: #include <Xm/MwmUtil.h> 23: 24: /* 25: * Globally included information. 26: */ 27: 28: 29: /* 30: * Headers for classes used in this program 31: */ 32: 33: /* 34: * Common constant and pixmap declarations. 35: */ 36: #include "hsplicer-creation-c.h" 37: 38: /* 39: * Convenience functions from utilities file. 40: */ 41: extern void RegisterBxConverters(); 42: extern XtPointer CONVERT(); 43: extern XtPointer DOUBLE(); 44: extern XtPointer SINGLE(); 45: extern void MENU_POST(); 46: extern Pixmap XPM_PIXMAP(); 47: extern void SET_BACKGROUND_COLOR(); 48: 49: /* Begin user code block <globals> */ 50: /* End user code block <globals> */ 51: 52: /* 53: * Change this line via the Output Application Names Dialog. 54: */ 55: #define BX_APP_CLASS "BuilderProduct" 56: 57: int main(argc, argv) 58: int argc; 59: char **argv; 60: { 61: Widget parent; 62: XtAppContext app; 63: Arg args[256]; 64: Cardinal ac; 65: Boolean argok=False; 66: Widget topLevelShellHelp; 67: Widget formHelp; 68: 69: /* Begin user code block <declarations> */ 70: /* End user code block <declarations> */ 71: 72: /* 73: * The applicationShell is created as an unrealized 74: * parent for multiple topLevelShells. The topLevelShells 75: * are created as popup children of the applicationShell. 76: * This is a recommendation of Paul Asente & Ralph Swick in 77: * _X_Window_System_Toolkit_ p. 677. 78: */ 79: 80: parent = XtVaAppInitialize ( &app, BX_APP_CLASS, NULL, 0, 81: #ifndef XlibSpecificationRelease 82: (Cardinal *) &argc, 83: #else 84: #if (XlibSpecificationRelease>=5) 85: &argc, 86: #else 87: (Cardinal *) &argc, 88: #endif 89: #endif 90: argv, NULL, 91: NULL ); 92: 93: RegisterBxConverters(app); 94: #if (XmVersion >= 1002) 95: XmRepTypeInstallTearOffModelConverter(); 96: #endif 97: 98: /* Begin user code block <create_shells> */ 99: /* End user code block <create_shells> */ 100: 101: /* 102: * Create classes and widgets used in this program. 103: */ 104: 105: /* Begin user code block <create_topLevelShellHelp> */ 106: /* End user code block <create_topLevelShellHelp> */ 107: 108: ac = 0; 109: XtSetArg(args[ac], XmNdefaultFontList, 110: CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1=help_default_font", 111: XmRFontList, 0, &argok)); if (argok) ac++; 112: XtSetArg(args[ac], XmNx, 815); ac++; 113: XtSetArg(args[ac], XmNy, 278); ac++; 114: XtSetArg(args[ac], XmNwidth, 614); ac++; 115: XtSetArg(args[ac], XmNheight, 658); ac++; 116: topLevelShellHelp = XtCreatePopupShell("topLevelShellHelp", 117: topLevelShellWidgetClass, 118: parent, 119: args, 120: ac); 121: formHelp = (Widget)CreateformHelp(topLevelShellHelp); 122: XtManageChild(formHelp); 123: XtPopup(XtParent(formHelp), XtGrabNone); 124: 125: /* Begin user code block <app_procedures> */ 126: /* End user code block <app_procedures> */ 127: 128: /* Begin user code block <main_loop> */ 129: /* End user code block <main_loop> */ 130: 131: XtAppMainLoop(app); 132: 133: /* 134: * A return value regardless of whether or not the main loop ends. 135: */ 136: return(0); 137: } 138: