| 1 |
! UIMX ascii 2.0 key: 1766 |
| 2 |
|
| 3 |
*transientShell1.class: transientShell |
| 4 |
*transientShell1.parent: NO_PARENT |
| 5 |
*transientShell1.static: true |
| 6 |
*transientShell1.gbldecl: #include <stdio.h>\ |
| 7 |
#include <ExternResources.h>\ |
| 8 |
#include <midas_def.h>\ |
| 9 |
#include <tbldef.h> |
| 10 |
*transientShell1.ispecdecl: |
| 11 |
*transientShell1.funcdecl: swidget create_transientShell1()\ |
| 12 |
|
| 13 |
*transientShell1.funcname: create_transientShell1 |
| 14 |
*transientShell1.funcdef: "swidget", "<create_transientShell1>(%)" |
| 15 |
*transientShell1.icode: |
| 16 |
*transientShell1.fcode: return(rtrn);\ |
| 17 |
|
| 18 |
*transientShell1.auxdecl: |
| 19 |
*transientShell1.name: transientShell1 |
| 20 |
*transientShell1.x: 790 |
| 21 |
*transientShell1.y: 100 |
| 22 |
*transientShell1.width: 290 |
| 23 |
*transientShell1.height: 580 |
| 24 |
*transientShell1.title: "Select Columns" |
| 25 |
|
| 26 |
*form2.class: form |
| 27 |
*form2.parent: transientShell1 |
| 28 |
*form2.static: true |
| 29 |
*form2.name: form2 |
| 30 |
*form2.resizePolicy: "resize_none" |
| 31 |
*form2.unitType: "pixels" |
| 32 |
*form2.x: 0 |
| 33 |
*form2.y: 0 |
| 34 |
*form2.width: 290 |
| 35 |
*form2.height: 240 |
| 36 |
*form2.background: ApplicBackground |
| 37 |
|
| 38 |
*scrolledWindow3.class: scrolledWindow |
| 39 |
*scrolledWindow3.parent: form2 |
| 40 |
*scrolledWindow3.static: true |
| 41 |
*scrolledWindow3.name: scrolledWindow3 |
| 42 |
*scrolledWindow3.scrollingPolicy: "application_defined" |
| 43 |
*scrolledWindow3.x: 10 |
| 44 |
*scrolledWindow3.y: 10 |
| 45 |
*scrolledWindow3.visualPolicy: "variable" |
| 46 |
*scrolledWindow3.scrollBarDisplayPolicy: "static" |
| 47 |
*scrolledWindow3.shadowThickness: 0 |
| 48 |
*scrolledWindow3.bottomAttachment: "attach_form" |
| 49 |
*scrolledWindow3.bottomOffset: 45 |
| 50 |
*scrolledWindow3.height: 316 |
| 51 |
*scrolledWindow3.leftAttachment: "attach_form" |
| 52 |
*scrolledWindow3.leftOffset: 2 |
| 53 |
*scrolledWindow3.rightAttachment: "attach_form" |
| 54 |
*scrolledWindow3.rightOffset: 2 |
| 55 |
*scrolledWindow3.topAttachment: "attach_form" |
| 56 |
*scrolledWindow3.topOffset: 225 |
| 57 |
*scrolledWindow3.width: 270 |
| 58 |
*scrolledWindow3.background: ApplicBackground |
| 59 |
*scrolledWindow3.scrollBarPlacement: "bottom_left" |
| 60 |
|
| 61 |
*columnlist.class: scrolledList |
| 62 |
*columnlist.parent: scrolledWindow3 |
| 63 |
*columnlist.static: false |
| 64 |
*columnlist.name: columnlist |
| 65 |
*columnlist.width: 190 |
| 66 |
*columnlist.height: 320 |
| 67 |
*columnlist.background: TextBackground |
| 68 |
*columnlist.fontList: TextFont |
| 69 |
*columnlist.foreground: TextForeground |
| 70 |
*columnlist.scrollBarDisplayPolicy: "static" |
| 71 |
*columnlist.browseSelectionCallback: {\ |
| 72 |
\ |
| 73 |
} |
| 74 |
*columnlist.visibleItemCount: 16 |
| 75 |
*columnlist.selectionPolicy: "extended_select" |
| 76 |
*columnlist.extendedSelectionCallback: {\ |
| 77 |
XmListCallbackStruct *cbs;\ |
| 78 |
char *choice,mymess[200];\ |
| 79 |
extern char *colchoice;\ |
| 80 |
extern int colno;\ |
| 81 |
extern swidget clist;\ |
| 82 |
int i;\ |
| 83 |
/*cbs = (XmListCallbackStruct *)UxCallbackArg;\ |
| 84 |
if (cbs->reason == XmCR_EXTENDED_SELECT ){\ |
| 85 |
colno = 0;\ |
| 86 |
for (i=0; i<cbs->selected_item_count; i++) {\ |
| 87 |
XmStringGetLtoR(cbs->selected_items[i],XmSTRING_DEFAULT_CHARSET,&choice);\ |
| 88 |
\ |
| 89 |
strcpy(colchoice +(TBL_LABLEN+1)*colno, choice);\ |
| 90 |
colno++;\ |
| 91 |
\ |
| 92 |
XtFree(choice);\ |
| 93 |
}\ |
| 94 |
sprintf(mymess,"WRITE/OUT %d",colno);\ |
| 95 |
AppendDialogText(mymess);\ |
| 96 |
}else {\ |
| 97 |
XmStringGetLtoR(cbs->item,XmSTRING_DEFAULT_CHARSET,&choice);\ |
| 98 |
\ |
| 99 |
XtFree(choice);\ |
| 100 |
}*/\ |
| 101 |
/* UxPopdownInterface(clist);*/\ |
| 102 |
\ |
| 103 |
\ |
| 104 |
/* display_col_table(UxGetWidget(UxFindSwidget("readtable"))); */\ |
| 105 |
} |
| 106 |
*columnlist.automaticSelection: "false" |
| 107 |
|
| 108 |
*pushButton3.class: pushButton |
| 109 |
*pushButton3.parent: form2 |
| 110 |
*pushButton3.static: true |
| 111 |
*pushButton3.name: pushButton3 |
| 112 |
*pushButton3.x: 0 |
| 113 |
*pushButton3.y: 318 |
| 114 |
*pushButton3.width: 200 |
| 115 |
*pushButton3.height: 30 |
| 116 |
*pushButton3.background: ButtonBackground |
| 117 |
*pushButton3.bottomAttachment: "attach_form" |
| 118 |
*pushButton3.bottomOffset: 5 |
| 119 |
*pushButton3.leftAttachment: "attach_form" |
| 120 |
*pushButton3.leftOffset: 170 |
| 121 |
*pushButton3.rightAttachment: "attach_form" |
| 122 |
*pushButton3.rightOffset: 10 |
| 123 |
*pushButton3.labelString: "cancel" |
| 124 |
*pushButton3.fontList: BoldTextFont |
| 125 |
*pushButton3.foreground: ButtonForeground |
| 126 |
*pushButton3.activateCallback: {\ |
| 127 |
extern swidget clist;\ |
| 128 |
UxPopdownInterface(clist);\ |
| 129 |
} |
| 130 |
|
| 131 |
*apply.class: pushButton |
| 132 |
*apply.parent: form2 |
| 133 |
*apply.static: true |
| 134 |
*apply.name: apply |
| 135 |
*apply.x: 160 |
| 136 |
*apply.y: 330 |
| 137 |
*apply.width: 200 |
| 138 |
*apply.height: 30 |
| 139 |
*apply.background: ButtonBackground |
| 140 |
*apply.labelString: "apply" |
| 141 |
*apply.fontList: BoldTextFont |
| 142 |
*apply.foreground: ButtonForeground |
| 143 |
*apply.leftOffset: 10 |
| 144 |
*apply.bottomAttachment: "attach_form" |
| 145 |
*apply.bottomOffset: 5 |
| 146 |
*apply.leftAttachment: "attach_form" |
| 147 |
*apply.rightAttachment: "attach_form" |
| 148 |
*apply.rightOffset: 160 |
| 149 |
*apply.activateCallback: {\ |
| 150 |
extern char *colchoice;\ |
| 151 |
extern swidget clist;\ |
| 152 |
int i;\ |
| 153 |
getselectlist(UxGetWidget(UxFindSwidget("columnlist")));\ |
| 154 |
display_col_table(UxGetWidget(UxFindSwidget("readtable")));\ |
| 155 |
\ |
| 156 |
UxPopdownInterface(clist);\ |
| 157 |
} |
| 158 |
|
| 159 |
*scrolledWindow8.class: scrolledWindow |
| 160 |
*scrolledWindow8.parent: form2 |
| 161 |
*scrolledWindow8.static: true |
| 162 |
*scrolledWindow8.name: scrolledWindow8 |
| 163 |
*scrolledWindow8.scrollingPolicy: "application_defined" |
| 164 |
*scrolledWindow8.x: 10 |
| 165 |
*scrolledWindow8.y: 10 |
| 166 |
*scrolledWindow8.visualPolicy: "variable" |
| 167 |
*scrolledWindow8.scrollBarDisplayPolicy: "static" |
| 168 |
*scrolledWindow8.shadowThickness: 0 |
| 169 |
*scrolledWindow8.height: 316 |
| 170 |
*scrolledWindow8.width: 270 |
| 171 |
*scrolledWindow8.background: ApplicBackground |
| 172 |
*scrolledWindow8.scrollBarPlacement: "bottom_left" |
| 173 |
*scrolledWindow8.rightAttachment: "attach_form" |
| 174 |
*scrolledWindow8.rightOffset: 0 |
| 175 |
*scrolledWindow8.topAttachment: "attach_form" |
| 176 |
*scrolledWindow8.topOffset: 30 |
| 177 |
*scrolledWindow8.leftAttachment: "attach_form" |
| 178 |
*scrolledWindow8.leftOffset: 0 |
| 179 |
*scrolledWindow8.bottomAttachment: "attach_form" |
| 180 |
*scrolledWindow8.bottomOffset: 380 |
| 181 |
|
| 182 |
*columnlist1.class: scrolledList |
| 183 |
*columnlist1.parent: scrolledWindow8 |
| 184 |
*columnlist1.static: false |
| 185 |
*columnlist1.name: columnlist1 |
| 186 |
*columnlist1.width: 190 |
| 187 |
*columnlist1.height: 320 |
| 188 |
*columnlist1.background: TextBackground |
| 189 |
*columnlist1.fontList: TextFont |
| 190 |
*columnlist1.foreground: TextForeground |
| 191 |
*columnlist1.scrollBarDisplayPolicy: "static" |
| 192 |
*columnlist1.browseSelectionCallback: {\ |
| 193 |
XmListCallbackStruct *cbs;\ |
| 194 |
char *choice,mymode[50];\ |
| 195 |
cbs = (XmListCallbackStruct *)UxCallbackArg;\ |
| 196 |
XmStringGetLtoR(cbs->item, XmSTRING_DEFAULT_CHARSET, &choice);\ |
| 197 |
strcpy(mymode,choice);\ |
| 198 |
selectlist( mymode,UxGetWidget( UxFindSwidget("columnlist")));\ |
| 199 |
XtFree(choice);\ |
| 200 |
} |
| 201 |
*columnlist1.visibleItemCount: 9 |
| 202 |
*columnlist1.selectionPolicy: "browse_select" |
| 203 |
*columnlist1.extendedSelectionCallback: {\ |
| 204 |
\ |
| 205 |
} |
| 206 |
|
| 207 |
*label22.class: label |
| 208 |
*label22.parent: form2 |
| 209 |
*label22.static: true |
| 210 |
*label22.name: label22 |
| 211 |
*label22.x: 20 |
| 212 |
*label22.y: 0 |
| 213 |
*label22.width: 270 |
| 214 |
*label22.height: 30 |
| 215 |
*label22.background: WindowBackground |
| 216 |
*label22.leftAttachment: "attach_form" |
| 217 |
*label22.leftOffset: 0 |
| 218 |
*label22.rightAttachment: "attach_form" |
| 219 |
*label22.rightOffset: 0 |
| 220 |
*label22.topAttachment: "attach_form" |
| 221 |
*label22.topOffset: 0 |
| 222 |
*label22.fontList: BoldTextFont |
| 223 |
*label22.labelString: "Instrument Mode" |
| 224 |
|
| 225 |
*label23.class: label |
| 226 |
*label23.parent: form2 |
| 227 |
*label23.static: true |
| 228 |
*label23.name: label23 |
| 229 |
*label23.x: 10 |
| 230 |
*label23.y: 10 |
| 231 |
*label23.width: 270 |
| 232 |
*label23.height: 30 |
| 233 |
*label23.background: WindowBackground |
| 234 |
*label23.fontList: BoldTextFont |
| 235 |
*label23.labelString: "Columns " |
| 236 |
*label23.leftAttachment: "attach_form" |
| 237 |
*label23.leftOffset: 0 |
| 238 |
*label23.rightAttachment: "attach_form" |
| 239 |
*label23.rightOffset: 0 |
| 240 |
*label23.topAttachment: "attach_form" |
| 241 |
*label23.topOffset: 195 |
| 242 |
|