| 1 |
! UIMX ascii 2.0 key: 112 |
| 2 |
*action.FileSelectACT: {\ |
| 3 |
#include <xm_defs.h>\ |
| 4 |
#include <spec_comm.h>\ |
| 5 |
\ |
| 6 |
extern swidget FileListInterface, TextFieldSwidget;\ |
| 7 |
extern Widget FileListWidget;\ |
| 8 |
extern char DirSpecs[];\ |
| 9 |
extern int ListType;\ |
| 10 |
\ |
| 11 |
int strip = 1; /* strip off */\ |
| 12 |
\ |
| 13 |
TextFieldSwidget = UxThisWidget;\ |
| 14 |
\ |
| 15 |
if ( UxWidget == UxGetWidget(UxFindSwidget("tf_lincat")) ) {\ |
| 16 |
SET_LIST_TITLE("Enter line catalog");\ |
| 17 |
ListType = LIST_LINCAT;\ |
| 18 |
}\ |
| 19 |
else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_guess")) ) {\ |
| 20 |
SET_LIST_TITLE("Enter guess table");\ |
| 21 |
ListType = LIST_GUESS;\ |
| 22 |
}\ |
| 23 |
else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_flux_tbl")) ) {\ |
| 24 |
SET_LIST_TITLE("Enter flux table");\ |
| 25 |
ListType = LIST_FLUX_TBL;\ |
| 26 |
}\ |
| 27 |
else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_extin_tbl")) ) {\ |
| 28 |
SET_LIST_TITLE("Enter extinction table");\ |
| 29 |
ListType = LIST_EXTIN_TBL;\ |
| 30 |
}\ |
| 31 |
\ |
| 32 |
strcpy(DirSpecs, "*.tbl"); \ |
| 33 |
SetFileList(FileListWidget, strip, DirSpecs);\ |
| 34 |
UxPopupInterface(FileListInterface, exclusive_grab);\ |
| 35 |
\ |
| 36 |
} |
| 37 |
*action.HelpShort: {WidgetEnter(UxWidget);} |
| 38 |
*action.ClearShort: {WidgetLeave(UxWidget);} |
| 39 |
*action.UpdateDirectory: {\ |
| 40 |
\ |
| 41 |
char node[80];\ |
| 42 |
\ |
| 43 |
/* if (XmTextGetSelection(UxWidget) == NULL) return; */\ |
| 44 |
strcpy(node,\ |
| 45 |
XmTextGetSelection(UxWidget));\ |
| 46 |
XmTextClearSelection(UxWidget,XtLastTimestampProcessed(UxDisplay));\ |
| 47 |
\ |
| 48 |
node[strlen(node)-1] = '\0';\ |
| 49 |
WGet_all_dirs(node);\ |
| 50 |
WChange_Midas_dir();\ |
| 51 |
WGet_all_files();\ |
| 52 |
\ |
| 53 |
} |
| 54 |
|
| 55 |
*translation.table: SelectFileRebin |
| 56 |
*translation.parent: RebinShell |
| 57 |
*translation.policy: override |
| 58 |
*translation.<Btn3Down>: FileSelectACT() |
| 59 |
|
| 60 |
*translation.table: transTable19 |
| 61 |
*translation.parent: RebinShell |
| 62 |
*translation.policy: override |
| 63 |
*translation.<Btn3Down>: HelpHelp() |
| 64 |
*translation.<EnterWindow>: HelpShort() |
| 65 |
*translation.<LeaveWindow>: ClearShort() |
| 66 |
|
| 67 |
*translation.table: transTable20 |
| 68 |
*translation.parent: RebinShell |
| 69 |
*translation.policy: override |
| 70 |
*translation.<Btn1Up>: UpdateDirectory() |
| 71 |
|
| 72 |
*RebinShell.class: applicationShell |
| 73 |
*RebinShell.parent: NO_PARENT |
| 74 |
*RebinShell.static: true |
| 75 |
*RebinShell.gbldecl: #include <stdio.h>\ |
| 76 |
#include <ExternResources.h> |
| 77 |
*RebinShell.ispecdecl: |
| 78 |
*RebinShell.funcdecl: swidget create_RebinShell()\ |
| 79 |
|
| 80 |
*RebinShell.funcname: create_RebinShell |
| 81 |
*RebinShell.funcdef: "swidget", "<create_RebinShell>(%)" |
| 82 |
*RebinShell.icode: |
| 83 |
*RebinShell.fcode: return(rtrn);\ |
| 84 |
|
| 85 |
*RebinShell.auxdecl: |
| 86 |
*RebinShell.name: RebinShell |
| 87 |
*RebinShell.x: 383 |
| 88 |
*RebinShell.y: 105 |
| 89 |
*RebinShell.width: 490 |
| 90 |
*RebinShell.height: 263 |
| 91 |
*RebinShell.title: "XEchelle: Rebinning" |
| 92 |
*RebinShell.keyboardFocusPolicy: "pointer" |
| 93 |
*RebinShell.geometry: "+10+60" |
| 94 |
*RebinShell.background: WindowBackground |
| 95 |
|
| 96 |
*form7.class: form |
| 97 |
*form7.parent: RebinShell |
| 98 |
*form7.static: true |
| 99 |
*form7.name: form7 |
| 100 |
*form7.resizePolicy: "resize_none" |
| 101 |
*form7.unitType: "pixels" |
| 102 |
*form7.x: 0 |
| 103 |
*form7.y: 0 |
| 104 |
*form7.width: 408 |
| 105 |
*form7.height: 348 |
| 106 |
*form7.background: WindowBackground |
| 107 |
|
| 108 |
*label21.class: label |
| 109 |
*label21.parent: form7 |
| 110 |
*label21.static: true |
| 111 |
*label21.name: label21 |
| 112 |
*label21.x: 24 |
| 113 |
*label21.y: 30 |
| 114 |
*label21.width: 168 |
| 115 |
*label21.height: 30 |
| 116 |
*label21.background: LabelBackground |
| 117 |
*label21.fontList: TextFont |
| 118 |
*label21.labelString: "Input Frame:" |
| 119 |
*label21.alignment: "alignment_beginning" |
| 120 |
*label21.foreground: TextForeground |
| 121 |
|
| 122 |
*tf_rebstrt.class: textField |
| 123 |
*tf_rebstrt.parent: form7 |
| 124 |
*tf_rebstrt.static: true |
| 125 |
*tf_rebstrt.name: tf_rebstrt |
| 126 |
*tf_rebstrt.x: 201 |
| 127 |
*tf_rebstrt.y: 24 |
| 128 |
*tf_rebstrt.width: 200 |
| 129 |
*tf_rebstrt.height: 34 |
| 130 |
*tf_rebstrt.background: TextBackground |
| 131 |
*tf_rebstrt.fontList: TextFont |
| 132 |
*tf_rebstrt.highlightOnEnter: "true" |
| 133 |
*tf_rebstrt.foreground: TextForeground |
| 134 |
*tf_rebstrt.losingFocusCallback: {\ |
| 135 |
\ |
| 136 |
} |
| 137 |
|
| 138 |
*label22.class: label |
| 139 |
*label22.parent: form7 |
| 140 |
*label22.static: true |
| 141 |
*label22.name: label22 |
| 142 |
*label22.x: 24 |
| 143 |
*label22.y: 66 |
| 144 |
*label22.width: 156 |
| 145 |
*label22.height: 30 |
| 146 |
*label22.background: LabelBackground |
| 147 |
*label22.fontList: TextFont |
| 148 |
*label22.labelString: "Output Frame:" |
| 149 |
*label22.alignment: "alignment_beginning" |
| 150 |
*label22.foreground: TextForeground |
| 151 |
|
| 152 |
*label23.class: label |
| 153 |
*label23.parent: form7 |
| 154 |
*label23.static: true |
| 155 |
*label23.name: label23 |
| 156 |
*label23.x: 24 |
| 157 |
*label23.y: 102 |
| 158 |
*label23.width: 158 |
| 159 |
*label23.height: 30 |
| 160 |
*label23.background: LabelBackground |
| 161 |
*label23.fontList: TextFont |
| 162 |
*label23.labelString: "Wavelength step (A) :" |
| 163 |
*label23.alignment: "alignment_beginning" |
| 164 |
*label23.foreground: TextForeground |
| 165 |
|
| 166 |
*tf_rebend.class: textField |
| 167 |
*tf_rebend.parent: form7 |
| 168 |
*tf_rebend.static: true |
| 169 |
*tf_rebend.name: tf_rebend |
| 170 |
*tf_rebend.x: 201 |
| 171 |
*tf_rebend.y: 62 |
| 172 |
*tf_rebend.width: 200 |
| 173 |
*tf_rebend.height: 34 |
| 174 |
*tf_rebend.background: TextBackground |
| 175 |
*tf_rebend.fontList: TextFont |
| 176 |
*tf_rebend.highlightOnEnter: "true" |
| 177 |
*tf_rebend.foreground: TextForeground |
| 178 |
*tf_rebend.losingFocusCallback: {\ |
| 179 |
\ |
| 180 |
} |
| 181 |
|
| 182 |
*tf_rebstp.class: textField |
| 183 |
*tf_rebstp.parent: form7 |
| 184 |
*tf_rebstp.static: true |
| 185 |
*tf_rebstp.name: tf_rebstp |
| 186 |
*tf_rebstp.x: 201 |
| 187 |
*tf_rebstp.y: 100 |
| 188 |
*tf_rebstp.width: 200 |
| 189 |
*tf_rebstp.height: 34 |
| 190 |
*tf_rebstp.background: TextBackground |
| 191 |
*tf_rebstp.fontList: TextFont |
| 192 |
*tf_rebstp.highlightOnEnter: "true" |
| 193 |
*tf_rebstp.foreground: TextForeground |
| 194 |
*tf_rebstp.losingFocusCallback: {\ |
| 195 |
\ |
| 196 |
} |
| 197 |
|
| 198 |
*form8.class: form |
| 199 |
*form8.parent: form7 |
| 200 |
*form8.static: true |
| 201 |
*form8.name: form8 |
| 202 |
*form8.resizePolicy: "resize_none" |
| 203 |
*form8.x: -2 |
| 204 |
*form8.y: 222 |
| 205 |
*form8.width: 490 |
| 206 |
*form8.height: 40 |
| 207 |
*form8.background: ButtonBackground |
| 208 |
|
| 209 |
*pb_rebin_rbr.class: pushButton |
| 210 |
*pb_rebin_rbr.parent: form8 |
| 211 |
*pb_rebin_rbr.static: true |
| 212 |
*pb_rebin_rbr.name: pb_rebin_rbr |
| 213 |
*pb_rebin_rbr.x: 8 |
| 214 |
*pb_rebin_rbr.y: 4 |
| 215 |
*pb_rebin_rbr.width: 86 |
| 216 |
*pb_rebin_rbr.height: 30 |
| 217 |
*pb_rebin_rbr.background: ButtonBackground |
| 218 |
*pb_rebin_rbr.fontList: BoldTextFont |
| 219 |
*pb_rebin_rbr.foreground: ApplyForeground |
| 220 |
*pb_rebin_rbr.labelString: "Rebin" |
| 221 |
*pb_rebin_rbr.activateCallback: {\ |
| 222 |
MidasCommand(UxThisWidget);\ |
| 223 |
\ |
| 224 |
} |
| 225 |
|
| 226 |
*pushButton13.class: pushButton |
| 227 |
*pushButton13.parent: form8 |
| 228 |
*pushButton13.static: true |
| 229 |
*pushButton13.name: pushButton13 |
| 230 |
*pushButton13.x: 394 |
| 231 |
*pushButton13.y: 2 |
| 232 |
*pushButton13.width: 86 |
| 233 |
*pushButton13.height: 30 |
| 234 |
*pushButton13.background: ButtonBackground |
| 235 |
*pushButton13.fontList: BoldTextFont |
| 236 |
*pushButton13.foreground: CancelForeground |
| 237 |
*pushButton13.labelString: "Cancel" |
| 238 |
*pushButton13.activateCallback: {\ |
| 239 |
UxPopdownInterface(UxFindSwidget("RebinShell"));\ |
| 240 |
} |
| 241 |
|
| 242 |
*pb_rebin_plot.class: pushButton |
| 243 |
*pb_rebin_plot.parent: form8 |
| 244 |
*pb_rebin_plot.static: true |
| 245 |
*pb_rebin_plot.name: pb_rebin_plot |
| 246 |
*pb_rebin_plot.x: 114 |
| 247 |
*pb_rebin_plot.y: 2 |
| 248 |
*pb_rebin_plot.width: 86 |
| 249 |
*pb_rebin_plot.height: 30 |
| 250 |
*pb_rebin_plot.background: ButtonBackground |
| 251 |
*pb_rebin_plot.fontList: BoldTextFont |
| 252 |
*pb_rebin_plot.foreground: ButtonForeground |
| 253 |
*pb_rebin_plot.labelString: "Plot " |
| 254 |
*pb_rebin_plot.activateCallback: {\ |
| 255 |
MidasCommand(UxThisWidget);\ |
| 256 |
\ |
| 257 |
} |
| 258 |
|
| 259 |
*pb_search_plot17.class: pushButton |
| 260 |
*pb_search_plot17.parent: form8 |
| 261 |
*pb_search_plot17.static: true |
| 262 |
*pb_search_plot17.name: pb_search_plot17 |
| 263 |
*pb_search_plot17.x: 296 |
| 264 |
*pb_search_plot17.y: 4 |
| 265 |
*pb_search_plot17.width: 86 |
| 266 |
*pb_search_plot17.height: 30 |
| 267 |
*pb_search_plot17.background: ButtonBackground |
| 268 |
*pb_search_plot17.fontList: BoldTextFont |
| 269 |
*pb_search_plot17.foreground: ButtonForeground |
| 270 |
*pb_search_plot17.labelString: "Help..." |
| 271 |
*pb_search_plot17.activateCallback: {\ |
| 272 |
GetExtendedHelp(UxWidget);\ |
| 273 |
} |
| 274 |
|
| 275 |
*shelp_rebin.class: text |
| 276 |
*shelp_rebin.parent: form7 |
| 277 |
*shelp_rebin.static: true |
| 278 |
*shelp_rebin.name: shelp_rebin |
| 279 |
*shelp_rebin.x: 0 |
| 280 |
*shelp_rebin.y: 162 |
| 281 |
*shelp_rebin.width: 484 |
| 282 |
*shelp_rebin.height: 50 |
| 283 |
*shelp_rebin.background: SHelpBackground |
| 284 |
*shelp_rebin.cursorPositionVisible: "false" |
| 285 |
*shelp_rebin.editable: "false" |
| 286 |
*shelp_rebin.fontList: TextFont |
| 287 |
|
| 288 |
*separator6.class: separator |
| 289 |
*separator6.parent: form7 |
| 290 |
*separator6.static: true |
| 291 |
*separator6.name: separator6 |
| 292 |
*separator6.x: -2 |
| 293 |
*separator6.y: 152 |
| 294 |
*separator6.width: 492 |
| 295 |
*separator6.height: 10 |
| 296 |
*separator6.background: WindowBackground |
| 297 |
|
| 298 |
*separator7.class: separator |
| 299 |
*separator7.parent: form7 |
| 300 |
*separator7.static: true |
| 301 |
*separator7.name: separator7 |
| 302 |
*separator7.x: -4 |
| 303 |
*separator7.y: 210 |
| 304 |
*separator7.width: 492 |
| 305 |
*separator7.height: 10 |
| 306 |
*separator7.background: WindowBackground |
| 307 |
|
| 308 |
*pb_main_search21.class: pushButton |
| 309 |
*pb_main_search21.parent: form7 |
| 310 |
*pb_main_search21.static: true |
| 311 |
*pb_main_search21.name: pb_main_search21 |
| 312 |
*pb_main_search21.x: 412 |
| 313 |
*pb_main_search21.y: 26 |
| 314 |
*pb_main_search21.height: 28 |
| 315 |
*pb_main_search21.background: ButtonBackground |
| 316 |
*pb_main_search21.fontList: BoldTextFont |
| 317 |
*pb_main_search21.foreground: ButtonForeground |
| 318 |
*pb_main_search21.labelString: "..." |
| 319 |
*pb_main_search21.activateCallback: {\ |
| 320 |
SelectList(UxWidget);\ |
| 321 |
\ |
| 322 |
} |
| 323 |
*pb_main_search21.recomputeSize: "true" |
| 324 |
*pb_main_search21.width: 46 |
| 325 |
|
| 326 |
*pb_main_search22.class: pushButton |
| 327 |
*pb_main_search22.parent: form7 |
| 328 |
*pb_main_search22.static: true |
| 329 |
*pb_main_search22.name: pb_main_search22 |
| 330 |
*pb_main_search22.x: 414 |
| 331 |
*pb_main_search22.y: 64 |
| 332 |
*pb_main_search22.height: 28 |
| 333 |
*pb_main_search22.background: ButtonBackground |
| 334 |
*pb_main_search22.fontList: BoldTextFont |
| 335 |
*pb_main_search22.foreground: ButtonForeground |
| 336 |
*pb_main_search22.labelString: "..." |
| 337 |
*pb_main_search22.activateCallback: {\ |
| 338 |
SelectList(UxWidget);\ |
| 339 |
\ |
| 340 |
} |
| 341 |
*pb_main_search22.recomputeSize: "true" |
| 342 |
*pb_main_search22.width: 46 |
| 343 |
|