Create Xref-Html Frames                    Remove All Frames
file:d:/code/LRC/Splicer/splicer_code_ver2.2/splicer-creation-c.c        (Tue Mar 14 16:29:02 2000 )


   1: /*
   2:  * WARNING: This file is overwritten at code generation time.
   3:  * Any changes to this file will be lost.
   4:  */
   5: /*
   6:  * Generated by the ICS Builder Xcessory (BX).
   7:  *
   8:  * Builder Xcessory 4.0
   9:  * Code Generator Xcessory 2.0 (09/09/96)
  10:  *
  11:  */
  12: #include <Xm/Xm.h>
  13: #include <Xm/DialogS.h>
  14: #include <Xm/MwmUtil.h>
  15: #include <Xm/Form.h>
  16: #include <Xm/ArrowB.h>
  17: #include <Xm/Label.h>
  18: #include <Xm/Separator.h>
  19: #include <Xm/PushB.h>
  20: #include <Xm/TextF.h>
  21: #include <Xm/DrawingA.h>
  22: #include <Xm/ScrolledW.h>
  23: #include <Xm/Text.h>
  24: #include <Xm/RowColumn.h>
  25: #include <Xm/Scale.h>
  26: #include <Xm/ToggleB.h>
  27: #include <Xm/CascadeB.h>
  28: #include <Xm/List.h>
  29: #include <Xm/Frame.h>
  30: #include <Xm/MessageB.h>
  31: 
  32: /*
  33:  * Global declarations are now stored in the header file.
  34:  *
  35:  * If DECLARE_BX_GLOBALS is defined then this header file
  36:  * declares the globals, otherwise it just externs them.
  37:  */
  38: #define DECLARE_BX_GLOBALS
  39: 
  40: /*
  41:  * Globally included information.
  42:  */
  43: #include "splicer_vars.h"
  44: #include "EquationMenu.h"
  45: 
  46: /*
  47:  * Common constant and pixmap declarations.
  48:  */
  49: #include "splicer-creation-c.h"
  50: 
  51: /*
  52:  * Convenience functions from utilities file.
  53:  */
  54: extern void RegisterBxConverters();
  55: extern XtPointer CONVERT();
  56: extern XtPointer DOUBLE();
  57: extern XtPointer SINGLE();
  58: extern void MENU_POST();
  59: extern Pixmap XPM_PIXMAP();
  60: extern void SET_BACKGROUND_COLOR();
  61: 
  62: /*
  63:  * Declarations for callbacks and handlers.
  64:  */
  65: void DrawDepthOffsetCreate();
  66: void DrawDepthOffsetDestroy();
  67: void DrawDepthOffsetUp();
  68: void DrawDepthOffsetDown();
  69: void TextReportCreate();
  70: void TextReportDestroy();
  71: void TextReportUp();
  72: void TextReportDown();
  73: void TopLevelDestroy();
  74: void DepthOffsetArrowDown();
  75: void DepthOffsetArrowUp();
  76: void SplicerHelpCB();
  77: void DepthOffsetDismiss();
  78: void DepthOffsetTextActivate();
  79: void SpCreateCB();
  80: void DrawDrawingAreaDepthOffset();
  81: void SpCreateReportCB();
  82: void ScaleCoreChanged();
  83: void ScaleCoreDragged();
  84: void LockSlider();
  85: void DrawDrawingAreaEdit();
  86: void DrawingAreaViewScaleChange();
  87: void DrawingAreaViewScaleDrag();
  88: void DrawDrawingAreaView();
  89: void DrawingAreaEditScaleChange();
  90: void DrawingAreaEditScaleDrag();
  91: void DataSetActivate();
  92: void SpLaunchSeekerCB();
  93: void VerifyExitCB();
  94: void PreviewInput();
  95: void SpOpenDataCB();
  96: void OpenStrat();
  97: void OpenSplicerTable();
  98: void SaveCullTable();
  99: void SaveAffineTable();
 100: void SaveSpliceTable();
 101: void SaveStrat();
 102: void SaveData();
 103: void SaveSplice();
 104: void Clear();
 105: void Composite();
 106: void ApplyAffineSplice();
 107: void Splicing();
 108: void SpOpenCullCB();
 109: void SpOpenSmoothCB();
 110: void SpOpenDecimateCB();
 111: void DetrendActivate();
 112: void CustomDisplay();
 113: void ViewDepthOffset();
 114: void ViewAgeDepth();
 115: void SpViewReportCB();
 116: void OverwriteFile();
 117: void OverwriteCancel();
 118: void SpCancelCB();
 119: void SpOpenOKCB();
 120: void SpOpenFilterCB();
 121: void SpOpenAffineCB();
 122: void OpenFormatMST95Active();
 123: void OpenFormatTKActive();
 124: void OpenFormatODPOtherActive();
 125: void OpenFormatOSUSCATActive();
 126: void OpenFormatJanusActive();
 127: void SpOpenDirectoriesCB();
 128: void SpOpenDeselectCB();
 129: void SpOpenSelectCB();
 130: void SpSmoothOKCB();
 131: void BxVerifyNumericCB();
 132: void SpSmoothMethodsCB();
 133: void SpDecimateOKCB();
 134: void SelectAffineTableFileName();
 135: void SpUseAffineOKCB();
 136: void SpUseAffineCB();
 137: void SpDontUseAffineCB();
 138: void SelectCullTableFilename();
 139: void SpVerifyFloatCB();
 140: void UseCullTable();
 141: void DontUseCullTable();
 142: void UseCullParameters();
 143: void DontUseCullParameters();
 144: void SpCullOKCB();
 145: void SpCullJoinCB();
 146: void SpOpenInfoOKCB();
 147: void TieClear();
 148: void TieShiftUndo();
 149: void TieDismiss();
 150: void TieShift();
 151: void DrawDrawingAreaTieCorrelation();
 152: void TieCorrelate();
 153: void TieShiftToBestCorr();
 154: void TieShiftToTie();
 155: void TieShiftToGiven();
 156: void TieShiftAll();
 157: void TieShiftCore();
 158: void DisplayOK();
 159: void CustomColor();
 160: void ScaleDragYes();
 161: void ScaleDragNo();
 162: void DisplayPlotUnsmooth();
 163: void DisplayPlotSmooth();
 164: void DisplayPlotBoth();
 165: void DisplayDepthScale();
 166: void DisplayDepthTic();
 167: void DisplayVarAxisLen();
 168: void DisplayVarMin();
 169: void DisplayVarMax();
 170: void SuggestTies();
 171: void SpliceClearGrab();
 172: void SpliceUndoLast();
 173: void AppendSplice();
 174: void SpliceToTie();
 175: void SpliceDismiss();
 176: void SpliceCorrelate();
 177: void SpliceClearTie();
 178: void GetSelectCore();
 179: void DrawDrawingAreaCompCorrelation();
 180: void SaveColorSettingsAsCustome();
 181: void ColorCancel();
 182: void ColorApply();
 183: void CustomeColorDismiss();
 184: void ColorSetODP();
 185: void ColorSetEarth();
 186: void ColorSetCorporate();
 187: void ColorSetSantaFe();
 188: void ColorSetMaritime();
 189: void ColorSetCustome();
 190: void ColorSedRate();
 191: void ColorDatumLocation();
 192: void ColorTimeSeries();
 193: void ColorAgeDepthHandPick();
 194: void ColorAgeDepthLine();
 195: void ColorDepthOffsetLine();
 196: void ColorDepthOffsetHole1();
 197: void ColorDepthOffsetHole2();
 198: void ColorDepthOffsetHole3();
 199: void ColorDepthOffsetHole4();
 200: void ColorDepthOffsetHole5();
 201: void ColorDepthOffsetHole6();
 202: void ColorDepthOffsetHole7();
 203: void ColorDepthOffsetHole8();
 204: void ColorDepthOffsetHole9();
 205: void ColorDepthOffsetHole10();
 206: void ColorDepthOffsetHole11();
 207: void ColorCorrCoef();
 208: void ColorBestCorr();
 209: void ColorDrawingAreaBG();
 210: void ColorDrawingAreaLabels();
 211: void ColorCorembsf();
 212: void ColorCoremcd();
 213: void ColorSmooth();
 214: void ColorSplice();
 215: void ColorSpliceLocation();
 216: void ColorTiePtFixed();
 217: void ColorTiePtShift();
 218: void ColorTieLine();
 219: void ColorOverlayInCorr();
 220: void ColorOverlayOutCorr();
 221: void ColorPaleomag();
 222: void ColorDiatom();
 223: void ColorRad();
 224: void ColorForam();
 225: void ColorNanno();
 226: void ColorSelected();
 227: void SpExitCB();
 228: void BxUnmanageCB();
 229: void SpClearWorkspaceCB();
 230: void TieSuggestionsDismiss();
 231: void SpMessageBoxInfoCB();
 232: void SaveDataFilter();
 233: void SpOutputOKCB();
 234: void SaveDataDirectory();
 235: void SpliceUndoCancel();
 236: void SpliceUndoOK();
 237: void OpenAgeSignal();
 238: void SpliceToAgeTextZoomActivate();
 239: void SpliceToAgeZoomDown();
 240: void SpliceToAgeZoomUp();
 241: void ScaleSpliceToAgeChange();
 242: void ScaleSpliceToAgeDrag();
 243: void SpliceToAgeDismiss();
 244: void DrawDrawingAreaSpliceToAge();
 245: void InvertTimeSeries();
 246: void SpliceToAgeRemoveTimeSeries();
 247: void SpliceToAgeClearTie();
 248: void SpliceToAgeAddTiedDatum();
 249: void SpliceToAgeRecorrelate();
 250: void DrawDrawingAreaTieToTimeSeriesCorr();
 251: void AgeDepthDismiss();
 252: void DrawDrawingAreaAgeDepth();
 253: void OpenAgeModel();
 254: void SaveSpliceToAge();
 255: void SaveAgeModel();
 256: void ViewSpliceVsAge();
 257: void AgeDepthClearAgeModelList();
 258: void RemoveSelectDatum();
 259: void AgeDepthAddHandPickToList();
 260: void AgeDepthDrag();
 261: void AgeDepthTextZoomActivate();
 262: void AgeDepthZoomDown();
 263: void AgeDepthZoomUp();
 264: void AgeDepthStratListMultSelect();
 265: void AgeDepthmbsf();
 266: void AgeDepthmcd();
 267: void WarnExitCancel();
 268: void WarnExitOK();
 269: void WarnClearCancel();
 270: void WarnClearOK();
 271: void OpenFormatsOtherCancel();
 272: void OpenFormatsOtherOK();
 273: void OpenFormatsOtherToggleArm1();
 274: void OpenFormatsOtherToggleArm2();
 275: void OpenFormatsOtherToggleArm3();
 276: void OpenFormatsOtherToggleArm4();
 277: void OpenFormatsOtherToggleArm5();
 278: void PreviewInputDismiss();
 279: void DirectToHelp();
 280: void FileSelectionCancel();
 281: void FileSelectionFilter();
 282: void FileSelectionOK();
 283: void FileSelectionFile();
 284: void FileSelectionDirectory();
 285: void FileSelectionPreviewInputCancel();
 286: void FileSelectionPreviewInputFilter();
 287: void FileSelectionPreviewInputOK();
 288: void FileSelectionFilePreviewInput();
 289: void FileSelectionDirectoryPreviewInput();
 290: void GenericTextDismiss();
 291: void JanusOK();
 292: 
 293: /*
 294:  * Create the formDepthOffset hierarchy of widgets.
 295:  */
 296: Widget
 297: CreateformDepthOffset(parent)
 298: Widget parent;
 299: {
 300:     Arg      args[256];
 301:     Cardinal ac=0;
 302:     Cardinal cdc=0;
 303:     Boolean  argok=False;
 304:     Widget   xmDialogShellDrawDEpthOffset;
 305:     Widget   arrowButtonDepthOffsetDown;
 306:     Widget   arrowButtonDepthOffsetUp;
 307:     Widget   labelDepthChange;
 308:     Widget   separatorDepthOffset;
 309:     Widget   pushButtonDepthOffsetHelp;
 310:     Widget   pushButtonDepthOffsetDismiss;
 311:     
 312:     /*
 313:      * Register the converters for the widgets.
 314:      */
 315:     RegisterBxConverters(XtWidgetToApplicationContext(parent)); 
 316:     XtInitializeWidgetClass(xmDialogShellWidgetClass);
 317:     XtInitializeWidgetClass(xmFormWidgetClass);
 318:     XtInitializeWidgetClass(xmArrowButtonWidgetClass);
 319:     XtInitializeWidgetClass(xmLabelWidgetClass);
 320:     XtInitializeWidgetClass(xmSeparatorWidgetClass);
 321:     XtInitializeWidgetClass(xmPushButtonWidgetClass);
 322:     XtInitializeWidgetClass(xmTextFieldWidgetClass);
 323:     XtInitializeWidgetClass(xmDrawingAreaWidgetClass);
 324:     
 325:     ac = 0;
 326:     XtSetArg(args[ac], XmNtitle, "Depth Offset"); ac++;
 327:     XtSetArg(args[ac], XmNinitialState, WithdrawnState); ac++;
 328:     XtSetArg(args[ac], XmNdefaultFontList, 
 329:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1=depthOffset_default_font", 
 330:         XmRFontList, 0, &argok)); if (argok) ac++;
 331:     XtSetArg(args[ac], XmNx, 1122); ac++;
 332:     XtSetArg(args[ac], XmNy, 853); ac++;
 333:     XtSetArg(args[ac], XmNwidth, 400); ac++;
 334:     XtSetArg(args[ac], XmNheight, 798); ac++;
 335:     xmDialogShellDrawDEpthOffset = XtCreatePopupShell("xmDialogShellDrawDEpthOffset",
 336:         xmDialogShellWidgetClass,
 337:         parent,
 338:         args, 
 339:         ac);
 340:     DrawDepthOffsetCreate(xmDialogShellDrawDEpthOffset, (XtPointer)0, (XtPointer)0);
 341:     XtAddCallback(xmDialogShellDrawDEpthOffset, XmNdestroyCallback, DrawDepthOffsetDestroy, (XtPointer)0);
 342:     XtAddCallback(xmDialogShellDrawDEpthOffset, XmNpopupCallback, DrawDepthOffsetUp, (XtPointer)0);
 343:     XtAddCallback(xmDialogShellDrawDEpthOffset, XmNpopdownCallback, DrawDepthOffsetDown, (XtPointer)0);
 344:     
 345:     ac = 0;
 346:     XtSetArg(args[ac], XmNautoUnmanage, False); ac++;
 347:     XtSetArg(args[ac], XmNresizePolicy, XmRESIZE_GROW); ac++;
 348:     XtSetArg(args[ac], XmNx, 1122); ac++;
 349:     XtSetArg(args[ac], XmNy, 853); ac++;
 350:     XtSetArg(args[ac], XmNwidth, 400); ac++;
 351:     XtSetArg(args[ac], XmNheight, 798); ac++;
 352:     formDepthOffset = XmCreateForm(xmDialogShellDrawDEpthOffset,
 353:         "formDepthOffset",
 354:         args, 
 355:         ac);
 356:     
 357:     ac = 0;
 358:     XtSetArg(args[ac], XmNarrowDirection, XmARROW_DOWN); ac++;
 359:     XtSetArg(args[ac], XmNx, 20); ac++;
 360:     XtSetArg(args[ac], XmNy, 730); ac++;
 361:     XtSetArg(args[ac], XmNwidth, 20); ac++;
 362:     XtSetArg(args[ac], XmNheight, 20); ac++;
 363:     arrowButtonDepthOffsetDown = XmCreateArrowButton(formDepthOffset,
 364:         "arrowButtonDepthOffsetDown",
 365:         args, 
 366:         ac);
 367:     XtManageChild(arrowButtonDepthOffsetDown);
 368:     XtAddCallback(arrowButtonDepthOffsetDown, XmNactivateCallback, DepthOffsetArrowDown, (XtPointer)0);
 369:     
 370:     ac = 0;
 371:     XtSetArg(args[ac], XmNx, 20); ac++;
 372:     XtSetArg(args[ac], XmNy, 710); ac++;
 373:     XtSetArg(args[ac], XmNwidth, 20); ac++;
 374:     XtSetArg(args[ac], XmNheight, 20); ac++;
 375:     arrowButtonDepthOffsetUp = XmCreateArrowButton(formDepthOffset,
 376:         "arrowButtonDepthOffsetUp",
 377:         args, 
 378:         ac);
 379:     XtManageChild(arrowButtonDepthOffsetUp);
 380:     XtAddCallback(arrowButtonDepthOffsetUp, XmNactivateCallback, DepthOffsetArrowUp, (XtPointer)0);
 381:     
 382:     ac = 0;
 383:     XtSetArg(args[ac], XmNborderWidth, 1); ac++;
 384:     XtSetArg(args[ac], XmNalignment, XmALIGNMENT_BEGINNING); ac++;
 385:     XtSetArg(args[ac], XmNfontList, 
 386:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
 387:         XmRFontList, 0, &argok)); if (argok) ac++;
 388:     XtSetArg(args[ac], XmNlabelString, 
 389:         CONVERT(parent, "", 
 390:         XmRXmString, 0, &argok)); if (argok) ac++;
 391:     XtSetArg(args[ac], XmNrecomputeSize, False); ac++;
 392:     XtSetArg(args[ac], XmNx, 12); ac++;
 393:     XtSetArg(args[ac], XmNy, 675); ac++;
 394:     XtSetArg(args[ac], XmNwidth, 374); ac++;
 395:     XtSetArg(args[ac], XmNheight, 25); ac++;
 396:     labelDepthOffsetCursorLocation = XmCreateLabel(formDepthOffset,
 397:         "labelDepthOffsetCursorLocation",
 398:         args, 
 399:         ac);
 400:     XtManageChild(labelDepthOffsetCursorLocation);
 401:     
 402:     ac = 0;
 403:     XtSetArg(args[ac], XmNfontList, 
 404:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
 405:         XmRFontList, 0, &argok)); if (argok) ac++;
 406:     XtSetArg(args[ac], XmNlabelString, 
 407:         CONVERT(parent, "Composite depth increase (%)", 
 408:         XmRXmString, 0, &argok)); if (argok) ac++;
 409:     XtSetArg(args[ac], XmNrecomputeSize, False); ac++;
 410:     XtSetArg(args[ac], XmNx, 125); ac++;
 411:     XtSetArg(args[ac], XmNy, 715); ac++;
 412:     XtSetArg(args[ac], XmNwidth, 210); ac++;
 413:     XtSetArg(args[ac], XmNheight, 30); ac++;
 414:     labelDepthChange = XmCreateLabel(formDepthOffset,
 415:         "labelDepthChange",
 416:         args, 
 417:         ac);
 418:     XtManageChild(labelDepthChange);
 419:     
 420:     ac = 0;
 421:     XtSetArg(args[ac], XmNx, 0); ac++;
 422:     XtSetArg(args[ac], XmNy, 748); ac++;
 423:     XtSetArg(args[ac], XmNwidth, 400); ac++;
 424:     XtSetArg(args[ac], XmNheight, 10); ac++;
 425:     separatorDepthOffset = XmCreateSeparator(formDepthOffset,
 426:         "separatorDepthOffset",
 427:         args, 
 428:         ac);
 429:     XtManageChild(separatorDepthOffset);
 430:     
 431:     ac = 0;
 432:     XtSetArg(args[ac], XmNfontList, 
 433:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
 434:         XmRFontList, 0, &argok)); if (argok) ac++;
 435:     XtSetArg(args[ac], XmNlabelString, 
 436:         CONVERT(parent, "Help", 
 437:         XmRXmString, 0, &argok)); if (argok) ac++;
 438:     XtSetArg(args[ac], XmNrecomputeSize, False); ac++;
 439:     XtSetArg(args[ac], XmNx, 284); ac++;
 440:     XtSetArg(args[ac], XmNy, 760); ac++;
 441:     XtSetArg(args[ac], XmNwidth, 50); ac++;
 442:     XtSetArg(args[ac], XmNheight, 30); ac++;
 443:     pushButtonDepthOffsetHelp = XmCreatePushButton(formDepthOffset,
 444:         "pushButtonDepthOffsetHelp",
 445:         args, 
 446:         ac);
 447:     XtManageChild(pushButtonDepthOffsetHelp);
 448:     XtAddCallback(pushButtonDepthOffsetHelp, XmNactivateCallback, SplicerHelpCB, (XtPointer)"SpDepthOffset.help");
 449:     
 450:     ac = 0;
 451:     XtSetArg(args[ac], XmNfontList, 
 452:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
 453:         XmRFontList, 0, &argok)); if (argok) ac++;
 454:     XtSetArg(args[ac], XmNlabelString, 
 455:         CONVERT(parent, "Dismiss", 
 456:         XmRXmString, 0, &argok)); if (argok) ac++;
 457:     XtSetArg(args[ac], XmNrecomputeSize, False); ac++;
 458:     XtSetArg(args[ac], XmNx, 76); ac++;
 459:     XtSetArg(args[ac], XmNy, 760); ac++;
 460:     XtSetArg(args[ac], XmNwidth, 80); ac++;
 461:     XtSetArg(args[ac], XmNheight, 30); ac++;
 462:     pushButtonDepthOffsetDismiss = XmCreatePushButton(formDepthOffset,
 463:         "pushButtonDepthOffsetDismiss",
 464:         args, 
 465:         ac);
 466:     XtManageChild(pushButtonDepthOffsetDismiss);
 467:     XtAddCallback(pushButtonDepthOffsetDismiss, XmNactivateCallback, DepthOffsetDismiss, (XtPointer)0);
 468:     
 469:     ac = 0;
 470:     XtSetArg(args[ac], XmNfontList, 
 471:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
 472:         XmRFontList, 0, &argok)); if (argok) ac++;
 473:     XtSetArg(args[ac], XmNeditable, True); ac++;
 474:     XtSetArg(args[ac], XmNcursorPositionVisible, False); ac++;
 475:     XtSetArg(args[ac], XmNx, 60); ac++;
 476:     XtSetArg(args[ac], XmNy, 710); ac++;
 477:     XtSetArg(args[ac], XmNwidth, 60); ac++;
 478:     XtSetArg(args[ac], XmNheight, 35); ac++;
 479:     textDepthChange = XmCreateTextField(formDepthOffset,
 480:         "textDepthChange",
 481:         args, 
 482:         ac);
 483:     XtManageChild(textDepthChange);
 484:     XtAddCallback(textDepthChange, XmNactivateCallback, DepthOffsetTextActivate, (XtPointer)0);
 485:     
 486:     ac = 0;
 487:     XtSetArg(args[ac], XmNx, 0); ac++;
 488:     XtSetArg(args[ac], XmNy, 0); ac++;
 489:     XtSetArg(args[ac], XmNwidth, 400); ac++;
 490:     XtSetArg(args[ac], XmNheight, 670); ac++;
 491:     drawingAreaDepthOffset = XmCreateDrawingArea(formDepthOffset,
 492:         "drawingAreaDepthOffset",
 493:         args, 
 494:         ac);
 495:     XtManageChild(drawingAreaDepthOffset);
 496:     SpCreateCB(drawingAreaDepthOffset, (XtPointer)&drawingAreaDepthOffset, (XtPointer)0);
 497:     XtAddCallback(drawingAreaDepthOffset, XmNresizeCallback, DrawDrawingAreaDepthOffset, (XtPointer)0);
 498:     XtAddCallback(drawingAreaDepthOffset, XmNexposeCallback, DrawDrawingAreaDepthOffset, (XtPointer)0);
 499:     
 500:     ac = 0;
 501:     XtSetArg(args[ac], XmNtopAttachment, XmATTACH_WIDGET); ac++;
 502:     XtSetArg(args[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
 503:     XtSetArg(args[ac], XmNleftAttachment, XmATTACH_WIDGET); ac++;
 504:     XtSetArg(args[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
 505:     XtSetArg(args[ac], XmNtopWidget, arrowButtonDepthOffsetUp); ac++;
 506:     XtSetArg(args[ac], XmNleftWidget, arrowButtonDepthOffsetUp); ac++;
 507:     XtSetArg(args[ac], XmNtopOffset, 0); ac++;
 508:     XtSetArg(args[ac], XmNbottomOffset, 0); ac++;
 509:     XtSetArg(args[ac], XmNleftOffset, -20); ac++;
 510:     XtSetArg(args[ac], XmNrightOffset, 0); ac++;
 511:     XtSetValues(arrowButtonDepthOffsetDown, args, ac);
 512:     
 513:     ac = 0;
 514:     XtSetArg(args[ac], XmNtopAttachment, XmATTACH_WIDGET); ac++;
 515:     XtSetArg(args[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
 516:     XtSetArg(args[ac], XmNleftAttachment, XmATTACH_NONE); ac++;
 517:     XtSetArg(args[ac], XmNrightAttachment, XmATTACH_WIDGET); ac++;
 518:     XtSetArg(args[ac], XmNtopWidget, textDepthChange); ac++;
 519:     XtSetArg(args[ac], XmNrightWidget, textDepthChange); ac++;
 520:     XtSetArg(args[ac], XmNtopOffset, -35); ac++;
 521:     XtSetArg(args[ac], XmNbottomOffset, 0); ac++;
 522:     XtSetArg(args[ac], XmNrightOffset, 20); ac++;
 523:     XtSetValues(arrowButtonDepthOffsetUp, args, ac);
 524:     
 525:     ac = 0;
 526:     XtSetArg(args[ac], XmNtopAttachment, XmATTACH_WIDGET); ac++;
 527:     XtSetArg(args[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
 528:     XtSetArg(args[ac], XmNleftAttachment, XmATTACH_POSITION); ac++;
 529:     XtSetArg(args[ac], XmNrightAttachment, XmATTACH_POSITION); ac++;
 530:     XtSetArg(args[ac], XmNtopWidget, drawingAreaDepthOffset); ac++;
 531:     XtSetArg(args[ac], XmNleftPosition, 3); ac++;
 532:     XtSetArg(args[ac], XmNrightPosition, 97); ac++;
 533:     XtSetArg(args[ac], XmNtopOffset, 5); ac++;
 534:     XtSetArg(args[ac], XmNbottomOffset, 0); ac++;
 535:     XtSetArg(args[ac], XmNleftOffset, 0); ac++;
 536:     XtSetValues(labelDepthOffsetCursorLocation, args, ac);
 537:     
 538:     ac = 0;
 539:     XtSetArg(args[ac], XmNtopAttachment, XmATTACH_WIDGET); ac++;
 540:     XtSetArg(args[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
 541:     XtSetArg(args[ac], XmNleftAttachment, XmATTACH_WIDGET); ac++;
 542:     XtSetArg(args[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
 543:     XtSetArg(args[ac], XmNtopWidget, textDepthChange); ac++;
 544:     XtSetArg(args[ac], XmNleftWidget, textDepthChange); ac++;
 545:     XtSetArg(args[ac], XmNtopOffset, -30); ac++;
 546:     XtSetArg(args[ac], XmNbottomOffset, 0); ac++;
 547:     XtSetArg(args[ac], XmNleftOffset, 5); ac++;
 548:     XtSetArg(args[ac], XmNrightOffset, 0); ac++;
 549:     XtSetValues(labelDepthChange, args, ac);
 550:     
 551:     ac = 0;
 552:     XtSetArg(args[ac], XmNtopAttachment, XmATTACH_NONE); ac++;
 553:     XtSetArg(args[ac], XmNbottomAttachment, XmATTACH_FORM); ac++;
 554:     XtSetArg(args[ac], XmNleftAttachment, XmATTACH_FORM); ac++;
 555:     XtSetArg(args[ac], XmNrightAttachment, XmATTACH_FORM); ac++;
 556:     XtSetArg(args[ac], XmNbottomOffset, 40); ac++;
 557:     XtSetArg(args[ac], XmNleftOffset, 0); ac++;
 558:     XtSetArg(args[ac], XmNrightOffset, 0); ac++;
 559:     XtSetValues(separatorDepthOffset, args, ac);
 560:     
 561:     ac = 0;
 562:     XtSetArg(args[ac], XmNtopAttachment, XmATTACH_NONE); ac++;
 563:     XtSetArg(args[ac], XmNbottomAttachment, XmATTACH_FORM); ac++;
 564:     XtSetArg(args[ac], XmNleftAttachment, XmATTACH_POSITION); ac++;
 565:     XtSetArg(args[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
 566:     XtSetArg(args[ac], XmNleftPosition, 71); ac++;
 567:     XtSetArg(args[ac], XmNbottomOffset, 8); ac++;
 568:     XtSetArg(args[ac], XmNrightOffset, 0); ac++;
 569:     XtSetValues(pushButtonDepthOffsetHelp, args, ac);
 570:     
 571:     ac = 0;
 572:     XtSetArg(args[ac], XmNtopAttachment, XmATTACH_NONE); ac++;
 573:     XtSetArg(args[ac], XmNbottomAttachment, XmATTACH_FORM); ac++;
 574:     XtSetArg(args[ac], XmNleftAttachment, XmATTACH_POSITION); ac++;
 575:     XtSetArg(args[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
 576:     XtSetArg(args[ac], XmNleftPosition, 19); ac++;
 577:     XtSetArg(args[ac], XmNbottomOffset, 8); ac++;
 578:     XtSetArg(args[ac], XmNrightOffset, 0); ac++;
 579:     XtSetValues(pushButtonDepthOffsetDismiss, args, ac);
 580:     
 581:     ac = 0;
 582:     XtSetArg(args[ac], XmNtopAttachment, XmATTACH_POSITION); ac++;
 583:     XtSetArg(args[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
 584:     XtSetArg(args[ac], XmNleftAttachment, XmATTACH_POSITION); ac++;
 585:     XtSetArg(args[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
 586:     XtSetArg(args[ac], XmNtopPosition, 89); ac++;
 587:     XtSetArg(args[ac], XmNleftPosition, 15); ac++;
 588:     XtSetArg(args[ac], XmNbottomOffset, 0); ac++;
 589:     XtSetArg(args[ac], XmNrightOffset, 0); ac++;
 590:     XtSetValues(textDepthChange, args, ac);
 591:     
 592:     ac = 0;
 593:     XtSetArg(args[ac], XmNleftAttachment, XmATTACH_FORM); ac++;
 594:     XtSetArg(args[ac], XmNrightAttachment, XmATTACH_FORM); ac++;
 595:     XtSetArg(args[ac], XmNtopOffset, 0); ac++;
 596:     XtSetArg(args[ac], XmNleftOffset, 0); ac++;
 597:     XtSetArg(args[ac], XmNrightOffset, 0); ac++;
 598:     XtSetValues(drawingAreaDepthOffset, args, ac);
 599:     
 600:     
 601:     /* Begin user code block <end_CreateformDepthOffset> */
 602:     /* End user code block <end_CreateformDepthOffset> */
 603:     return( formDepthOffset );
 604: }
 605: 
 606: /*
 607:  * Create the formTextReport hierarchy of widgets.
 608:  */
 609: Widget
 610: CreateformTextReport(parent)
 611: Widget parent;
 612: {
 613:     Arg      args[256];
 614:     Cardinal ac=0;
 615:     Cardinal cdc=0;
 616:     Boolean  argok=False;
 617:     Widget   xmDialogShellTextReport;
 618:     
 619:     /*
 620:      * Register the converters for the widgets.
 621:      */
 622:     RegisterBxConverters(XtWidgetToApplicationContext(parent)); 
 623:     XtInitializeWidgetClass(xmDialogShellWidgetClass);
 624:     XtInitializeWidgetClass(xmFormWidgetClass);
 625:     XtInitializeWidgetClass(xmScrolledWindowWidgetClass);
 626:     XtInitializeWidgetClass(xmTextWidgetClass);
 627:     
 628:     ac = 0;
 629:     XtSetArg(args[ac], XmNtitle, "Splicer Report"); ac++;
 630:     XtSetArg(args[ac], XmNdefaultFontList, 
 631:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1=report_default_font", 
 632:         XmRFontList, 0, &argok)); if (argok) ac++;
 633:     XtSetArg(args[ac], XmNx, 1090); ac++;
 634:     XtSetArg(args[ac], XmNy, 838); ac++;
 635:     XtSetArg(args[ac], XmNwidth, 600); ac++;
 636:     XtSetArg(args[ac], XmNheight, 620); ac++;
 637:     xmDialogShellTextReport = XtCreatePopupShell("xmDialogShellTextReport",
 638:         xmDialogShellWidgetClass,
 639:         parent,
 640:         args, 
 641:         ac);
 642:     TextReportCreate(xmDialogShellTextReport, (XtPointer)0, (XtPointer)0);
 643:     XtAddCallback(xmDialogShellTextReport, XmNdestroyCallback, TextReportDestroy, (XtPointer)0);
 644:     XtAddCallback(xmDialogShellTextReport, XmNpopupCallback, TextReportUp, (XtPointer)0);
 645:     XtAddCallback(xmDialogShellTextReport, XmNpopdownCallback, TextReportDown, (XtPointer)0);
 646:     
 647:     ac = 0;
 648:     XtSetArg(args[ac], XmNresizePolicy, XmRESIZE_GROW); ac++;
 649:     XtSetArg(args[ac], XmNx, 1090); ac++;
 650:     XtSetArg(args[ac], XmNy, 838); ac++;
 651:     XtSetArg(args[ac], XmNwidth, 600); ac++;
 652:     XtSetArg(args[ac], XmNheight, 620); ac++;
 653:     formTextReport = XmCreateForm(xmDialogShellTextReport,
 654:         "formTextReport",
 655:         args, 
 656:         ac);
 657:     
 658:     ac = 0;
 659:     XtSetArg(args[ac], XmNscrollingPolicy, XmAUTOMATIC); ac++;
 660:     XtSetArg(args[ac], XmNscrollBarDisplayPolicy, XmSTATIC); ac++;
 661:     XtSetArg(args[ac], XmNx, 0); ac++;
 662:     XtSetArg(args[ac], XmNy, 0); ac++;
 663:     XtSetArg(args[ac], XmNwidth, 600); ac++;
 664:     XtSetArg(args[ac], XmNheight, 620); ac++;
 665:     scrolledWindowReport = XmCreateScrolledWindow(formTextReport,
 666:         "scrolledWindowReport",
 667:         args, 
 668:         ac);
 669:     XtManageChild(scrolledWindowReport);
 670:     
 671:     ac = 0;
 672:     XtSetArg(args[ac], XmNsensitive, True); ac++;
 673:     XtSetArg(args[ac], XmNhighlightOnEnter, False); ac++;
 674:     XtSetArg(args[ac], XmNhighlightThickness, 0); ac++;
 675:     XtSetArg(args[ac], XmNshadowThickness, 0); ac++;
 676:     XtSetArg(args[ac], XmNmarginHeight, 0); ac++;
 677:     XtSetArg(args[ac], XmNmarginWidth, 0); ac++;
 678:     XtSetArg(args[ac], XmNeditMode, XmMULTI_LINE_EDIT); ac++;
 679:     XtSetArg(args[ac], XmNautoShowCursorPosition, True); ac++;
 680:     XtSetArg(args[ac], XmNeditable, False); ac++;
 681:     XtSetArg(args[ac], XmNfontList, 
 682:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
 683:         XmRFontList, 0, &argok)); if (argok) ac++;
 684:     XtSetArg(args[ac], XmNrows, 1); ac++;
 685:     XtSetArg(args[ac], XmNscrollLeftSide, True); ac++;
 686:     XtSetArg(args[ac], XmNscrollTopSide, True); ac++;
 687:     XtSetArg(args[ac], XmNcursorPositionVisible, False); ac++;
 688:     XtSetArg(args[ac], XmNpendingDelete, False); ac++;
 689:     textReport = XmCreateText(scrolledWindowReport,
 690:         "textReport",
 691:         args, 
 692:         ac);
 693:     XtManageChild(textReport);
 694:     SpCreateReportCB(textReport, (XtPointer)0, (XtPointer)0);
 695:     
 696:     ac = 0;
 697:     XtSetArg(args[ac], XmNtopAttachment, XmATTACH_FORM); ac++;
 698:     XtSetArg(args[ac], XmNbottomAttachment, XmATTACH_FORM); ac++;
 699:     XtSetArg(args[ac], XmNleftAttachment, XmATTACH_FORM); ac++;
 700:     XtSetArg(args[ac], XmNrightAttachment, XmATTACH_FORM); ac++;
 701:     XtSetArg(args[ac], XmNtopOffset, 0); ac++;
 702:     XtSetArg(args[ac], XmNbottomOffset, 0); ac++;
 703:     XtSetArg(args[ac], XmNleftOffset, 0); ac++;
 704:     XtSetArg(args[ac], XmNrightOffset, 0); ac++;
 705:     XtSetValues(scrolledWindowReport, args, ac);
 706:     
 707:     
 708:     /* Begin user code block <end_CreateformTextReport> */
 709:     /* End user code block <end_CreateformTextReport> */
 710:     return( formTextReport );
 711: }
 712: 
 713: /*
 714:  * Create the formSplicer hierarchy of widgets.
 715:  */
 716: Widget
 717: CreateformSplicer(parent)
 718: Widget parent;
 719: {
 720:     Arg      args[256];
 721:     Cardinal ac=0;
 722:     Cardinal cdc=0;
 723:     Boolean  argok=False;
 724:     Widget   pulldownMenuDataSet;
 725:     Widget   menuBarMain;
 726:     Widget   cascadeButtonFile;
 727:     Widget   pulldownMenuFile;
 728:     Widget   separatorFile1;
 729:     Widget   cascadeButtonOpen;
 730:     Widget   pulldownMenuOpen;
 731:     Widget   pulldownMenuSave;
 732:     Widget   pulldownMenuClear;
 733:     Widget   separatorFile2;
 734:     Widget   pushButtonPrint;
 735:     Widget   separatorFile3;
 736:     Widget   pushButtonExit;
 737:     Widget   cascadeButtonProcess;
 738:     Widget   pulldownMenuProcess;
 739:     Widget   pulldownMenuSplice;
 740:     Widget   pushButtonSpliceConstrained;
 741:     Widget   pushButtonSpliceUnconstrained;
 742:     Widget   pushButtonApplyAffineSplice;
 743:     Widget   pulldownMenuDataManip;
 744:     Widget   pushButtonDataManipCull;
 745:     Widget   pushButtonDataManipSmooth;
 746:     Widget   pushButtonDataManipDecimate;
 747:     Widget   pushButtonDataManipDetrend;
 748:     Widget   cascadeButtonView;
 749:     Widget   pulldownMenuView;
 750:     Widget   cascadeButtonHelp;
 751:     Widget   pulldownMenuHelp;
 752:     Widget   pushButtonAboutSplicer;
 753:     Widget   separatorHelp;
 754:     Widget   pushButtonHelpFileMenu;
 755:     Widget   pushButtonHelpProcessMenu;
 756:     Widget   pushButtonHelpViewMenu;
 757:     Widget   separatorHelp2;
 758:     Widget   cascadeButtonHelpFormats;
 759:     Widget   pulldownMenuHelpFormats;
 760:     Widget   pushButtonHelpInputFormat;
 761:     Widget   pushButtonHelpOutputFormat;
 762:     Widget   cascadeButtonHelpDataFiles;
 763:     Widget   pulldownMenuHelpDataFiles;
 764:     Widget   pushButtonHelpDataInfo;
 765:     Widget   pushButtonHelpDataOpen;
 766:     Widget   pushButtonHelpDataClose;
 767:     Widget   pushButtonHelpSaveData;
 768:     Widget   pushButtonHelpDataOutput;
 769:     Widget   cascadeButtonHelpAffineTable;
 770:     Widget   pulldownMenuHelpAffineTable;
 771:     Widget   pushButtonHelpAffineInfo;
 772:     Widget   pushButtonHelpAffineOpen;
 773:     Widget   pushButtonHelpAffineSave;
 774:     Widget   cascadeButtonHelpSplicerTable;
 775:     Widget   pulldownMenuHelpSplicerTable;
 776:     Widget   pushButtonHelpSplicerInfo;
 777:     Widget   pushButtonHelpOpenSplicerTable;
 778:     Widget   pushButtonHelpSaveSplicerTable;
 779:     Widget   cascadeButtonHelpDataProcessing;
 780:     Widget   pulldownMenuHelpDataProcessing;
 781:     Widget   pushButtonHelpDataProcessingInfo;
 782:     Widget   cascadeButtonHelpCulling;
 783:     Widget   pulldownMenuHelpCulling;
 784:     Widget   pushButtonHelpCullingInfo;
 785:     Widget   pushButtonHelpCullOpen;
 786:     Widget   pushButtonHelpCullSave;
 787:     Widget   pushButtonHelpSmooth;
 788:     Widget   pushButtonHelpDecimate;
 789:     Widget   cascadeButtonHelpStrat;
 790:     Widget   pulldownMenuHelpStrat;
 791:     Widget   pushButtonHelpOpenStrat;
 792:     Widget   pushButtonHelpSaveStrat;
 793:     Widget   separator;
 794:     Widget   pushButtonHelpDisplay;
 795:     Widget   pushButtonHelpComposite;
 796:     Widget   pushButtonHelpDepthOffset;
 797:     Widget   pushButtonHelpSplice;
 798:     Widget   pushButtonHelpAgeDepth;
 799:     Widget   separator1;
 800:     Widget   pushButtonHelpReportSave;
 801:     Widget   pushButtonHelpSplicerDefaults;
 802:     Widget   pushButtonHelpClearWorkspace;
 803:     Widget   pushButtonHelpExit;
 804:     Widget   xmDialogShellOverwrite;
 805:     Widget   formWarnFileExists;
 806:     Widget   pushButtonOverwrite;
 807:     Widget   pushButtonDismissWarn;
 808:     Widget   xmDialogShellOpen;
 809:     Widget   scrolledWindowOpenSelected;
 810:     Widget   formOpenOptions;
 811:     Widget   labelNHeader;
 812:     Widget   labelHeader;
 813:     Widget   radioBoxHeader;
 814:     Widget   labelDataType;
 815:     Widget   labelFileFormat;
 816:     Widget   pulldownMenuOpenType;
 817:     Widget   pulldownMenuOpenFormat;
 818:     Widget   pushButtonOpenHelp;
 819:     Widget   pushButtonOpenCancel;
 820:     Widget   labelOpenSelectedFiles;
 821:     Widget   scrolledWindowOpenDirectory;
 822:     Widget   scrolledWindowOpenFiles;
 823:     Widget   formOpenSelect;
 824:     Widget   separatorOpenHorizontal;
 825:     Widget   labelOpenDirectory;
 826:     Widget   labelOpenFiles;
 827:     Widget   labelOpenFilter;
 828:     Widget   xmDialogShellSmooth;
 829:     Widget   formSmoothButtons;
 830:     Widget   pushButtonSmoothHelp;
 831:     Widget   pushButtonSmoothCancel;
 832:     Widget   pushButtonSmoothOk;
 833:     Widget   separatorSmooth;
 834:     Widget   formSmoothValues;
 835:     Widget   frameSmoothOptions;
 836:     Widget   formSmoothOptions;
 837:     Widget   pulldownMenuWidthUnits;
 838:     Widget   labelSmoothWidth;
 839:     Widget   labelSmoothOptions;
 840:     Widget   radioBoxSmoothMethods;
 841:     Widget   labelSmoothMethods;
 842:     Widget   frameSmoothOutput;
 843:     Widget   radioBoxSmoothOutput;
 844:     Widget   labelSmoothOutput;
 845:     Widget   xmDialogShellDecimate;
 846:     Widget   labelDecimateUnits1;
 847:     Widget   labelDecimate;
 848:     Widget   formDecimateButtons;
 849:     Widget   pushButtonDecimateHelp;
 850:     Widget   pushButtonDecimateCancel;
 851:     Widget   pushButtonDecimateOK;
 852:     Widget   separatorDecimate;
 853:     Widget   xmDialogShellUseAffine;
 854:     Widget   labelAffineFileName;
 855:     Widget   pushButtonUseAffineOK;
 856:     Widget   separatorUseAffine;
 857:     Widget   rowColumnUseAffine;
 858:     Widget   xmDialogShellCull;
 859:     Widget   labelCullTableFilename;
 860:     Widget   labelCullTableChoice;
 861:     Widget   radioBoxCullTable;
 862:     Widget   labelCullTopUnits;
 863:     Widget   labelCullTop;
 864:     Widget   separatorCullTitle;
 865:     Widget   formCullCoreNum;
 866:     Widget   radioBoxCullCoreNum;
 867:     Widget   separatorCullTop;
 868:     Widget   radioBoxCullMethod;
 869:     Widget   labelCullMethod;
 870:     Widget   formCullButtons;
 871:     Widget   pushButtonCullHelp;
 872:     Widget   pushButtonCullCancel;
 873:     Widget   pushButtonCullOK;
 874:     Widget   labelCullValues;
 875:     Widget   pulldownMenuCullJoin;
 876:     Widget   separatorCullMid;
 877:     Widget   separatorCullBottom;
 878:     Widget   xmDialogShellOpenInfo;
 879:     Widget   pushButtonOpenInfoCancel;
 880:     Widget   pushButtonOpenInfoOK;
 881:     Widget   scrolledWindowOpenInfo;
 882:     Widget   xmDialogShellWorking;
 883:     Widget   xmDialogShellTie;
 884:     Widget   separator2;
 885:     Widget   radioBoxTieUndoHow;
 886:     Widget   labeladjdepm;
 887:     Widget   labeladjustdepth;
 888:     Widget   radioBoxTieShiftHow;
 889:     Widget   radioBoxTieShiftWhat;
 890:     Widget   labelsbd;
 891:     Widget   labelvar;
 892:     Widget   labelID;
 893:     Widget   separator6;
 894:     Widget   separator5;
 895:     Widget   separator4;
 896:     Widget   labelTieLeadLag;
 897:     Widget   labelTieWinLen;
 898:     Widget   labelTieDepthStep;
 899:     Widget   separator3;
 900:     Widget   labelTie2;
 901:     Widget   labelTie1;
 902:     Widget   xmDialogShellDisplay;
 903:     Widget   labelDisplayScaleDrag;
 904:     Widget   radioBoxDisplayScaleDrag;
 905:     Widget   labelDisplaySmooth;
 906:     Widget   radioBoxDisplaySmooth;
 907:     Widget   labelScaleMult;
 908:     Widget   separatordisplay;
 909:     Widget   rowColumnDisplay;
 910:     Widget   labelDepthScale;
 911:     Widget   labelDepthTic;
 912:     Widget   labelDifferenceInValue1;
 913:     Widget   labelDifferenceInValue;
 914:     Widget   separatorsplice2;
 915:     Widget   separatorsplice;
 916:     Widget   labelSpliceleadlag;
 917:     Widget   labelSplicewindlen;
 918:     Widget   labelcompdepthstep;
 919:     Widget   separatorsplice1;
 920:     Widget   labelSpliceTiesbd;
 921:     Widget   labelSpliceTievar;
 922:     Widget   labelSpliceTieID;
 923:     Widget   labelSpliceTie2;
 924:     Widget   labelSpliceTie1;
 925:     Widget   labelSpliceSelectCore;
 926:     Widget   labelSpliceSelectHole;
 927:     Widget   labelSpliceSelect;
 928:     Widget   xmDialogShellSetColor;
 929:     Widget   pushButton;
 930:     Widget   formColorSets;
 931:     Widget   rowColumnColorSets;
 932:     Widget   labelColorSpliceVsAge;
 933:     Widget   labelColorAgeDepth;
 934:     Widget   pushButtonColorCancel;
 935:     Widget   pushButtonColorApply;
 936:     Widget   labelColorSelect;
 937:     Widget   labelColorDrawingAreas;
 938:     Widget   scrolledWindowColorList;
 939:     Widget   pushButtonColorDismiss;
 940:     Widget   separatorcolor;
 941:     Widget   labelDepthOffsetcolors;
 942:     Widget   labelCorrelationcolors;
 943:     Widget   labelCompAndSplicecolors;
 944:     Widget   xmDialogShellExit;
 945:     Widget   xmDialogShellClearWorkspace;
 946:     Widget   xmDialogShellTieSuggestions;
 947:     Widget   pushButtonTieSuggestionsHelp;
 948:     Widget   pushButtonTieSuggestipnsDismiss;
 949:     Widget   separatorTieSuggestions;
 950:     Widget   xmDialogShellInfo;
 951:     Widget   xmDialogShellOutput;
 952:     Widget   pushButtonSaveDataFilter;
 953:     Widget   labelSaveDataSelectedDirectory;
 954:     Widget   labelSaveDataDirectoriy;
 955:     Widget   scrolledWindowSaveDataDirectory;
 956:     Widget   labelSaveDataFilter;
 957:     Widget   pushButtonOutputHelp;
 958:     Widget   pushButtonOutputCancel;
 959:     Widget   pushButtonOutputOK;
 960:     Widget   separatorOutput;
 961:     Widget   labelWriteData;
 962:     Widget   labelOutputSuffix;
 963:     Widget   labelOutputPrefix;
 964:     Widget   labelOutputMiddle;
 965:     Widget   xmDialogShellSpliceUndo;
 966:     Widget   pushButtonSpliceUndoHelp;
 967:     Widget   pushButtonSpliceUndoCancel;
 968:     Widget   pushButtonSplicerUndoOK;
 969:     Widget   separatorSpliceUndo;
 970:     Widget   xmDialogShellSpliceToAge;
 971:     Widget   separatorSpliceToAge2;
 972:     Widget   separatorSpliceToAge1;
 973:     Widget   labelSpliceToAgeTimeSeriesAge1;
 974:     Widget   labelSpliceToAgeTimeSeries;
 975:     Widget   labelSpliceToAgeSpliceAge;
 976:     Widget   labelSpliceToAgeSplicemcd;
 977:     Widget   labelSpliceToAgeTieInfo;
 978:     Widget   labelSpliceToAgembsf;
 979:     Widget   labelSpliceToAgeVar;
 980:     Widget   labelSpliceToAgeODPID;
 981:     Widget   labelSpliceToAgeLeadLag;
 982:     Widget   labelSpliceToAgeWinLen;
 983:     Widget   labelSpliceToAgeTimeStep;
 984:     Widget   arrowButtonSpliceToAgeZoomDown;
 985:     Widget   arrowButtonSpliceToAgeZoomUp;
 986:     Widget   labelSpliceToAgeZoom;
 987:     Widget   pushButtonSpliceToAgeHelp;
 988:     Widget   pushButtonSpliceToAgeDismiss;
 989:     Widget   separatorSpliceToAge;
 990:     Widget   xmDialogShellAgeDepth;
 991:     Widget   formForAgeModelButtons;
 992:     Widget   formForListButtons;
 993:     Widget   labelAgeDepthHandPickDepth;
 994:     Widget   labelAgeDepthHandPickAge0;
 995:     Widget   labelAgeModelName;
 996:     Widget   labelAgeModelAge;
 997:     Widget   labelAgeModelmcd;
 998:     Widget   labelAgeModelmbsf;
 999:     Widget   labelAgeModel;
1000:     Widget   scrolledWindowConstructAgeModel;
1001:     Widget   labelAgeDepthZoom;
1002:     Widget   arrowButtonAgeDepthZoomDown;
1003:     Widget   arrowButtonAgeDepthZoomUp;
1004:     Widget   scrolledWindowListAgeDepthStrat;
1005:     Widget   labelAgeDepthStratigraphy;
1006:     Widget   labelAgeDepthWhichDepth;
1007:     Widget   radioBoxAgeDepth;
1008:     Widget   pushButtonAgeDepthHelp;
1009:     Widget   pushButtonAgeDepthDismiss;
1010:     Widget   separatorAgeDepth;
1011:     Widget   xmDialogShellWarnExit;
1012:     Widget   pushButtonWarnExitHelp;
1013:     Widget   pushButtonWarnExitCancel;
1014:     Widget   pushButtonWarnExitOK;
1015:     Widget   xmDialogShellWarnClear;
1016:     Widget   pushButtonWarnClearHelp;
1017:     Widget   pushButtonWarnClearCancel;
1018:     Widget   pushButtonWarnClearOK;
1019:     Widget   xmDialogShellOpenFormatsOther;
1020:     Widget   labelOtherFormatsInfo;
1021:     Widget   labelOpenFormatOtherValueColumn;
1022:     Widget   radioBoxOpenFormatsOther;
1023:     Widget   pushButtonOpenFormatsOtherHelp;
1024:     Widget   pushButtonOpenFormatsOtherCancel;
1025:     Widget   pushButtonOpenFormatsOtherOK;
1026:     Widget   separatorOpenFormatsOther;
1027:     Widget   xmDialogShellPreviewInput;
1028:     Widget   pushButtonPreviewInputDismiss;
1029:     Widget   scrolledWindowPreviewInput;
1030:     Widget   labelTimeSeriesInvert;
1031:     Widget   radioBoxTimeSeriesInvert;
1032:     Widget   labelTimeSeriesAgeUnit;
1033:     Widget   radioBoxTimeSeriesAgeUnit;
1034:     Widget   labelTimeSeriesFromToAge;
1035:     Widget   labelTimeSeriesMa;
1036:     Widget   labelTimeSeriesToAge;
1037:     Widget   labelTimeSeriesFromAge;
1038:     Widget   labelTimeSeriesValCol;
1039:     Widget   labelTimeSeriesAgeCol;
1040:     Widget   labelTimeSeriesDataCol;
1041:     Widget   pulldownMenuStratType1;
1042:     Widget   labelFileSelectionSelected;
1043:     Widget   labelFileSelectionFiles;
1044:     Widget   labelFileSelectionDirectories;
1045:     Widget   labelFileSelectionFilter;
1046:     Widget   pushButtonFileSelectionHelp;
1047:     Widget   pushButtonFileSelectionCancel;
1048:     Widget   pushButtonFileSelectionFilter;
1049:     Widget   separatorFileSelection;
1050:     Widget   scrolledWindowFileSelectionFiles;
1051:     Widget   scrolledWindowFileSelectionDirectories;
1052:     Widget   xmDialogShellFileSelectionPreview;
1053:     Widget   labelFileSelectionPreviewInputSelected;
1054:     Widget   labelFileSelectionPreviewInputFiles;
1055:     Widget   labelFileSelectionPreviewInputDirectories;
1056:     Widget   labelFileSelectionPreviewInputFilter;
1057:     Widget   pushButtonFileSelectionPreviewInputHelp;
1058:     Widget   pushButtonFileSelectionPreviewInputCancel;
1059:     Widget   pushButtonFileSelectionPreviewInputFilter;
1060:     Widget   pushButtonFileSelectionPreviewInputOK;
1061:     Widget   separatorFileSelectionPreviewInput;
1062:     Widget   scrolledWindowFileSelectionFilesPreviewInput;
1063:     Widget   scrolledWindowFileSelectionDirPreviewInput;
1064:     Widget   xmDialogShellGenericText;
1065:     Widget   pushButtonGenericText;
1066:     Widget   scrolledWindowGenericText;
1067:     Widget   xmDialogShellJanus;
1068:     Widget   pushButtonJanusHelp;
1069:     Widget   pushButtonJanusOK;
1070:     Widget   separatorJanus;
1071:     Widget   labelJanus;
1072:     Widget   radioBoxJanus;
1073:     
1074:     /*
1075:      * Register the converters for the widgets.
1076:      */
1077:     RegisterBxConverters(XtWidgetToApplicationContext(parent)); 
1078:     XtInitializeWidgetClass(xmFormWidgetClass);
1079:     XtInitializeWidgetClass(xmRowColumnWidgetClass);
1080:     XtInitializeWidgetClass(xmRowColumnWidgetClass);
1081:     XtInitializeWidgetClass(xmPushButtonWidgetClass);
1082:     XtInitializeWidgetClass(xmLabelWidgetClass);
1083:     XtInitializeWidgetClass(xmScaleWidgetClass);
1084:     XtInitializeWidgetClass(xmToggleButtonWidgetClass);
1085:     XtInitializeWidgetClass(xmDrawingAreaWidgetClass);
1086:     XtInitializeWidgetClass(xmRowColumnWidgetClass);
1087:     XtInitializeWidgetClass(xmCascadeButtonWidgetClass);
1088:     XtInitializeWidgetClass(xmSeparatorWidgetClass);
1089:     XtInitializeWidgetClass(xmDialogShellWidgetClass);
1090:     XtInitializeWidgetClass(xmFormWidgetClass);
1091:     XtInitializeWidgetClass(xmTextWidgetClass);
1092:     XtInitializeWidgetClass(xmScrolledWindowWidgetClass);
1093:     XtInitializeWidgetClass(xmListWidgetClass);
1094:     XtInitializeWidgetClass(xmTextFieldWidgetClass);
1095:     XtInitializeWidgetClass(xmRowColumnWidgetClass);
1096:     XtInitializeWidgetClass(xmFrameWidgetClass);
1097:     XtInitializeWidgetClass(xmRowColumnWidgetClass);
1098:     XtInitializeWidgetClass(xmMessageBoxWidgetClass);
1099:     XtInitializeWidgetClass(xmArrowButtonWidgetClass);
1100:     
1101:     ac = 0;
1102:     XtSetArg(args[ac], XmNbuttonFontList, 
1103:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1104:         XmRFontList, 0, &argok)); if (argok) ac++;
1105:     XtSetArg(args[ac], XmNlabelFontList, 
1106:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1107:         XmRFontList, 0, &argok)); if (argok) ac++;
1108:     XtSetArg(args[ac], XmNtextFontList, 
1109:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1110:         XmRFontList, 0, &argok)); if (argok) ac++;
1111:     XtSetArg(args[ac], XmNresizePolicy, XmRESIZE_GROW); ac++;
1112:     XtSetArg(args[ac], XmNx, 1111); ac++;
1113:     XtSetArg(args[ac], XmNy, 833); ac++;
1114:     XtSetArg(args[ac], XmNwidth, 1112); ac++;
1115:     XtSetArg(args[ac], XmNheight, 840); ac++;
1116:     formSplicer = XmCreateForm(parent,
1117:         "formSplicer",
1118:         args, 
1119:         ac);
1120:     
1121:     ac = 0;
1122:     XtSetArg(args[ac], XmNlabelString, 
1123:         CONVERT(parent, "", 
1124:         XmRXmString, 0, &argok)); if (argok) ac++;
1125:     XtSetArg(args[ac], XmNx, 0); ac++;
1126:     XtSetArg(args[ac], XmNy, 794); ac++;
1127:     XtSetArg(args[ac], XmNwidth, 108); ac++;
1128:     XtSetArg(args[ac], XmNheight, 30); ac++;
1129:     optionMenuDataSet = XmCreateOptionMenu(formSplicer,
1130:         "optionMenuDataSet",
1131:         args, 
1132:         ac);
1133:     XtManageChild(optionMenuDataSet);
1134:     
1135:     ac = 0;
1136:     XtSetArg(args[ac], XmNx, 0); ac++;
1137:     XtSetArg(args[ac], XmNy, 0); ac++;
1138:     XtSetArg(args[ac], XmNwidth, 73); ac++;
1139:     XtSetArg(args[ac], XmNheight, 202); ac++;
1140:     pulldownMenuDataSet = XmCreatePulldownMenu(XtParent(optionMenuDataSet),
1141:         "pulldownMenuDataSet",
1142:         args, 
1143:         ac);
1144:     
1145:     ac = 0;
1146:     XtSetArg(args[ac], XmNfontList, 
1147:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1148:         XmRFontList, 0, &argok)); if (argok) ac++;
1149:     XtSetArg(args[ac], XmNlabelString, 
1150:         CONVERT(parent, "DataSet1", 
1151:         XmRXmString, 0, &argok)); if (argok) ac++;
1152:     pushButtonDataSet1 = XmCreatePushButton(pulldownMenuDataSet,
1153:         "pushButtonDataSet1",
1154:         args, 
1155:         ac);
1156:     XtManageChild(pushButtonDataSet1);
1157:     XtAddCallback(pushButtonDataSet1, XmNactivateCallback, DataSetActivate, (XtPointer)"1");
1158:     
1159:     ac = 0;
1160:     XtSetArg(args[ac], XmNfontList, 
1161:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1162:         XmRFontList, 0, &argok)); if (argok) ac++;
1163:     XtSetArg(args[ac], XmNlabelString, 
1164:         CONVERT(parent, "DataSet2", 
1165:         XmRXmString, 0, &argok)); if (argok) ac++;
1166:     pushButtonDataSet2 = XmCreatePushButton(pulldownMenuDataSet,
1167:         "pushButtonDataSet2",
1168:         args, 
1169:         ac);
1170:     XtManageChild(pushButtonDataSet2);
1171:     XtAddCallback(pushButtonDataSet2, XmNactivateCallback, DataSetActivate, (XtPointer)"2");
1172:     
1173:     ac = 0;
1174:     XtSetArg(args[ac], XmNfontList, 
1175:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1176:         XmRFontList, 0, &argok)); if (argok) ac++;
1177:     XtSetArg(args[ac], XmNlabelString, 
1178:         CONVERT(parent, "DataSet3", 
1179:         XmRXmString, 0, &argok)); if (argok) ac++;
1180:     pushButtonDataSet3 = XmCreatePushButton(pulldownMenuDataSet,
1181:         "pushButtonDataSet3",
1182:         args, 
1183:         ac);
1184:     XtManageChild(pushButtonDataSet3);
1185:     XtAddCallback(pushButtonDataSet3, XmNactivateCallback, DataSetActivate, (XtPointer)"3");
1186:     
1187:     ac = 0;
1188:     XtSetArg(args[ac], XmNfontList, 
1189:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1190:         XmRFontList, 0, &argok)); if (argok) ac++;
1191:     XtSetArg(args[ac], XmNlabelString, 
1192:         CONVERT(parent, "DataSet4", 
1193:         XmRXmString, 0, &argok)); if (argok) ac++;
1194:     pushButtonDataSet4 = XmCreatePushButton(pulldownMenuDataSet,
1195:         "pushButtonDataSet4",
1196:         args, 
1197:         ac);
1198:     XtManageChild(pushButtonDataSet4);
1199:     XtAddCallback(pushButtonDataSet4, XmNactivateCallback, DataSetActivate, (XtPointer)"4");
1200:     
1201:     ac = 0;
1202:     XtSetArg(args[ac], XmNfontList, 
1203:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1204:         XmRFontList, 0, &argok)); if (argok) ac++;
1205:     XtSetArg(args[ac], XmNlabelString, 
1206:         CONVERT(parent, "DataSet5", 
1207:         XmRXmString, 0, &argok)); if (argok) ac++;
1208:     pushButtonDataSet5 = XmCreatePushButton(pulldownMenuDataSet,
1209:         "pushButtonDataSet5",
1210:         args, 
1211:         ac);
1212:     XtManageChild(pushButtonDataSet5);
1213:     XtAddCallback(pushButtonDataSet5, XmNactivateCallback, DataSetActivate, (XtPointer)"5");
1214:     
1215:     ac = 0;
1216:     XtSetArg(args[ac], XmNfontList, 
1217:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1218:         XmRFontList, 0, &argok)); if (argok) ac++;
1219:     XtSetArg(args[ac], XmNlabelString, 
1220:         CONVERT(parent, "DataSet6", 
1221:         XmRXmString, 0, &argok)); if (argok) ac++;
1222:     pushButtonDataSet6 = XmCreatePushButton(pulldownMenuDataSet,
1223:         "pushButtonDataSet6",
1224:         args, 
1225:         ac);
1226:     XtManageChild(pushButtonDataSet6);
1227:     XtAddCallback(pushButtonDataSet6, XmNactivateCallback, DataSetActivate, (XtPointer)"6");
1228:     
1229:     ac = 0;
1230:     XtSetArg(args[ac], XmNfontList, 
1231:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1232:         XmRFontList, 0, &argok)); if (argok) ac++;
1233:     XtSetArg(args[ac], XmNlabelString, 
1234:         CONVERT(parent, "DataSet7", 
1235:         XmRXmString, 0, &argok)); if (argok) ac++;
1236:     pushButtonDataSet7 = XmCreatePushButton(pulldownMenuDataSet,
1237:         "pushButtonDataSet7",
1238:         args, 
1239:         ac);
1240:     XtManageChild(pushButtonDataSet7);
1241:     XtAddCallback(pushButtonDataSet7, XmNactivateCallback, DataSetActivate, (XtPointer)"7");
1242:     
1243:     ac = 0;
1244:     XtSetArg(args[ac], XmNfontList, 
1245:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1246:         XmRFontList, 0, &argok)); if (argok) ac++;
1247:     XtSetArg(args[ac], XmNlabelString, 
1248:         CONVERT(parent, "DataSet8", 
1249:         XmRXmString, 0, &argok)); if (argok) ac++;
1250:     pushButtonDataSet8 = XmCreatePushButton(pulldownMenuDataSet,
1251:         "pushButtonDataSet8",
1252:         args, 
1253:         ac);
1254:     XtManageChild(pushButtonDataSet8);
1255:     XtAddCallback(pushButtonDataSet8, XmNactivateCallback, DataSetActivate, (XtPointer)"8");
1256:     
1257:     ac = 0;
1258:     XtSetArg(args[ac], XmNfontList, 
1259:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1260:         XmRFontList, 0, &argok)); if (argok) ac++;
1261:     XtSetArg(args[ac], XmNlabelString, 
1262:         CONVERT(parent, "DataSet9", 
1263:         XmRXmString, 0, &argok)); if (argok) ac++;
1264:     pushButtonDataSet9 = XmCreatePushButton(pulldownMenuDataSet,
1265:         "pushButtonDataSet9",
1266:         args, 
1267:         ac);
1268:     XtManageChild(pushButtonDataSet9);
1269:     XtAddCallback(pushButtonDataSet9, XmNactivateCallback, DataSetActivate, (XtPointer)"9");
1270:     
1271:     ac = 0;
1272:     XtSetArg(args[ac], XmNsubMenuId, pulldownMenuDataSet); ac++;
1273:     XtSetValues(optionMenuDataSet, args, ac);
1274:     
1275:     ac = 0;
1276:     XtSetArg(args[ac], XmNborderWidth, 1); ac++;
1277:     XtSetArg(args[ac], XmNalignment, XmALIGNMENT_BEGINNING); ac++;
1278:     XtSetArg(args[ac], XmNfontList, 
1279:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1280:         XmRFontList, 0, &argok)); if (argok) ac++;
1281:     XtSetArg(args[ac], XmNlabelString, 
1282:         CONVERT(parent, "", 
1283:         XmRXmString, 0, &argok)); if (argok) ac++;
1284:     XtSetArg(args[ac], XmNrecomputeSize, False); ac++;
1285:     XtSetArg(args[ac], XmNx, 167); ac++;
1286:     XtSetArg(args[ac], XmNy, 793); ac++;
1287:     XtSetArg(args[ac], XmNwidth, 600); ac++;
1288:     XtSetArg(args[ac], XmNheight, 30); ac++;
1289:     labelCursorLocation = XmCreateLabel(formSplicer,
1290:         "labelCursorLocation",
1291:         args, 
1292:         ac);
1293:     XtManageChild(labelCursorLocation);
1294:     
1295:     ac = 0;
1296:     XtSetArg(args[ac], XmNmaximum, 10); ac++;
1297:     XtSetArg(args[ac], XmNorientation, XmHORIZONTAL); ac++;
1298:     XtSetArg(args[ac], XmNfontList, 
1299:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1300:         XmRFontList, 0, &argok)); if (argok) ac++;
1301:     XtSetArg(args[ac], XmNshowValue, True); ac++;
1302:     XtSetArg(args[ac], XmNscaleMultiple, 1); ac++;
1303:     XtSetArg(args[ac], XmNx, 44); ac++;
1304:     XtSetArg(args[ac], XmNy, 732); ac++;
1305:     XtSetArg(args[ac], XmNwidth, 620); ac++;
1306:     XtSetArg(args[ac], XmNheight, 38); ac++;
1307:     scaleCores = XmCreateScale(formSplicer,
1308:         "scaleCores",
1309:         args, 
1310:         ac);
1311:     XtManageChild(scaleCores);
1312:     XtAddCallback(scaleCores, XmNvalueChangedCallback, ScaleCoreChanged, (XtPointer)0);
1313:     XtAddCallback(scaleCores, XmNdragCallback, ScaleCoreDragged, (XtPointer)0);
1314:     
1315:     ac = 0;
1316:     XtSetArg(args[ac], XmNfontList, 
1317:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1318:         XmRFontList, 0, &argok)); if (argok) ac++;
1319:     XtSetArg(args[ac], XmNlabelString, 
1320:         CONVERT(parent, "Lock", 
1321:         XmRXmString, 0, &argok)); if (argok) ac++;
1322:     XtSetArg(args[ac], XmNindicatorOn, True); ac++;
1323:     XtSetArg(args[ac], XmNfillOnSelect, True); ac++;
1324:     XtSetArg(args[ac], XmNx, 704); ac++;
1325:     XtSetArg(args[ac], XmNy, 750); ac++;
1326:     XtSetArg(args[ac], XmNwidth, 61); ac++;
1327:     XtSetArg(args[ac], XmNheight, 30); ac++;
1328:     toggleButtonLockSlider = XmCreateToggleButton(formSplicer,
1329:         "toggleButtonLockSlider",
1330:         args, 
1331:         ac);
1332:     XtManageChild(toggleButtonLockSlider);
1333:     XtAddCallback(toggleButtonLockSlider, XmNdisarmCallback, LockSlider, (XtPointer)0);
1334:     
1335:     ac = 0;
1336:     XtSetArg(args[ac], XmNx, 5); ac++;
1337:     XtSetArg(args[ac], XmNy, 32); ac++;
1338:     XtSetArg(args[ac], XmNwidth, 650); ac++;
1339:     XtSetArg(args[ac], XmNheight, 700); ac++;
1340:     drawingAreaEdit = XmCreateDrawingArea(formSplicer,
1341:         "drawingAreaEdit",
1342:         args, 
1343:         ac);
1344:     XtManageChild(drawingAreaEdit);
1345:     SpCreateCB(drawingAreaEdit, (XtPointer)&drawingAreaEdit, (XtPointer)0);
1346:     XtAddCallback(drawingAreaEdit, XmNresizeCallback, DrawDrawingAreaEdit, (XtPointer)0);
1347:     XtAddCallback(drawingAreaEdit, XmNexposeCallback, DrawDrawingAreaEdit, (XtPointer)0);
1348:     
1349:     ac = 0;
1350:     XtSetArg(args[ac], XmNvalue, 0); ac++;
1351:     XtSetArg(args[ac], XmNorientation, XmVERTICAL); ac++;
1352:     XtSetArg(args[ac], XmNprocessingDirection, XmMAX_ON_BOTTOM); ac++;
1353:     XtSetArg(args[ac], XmNfontList, 
1354:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1355:         XmRFontList, 0, &argok)); if (argok) ac++;
1356:     XtSetArg(args[ac], XmNshowValue, True); ac++;
1357:     XtSetArg(args[ac], XmNscaleMultiple, 5); ac++;
1358:     XtSetArg(args[ac], XmNx, 1060); ac++;
1359:     XtSetArg(args[ac], XmNy, 47); ac++;
1360:     XtSetArg(args[ac], XmNwidth, 49); ac++;
1361:     XtSetArg(args[ac], XmNheight, 685); ac++;
1362:     drawingAreaViewScale = XmCreateScale(formSplicer,
1363:         "drawingAreaViewScale",
1364:         args, 
1365:         ac);
1366:     XtManageChild(drawingAreaViewScale);
1367:     XtAddCallback(drawingAreaViewScale, XmNvalueChangedCallback, DrawingAreaViewScaleChange, (XtPointer)0);
1368:     XtAddCallback(drawingAreaViewScale, XmNdragCallback, DrawingAreaViewScaleDrag, (XtPointer)0);
1369:     
1370:     ac = 0;
1371:     XtSetArg(args[ac], XmNx, 710); ac++;
1372:     XtSetArg(args[ac], XmNy, 32); ac++;
1373:     XtSetArg(args[ac], XmNwidth, 350); ac++;
1374:     XtSetArg(args[ac], XmNheight, 700); ac++;
1375:     drawingAreaView = XmCreateDrawingArea(formSplicer,
1376:         "drawingAreaView",
1377:         args, 
1378:         ac);
1379:     XtManageChild(drawingAreaView);
1380:     SpCreateCB(drawingAreaView, (XtPointer)&drawingAreaView, (XtPointer)0);
1381:     XtAddCallback(drawingAreaView, XmNresizeCallback, DrawDrawingAreaView, (XtPointer)0);
1382:     XtAddCallback(drawingAreaView, XmNexposeCallback, DrawDrawingAreaView, (XtPointer)0);
1383:     
1384:     ac = 0;
1385:     XtSetArg(args[ac], XmNborderColor, 
1386:         CONVERT(parent, "black", 
1387:         XmRPixel, 0, &argok)); if (argok) ac++;
1388:     XtSetArg(args[ac], XmNvalue, 0); ac++;
1389:     XtSetArg(args[ac], XmNorientation, XmVERTICAL); ac++;
1390:     XtSetArg(args[ac], XmNprocessingDirection, XmMAX_ON_BOTTOM); ac++;
1391:     XtSetArg(args[ac], XmNtitleString, 
1392:         CONVERT(parent, "", 
1393:         XmRXmString, 0, &argok)); if (argok) ac++;
1394:     XtSetArg(args[ac], XmNfontList, 
1395:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1396:         XmRFontList, 0, &argok)); if (argok) ac++;
1397:     XtSetArg(args[ac], XmNshowValue, True); ac++;
1398:     XtSetArg(args[ac], XmNhighlightOnEnter, False); ac++;
1399:     XtSetArg(args[ac], XmNscaleMultiple, 5); ac++;
1400:     XtSetArg(args[ac], XmNx, 655); ac++;
1401:     XtSetArg(args[ac], XmNy, 47); ac++;
1402:     XtSetArg(args[ac], XmNwidth, 49); ac++;
1403:     XtSetArg(args[ac], XmNheight, 685); ac++;
1404:     drawingAreaEditScale = XmCreateScale(formSplicer,
1405:         "drawingAreaEditScale",
1406:         args, 
1407:         ac);
1408:     XtManageChild(drawingAreaEditScale);
1409:     XtAddCallback(drawingAreaEditScale, XmNvalueChangedCallback, DrawingAreaEditScaleChange, (XtPointer)0);
1410:     XtAddCallback(drawingAreaEditScale, XmNdragCallback, DrawingAreaEditScaleDrag, (XtPointer)0);
1411:     
1412:     ac = 0;
1413:     XtSetArg(args[ac], XmNborderWidth, 0); ac++;
1414:     XtSetArg(args[ac], XmNstringDirection, XmSTRING_DIRECTION_L_TO_R); ac++;
1415:     XtSetArg(args[ac], XmNadjustLast, True); ac++;
1416:     XtSetArg(args[ac], XmNorientation, XmHORIZONTAL); ac++;
1417:     XtSetArg(args[ac], XmNentryBorder, 0); ac++;
1418:     XtSetArg(args[ac], XmNentryAlignment, XmALIGNMENT_BEGINNING); ac++;
1419:     XtSetArg(args[ac], XmNpacking, XmPACK_COLUMN); ac++;
1420:     XtSetArg(args[ac], XmNx, 0); ac++;
1421:     XtSetArg(args[ac], XmNy, 0); ac++;
1422:     XtSetArg(args[ac], XmNwidth, 1112); ac++;
1423:     XtSetArg(args[ac], XmNheight, 32); ac++;
1424:     menuBarMain = XmCreateMenuBar(formSplicer,
1425:         "menuBarMain",
1426:         args, 
1427:         ac);
1428:     XtManageChild(menuBarMain);
1429:     
1430:     ac = 0;
1431:     XtSetArg(args[ac], XmNfontList, 
1432:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1433:         XmRFontList, 0, &argok)); if (argok) ac++;
1434:     XtSetArg(args[ac], XmNlabelString, 
1435:         CONVERT(parent, "File", 
1436:         XmRXmString, 0, &argok)); if (argok) ac++;
1437:     XtSetArg(args[ac], XmNmnemonic, 'F'); ac++;
1438:     XtSetArg(args[ac], XmNrecomputeSize, True); ac++;
1439:     XtSetArg(args[ac], XmNx, 5); ac++;
1440:     XtSetArg(args[ac], XmNy, 5); ac++;
1441:     XtSetArg(args[ac], XmNwidth, 71); ac++;
1442:     XtSetArg(args[ac], XmNheight, 22); ac++;
1443:     cascadeButtonFile = XmCreateCascadeButton(menuBarMain,
1444:         "cascadeButtonFile",
1445:         args, 
1446:         ac);
1447:     XtManageChild(cascadeButtonFile);
1448:     
1449:     ac = 0;
1450:     XtSetArg(args[ac], XmNpacking, XmPACK_COLUMN); ac++;
1451:     XtSetArg(args[ac], XmNisHomogeneous, False); ac++;
1452:     XtSetArg(args[ac], XmNx, 0); ac++;
1453:     XtSetArg(args[ac], XmNy, 0); ac++;
1454:     XtSetArg(args[ac], XmNwidth, 200); ac++;
1455:     XtSetArg(args[ac], XmNheight, 224); ac++;
1456:     pulldownMenuFile = XmCreatePulldownMenu(XtParent(cascadeButtonFile),
1457:         "pulldownMenuFile",
1458:         args, 
1459:         ac);
1460:     
1461:     ac = 0;
1462:     XtSetArg(args[ac], XmNsensitive, True); ac++;
1463:     XtSetArg(args[ac], XmNmappedWhenManaged, True); ac++;
1464:     XtSetArg(args[ac], XmNfontList, 
1465:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1466:         XmRFontList, 0, &argok)); if (argok) ac++;
1467:     XtSetArg(args[ac], XmNlabelString, 
1468:         CONVERT(parent, "Access Database...", 
1469:         XmRXmString, 0, &argok)); if (argok) ac++;
1470:     XtSetArg(args[ac], XmNmnemonic, 'A'); ac++;
1471:     XtSetArg(args[ac], XmNrecomputeSize, False); ac++;
1472:     pushButtonDataBase = XmCreatePushButton(pulldownMenuFile,
1473:         "pushButtonDataBase",
1474:         args, 
1475:         ac);
1476:     XtManageChild(pushButtonDataBase);
1477:     XtAddCallback(pushButtonDataBase, XmNactivateCallback, SpLaunchSeekerCB, (XtPointer)0);
1478:     
1479:     ac = 0;
1480:     separatorFile1 = XmCreateSeparator(pulldownMenuFile,
1481:         "separatorFile1",
1482:         args, 
1483:         ac);
1484:     XtManageChild(separatorFile1);
1485:     
1486:     ac = 0;
1487:     XtSetArg(args[ac], XmNfontList, 
1488:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1489:         XmRFontList, 0, &argok)); if (argok) ac++;
1490:     XtSetArg(args[ac], XmNlabelString, 
1491:         CONVERT(parent, "Open", 
1492:         XmRXmString, 0, &argok)); if (argok) ac++;
1493:     XtSetArg(args[ac], XmNmnemonic, 'O'); ac++;
1494:     cascadeButtonOpen = XmCreateCascadeButton(pulldownMenuFile,
1495:         "cascadeButtonOpen",
1496:         args, 
1497:         ac);
1498:     XtManageChild(cascadeButtonOpen);
1499:     
1500:     ac = 0;
1501:     XtSetArg(args[ac], XmNx, 0); ac++;
1502:     XtSetArg(args[ac], XmNy, 0); ac++;
1503:     XtSetArg(args[ac], XmNwidth, 200); ac++;
1504:     XtSetArg(args[ac], XmNheight, 70); ac++;
1505:     pulldownMenuOpen = XmCreatePulldownMenu(XtParent(cascadeButtonOpen),
1506:         "pulldownMenuOpen",
1507:         args, 
1508:         ac);
1509:     
1510:     ac = 0;
1511:     XtSetArg(args[ac], XmNfontList, 
1512:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1513:         XmRFontList, 0, &argok)); if (argok) ac++;
1514:     XtSetArg(args[ac], XmNlabelString, 
1515:         CONVERT(parent, "Data File...", 
1516:         XmRXmString, 0, &argok)); if (argok) ac++;
1517:     XtSetArg(args[ac], XmNmnemonic, 'D'); ac++;
1518:     XtSetArg(args[ac], XmNaccelerator, "Ctrl<Key>O"); ac++;
1519:     XtSetArg(args[ac], XmNacceleratorText, 
1520:         CONVERT(parent, "Ctrl+O", 
1521:         XmRXmString, 0, &argok)); if (argok) ac++;
1522:     pushButtonOpenData = XmCreatePushButton(pulldownMenuOpen,
1523:         "pushButtonOpenData",
1524:         args, 
1525:         ac);
1526:     XtManageChild(pushButtonOpenData);
1527:     XtAddCallback(pushButtonOpenData, XmNactivateCallback, SpOpenDataCB, (XtPointer)0);
1528:     
1529:     ac = 0;
1530:     XtSetArg(args[ac], XmNsensitive, False); ac++;
1531:     XtSetArg(args[ac], XmNfontList, 
1532:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1533:         XmRFontList, 0, &argok)); if (argok) ac++;
1534:     XtSetArg(args[ac], XmNlabelString, 
1535:         CONVERT(parent, "Stratigraphy File...", 
1536:         XmRXmString, 0, &argok)); if (argok) ac++;
1537:     XtSetArg(args[ac], XmNmnemonic, 'S'); ac++;
1538:     XtSetArg(args[ac], XmNrecomputeSize, False); ac++;
1539:     pushButtonOpenStrat = XmCreatePushButton(pulldownMenuOpen,
1540:         "pushButtonOpenStrat",
1541:         args, 
1542:         ac);
1543:     XtManageChild(pushButtonOpenStrat);
1544:     XtAddCallback(pushButtonOpenStrat, XmNactivateCallback, OpenStrat, (XtPointer)0);
1545:     
1546:     ac = 0;
1547:     XtSetArg(args[ac], XmNsensitive, False); ac++;
1548:     XtSetArg(args[ac], XmNfontList, 
1549:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1550:         XmRFontList, 0, &argok)); if (argok) ac++;
1551:     XtSetArg(args[ac], XmNlabelString, 
1552:         CONVERT(parent, "Splicer Table...", 
1553:         XmRXmString, 0, &argok)); if (argok) ac++;
1554:     XtSetArg(args[ac], XmNmnemonic, 'T'); ac++;
1555:     XtSetArg(args[ac], XmNrecomputeSize, False); ac++;
1556:     pushButtonOpenSplicerTable = XmCreatePushButton(pulldownMenuOpen,
1557:         "pushButtonOpenSplicerTable",
1558:         args, 
1559:         ac);
1560:     XtManageChild(pushButtonOpenSplicerTable);
1561:     XtAddCallback(pushButtonOpenSplicerTable, XmNactivateCallback, OpenSplicerTable, (XtPointer)0);
1562:     
1563:     ac = 0;
1564:     XtSetArg(args[ac], XmNsubMenuId, pulldownMenuOpen); ac++;
1565:     XtSetValues(cascadeButtonOpen, args, ac);
1566:     
1567:     ac = 0;
1568:     XtSetArg(args[ac], XmNfontList, 
1569:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1570:         XmRFontList, 0, &argok)); if (argok) ac++;
1571:     XtSetArg(args[ac], XmNlabelString, 
1572:         CONVERT(parent, "Save", 
1573:         XmRXmString, 0, &argok)); if (argok) ac++;
1574:     XtSetArg(args[ac], XmNmnemonic, 'S'); ac++;
1575:     cascadeButtonSave = XmCreateCascadeButton(pulldownMenuFile,
1576:         "cascadeButtonSave",
1577:         args, 
1578:         ac);
1579:     XtManageChild(cascadeButtonSave);
1580:     
1581:     ac = 0;
1582:     XtSetArg(args[ac], XmNx, 0); ac++;
1583:     XtSetArg(args[ac], XmNy, 0); ac++;
1584:     XtSetArg(args[ac], XmNwidth, 225); ac++;
1585:     XtSetArg(args[ac], XmNheight, 136); ac++;
1586:     pulldownMenuSave = XmCreatePulldownMenu(XtParent(cascadeButtonSave),
1587:         "pulldownMenuSave",
1588:         args, 
1589:         ac);
1590:     
1591:     ac = 0;
1592:     XtSetArg(args[ac], XmNfontList, 
1593:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1594:         XmRFontList, 0, &argok)); if (argok) ac++;
1595:     XtSetArg(args[ac], XmNlabelString, 
1596:         CONVERT(parent, "Cull Table ...", 
1597:         XmRXmString, 0, &argok)); if (argok) ac++;
1598:     XtSetArg(args[ac], XmNmnemonic, 'C'); ac++;
1599:     pushButtonSaveCull = XmCreatePushButton(pulldownMenuSave,
1600:         "pushButtonSaveCull",
1601:         args, 
1602:         ac);
1603:     XtManageChild(pushButtonSaveCull);
1604:     XtAddCallback(pushButtonSaveCull, XmNactivateCallback, SaveCullTable, (XtPointer)0);
1605:     
1606:     ac = 0;
1607:     XtSetArg(args[ac], XmNfontList, 
1608:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1609:         XmRFontList, 0, &argok)); if (argok) ac++;
1610:     XtSetArg(args[ac], XmNlabelString, 
1611:         CONVERT(parent, "Affine Table ...", 
1612:         XmRXmString, 0, &argok)); if (argok) ac++;
1613:     XtSetArg(args[ac], XmNmnemonic, 'A'); ac++;
1614:     XtSetArg(args[ac], XmNaccelerator, "Ctrl<Key>A"); ac++;
1615:     XtSetArg(args[ac], XmNacceleratorText, 
1616:         CONVERT(parent, "Ctrl+A", 
1617:         XmRXmString, 0, &argok)); if (argok) ac++;
1618:     XtSetArg(args[ac], XmNrecomputeSize, False); ac++;
1619:     pushButtonSaveAffine = XmCreatePushButton(pulldownMenuSave,
1620:         "pushButtonSaveAffine",
1621:         args, 
1622:         ac);
1623:     XtManageChild(pushButtonSaveAffine);
1624:     XtAddCallback(pushButtonSaveAffine, XmNactivateCallback, SaveAffineTable, (XtPointer)0);
1625:     
1626:     ac = 0;
1627:     XtSetArg(args[ac], XmNfontList, 
1628:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1629:         XmRFontList, 0, &argok)); if (argok) ac++;
1630:     XtSetArg(args[ac], XmNlabelString, 
1631:         CONVERT(parent, "Splicer Table...", 
1632:         XmRXmString, 0, &argok)); if (argok) ac++;
1633:     XtSetArg(args[ac], XmNmnemonic, 'S'); ac++;
1634:     XtSetArg(args[ac], XmNaccelerator, "Ctrl<Key>S"); ac++;
1635:     XtSetArg(args[ac], XmNacceleratorText, 
1636:         CONVERT(parent, "Ctrl+S", 
1637:         XmRXmString, 0, &argok)); if (argok) ac++;
1638:     XtSetArg(args[ac], XmNrecomputeSize, False); ac++;
1639:     pushButtonSaveSplicerTable = XmCreatePushButton(pulldownMenuSave,
1640:         "pushButtonSaveSplicerTable",
1641:         args, 
1642:         ac);
1643:     XtManageChild(pushButtonSaveSplicerTable);
1644:     XtAddCallback(pushButtonSaveSplicerTable, XmNactivateCallback, SaveSpliceTable, (XtPointer)0);
1645:     
1646:     ac = 0;
1647:     XtSetArg(args[ac], XmNfontList, 
1648:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1649:         XmRFontList, 0, &argok)); if (argok) ac++;
1650:     XtSetArg(args[ac], XmNlabelString, 
1651:         CONVERT(parent, "Stratigraphy File...", 
1652:         XmRXmString, 0, &argok)); if (argok) ac++;
1653:     XtSetArg(args[ac], XmNmnemonic, 'F'); ac++;
1654:     XtSetArg(args[ac], XmNrecomputeSize, False); ac++;
1655:     pushButtonSaveStrat = XmCreatePushButton(pulldownMenuSave,
1656:         "pushButtonSaveStrat",
1657:         args, 
1658:         ac);
1659:     XtManageChild(pushButtonSaveStrat);
1660:     XtAddCallback(pushButtonSaveStrat, XmNactivateCallback, SaveStrat, (XtPointer)0);
1661:     
1662:     ac = 0;
1663:     XtSetArg(args[ac], XmNfontList, 
1664:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1665:         XmRFontList, 0, &argok)); if (argok) ac++;
1666:     XtSetArg(args[ac], XmNlabelString, 
1667:         CONVERT(parent, "Data File...", 
1668:         XmRXmString, 0, &argok)); if (argok) ac++;
1669:     XtSetArg(args[ac], XmNmnemonic, 'D'); ac++;
1670:     XtSetArg(args[ac], XmNrecomputeSize, False); ac++;
1671:     pushButtonSaveData = XmCreatePushButton(pulldownMenuSave,
1672:         "pushButtonSaveData",
1673:         args, 
1674:         ac);
1675:     XtManageChild(pushButtonSaveData);
1676:     XtAddCallback(pushButtonSaveData, XmNactivateCallback, SaveData, (XtPointer)0);
1677:     
1678:     ac = 0;
1679:     XtSetArg(args[ac], XmNfontList, 
1680:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1681:         XmRFontList, 0, &argok)); if (argok) ac++;
1682:     XtSetArg(args[ac], XmNlabelString, 
1683:         CONVERT(parent, "Spliced Data Record...", 
1684:         XmRXmString, 0, &argok)); if (argok) ac++;
1685:     XtSetArg(args[ac], XmNmnemonic, 'R'); ac++;
1686:     XtSetArg(args[ac], XmNrecomputeSize, False); ac++;
1687:     pushButtonSaveSplicerData = XmCreatePushButton(pulldownMenuSave,
1688:         "pushButtonSaveSplicerData",
1689:         args, 
1690:         ac);
1691:     XtManageChild(pushButtonSaveSplicerData);
1692:     XtAddCallback(pushButtonSaveSplicerData, XmNactivateCallback, SaveSplice, (XtPointer)0);
1693:     
1694:     ac = 0;
1695:     XtSetArg(args[ac], XmNsubMenuId, pulldownMenuSave); ac++;
1696:     XtSetValues(cascadeButtonSave, args, ac);
1697:     
1698:     ac = 0;
1699:     XtSetArg(args[ac], XmNfontList, 
1700:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1701:         XmRFontList, 0, &argok)); if (argok) ac++;
1702:     XtSetArg(args[ac], XmNlabelString, 
1703:         CONVERT(parent, "Clear", 
1704:         XmRXmString, 0, &argok)); if (argok) ac++;
1705:     XtSetArg(args[ac], XmNmnemonic, 'C'); ac++;
1706:     cascadeButtonClear = XmCreateCascadeButton(pulldownMenuFile,
1707:         "cascadeButtonClear",
1708:         args, 
1709:         ac);
1710:     XtManageChild(cascadeButtonClear);
1711:     
1712:     ac = 0;
1713:     XtSetArg(args[ac], XmNx, 0); ac++;
1714:     XtSetArg(args[ac], XmNy, 0); ac++;
1715:     XtSetArg(args[ac], XmNwidth, 97); ac++;
1716:     XtSetArg(args[ac], XmNheight, 92); ac++;
1717:     pulldownMenuClear = XmCreatePulldownMenu(XtParent(cascadeButtonClear),
1718:         "pulldownMenuClear",
1719:         args, 
1720:         ac);
1721:     
1722:     ac = 0;
1723:     XtSetArg(args[ac], XmNfontList, 
1724:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1725:         XmRFontList, 0, &argok)); if (argok) ac++;
1726:     XtSetArg(args[ac], XmNlabelString, 
1727:         CONVERT(parent, "All", 
1728:         XmRXmString, 0, &argok)); if (argok) ac++;
1729:     XtSetArg(args[ac], XmNmnemonic, 'A'); ac++;
1730:     pushButtonClearAll = XmCreatePushButton(pulldownMenuClear,
1731:         "pushButtonClearAll",
1732:         args, 
1733:         ac);
1734:     XtManageChild(pushButtonClearAll);
1735:     XtAddCallback(pushButtonClearAll, XmNactivateCallback, Clear, (XtPointer)"A");
1736:     
1737:     ac = 0;
1738:     XtSetArg(args[ac], XmNsensitive, False); ac++;
1739:     XtSetArg(args[ac], XmNfontList, 
1740:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1741:         XmRFontList, 0, &argok)); if (argok) ac++;
1742:     XtSetArg(args[ac], XmNlabelString, 
1743:         CONVERT(parent, "Composite", 
1744:         XmRXmString, 0, &argok)); if (argok) ac++;
1745:     XtSetArg(args[ac], XmNmnemonic, 'C'); ac++;
1746:     XtSetArg(args[ac], XmNrecomputeSize, False); ac++;
1747:     pushButtonClearComposite = XmCreatePushButton(pulldownMenuClear,
1748:         "pushButtonClearComposite",
1749:         args, 
1750:         ac);
1751:     XtManageChild(pushButtonClearComposite);
1752:     XtAddCallback(pushButtonClearComposite, XmNactivateCallback, Clear, (XtPointer)"C");
1753:     
1754:     ac = 0;
1755:     XtSetArg(args[ac], XmNsensitive, True); ac++;
1756:     XtSetArg(args[ac], XmNfontList, 
1757:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1758:         XmRFontList, 0, &argok)); if (argok) ac++;
1759:     XtSetArg(args[ac], XmNlabelString, 
1760:         CONVERT(parent, "Splice", 
1761:         XmRXmString, 0, &argok)); if (argok) ac++;
1762:     XtSetArg(args[ac], XmNmnemonic, 'S'); ac++;
1763:     XtSetArg(args[ac], XmNrecomputeSize, False); ac++;
1764:     pushButtonClearSplice = XmCreatePushButton(pulldownMenuClear,
1765:         "pushButtonClearSplice",
1766:         args, 
1767:         ac);
1768:     XtManageChild(pushButtonClearSplice);
1769:     XtAddCallback(pushButtonClearSplice, XmNactivateCallback, Clear, (XtPointer)"S");
1770:     
1771:     ac = 0;
1772:     XtSetArg(args[ac], XmNsensitive, False); ac++;
1773:     XtSetArg(args[ac], XmNfontList, 
1774:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1775:         XmRFontList, 0, &argok)); if (argok) ac++;
1776:     XtSetArg(args[ac], XmNlabelString, 
1777:         CONVERT(parent, "Stratigraphy", 
1778:         XmRXmString, 0, &argok)); if (argok) ac++;
1779:     pushButtonClearStrat = XmCreatePushButton(pulldownMenuClear,
1780:         "pushButtonClearStrat",
1781:         args, 
1782:         ac);
1783:     XtManageChild(pushButtonClearStrat);
1784:     XtAddCallback(pushButtonClearStrat, XmNactivateCallback, Clear, (XtPointer)"D");
1785:     
1786:     ac = 0;
1787:     XtSetArg(args[ac], XmNsubMenuId, pulldownMenuClear); ac++;
1788:     XtSetValues(cascadeButtonClear, args, ac);
1789:     
1790:     ac = 0;
1791:     separatorFile2 = XmCreateSeparator(pulldownMenuFile,
1792:         "separatorFile2",
1793:         args, 
1794:         ac);
1795:     XtManageChild(separatorFile2);
1796:     
1797:     ac = 0;
1798:     XtSetArg(args[ac], XmNsensitive, False); ac++;
1799:     XtSetArg(args[ac], XmNfontList, 
1800:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1801:         XmRFontList, 0, &argok)); if (argok) ac++;
1802:     XtSetArg(args[ac], XmNlabelString, 
1803:         CONVERT(parent, "Print", 
1804:         XmRXmString, 0, &argok)); if (argok) ac++;
1805:     XtSetArg(args[ac], XmNmnemonic, 'P'); ac++;
1806:     XtSetArg(args[ac], XmNrecomputeSize, False); ac++;
1807:     pushButtonPrint = XmCreatePushButton(pulldownMenuFile,
1808:         "pushButtonPrint",
1809:         args, 
1810:         ac);
1811:     XtManageChild(pushButtonPrint);
1812:     
1813:     ac = 0;
1814:     separatorFile3 = XmCreateSeparator(pulldownMenuFile,
1815:         "separatorFile3",
1816:         args, 
1817:         ac);
1818:     XtManageChild(separatorFile3);
1819:     
1820:     ac = 0;
1821:     XtSetArg(args[ac], XmNfontList, 
1822:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1823:         XmRFontList, 0, &argok)); if (argok) ac++;
1824:     XtSetArg(args[ac], XmNlabelString, 
1825:         CONVERT(parent, "Exit", 
1826:         XmRXmString, 0, &argok)); if (argok) ac++;
1827:     XtSetArg(args[ac], XmNmnemonic, 'E'); ac++;
1828:     XtSetArg(args[ac], XmNaccelerator, "Ctrl<Key>X"); ac++;
1829:     XtSetArg(args[ac], XmNacceleratorText, 
1830:         CONVERT(parent, "Ctrl+X", 
1831:         XmRXmString, 0, &argok)); if (argok) ac++;
1832:     XtSetArg(args[ac], XmNrecomputeSize, False); ac++;
1833:     pushButtonExit = XmCreatePushButton(pulldownMenuFile,
1834:         "pushButtonExit",
1835:         args, 
1836:         ac);
1837:     XtManageChild(pushButtonExit);
1838:     XtAddCallback(pushButtonExit, XmNactivateCallback, VerifyExitCB, (XtPointer)0);
1839:     
1840:     ac = 0;
1841:     XtSetArg(args[ac], XmNfontList, 
1842:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1843:         XmRFontList, 0, &argok)); if (argok) ac++;
1844:     XtSetArg(args[ac], XmNlabelString, 
1845:         CONVERT(parent, "Preview Input ...", 
1846:         XmRXmString, 0, &argok)); if (argok) ac++;
1847:     XtSetArg(args[ac], XmNmnemonic, 'I'); ac++;
1848:     pushButtonPreviewInput = XmCreatePushButton(pulldownMenuFile,
1849:         "pushButtonPreviewInput",
1850:         args, 
1851:         ac);
1852:     XtManageChild(pushButtonPreviewInput);
1853:     XtAddCallback(pushButtonPreviewInput, XmNactivateCallback, PreviewInput, (XtPointer)0);
1854:     
1855:     ac = 0;
1856:     XtSetArg(args[ac], XmNsubMenuId, pulldownMenuFile); ac++;
1857:     XtSetValues(cascadeButtonFile, args, ac);
1858:     
1859:     ac = 0;
1860:     XtSetArg(args[ac], XmNfontList, 
1861:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1862:         XmRFontList, 0, &argok)); if (argok) ac++;
1863:     XtSetArg(args[ac], XmNlabelString, 
1864:         CONVERT(parent, "Process", 
1865:         XmRXmString, 0, &argok)); if (argok) ac++;
1866:     XtSetArg(args[ac], XmNmnemonic, 'P'); ac++;
1867:     XtSetArg(args[ac], XmNx, 76); ac++;
1868:     XtSetArg(args[ac], XmNy, 5); ac++;
1869:     XtSetArg(args[ac], XmNwidth, 71); ac++;
1870:     XtSetArg(args[ac], XmNheight, 22); ac++;
1871:     cascadeButtonProcess = XmCreateCascadeButton(menuBarMain,
1872:         "cascadeButtonProcess",
1873:         args, 
1874:         ac);
1875:     XtManageChild(cascadeButtonProcess);
1876:     
1877:     ac = 0;
1878:     XtSetArg(args[ac], XmNx, 0); ac++;
1879:     XtSetArg(args[ac], XmNy, 0); ac++;
1880:     XtSetArg(args[ac], XmNwidth, 168); ac++;
1881:     XtSetArg(args[ac], XmNheight, 92); ac++;
1882:     pulldownMenuProcess = XmCreatePulldownMenu(XtParent(cascadeButtonProcess),
1883:         "pulldownMenuProcess",
1884:         args, 
1885:         ac);
1886:     
1887:     ac = 0;
1888:     XtSetArg(args[ac], XmNfontList, 
1889:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1890:         XmRFontList, 0, &argok)); if (argok) ac++;
1891:     XtSetArg(args[ac], XmNlabelString, 
1892:         CONVERT(parent, "Composite ...", 
1893:         XmRXmString, 0, &argok)); if (argok) ac++;
1894:     XtSetArg(args[ac], XmNmnemonic, 'C'); ac++;
1895:     XtSetArg(args[ac], XmNrecomputeSize, False); ac++;
1896:     pushButtonComposite = XmCreatePushButton(pulldownMenuProcess,
1897:         "pushButtonComposite",
1898:         args, 
1899:         ac);
1900:     XtManageChild(pushButtonComposite);
1901:     XtAddCallback(pushButtonComposite, XmNactivateCallback, Composite, (XtPointer)0);
1902:     
1903:     ac = 0;
1904:     XtSetArg(args[ac], XmNfontList, 
1905:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1906:         XmRFontList, 0, &argok)); if (argok) ac++;
1907:     XtSetArg(args[ac], XmNlabelString, 
1908:         CONVERT(parent, "Splice", 
1909:         XmRXmString, 0, &argok)); if (argok) ac++;
1910:     XtSetArg(args[ac], XmNmnemonic, 'S'); ac++;
1911:     cascadeButtonSplice = XmCreateCascadeButton(pulldownMenuProcess,
1912:         "cascadeButtonSplice",
1913:         args, 
1914:         ac);
1915:     XtManageChild(cascadeButtonSplice);
1916:     
1917:     ac = 0;
1918:     XtSetArg(args[ac], XmNx, 0); ac++;
1919:     XtSetArg(args[ac], XmNy, 0); ac++;
1920:     XtSetArg(args[ac], XmNwidth, 129); ac++;
1921:     XtSetArg(args[ac], XmNheight, 48); ac++;
1922:     pulldownMenuSplice = XmCreatePulldownMenu(XtParent(cascadeButtonSplice),
1923:         "pulldownMenuSplice",
1924:         args, 
1925:         ac);
1926:     
1927:     ac = 0;
1928:     XtSetArg(args[ac], XmNsensitive, True); ac++;
1929:     XtSetArg(args[ac], XmNfontList, 
1930:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1931:         XmRFontList, 0, &argok)); if (argok) ac++;
1932:     XtSetArg(args[ac], XmNlabelString, 
1933:         CONVERT(parent, "Constrained ...", 
1934:         XmRXmString, 0, &argok)); if (argok) ac++;
1935:     XtSetArg(args[ac], XmNmnemonic, 'C'); ac++;
1936:     pushButtonSpliceConstrained = XmCreatePushButton(pulldownMenuSplice,
1937:         "pushButtonSpliceConstrained",
1938:         args, 
1939:         ac);
1940:     XtManageChild(pushButtonSpliceConstrained);
1941:     XtAddCallback(pushButtonSpliceConstrained, XmNactivateCallback, Splicing, (XtPointer)"C");
1942:     
1943:     ac = 0;
1944:     XtSetArg(args[ac], XmNfontList, 
1945:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1946:         XmRFontList, 0, &argok)); if (argok) ac++;
1947:     XtSetArg(args[ac], XmNlabelString, 
1948:         CONVERT(parent, "Unconstrained ...", 
1949:         XmRXmString, 0, &argok)); if (argok) ac++;
1950:     XtSetArg(args[ac], XmNmnemonic, 'U'); ac++;
1951:     XtSetArg(args[ac], XmNrecomputeSize, False); ac++;
1952:     pushButtonSpliceUnconstrained = XmCreatePushButton(pulldownMenuSplice,
1953:         "pushButtonSpliceUnconstrained",
1954:         args, 
1955:         ac);
1956:     XtManageChild(pushButtonSpliceUnconstrained);
1957:     XtAddCallback(pushButtonSpliceUnconstrained, XmNactivateCallback, Splicing, (XtPointer)"U");
1958:     
1959:     ac = 0;
1960:     XtSetArg(args[ac], XmNsubMenuId, pulldownMenuSplice); ac++;
1961:     XtSetValues(cascadeButtonSplice, args, ac);
1962:     
1963:     ac = 0;
1964:     XtSetArg(args[ac], XmNsensitive, False); ac++;
1965:     XtSetArg(args[ac], XmNfontList, 
1966:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1967:         XmRFontList, 0, &argok)); if (argok) ac++;
1968:     XtSetArg(args[ac], XmNlabelString, 
1969:         CONVERT(parent, "Apply Affine/Splice...", 
1970:         XmRXmString, 0, &argok)); if (argok) ac++;
1971:     XtSetArg(args[ac], XmNmnemonic, 'A'); ac++;
1972:     XtSetArg(args[ac], XmNrecomputeSize, False); ac++;
1973:     pushButtonApplyAffineSplice = XmCreatePushButton(pulldownMenuProcess,
1974:         "pushButtonApplyAffineSplice",
1975:         args, 
1976:         ac);
1977:     XtManageChild(pushButtonApplyAffineSplice);
1978:     XtAddCallback(pushButtonApplyAffineSplice, XmNactivateCallback, ApplyAffineSplice, (XtPointer)0);
1979:     
1980:     ac = 0;
1981:     XtSetArg(args[ac], XmNfontList, 
1982:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
1983:         XmRFontList, 0, &argok)); if (argok) ac++;
1984:     XtSetArg(args[ac], XmNlabelString, 
1985:         CONVERT(parent, "Data", 
1986:         XmRXmString, 0, &argok)); if (argok) ac++;
1987:     XtSetArg(args[ac], XmNmnemonic, 'D'); ac++;
1988:     cascadeButtonDataManip = XmCreateCascadeButton(pulldownMenuProcess,
1989:         "cascadeButtonDataManip",
1990:         args, 
1991:         ac);
1992:     XtManageChild(cascadeButtonDataManip);
1993:     
1994:     ac = 0;
1995:     XtSetArg(args[ac], XmNx, 0); ac++;
1996:     XtSetArg(args[ac], XmNy, 0); ac++;
1997:     XtSetArg(args[ac], XmNwidth, 90); ac++;
1998:     XtSetArg(args[ac], XmNheight, 92); ac++;
1999:     pulldownMenuDataManip = XmCreatePulldownMenu(XtParent(cascadeButtonDataManip),
2000:         "pulldownMenuDataManip",
2001:         args, 
2002:         ac);
2003:     
2004:     ac = 0;
2005:     XtSetArg(args[ac], XmNfontList, 
2006:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
2007:         XmRFontList, 0, &argok)); if (argok) ac++;
2008:     XtSetArg(args[ac], XmNlabelString, 
2009:         CONVERT(parent, "Cull ...", 
2010:         XmRXmString, 0, &argok)); if (argok) ac++;
2011:     pushButtonDataManipCull = XmCreatePushButton(pulldownMenuDataManip,
2012:         "pushButtonDataManipCull",
2013:         args, 
2014:         ac);
2015:     XtManageChild(pushButtonDataManipCull);
2016:     XtAddCallback(pushButtonDataManipCull, XmNactivateCallback, SpOpenCullCB, (XtPointer)0);
2017:     
2018:     ac = 0;
2019:     XtSetArg(args[ac], XmNfontList, 
2020:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
2021:         XmRFontList, 0, &argok)); if (argok) ac++;
2022:     XtSetArg(args[ac], XmNlabelString, 
2023:         CONVERT(parent, "Smooth ...", 
2024:         XmRXmString, 0, &argok)); if (argok) ac++;
2025:     pushButtonDataManipSmooth = XmCreatePushButton(pulldownMenuDataManip,
2026:         "pushButtonDataManipSmooth",
2027:         args, 
2028:         ac);
2029:     XtManageChild(pushButtonDataManipSmooth);
2030:     XtAddCallback(pushButtonDataManipSmooth, XmNactivateCallback, SpOpenSmoothCB, (XtPointer)0);
2031:     
2032:     ac = 0;
2033:     XtSetArg(args[ac], XmNfontList, 
2034:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
2035:         XmRFontList, 0, &argok)); if (argok) ac++;
2036:     XtSetArg(args[ac], XmNlabelString, 
2037:         CONVERT(parent, "Decimate ...", 
2038:         XmRXmString, 0, &argok)); if (argok) ac++;
2039:     pushButtonDataManipDecimate = XmCreatePushButton(pulldownMenuDataManip,
2040:         "pushButtonDataManipDecimate",
2041:         args, 
2042:         ac);
2043:     XtManageChild(pushButtonDataManipDecimate);
2044:     XtAddCallback(pushButtonDataManipDecimate, XmNactivateCallback, SpOpenDecimateCB, (XtPointer)0);
2045:     
2046:     ac = 0;
2047:     XtSetArg(args[ac], XmNsensitive, False); ac++;
2048:     XtSetArg(args[ac], XmNfontList, 
2049:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
2050:         XmRFontList, 0, &argok)); if (argok) ac++;
2051:     XtSetArg(args[ac], XmNlabelString, 
2052:         CONVERT(parent, "Detrend ...", 
2053:         XmRXmString, 0, &argok)); if (argok) ac++;
2054:     pushButtonDataManipDetrend = XmCreatePushButton(pulldownMenuDataManip,
2055:         "pushButtonDataManipDetrend",
2056:         args, 
2057:         ac);
2058:     XtManageChild(pushButtonDataManipDetrend);
2059:     XtAddCallback(pushButtonDataManipDetrend, XmNactivateCallback, DetrendActivate, (XtPointer)0);
2060:     
2061:     ac = 0;
2062:     XtSetArg(args[ac], XmNsubMenuId, pulldownMenuDataManip); ac++;
2063:     XtSetValues(cascadeButtonDataManip, args, ac);
2064:     
2065:     ac = 0;
2066:     XtSetArg(args[ac], XmNsubMenuId, pulldownMenuProcess); ac++;
2067:     XtSetValues(cascadeButtonProcess, args, ac);
2068:     
2069:     ac = 0;
2070:     XtSetArg(args[ac], XmNfontList, 
2071:         CONVERT(parent, "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1", 
2072:         XmRFontList, 0, &argok)); if (argok) ac++;
2073:     XtSetArg(args[ac], XmNlabelString, 
2074:         CONVERT(parent, "View", 
2075:         XmRXmString, 0, &argok)); if (argok) ac++;
2076:     XtSetArg(args[ac], XmNmnemonic, 'V'); ac++;
2077:     XtSetArg(args[ac], XmNx, 147); ac++;
2078:     XtSetArg(args[ac], XmNy, 5); ac++;
2079:     XtSetArg(args[ac], XmNwidth, 71); ac++;
2080:     XtSetArg(args[ac], XmNheight, 22); ac++;
2081:     cascadeButtonView = XmCreateCascadeButton(menuBarMain,
2082:         "cascadeButtonView",
2083:         args, 
2084:         ac);
2085:     XtManageChild(cascadeButtonView);
2086:     
2087:     ac = 0;
2088:     XtSetArg(args[ac], XmNx, 0); ac++;
2089:     XtSetArg(args[ac], XmNy, 0); ac++;
2090:     XtSetArg(args[ac], XmNwidth, 135); ac++;
2091:     XtSetArg(args[ac], XmNheight, 92); ac++;
2092:     pulldownMenuView = XmCreatePulldownMenu(XtParent(cascadeButtonView),
2093:         "pulldownMenuView",
2094:         args, 
2095:         ac);
2096:     
2097:     ac = 0;
2098:     XtSetArg(args[ac], X