1
! UIMX ascii 2.0 key: 4185
5
if ((s = XmTextGetSelection(UxWidget)) == NULL) return; \
7
if (s[0] == '/') GetHelp (s," ",1L); \
8
else GetHelp (s,"?",1L); \
9
XmTextClearSelection(UxWidget,XtLastTimestampProcessed(UxDisplay));\
12
WriteHelpAW(UxWidget);\
16
*action.SelectCommand: {\
21
if ((s = XmTextGetSelection(UxWidget)) == NULL) return; \
25
XmTextClearSelection(UxWidget,XtLastTimestampProcessed(UxDisplay));\
33
*translation.table: HelpTable
34
*translation.parent: ApplicWindow
35
*translation.policy: replace
36
*translation.<Btn1Up>: HelpACT()
37
*translation.<Btn1Down>: grab-focus()
38
*translation.<EnterWindow>: WriteHelp()
40
*translation.table: TextTable
41
*translation.parent: ApplicWindow
42
*translation.policy: override
43
*translation.<Btn1Up> : SelectCommand()
45
*translation.table: transTable10
46
*translation.parent: ApplicWindow
47
*translation.policy: override
48
*translation.<EnterWindow>: WriteHelp() Enter()
50
*ApplicWindow.class: applicationShell
51
*ApplicWindow.parent: NO_PARENT
52
*ApplicWindow.static: false
53
*ApplicWindow.gbldecl: #include <ExternResources.h>\
55
#include <Xm/Protocols.h>\
59
/* Definitions for History mechanism */\
63
int ItemNumber = 0, ItemPosition = 0;\
65
int Overview[2] = {1,0};\
67
char ItemHistory[SIZHIST][SIZTEXT];\
68
char HistList[SIZHIST*SIZTEXT];\
70
/* Variables for SelectionArray */\
72
XmTextScanType Sarray[60];\
76
/* Include for UxPut calls on the fileSelectionBox */\
78
void CreateWindowManagerProtocols();\
80
void CreateSessionManagerProtocols();\
81
void SaveSessionCB();\
83
extern Boolean saving; /* declared in file selection box declarations */\
84
extern swidget fileSelectionDialog;\
85
extern swidget fileSelectionBox;\
86
extern swidget exitDialog;\
87
extern swidget create_fileSelectionDialog();\
88
extern swidget create_exitDialog();
89
*ApplicWindow.ispecdecl:
90
*ApplicWindow.funcdecl: swidget popup_ApplicWindow()\
92
*ApplicWindow.funcname: popup_ApplicWindow
93
*ApplicWindow.funcdef: "swidget", "<popup_ApplicWindow>(%)"
95
*ApplicWindow.fcode: PutSelection(text1,0);\
96
PutSelection(text2,2);\
97
PutSelection(scrolledText,1);\
101
*ApplicWindow.auxdecl: GetHelp(s,type,inc)\
109
char MenuItem[40], command[100], item[100];\
110
extern char contxt[], midvers[];\
116
/* Store Overview Panel position */\
117
if (s[0] != '?'&& Overview[0] == 1) StoreOverviewPosition(0);\
121
UxGetLabelString(UxFindSwidget(UxGetMenuHistory(menu1))) );\
123
strcpy(MenuItem,type);\
125
if (MenuItem[0] == 'C' && MenuItem[2] == 'm' ) strcpy(command,"");\
126
if (MenuItem[0] == 'A') strcpy(command,"/APPLIC ");\
127
if (MenuItem[0] == 'P') strcpy(command,"/CL ");\
128
if (MenuItem[0] == 'K') strcpy(command,"/KEYWORD ");\
129
if (MenuItem[0] == 'S') strcpy(command,"/SUBJECT ");\
130
if (MenuItem[0] == 'C' && MenuItem[2] == 'n' ) strcpy(command,"/CONTRIB ");\
132
if (MenuItem[0] == ' ') \
136
Filter out unallowed characters in string s \
137
Allowed characters are a-z, A-Z, and _ @ $ / [] ? * and Space\
141
for (pos=0; pos<(int)strlen(s); pos++) {\
142
if (s[pos] >= 'a' && s[pos] <= 'z') item[i++] = s[pos];\
143
if (s[pos] >= 'A' && s[pos] <= 'Z') item[i++] = s[pos];\
144
if (s[pos] == '$' || s[pos] == '_' || s[pos] == '/')\
146
if (s[pos] == '[' || s[pos] == ']') item[i++] = s[pos];\
147
if (s[pos] == '?' || s[pos] == '*') item[i++] = s[pos];\
148
if (s[pos] == ' ') item[i++] = s[pos];\
149
if (s[pos] == '@') item[i++] = s[pos];\
150
if (s[pos] >= '0' && s[pos] <= '9') item[i++] = s[pos];\
154
strcat (command,item); \
157
stat = helpme(2L, midvers, command, contxt, &s2);\
161
/* Display Help message */\
162
XmTextSetString(UxGetWidget(scrolledText),s2); \
163
XmTextSetString(UxGetWidget(SHelp),"");\
165
/* Positions Overview Panel */\
166
if (s[0] == '?') SetOverviewPosition(1);\
168
/* Clears all highlights */\
169
XmTextSetHighlight(UxGetWidget(scrolledText), 0, \
170
strlen(s2), XmHIGHLIGHT_NORMAL);\
172
/* Update History List */\
174
if (item[0] != '?') \
175
strcpy(ItemHistory[ItemPosition++],command);\
176
if (ItemPosition == SIZHIST) ItemPosition = 0;\
178
DispItem = ItemNumber - 2;\
179
UxPutText(text2,GetList());\
180
DispItem = ItemNumber - 1; \
182
/* Builds History List and Display it */\
184
int LastItem, FirstItem=0, Item, ListPosition=0, stat;\
185
char s[SIZTEXT*SIZHIST];\
187
LastItem = ItemPosition - 1;\
188
if (LastItem < 0) LastItem += SIZHIST;\
189
if (ItemNumber >= SIZHIST) FirstItem = LastItem + 1; \
193
for (Item = LastItem; Item>=0; Item--) {\
194
strcat(s,ItemHistory[Item]);\
195
strcat(&s[ListPosition],"\n");\
198
if (ItemNumber >= SIZHIST) {\
199
for (Item = SIZHIST-1; Item >= FirstItem; Item--) {\
200
strcat(s,ItemHistory[Item]);\
201
strcat(&s[ListPosition],"\n");\
211
XmTextSetString(UxGetWidget(SHelp),s2); \
213
/*{ End of if (s != 0) { */\
222
GetHelp("?","?",0L);\
223
XmTextSetString(UxGetWidget(text1),"");\
234
/* SearchHelp should strip leading and trailing blanks */\
239
XmTextPosition PosText = 0;\
242
int relpos; /* Relative position */\
244
HText = UxGetText(scrolledText);\
245
SText = UxGetWidget(scrolledText);\
247
/* Initialisations */\
249
LText = strlen(HText);\
250
XmTextSetHighlight(SText, 0, LText, XmHIGHLIGHT_NORMAL);\
252
/* Set all characters to upper case for case insensitivity */\
254
for (PosText=0; PosText<LText; PosText++) \
255
HText[PosText] = toupper(HText[PosText]); \
257
for (PosText=0; PosText<(int)strlen(s); PosText++) \
258
s[PosText] = toupper(s[PosText]); \
262
/* If Show, shows all occurences */\
266
relpos = strindex(HText,s);\
268
if (relpos == LText) \
269
XmTextSetString(UxGetWidget(SHelp),"Pattern not found");\
271
XmTextShowPosition(SText,(XmTextPosition) relpos); \
273
while (relpos != LText) {\
277
XmTextSetHighlight(SText,PosText,\
278
PosText+strlen(s),XmHIGHLIGHT_SELECTED);\
282
LText = strlen(HText+PosText);\
283
relpos = strindex(HText+PosText,s);\
295
int quotient, module, minitem;\
299
if (n >= ItemNumber) n = ItemNumber-1;\
301
if (ItemNumber < SIZHIST) minitem = 0;\
302
else minitem = ItemNumber - SIZHIST;\
304
if (n < minitem) n = minitem;\
308
quotient = (int) n/SIZHIST;\
309
module = n - quotient*SIZHIST;\
311
return( (XmString) (ItemHistory+module) );\
323
if (toupper(s[1]) == 'A') \
324
UxPutMenuHistory(menu1,"menu1_p1_b2"); /* APPLIC */\
327
if (toupper(s[1]) == 'C') \
328
UxPutMenuHistory(menu1,"menu1_p1_b3"); /* CL */\
330
if (toupper(s[1]) == 'K') \
331
UxPutMenuHistory(menu1,"menu1_p1_b4"); /* KEYWORD */\
333
if (toupper(s[1]) == 'S') \
334
UxPutMenuHistory(menu1,"menu1_p1_b6"); /* SUBJECT */\
339
UxPutMenuHistory(menu1,"menu1_p1_b1");\
344
PutSelection(sw, mode)\
350
XmTextScanType *array;\
355
wid = UxGetWidget(sw);\
357
XtSetArg(args[n], XmNselectionArray, &array), n++;\
358
XtGetValues(wid , args, n);\
360
/* printf("SarI, Widget ID: %i , %i \n",SarI,wid); */\
362
for (i=0; i<=3; i++) \
363
Sarray[SarI+i] = array[i];\
365
/* for (i=0; i<=3; i++) {\
366
if (array[i] == XmSELECT_POSITION) printf("%d : Position\n",i);\
367
if (array[i] == XmSELECT_WORD) printf("%d : Word\n",i);\
368
if (array[i] == XmSELECT_LINE) printf("%d : Line\n",i);\
369
if (array[i] == XmSELECT_ALL) printf("%d : All\n",i);\
373
for (i=0; i<=3; i++)\
374
Sarray[SarI+i] = Sarray[SarI+mode];\
377
XtSetArg(args[n], XmNselectionArray, (Sarray+SarI)), n++;\
378
XtSetValues(wid , args, n);\
386
if (mode == 0) XtSetSensitive(UxGetWidget(SysEntry),FALSE);\
387
if (mode == 1) XtSetSensitive(UxGetWidget(SysEntry),TRUE);\
390
WriteHelpAW(UxWidget)\
395
extern char print_com[];\
399
if (UxWidget == UxGetWidget(CommandButton))\
400
strcpy(s,"Display an overview of the commands");\
402
if (UxWidget == UxGetWidget(HistoButton))\
403
strcpy(s,"Popup the history list of previously queried commands");\
405
if (UxWidget == UxGetWidget(SearchButton))\
406
strcpy(s,"Search strings in help file");\
408
if (UxWidget == UxGetWidget(NewsButton))\
409
strcpy(s,"Display Release News");\
411
if (UxWidget == UxGetWidget(PrintButton))\
412
sprintf(s,"Send help message to the printer. (Command: cat <file> | %s)\n",\
415
if (UxWidget == UxGetWidget(ReportButton))\
416
strcpy(s,"Popup the problem report form");\
418
if (UxWidget == UxGetWidget(CtxButton))\
419
strcpy(s,"Popup the context selection form");\
421
if (UxWidget == UxGetWidget(text1))\
422
strcpy(s,"Commands names can be typed in this area. (Get help by Return)");\
424
if (UxWidget == UxGetWidget(text2))\
425
strcpy(s,"Non editable area. Displays previous command. Click to select.");\
427
if (UxWidget == UxGetWidget(scrolledWindow))\
428
strcpy(s,"Help files display area");\
430
if (UxWidget == UxGetWidget(arrowButton2))\
431
strcpy(s,"Moves forward in the history list of commands");\
433
if (UxWidget == UxGetWidget(arrowButton1))\
434
strcpy(s,"Moves backward in the history list of commands");\
436
if (UxWidget == UxGetWidget(scrolledText))\
437
strcpy(s,"Point and Click in this area to access help files");\
440
if (UxWidget == UxGetWidget(menu1))\
441
strcpy(s,"Information mode");\
443
if (UxWidget == UxGetWidget(commandsCascade))\
444
strcpy(s,"Setup options and Exit");\
446
XmTextSetString(UxGetWidget(SHelp),s);\
455
xw = XtWindow(UxGetWidget(sw));\
456
XMapRaised(UxDisplay, xw);\
459
StoreOverviewPosition(mode)\
462
/* Store Overview Panel position */\
464
Overview[1] = (int) XmTextGetTopCharacter(UxGetWidget(scrolledText));\
467
SetOverviewPosition(mode)\
470
/* Positions Overview Panel */\
472
XmTextSetTopCharacter(UxGetWidget(scrolledText),\
473
(XmTextPosition) Overview[1]);\
476
*ApplicWindow.name: ApplicWindow
479
*ApplicWindow.width: 700
480
*ApplicWindow.height: 600
481
*ApplicWindow.title: "XHelp"
482
*ApplicWindow.deleteResponse: "do_nothing"
483
*ApplicWindow.keyboardFocusPolicy.source: public
484
*ApplicWindow.keyboardFocusPolicy: "pointer"
485
*ApplicWindow.iconName: "XHelp"
486
*ApplicWindow.popupCallback: {\
489
*ApplicWindow.background: WindowBackground
490
*ApplicWindow.geometry: "700x480+30+30"
492
*mainWindow.class: mainWindow
493
*mainWindow.parent: ApplicWindow
494
*mainWindow.static: true
495
*mainWindow.name: mainWindow
498
*mainWindow.width: 700
499
*mainWindow.height: 470
500
*mainWindow.background: WindowBackground
502
*pullDownMenu.class: rowColumn
503
*pullDownMenu.parent: mainWindow
504
*pullDownMenu.static: true
505
*pullDownMenu.name: pullDownMenu
506
*pullDownMenu.borderWidth: 0
507
*pullDownMenu.menuHelpWidget: ""
508
*pullDownMenu.rowColumnType: "menu_bar"
509
*pullDownMenu.menuAccelerator: "<KeyUp>F10"
510
*pullDownMenu.background: MenuBackground
511
*pullDownMenu.foreground: MenuForeground
513
*UtilsPane.class: rowColumn
514
*UtilsPane.parent: pullDownMenu
515
*UtilsPane.static: true
516
*UtilsPane.name: UtilsPane
517
*UtilsPane.rowColumnType: "menu_pulldown"
518
*UtilsPane.background: MenuBackground
519
*UtilsPane.foreground: MenuForeground
521
*SysEntry.class: pushButtonGadget
522
*SysEntry.parent: UtilsPane
523
*SysEntry.static: true
524
*SysEntry.name: SysEntry
525
*SysEntry.labelString: "Print & Mail..."
526
*SysEntry.mnemonic: "S"
527
*SysEntry.fontList: BoldTextFont
528
*SysEntry.accelerator: "S"
529
*SysEntry.activateCallback: {\
530
extern swidget sys; \
531
UxPopupInterface(sys,no_grab);\
535
*UtilsPane_b2.class: pushButtonGadget
536
*UtilsPane_b2.parent: UtilsPane
537
*UtilsPane_b2.static: true
538
*UtilsPane_b2.name: UtilsPane_b2
539
*UtilsPane_b2.labelString: "Exit"
540
*UtilsPane_b2.activateCallback: {\
541
close_monit_connection();\
544
*UtilsPane_b2.fontList: BoldTextFont
545
*UtilsPane_b2.mnemonic: "E"
547
*commandsCascade.class: cascadeButton
548
*commandsCascade.parent: pullDownMenu
549
*commandsCascade.static: true
550
*commandsCascade.name: commandsCascade
551
*commandsCascade.labelString: "File"
552
*commandsCascade.subMenuId: "UtilsPane"
553
*commandsCascade.background: MenuBackground
554
*commandsCascade.fontList: BoldTextFont
555
*commandsCascade.foreground: MenuForeground
556
*commandsCascade.mnemonic: "F"
557
*commandsCascade.x: 101
558
*commandsCascade.translations: transTable10
560
*workAreaForm.class: form
561
*workAreaForm.parent: mainWindow
562
*workAreaForm.static: true
563
*workAreaForm.name: workAreaForm
564
*workAreaForm.width: 490
565
*workAreaForm.height: 440
566
*workAreaForm.borderWidth: 0
567
*workAreaForm.background: WindowBackground
569
*workAreaFrame.class: frame
570
*workAreaFrame.parent: workAreaForm
571
*workAreaFrame.static: true
572
*workAreaFrame.name: workAreaFrame
575
*workAreaFrame.width: 390
576
*workAreaFrame.height: 230
577
*workAreaFrame.bottomAttachment: "attach_form"
578
*workAreaFrame.bottomOffset.source: public
579
*workAreaFrame.bottomOffset: 0
580
*workAreaFrame.leftAttachment: "attach_form"
581
*workAreaFrame.leftOffset.source: public
582
*workAreaFrame.leftOffset: 0
583
*workAreaFrame.rightAttachment: "attach_form"
584
*workAreaFrame.rightOffset.source: public
585
*workAreaFrame.rightOffset: 0
586
*workAreaFrame.topAttachment: "attach_form"
587
*workAreaFrame.topOffset: 0
588
*workAreaFrame.background: WindowBackground
590
*workArea.class: form
591
*workArea.parent: workAreaFrame
592
*workArea.static: true
593
*workArea.name: workArea
597
*workArea.height: 498
598
*workArea.borderWidth: 0
599
*workArea.createCallback: {\
602
*workArea.mapCallback: {\
605
*workArea.background: WindowBackground
606
*workArea.borderColor: WindowBackground
607
*workArea.marginHeight: 5
608
*workArea.marginWidth: 5
610
*scrolledWindow.class: scrolledWindow
611
*scrolledWindow.parent: workArea
612
*scrolledWindow.static: true
613
*scrolledWindow.name: scrolledWindow
614
*scrolledWindow.scrollingPolicy: "application_defined"
616
*scrolledWindow.y: 20
617
*scrolledWindow.visualPolicy: "variable"
618
*scrolledWindow.scrollBarDisplayPolicy: "static"
619
*scrolledWindow.shadowThickness: 0
620
*scrolledWindow.height: 270
621
*scrolledWindow.width: 490
622
*scrolledWindow.background: ApplicBackground
623
*scrolledWindow.bottomAttachment: "attach_form"
624
*scrolledWindow.bottomOffset: 135
625
*scrolledWindow.leftAttachment: "attach_form"
626
*scrolledWindow.leftOffset: 5
627
*scrolledWindow.rightAttachment: "attach_form"
628
*scrolledWindow.rightOffset: 5
629
*scrolledWindow.topAttachment: "attach_form"
630
*scrolledWindow.topOffset: 5
632
*scrolledText.class: scrolledText
633
*scrolledText.parent: scrolledWindow
634
*scrolledText.static: true
635
*scrolledText.name: scrolledText
636
*scrolledText.width: 670
637
*scrolledText.height: 220
638
*scrolledText.background: "WhiteSmoke"
641
*scrolledText.editable: "false"
642
*scrolledText.scrollHorizontal: "true"
643
*scrolledText.scrollVertical: "true"
644
*scrolledText.editMode: "multi_line_edit"
645
*scrolledText.foreground: TextForeground
646
*scrolledText.highlightColor: "black"
647
*scrolledText.fontList: SmallFont
648
*scrolledText.translations: HelpTable
649
*scrolledText.createCallback: {\
651
extern char contxt[],midvers[];\
653
helpme (2L, midvers, "?" , contxt, &s);\
654
XmTextSetString(UxWidget,s);\
657
*scrolledText.text: "This is my help, \nhelp, \nhelp...\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n End of Text"
658
*scrolledText.motionVerifyCallback: {\
661
*scrolledText.valueChangedCallback: {\
665
*menu1.class: rowColumn
666
*menu1.parent: workArea
669
*menu1.rowColumnType: "menu_option"
670
*menu1.subMenuId: "menu1_p1"
671
*menu1.background: ApplicBackground
672
*menu1.foreground: TextForeground
673
*menu1.leftAttachment: "attach_form"
674
*menu1.leftOffset: 75
675
*menu1.topAttachment: "attach_widget"
677
*menu1.topWidget: "scrolledWindow"
679
*menu1.translations: transTable10
680
*menu1.entryCallback: {\
684
*menu1.labelString: ""
686
*menu1_p1.class: rowColumn
687
*menu1_p1.parent: menu1
688
*menu1_p1.static: true
689
*menu1_p1.name: menu1_p1
690
*menu1_p1.rowColumnType: "menu_pulldown"
691
*menu1_p1.background: TextBackground
692
*menu1_p1.foreground: TextForeground
693
*menu1_p1.topShadowColor: "White"
694
*menu1_p1.translations: ""
695
*menu1_p1.entryCallback: {\
700
*menu1_p1_b1.class: pushButtonGadget
701
*menu1_p1_b1.parent: menu1_p1
702
*menu1_p1_b1.static: true
703
*menu1_p1_b1.name: menu1_p1_b1
704
*menu1_p1_b1.labelString: "Commands"
705
*menu1_p1_b1.fontList: TextFont
706
*menu1_p1_b1.activateCallback: {\
709
*menu1_p1_b1.mnemonic: "C"
711
*menu1_p1_b2.class: pushButtonGadget
712
*menu1_p1_b2.parent: menu1_p1
713
*menu1_p1_b2.static: true
714
*menu1_p1_b2.name: menu1_p1_b2
715
*menu1_p1_b2.labelString: "Applications"
716
*menu1_p1_b2.fontList: TextFont
717
*menu1_p1_b2.activateCallback: InitHelp();
718
*menu1_p1_b2.mnemonic: "A"
720
*menu1_p1_b3.class: pushButtonGadget
721
*menu1_p1_b3.parent: menu1_p1
722
*menu1_p1_b3.static: true
723
*menu1_p1_b3.name: menu1_p1_b3
724
*menu1_p1_b3.labelString: "Procedure Lang."
725
*menu1_p1_b3.fontList: TextFont
726
*menu1_p1_b3.activateCallback: {\
730
*menu1_p1_b3.mnemonic: "P"
732
*menu1_p1_b4.class: pushButtonGadget
733
*menu1_p1_b4.parent: menu1_p1
734
*menu1_p1_b4.static: true
735
*menu1_p1_b4.name: menu1_p1_b4
736
*menu1_p1_b4.labelString: "Keywords"
737
*menu1_p1_b4.fontList: TextFont
738
*menu1_p1_b4.activateCallback: InitHelp();
739
*menu1_p1_b4.mnemonic: "K"
741
*menu1_p1_b6.class: pushButtonGadget
742
*menu1_p1_b6.parent: menu1_p1
743
*menu1_p1_b6.static: true
744
*menu1_p1_b6.name: menu1_p1_b6
745
*menu1_p1_b6.labelString: "Subjects"
746
*menu1_p1_b6.fontList: TextFont
747
*menu1_p1_b6.activateCallback: InitHelp();
748
*menu1_p1_b6.mnemonic: "S"
750
*menu1_p1_b7.class: pushButtonGadget
751
*menu1_p1_b7.parent: menu1_p1
752
*menu1_p1_b7.static: true
753
*menu1_p1_b7.name: menu1_p1_b7
754
*menu1_p1_b7.labelString: "Contributions"
755
*menu1_p1_b7.activateCallback: {InitHelp();}
756
*menu1_p1_b7.mnemonic: "t"
757
*menu1_p1_b7.fontList: TextFont
760
*text1.parent: workArea
767
*text1.background: TextBackground
768
*text1.foreground: TextForeground
769
*text1.highlightColor: "Black"
770
*text1.fontList: BoldTextFont
771
*text1.cursorPositionVisible: "true"
772
*text1.translations: ""
773
*text1.activateCallback: {\
777
s = XmTextGetString(UxWidget);\
782
*text1.pendingDelete: "true"
783
*text1.blinkRate: 500
784
*text1.editMode: "single_line_edit"
785
*text1.highlightOnEnter: "true"
786
*text1.wordWrap: "false"
787
*text1.accelerators: ""
788
*text1.bottomOffset: 0
789
*text1.leftAttachment: "attach_widget"
791
*text1.rightAttachment: "attach_form"
792
*text1.rightOffset: 270
793
*text1.topAttachment: "attach_widget"
795
*text1.topWidget: "scrolledWindow"
796
*text1.leftWidget: "menu1"
799
*SHelp.parent: workArea
806
*SHelp.background: SHelpBackground
807
*SHelp.foreground: TextForeground
808
*SHelp.highlightColor: ApplicBackground
809
*SHelp.fontList: TextFont
810
*SHelp.cursorPositionVisible: "true"
811
*SHelp.translations: ""
812
*SHelp.activateCallback: {\
815
extern char contxt[], midvers[];\
817
s1 = XmTextGetString(UxWidget);\
818
helpme(2L, midvers, s1, contxt, &s2); \
819
XmTextSetString(UxGetWidget(scrolledText),s2);\
822
*SHelp.pendingDelete: "true"
823
*SHelp.blinkRate: 500
824
*SHelp.editMode: "single_line_edit"
825
*SHelp.highlightOnEnter: "true"
826
*SHelp.wordWrap: "false"
827
*SHelp.accelerators: ""
828
*SHelp.leftAttachment: "attach_form"
830
*SHelp.rightAttachment: "attach_form"
831
*SHelp.rightOffset: 5
832
*SHelp.topAttachment: "attach_widget"
834
*SHelp.topWidget: "text1"
835
*SHelp.bottomAttachment: "attach_form"
836
*SHelp.bottomOffset: 45
838
*CommandButton.class: pushButton
839
*CommandButton.parent: workArea
840
*CommandButton.static: true
841
*CommandButton.name: CommandButton
843
*CommandButton.y: 380
844
*CommandButton.width: 90
845
*CommandButton.height: 30
846
*CommandButton.background: ButtonBackground
847
*CommandButton.labelString: "Overview"
848
*CommandButton.foreground: ButtonForeground
849
*CommandButton.fontList: BoldTextFont
850
*CommandButton.activateCallback: {\
853
*CommandButton.recomputeSize: "false"
854
*CommandButton.leftAttachment: "attach_form"
855
*CommandButton.leftOffset: 10
856
*CommandButton.topAttachment: "attach_widget"
857
*CommandButton.topOffset: 5
858
*CommandButton.topWidget: "SHelp"
859
*CommandButton.highlightColor: "Black"
860
*CommandButton.bottomAttachment: "attach_form"
861
*CommandButton.bottomOffset: 5
862
*CommandButton.mnemonic: ""
864
*HistoButton.class: pushButton
865
*HistoButton.parent: workArea
866
*HistoButton.static: true
867
*HistoButton.name: HistoButton
870
*HistoButton.width: 90
871
*HistoButton.height: 30
872
*HistoButton.background: ButtonBackground
873
*HistoButton.labelString: "History.."
874
*HistoButton.fontList: BoldTextFont
875
*HistoButton.foreground: ButtonForeground
876
*HistoButton.activateCallback: {\
877
extern swidget hist;\
880
UxPopupInterface(hist,no_grab);\
884
*HistoButton.recomputeSize: "false"
885
*HistoButton.highlightColor: "Black"
886
*HistoButton.bottomAttachment: "attach_form"
887
*HistoButton.bottomOffset: 5
888
*HistoButton.leftAttachment: "attach_widget"
889
*HistoButton.leftOffset: 10
890
*HistoButton.leftWidget: "CommandButton"
891
*HistoButton.topAttachment: "attach_widget"
892
*HistoButton.topOffset: 5
893
*HistoButton.topWidget: "SHelp"
894
*HistoButton.mnemonic: ""
896
*SearchButton.class: pushButton
897
*SearchButton.parent: workArea
898
*SearchButton.static: true
899
*SearchButton.name: SearchButton
902
*SearchButton.width: 90
903
*SearchButton.height: 30
904
*SearchButton.background: ButtonBackground
905
*SearchButton.labelString: "Search.."
906
*SearchButton.fontList: BoldTextFont
907
*SearchButton.foreground: ButtonForeground
908
*SearchButton.activateCallback: {\
909
extern swidget srch;\
911
UxPopupInterface(srch,no_grab);\
915
*SearchButton.recomputeSize: "false"
916
*SearchButton.highlightColor: "Black"
917
*SearchButton.bottomAttachment: "attach_form"
918
*SearchButton.bottomOffset: 5
919
*SearchButton.topAttachment: "attach_widget"
920
*SearchButton.topOffset: 5
921
*SearchButton.topWidget: "SHelp"
922
*SearchButton.leftAttachment: "attach_widget"
923
*SearchButton.leftOffset: 10
924
*SearchButton.leftWidget: "HistoButton"
925
*SearchButton.mnemonic: ""
927
*NewsButton.class: pushButton
928
*NewsButton.parent: workArea
929
*NewsButton.static: true
930
*NewsButton.name: NewsButton
933
*NewsButton.width: 90
934
*NewsButton.height: 30
935
*NewsButton.background: ButtonBackground
936
*NewsButton.labelString: "News"
937
*NewsButton.foreground: ButtonForeground
938
*NewsButton.fontList: BoldTextFont
939
*NewsButton.activateCallback: {\
940
GetHelp("[News]","C",0L);\
942
*NewsButton.recomputeSize: "false"
943
*NewsButton.topAttachment: "attach_widget"
944
*NewsButton.topOffset: 5
945
*NewsButton.topWidget: "SHelp"
946
*NewsButton.leftAttachment: "attach_widget"
947
*NewsButton.leftOffset: 5
948
*NewsButton.leftWidget: "SearchButton"
949
*NewsButton.highlightColor: "Black"
950
*NewsButton.bottomAttachment: "attach_form"
951
*NewsButton.bottomOffset: 5
952
*NewsButton.mnemonic: ""
954
*PrintButton.class: pushButton
955
*PrintButton.parent: workArea
956
*PrintButton.static: true
957
*PrintButton.name: PrintButton
960
*PrintButton.width: 90
961
*PrintButton.height: 30
962
*PrintButton.background: ButtonBackground
963
*PrintButton.labelString: "Print"
964
*PrintButton.foreground: ButtonForeground
965
*PrintButton.fontList: BoldTextFont
966
*PrintButton.activateCallback: {\
967
extern char filename[], print_com[];\
971
fp = fopen(filename,"w"); \
973
fprintf(fp,"%s\n",XmTextGetString(UxGetWidget(scrolledText)));\
977
sprintf(command,"cat %s | %s ; rm %s\n",\
978
filename,print_com,filename);\
982
UxPutText(SHelp,"Help file sent to printer.");\
986
*PrintButton.recomputeSize: "false"
987
*PrintButton.topAttachment: "attach_widget"
988
*PrintButton.topOffset: 5
989
*PrintButton.topWidget: "SHelp"
990
*PrintButton.leftAttachment: "attach_widget"
991
*PrintButton.leftOffset: 5
992
*PrintButton.leftWidget: "NewsButton"
993
*PrintButton.highlightColor: "Black"
994
*PrintButton.bottomAttachment: "attach_form"
995
*PrintButton.bottomOffset: 5
996
*PrintButton.mnemonic: ""
998
*ReportButton.class: pushButton
999
*ReportButton.parent: workArea
1000
*ReportButton.static: true
1001
*ReportButton.name: ReportButton
1002
*ReportButton.x: 430
1003
*ReportButton.y: 330
1004
*ReportButton.width: 90
1005
*ReportButton.height: 30
1006
*ReportButton.background: ButtonBackground
1007
*ReportButton.labelString: "Feedback.."
1008
*ReportButton.foreground: ButtonForeground
1009
*ReportButton.fontList: BoldTextFont
1010
*ReportButton.activateCallback: {\
1013
UxPopupInterface(pb,no_grab);\
1018
*ReportButton.recomputeSize: "false"
1019
*ReportButton.highlightColor: "Black"
1020
*ReportButton.leftAttachment: "attach_widget"
1021
*ReportButton.leftOffset: 5
1022
*ReportButton.leftWidget: "PrintButton"
1023
*ReportButton.topAttachment: "attach_widget"
1024
*ReportButton.topOffset: 5
1025
*ReportButton.topWidget: "SHelp"
1026
*ReportButton.bottomAttachment: "attach_form"
1027
*ReportButton.bottomOffset: 5
1028
*ReportButton.mnemonic: ""
1030
*CtxButton.class: pushButton
1031
*CtxButton.parent: workArea
1032
*CtxButton.static: true
1033
*CtxButton.name: CtxButton
1036
*CtxButton.width: 90
1037
*CtxButton.height: 30
1038
*CtxButton.background: ButtonBackground
1039
*CtxButton.labelString: "Contexts.."
1040
*CtxButton.foreground: ButtonForeground
1041
*CtxButton.fontList: BoldTextFont
1042
*CtxButton.activateCallback: {\
1043
extern swidget ctx;\
1044
extern char contxt[], nctx[];\
1047
strtrs(nctx,contxt," ","\n");\
1048
convert(contxt,nctx);\
1050
UxPopupInterface(ctx,no_grab);\
1054
*CtxButton.recomputeSize: "false"
1055
*CtxButton.highlightColor: "Black"
1056
*CtxButton.bottomAttachment: "attach_form"
1057
*CtxButton.bottomOffset: 5
1058
*CtxButton.leftAttachment: "attach_widget"
1059
*CtxButton.leftOffset: 5
1060
*CtxButton.leftWidget: "ReportButton"
1061
*CtxButton.topAttachment: "attach_widget"
1062
*CtxButton.topOffset: 5
1063
*CtxButton.topWidget: "SHelp"
1064
*CtxButton.mnemonic: ""
1066
*textField5.class: textField
1067
*textField5.parent: workArea
1068
*textField5.static: true
1069
*textField5.name: textField5
1072
*textField5.width: 70
1073
*textField5.height: 35
1074
*textField5.topAttachment: "attach_widget"
1075
*textField5.topOffset: 12
1076
*textField5.topWidget: "scrolledWindow"
1077
*textField5.leftAttachment: "attach_form"
1078
*textField5.leftOffset: 10
1079
*textField5.background: WindowBackground
1080
*textField5.fontList: BoldTextFont
1081
*textField5.text: "Info on:"
1082
*textField5.bottomShadowColor: WindowBackground
1083
*textField5.topShadowColor: WindowBackground
1084
*textField5.cursorPositionVisible: "false"
1085
*textField5.editable: "false"
1086
*textField5.highlightColor: WindowBackground
1087
*textField5.highlightThickness: 0
1088
*textField5.marginHeight: 5
1089
*textField5.marginWidth: 5
1090
*textField5.shadowThickness: 0
1093
*text2.parent: workArea
1100
*text2.background: TextBackground
1101
*text2.foreground: TextForeground
1102
*text2.highlightColor: "Black"
1103
*text2.fontList: BoldTextFont
1104
*text2.cursorPositionVisible: "false"
1105
*text2.translations: TextTable
1106
*text2.activateCallback: {\
1110
s = XmTextGetString(UxWidget);\
1115
*text2.pendingDelete: "true"
1116
*text2.blinkRate: 500
1117
*text2.editMode: "single_line_edit"
1118
*text2.highlightOnEnter: "false"
1119
*text2.wordWrap: "false"
1120
*text2.accelerators: ""
1121
*text2.leftAttachment: "attach_widget"
1122
*text2.leftWidget: "text1"
1123
*text2.leftOffset: 10
1124
*text2.rightAttachment: "attach_form"
1125
*text2.rightOffset: 35
1126
*text2.topAttachment: "attach_widget"
1128
*text2.topWidget: "scrolledWindow"
1129
*text2.autoShowCursorPosition: "false"
1130
*text2.editable: "false"
1132
*arrowButton2.class: arrowButton
1133
*arrowButton2.parent: workArea
1134
*arrowButton2.static: true
1135
*arrowButton2.name: arrowButton2
1136
*arrowButton2.x: 671
1137
*arrowButton2.y: 120
1138
*arrowButton2.width: 20
1139
*arrowButton2.height: 20
1140
*arrowButton2.leftAttachment: "attach_widget"
1141
*arrowButton2.leftOffset: 5
1142
*arrowButton2.leftWidget: "text2"
1143
*arrowButton2.rightAttachment: "attach_form"
1144
*arrowButton2.rightOffset: 5
1145
*arrowButton2.foreground: "PaleGreen"
1146
*arrowButton2.bottomShadowColor: WindowBackground
1147
*arrowButton2.topShadowColor: ButtonForeground
1148
*arrowButton2.background: ButtonBackground
1149
*arrowButton2.borderColor: WindowBackground
1150
*arrowButton2.activateCallback: {\
1155
strcpy(s,(char *)GetList());\
1157
UxPutText(text2,s);\
1162
*arrowButton2.topAttachment: "attach_widget"
1163
*arrowButton2.topOffset: 3
1164
*arrowButton2.topWidget: "scrolledWindow"
1165
*arrowButton2.translations: ""
1167
*arrowButton1.class: arrowButton
1168
*arrowButton1.parent: workArea
1169
*arrowButton1.static: true
1170
*arrowButton1.name: arrowButton1
1171
*arrowButton1.x: 671
1172
*arrowButton1.y: 310
1173
*arrowButton1.width: 20
1174
*arrowButton1.height: 20
1175
*arrowButton1.leftAttachment: "attach_widget"
1176
*arrowButton1.leftOffset: 5
1177
*arrowButton1.leftWidget: "text2"
1178
*arrowButton1.rightAttachment: "attach_form"
1179
*arrowButton1.rightOffset: 5
1180
*arrowButton1.arrowDirection: "arrow_down"
1181
*arrowButton1.foreground: "PaleGreen"
1182
*arrowButton1.bottomShadowColor: WindowBackground
1183
*arrowButton1.topShadowColor: ButtonForeground
1184
*arrowButton1.background: ButtonBackground
1185
*arrowButton1.borderColor: WindowBackground
1186
*arrowButton1.activateCallback: {\
1191
strcpy(s,(char *)GetList());\
1193
UxPutText(text2,s);\
1198
*arrowButton1.topAttachment: "attach_widget"
1199
*arrowButton1.topOffset: 0
1200
*arrowButton1.topWidget: "arrowButton2"
1201
*arrowButton1.translations: ""