| 1 |
! UIMX ascii 2.0 key: 5240 |
| 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 |
|
| 38 |
*translation.table: SelectFileCalib |
| 39 |
*translation.parent: CalibShell |
| 40 |
*translation.policy: override |
| 41 |
*translation.<Btn3Down>: FileSelectACT() |
| 42 |
|
| 43 |
*CalibShell.class: applicationShell |
| 44 |
*CalibShell.parent: NO_PARENT |
| 45 |
*CalibShell.static: true |
| 46 |
*CalibShell.gbldecl: #include <stdio.h>\ |
| 47 |
#include <ExternResources.h> |
| 48 |
*CalibShell.ispecdecl: |
| 49 |
*CalibShell.funcdecl: swidget create_CalibShell()\ |
| 50 |
|
| 51 |
*CalibShell.funcname: create_CalibShell |
| 52 |
*CalibShell.funcdef: "swidget", "<create_CalibShell>(%)" |
| 53 |
*CalibShell.icode: |
| 54 |
*CalibShell.fcode: return(rtrn);\ |
| 55 |
|
| 56 |
*CalibShell.auxdecl: |
| 57 |
*CalibShell.name: CalibShell |
| 58 |
*CalibShell.x: 449 |
| 59 |
*CalibShell.y: 367 |
| 60 |
*CalibShell.width: 490 |
| 61 |
*CalibShell.height: 387 |
| 62 |
*CalibShell.iconName: "Calibration" |
| 63 |
*CalibShell.keyboardFocusPolicy: "pointer" |
| 64 |
*CalibShell.defaultFontList: TextFont |
| 65 |
*CalibShell.geometry: "+10+60" |
| 66 |
|
| 67 |
*form3.class: form |
| 68 |
*form3.parent: CalibShell |
| 69 |
*form3.static: true |
| 70 |
*form3.name: form3 |
| 71 |
*form3.resizePolicy: "resize_none" |
| 72 |
*form3.unitType: "pixels" |
| 73 |
*form3.x: 4 |
| 74 |
*form3.y: 4 |
| 75 |
*form3.width: 490 |
| 76 |
*form3.height: 548 |
| 77 |
*form3.background: "grey80" |
| 78 |
|
| 79 |
*rowColumn2.class: rowColumn |
| 80 |
*rowColumn2.parent: form3 |
| 81 |
*rowColumn2.static: true |
| 82 |
*rowColumn2.name: rowColumn2 |
| 83 |
*rowColumn2.x: 344 |
| 84 |
*rowColumn2.y: 113 |
| 85 |
*rowColumn2.width: 82 |
| 86 |
*rowColumn2.height: 67 |
| 87 |
*rowColumn2.radioBehavior: "true" |
| 88 |
*rowColumn2.background: "grey80" |
| 89 |
*rowColumn2.entryBorder: 0 |
| 90 |
*rowColumn2.labelString: "" |
| 91 |
*rowColumn2.shadowThickness: 0 |
| 92 |
*rowColumn2.borderWidth: 0 |
| 93 |
*rowColumn2.entryAlignment: "alignment_beginning" |
| 94 |
*rowColumn2.isAligned: "true" |
| 95 |
|
| 96 |
*rb_wlcmtd_iden.class: toggleButton |
| 97 |
*rb_wlcmtd_iden.parent: rowColumn2 |
| 98 |
*rb_wlcmtd_iden.static: true |
| 99 |
*rb_wlcmtd_iden.name: rb_wlcmtd_iden |
| 100 |
*rb_wlcmtd_iden.x: 3 |
| 101 |
*rb_wlcmtd_iden.y: 2 |
| 102 |
*rb_wlcmtd_iden.width: 76 |
| 103 |
*rb_wlcmtd_iden.height: 20 |
| 104 |
*rb_wlcmtd_iden.background: WindowBackground |
| 105 |
*rb_wlcmtd_iden.fontList: TextFont |
| 106 |
*rb_wlcmtd_iden.labelString: "IDENT" |
| 107 |
*rb_wlcmtd_iden.set: "true" |
| 108 |
*rb_wlcmtd_iden.selectColor: SelectColor |
| 109 |
*rb_wlcmtd_iden.foreground: TextForeground |
| 110 |
*rb_wlcmtd_iden.highlightOnEnter: "true" |
| 111 |
*rb_wlcmtd_iden.indicatorSize: 16 |
| 112 |
|
| 113 |
*rb_wlcmtd_gues.class: toggleButton |
| 114 |
*rb_wlcmtd_gues.parent: rowColumn2 |
| 115 |
*rb_wlcmtd_gues.static: true |
| 116 |
*rb_wlcmtd_gues.name: rb_wlcmtd_gues |
| 117 |
*rb_wlcmtd_gues.x: 3 |
| 118 |
*rb_wlcmtd_gues.y: 34 |
| 119 |
*rb_wlcmtd_gues.width: 76 |
| 120 |
*rb_wlcmtd_gues.height: 66 |
| 121 |
*rb_wlcmtd_gues.background: WindowBackground |
| 122 |
*rb_wlcmtd_gues.fontList: TextFont |
| 123 |
*rb_wlcmtd_gues.labelString: "GUESS" |
| 124 |
*rb_wlcmtd_gues.selectColor: SelectColor |
| 125 |
*rb_wlcmtd_gues.foreground: TextForeground |
| 126 |
*rb_wlcmtd_gues.valueChangedCallback: {\ |
| 127 |
#include <spec_comm.h>\ |
| 128 |
\ |
| 129 |
extern int UpdateToggle;\ |
| 130 |
\ |
| 131 |
if ( XmToggleButtonGetState(UxWidget) ) { /*selected */\ |
| 132 |
if ( UpdateToggle )\ |
| 133 |
WriteKeyword("GUESS", K_WLCMTD);\ |
| 134 |
XtSetSensitive(UxGetWidget(guess_session_label), TRUE);\ |
| 135 |
XtSetSensitive(UxGetWidget(tf_guess), TRUE);\ |
| 136 |
/* later\ |
| 137 |
XtSetSensitive(UxGetWidget(shift_label), TRUE);\ |
| 138 |
XtSetSensitive(UxGetWidget(tf_shift), TRUE);\ |
| 139 |
*/\ |
| 140 |
XtSetSensitive(UxGetWidget(tg_coropt), TRUE);\ |
| 141 |
}\ |
| 142 |
else {\ |
| 143 |
if ( UpdateToggle )\ |
| 144 |
WriteKeyword("IDENT", K_WLCMTD);\ |
| 145 |
XtSetSensitive(UxGetWidget(guess_session_label), FALSE);\ |
| 146 |
XtSetSensitive(UxGetWidget(tf_guess), FALSE);\ |
| 147 |
/* later\ |
| 148 |
XtSetSensitive(UxGetWidget(shift_label), FALSE);\ |
| 149 |
XtSetSensitive(UxGetWidget(tf_shift), FALSE);\ |
| 150 |
*/\ |
| 151 |
XtSetSensitive(UxGetWidget(tg_coropt), FALSE);\ |
| 152 |
}\ |
| 153 |
\ |
| 154 |
} |
| 155 |
*rb_wlcmtd_gues.set: "false" |
| 156 |
*rb_wlcmtd_gues.highlightOnEnter: "true" |
| 157 |
*rb_wlcmtd_gues.indicatorSize: 16 |
| 158 |
|
| 159 |
*label14.class: label |
| 160 |
*label14.parent: form3 |
| 161 |
*label14.static: true |
| 162 |
*label14.name: label14 |
| 163 |
*label14.x: 329 |
| 164 |
*label14.y: 94 |
| 165 |
*label14.width: 129 |
| 166 |
*label14.height: 18 |
| 167 |
*label14.background: WindowBackground |
| 168 |
*label14.fontList: TextFont |
| 169 |
*label14.labelString: "Calibration method" |
| 170 |
*label14.alignment: "alignment_beginning" |
| 171 |
*label14.foreground: TextForeground |
| 172 |
|
| 173 |
*separatorGadget6.class: separatorGadget |
| 174 |
*separatorGadget6.parent: form3 |
| 175 |
*separatorGadget6.static: true |
| 176 |
*separatorGadget6.name: separatorGadget6 |
| 177 |
*separatorGadget6.x: 321 |
| 178 |
*separatorGadget6.y: 102 |
| 179 |
*separatorGadget6.width: 7 |
| 180 |
*separatorGadget6.height: 84 |
| 181 |
*separatorGadget6.orientation: "vertical" |
| 182 |
|
| 183 |
*separatorGadget7.class: separatorGadget |
| 184 |
*separatorGadget7.parent: form3 |
| 185 |
*separatorGadget7.static: true |
| 186 |
*separatorGadget7.name: separatorGadget7 |
| 187 |
*separatorGadget7.x: 323 |
| 188 |
*separatorGadget7.y: 182 |
| 189 |
*separatorGadget7.width: 136 |
| 190 |
*separatorGadget7.height: 8 |
| 191 |
|
| 192 |
*separatorGadget8.class: separatorGadget |
| 193 |
*separatorGadget8.parent: form3 |
| 194 |
*separatorGadget8.static: true |
| 195 |
*separatorGadget8.name: separatorGadget8 |
| 196 |
*separatorGadget8.x: 457 |
| 197 |
*separatorGadget8.y: 102 |
| 198 |
*separatorGadget8.width: 8 |
| 199 |
*separatorGadget8.height: 84 |
| 200 |
*separatorGadget8.orientation: "vertical" |
| 201 |
|
| 202 |
*label16.class: label |
| 203 |
*label16.parent: form3 |
| 204 |
*label16.static: true |
| 205 |
*label16.name: label16 |
| 206 |
*label16.x: 12 |
| 207 |
*label16.y: 12 |
| 208 |
*label16.width: 203 |
| 209 |
*label16.height: 30 |
| 210 |
*label16.background: LabelBackground |
| 211 |
*label16.fontList: TextFont |
| 212 |
*label16.labelString: "Tolerance :" |
| 213 |
*label16.alignment: "alignment_beginning" |
| 214 |
*label16.foreground: TextForeground |
| 215 |
|
| 216 |
*tf_tol.class: textField |
| 217 |
*tf_tol.parent: form3 |
| 218 |
*tf_tol.static: true |
| 219 |
*tf_tol.name: tf_tol |
| 220 |
*tf_tol.x: 216 |
| 221 |
*tf_tol.y: 6 |
| 222 |
*tf_tol.width: 82 |
| 223 |
*tf_tol.height: 34 |
| 224 |
*tf_tol.background: TextBackground |
| 225 |
*tf_tol.fontList: TextFont |
| 226 |
*tf_tol.highlightOnEnter: "true" |
| 227 |
*tf_tol.foreground: TextForeground |
| 228 |
*tf_tol.losingFocusCallback: {\ |
| 229 |
#include <spec_comm.h>\ |
| 230 |
\ |
| 231 |
char *text, newtext[32];\ |
| 232 |
float val;\ |
| 233 |
extern float Tol;\ |
| 234 |
extern int TolPixels;\ |
| 235 |
\ |
| 236 |
text = XmTextGetString(UxWidget);\ |
| 237 |
sscanf(text, "%f", &val);\ |
| 238 |
\ |
| 239 |
if ( val != Tol ) {\ |
| 240 |
Tol = val;\ |
| 241 |
sprintf(newtext, "%f", (TolPixels ? val : -val));\ |
| 242 |
WriteKeyword(newtext, K_TOL);\ |
| 243 |
}\ |
| 244 |
\ |
| 245 |
XtFree(text);\ |
| 246 |
} |
| 247 |
|
| 248 |
*label17.class: label |
| 249 |
*label17.parent: form3 |
| 250 |
*label17.static: true |
| 251 |
*label17.name: label17 |
| 252 |
*label17.x: 12 |
| 253 |
*label17.y: 50 |
| 254 |
*label17.width: 198 |
| 255 |
*label17.height: 30 |
| 256 |
*label17.background: LabelBackground |
| 257 |
*label17.fontList: TextFont |
| 258 |
*label17.labelString: "Degree of polynomial (x, y) :" |
| 259 |
*label17.alignment: "alignment_beginning" |
| 260 |
*label17.foreground: TextForeground |
| 261 |
|
| 262 |
*label18.class: label |
| 263 |
*label18.parent: form3 |
| 264 |
*label18.static: true |
| 265 |
*label18.name: label18 |
| 266 |
*label18.x: 12 |
| 267 |
*label18.y: 88 |
| 268 |
*label18.width: 200 |
| 269 |
*label18.height: 30 |
| 270 |
*label18.background: LabelBackground |
| 271 |
*label18.fontList: TextFont |
| 272 |
*label18.labelString: "Min. and Max. number of iter. :" |
| 273 |
*label18.alignment: "alignment_beginning" |
| 274 |
*label18.foreground: TextForeground |
| 275 |
|
| 276 |
*tf_dcx1.class: textField |
| 277 |
*tf_dcx1.parent: form3 |
| 278 |
*tf_dcx1.static: true |
| 279 |
*tf_dcx1.name: tf_dcx1 |
| 280 |
*tf_dcx1.x: 216 |
| 281 |
*tf_dcx1.y: 44 |
| 282 |
*tf_dcx1.width: 44 |
| 283 |
*tf_dcx1.height: 34 |
| 284 |
*tf_dcx1.background: TextBackground |
| 285 |
*tf_dcx1.fontList: TextFont |
| 286 |
*tf_dcx1.highlightOnEnter: "true" |
| 287 |
*tf_dcx1.foreground: TextForeground |
| 288 |
*tf_dcx1.losingFocusCallback: {\ |
| 289 |
#include <spec_comm.h>\ |
| 290 |
\ |
| 291 |
char *text;\ |
| 292 |
int val;\ |
| 293 |
extern int Dcx[];\ |
| 294 |
\ |
| 295 |
text = XmTextGetString(UxWidget);\ |
| 296 |
sscanf(text, "%d", &val);\ |
| 297 |
\ |
| 298 |
if ( val != Dcx[0] ) {\ |
| 299 |
Dcx[0] = val;\ |
| 300 |
WriteKeyword(text, K_DCX1);\ |
| 301 |
}\ |
| 302 |
\ |
| 303 |
XtFree(text);\ |
| 304 |
} |
| 305 |
|
| 306 |
*tf_alpha.class: textField |
| 307 |
*tf_alpha.parent: form3 |
| 308 |
*tf_alpha.static: true |
| 309 |
*tf_alpha.name: tf_alpha |
| 310 |
*tf_alpha.x: 216 |
| 311 |
*tf_alpha.y: 120 |
| 312 |
*tf_alpha.width: 82 |
| 313 |
*tf_alpha.height: 34 |
| 314 |
*tf_alpha.background: TextBackground |
| 315 |
*tf_alpha.fontList: TextFont |
| 316 |
*tf_alpha.highlightOnEnter: "true" |
| 317 |
*tf_alpha.foreground: TextForeground |
| 318 |
*tf_alpha.losingFocusCallback: {\ |
| 319 |
#include <spec_comm.h>\ |
| 320 |
\ |
| 321 |
char *text;\ |
| 322 |
float val;\ |
| 323 |
extern float Alpha;\ |
| 324 |
\ |
| 325 |
text = XmTextGetString(UxWidget);\ |
| 326 |
sscanf(text, "%f", &val);\ |
| 327 |
\ |
| 328 |
if ( val != Alpha ) {\ |
| 329 |
Alpha = val;\ |
| 330 |
WriteKeyword(text, K_ALPHA);\ |
| 331 |
}\ |
| 332 |
\ |
| 333 |
XtFree(text);\ |
| 334 |
\ |
| 335 |
} |
| 336 |
|
| 337 |
*label19.class: label |
| 338 |
*label19.parent: form3 |
| 339 |
*label19.static: true |
| 340 |
*label19.name: label19 |
| 341 |
*label19.x: 12 |
| 342 |
*label19.y: 126 |
| 343 |
*label19.width: 205 |
| 344 |
*label19.height: 30 |
| 345 |
*label19.background: LabelBackground |
| 346 |
*label19.fontList: TextFont |
| 347 |
*label19.labelString: "Matching parameter :" |
| 348 |
*label19.alignment: "alignment_beginning" |
| 349 |
*label19.foreground: TextForeground |
| 350 |
|
| 351 |
*label20.class: label |
| 352 |
*label20.parent: form3 |
| 353 |
*label20.static: true |
| 354 |
*label20.name: label20 |
| 355 |
*label20.x: 12 |
| 356 |
*label20.y: 166 |
| 357 |
*label20.width: 205 |
| 358 |
*label20.height: 30 |
| 359 |
*label20.background: LabelBackground |
| 360 |
*label20.fontList: TextFont |
| 361 |
*label20.labelString: "Maximum deviation (pixels) :" |
| 362 |
*label20.alignment: "alignment_beginning" |
| 363 |
*label20.foreground: TextForeground |
| 364 |
|
| 365 |
*tf_maxdev.class: textField |
| 366 |
*tf_maxdev.parent: form3 |
| 367 |
*tf_maxdev.static: true |
| 368 |
*tf_maxdev.name: tf_maxdev |
| 369 |
*tf_maxdev.x: 216 |
| 370 |
*tf_maxdev.y: 158 |
| 371 |
*tf_maxdev.width: 82 |
| 372 |
*tf_maxdev.height: 34 |
| 373 |
*tf_maxdev.background: TextBackground |
| 374 |
*tf_maxdev.fontList: TextFont |
| 375 |
*tf_maxdev.highlightOnEnter: "true" |
| 376 |
*tf_maxdev.foreground: TextForeground |
| 377 |
*tf_maxdev.losingFocusCallback: {\ |
| 378 |
#include <spec_comm.h>\ |
| 379 |
\ |
| 380 |
char *text;\ |
| 381 |
float val;\ |
| 382 |
extern float Maxdev;\ |
| 383 |
\ |
| 384 |
text = XmTextGetString(UxWidget);\ |
| 385 |
sscanf(text, "%f", &val);\ |
| 386 |
\ |
| 387 |
if ( val != Maxdev ) {\ |
| 388 |
Maxdev = val;\ |
| 389 |
WriteKeyword(text, K_MAXDEV);\ |
| 390 |
}\ |
| 391 |
\ |
| 392 |
XtFree(text);\ |
| 393 |
\ |
| 394 |
} |
| 395 |
|
| 396 |
*guess_session_label.class: label |
| 397 |
*guess_session_label.parent: form3 |
| 398 |
*guess_session_label.static: true |
| 399 |
*guess_session_label.name: guess_session_label |
| 400 |
*guess_session_label.x: 12 |
| 401 |
*guess_session_label.y: 204 |
| 402 |
*guess_session_label.width: 90 |
| 403 |
*guess_session_label.height: 30 |
| 404 |
*guess_session_label.background: LabelBackground |
| 405 |
*guess_session_label.fontList: TextFont |
| 406 |
*guess_session_label.labelString: "Initial guess :" |
| 407 |
*guess_session_label.alignment: "alignment_beginning" |
| 408 |
*guess_session_label.foreground: TextForeground |
| 409 |
*guess_session_label.sensitive: "false" |
| 410 |
|
| 411 |
*tf_guess.class: textField |
| 412 |
*tf_guess.parent: form3 |
| 413 |
*tf_guess.static: true |
| 414 |
*tf_guess.name: tf_guess |
| 415 |
*tf_guess.x: 104 |
| 416 |
*tf_guess.y: 200 |
| 417 |
*tf_guess.width: 170 |
| 418 |
*tf_guess.height: 40 |
| 419 |
*tf_guess.background: TextBackground |
| 420 |
*tf_guess.fontList: TextFont |
| 421 |
*tf_guess.highlightOnEnter: "true" |
| 422 |
*tf_guess.foreground: TextForeground |
| 423 |
*tf_guess.sensitive: "false" |
| 424 |
*tf_guess.losingFocusCallback: {\ |
| 425 |
#include <spec_comm.h>\ |
| 426 |
\ |
| 427 |
char *text;\ |
| 428 |
extern char Guess[];\ |
| 429 |
\ |
| 430 |
text = XmTextGetString(UxWidget);\ |
| 431 |
\ |
| 432 |
if ( strcmp(text, Guess) ) {\ |
| 433 |
strcpy(Guess, text);\ |
| 434 |
WriteKeyword(text, K_GUESS);\ |
| 435 |
}\ |
| 436 |
\ |
| 437 |
XtFree(text);\ |
| 438 |
} |
| 439 |
*tf_guess.translations: SelectFileCalib |
| 440 |
|
| 441 |
*separator4.class: separator |
| 442 |
*separator4.parent: form3 |
| 443 |
*separator4.static: true |
| 444 |
*separator4.name: separator4 |
| 445 |
*separator4.x: 0 |
| 446 |
*separator4.y: 238 |
| 447 |
*separator4.width: 492 |
| 448 |
*separator4.height: 10 |
| 449 |
*separator4.background: WindowBackground |
| 450 |
|
| 451 |
*shelp_calib.class: text |
| 452 |
*shelp_calib.parent: form3 |
| 453 |
*shelp_calib.static: true |
| 454 |
*shelp_calib.name: shelp_calib |
| 455 |
*shelp_calib.x: 0 |
| 456 |
*shelp_calib.y: 248 |
| 457 |
*shelp_calib.width: 490 |
| 458 |
*shelp_calib.height: 50 |
| 459 |
*shelp_calib.background: SHelpBackground |
| 460 |
*shelp_calib.cursorPositionVisible: "false" |
| 461 |
*shelp_calib.editable: "false" |
| 462 |
*shelp_calib.fontList: TextFont |
| 463 |
|
| 464 |
*separator5.class: separator |
| 465 |
*separator5.parent: form3 |
| 466 |
*separator5.static: true |
| 467 |
*separator5.name: separator5 |
| 468 |
*separator5.x: -4 |
| 469 |
*separator5.y: 306 |
| 470 |
*separator5.width: 496 |
| 471 |
*separator5.height: 6 |
| 472 |
*separator5.background: WindowBackground |
| 473 |
|
| 474 |
*tf_dcx2.class: textField |
| 475 |
*tf_dcx2.parent: form3 |
| 476 |
*tf_dcx2.static: true |
| 477 |
*tf_dcx2.name: tf_dcx2 |
| 478 |
*tf_dcx2.x: 260 |
| 479 |
*tf_dcx2.y: 44 |
| 480 |
*tf_dcx2.width: 44 |
| 481 |
*tf_dcx2.height: 34 |
| 482 |
*tf_dcx2.background: TextBackground |
| 483 |
*tf_dcx2.fontList: TextFont |
| 484 |
*tf_dcx2.highlightOnEnter: "true" |
| 485 |
*tf_dcx2.foreground: TextForeground |
| 486 |
*tf_dcx2.losingFocusCallback: {\ |
| 487 |
#include <spec_comm.h>\ |
| 488 |
\ |
| 489 |
char *text;\ |
| 490 |
int val;\ |
| 491 |
extern int Dcx[];\ |
| 492 |
\ |
| 493 |
text = XmTextGetString(UxWidget);\ |
| 494 |
sscanf(text, "%d", &val);\ |
| 495 |
\ |
| 496 |
if ( val != Dcx[1] ) {\ |
| 497 |
Dcx[1] = val;\ |
| 498 |
WriteKeyword(text, K_DCX2);\ |
| 499 |
}\ |
| 500 |
\ |
| 501 |
XtFree(text);\ |
| 502 |
} |
| 503 |
|
| 504 |
*tf_wlcniter1.class: textField |
| 505 |
*tf_wlcniter1.parent: form3 |
| 506 |
*tf_wlcniter1.static: true |
| 507 |
*tf_wlcniter1.name: tf_wlcniter1 |
| 508 |
*tf_wlcniter1.x: 216 |
| 509 |
*tf_wlcniter1.y: 82 |
| 510 |
*tf_wlcniter1.width: 44 |
| 511 |
*tf_wlcniter1.height: 34 |
| 512 |
*tf_wlcniter1.background: TextBackground |
| 513 |
*tf_wlcniter1.fontList: TextFont |
| 514 |
*tf_wlcniter1.highlightOnEnter: "true" |
| 515 |
*tf_wlcniter1.foreground: TextForeground |
| 516 |
*tf_wlcniter1.losingFocusCallback: {\ |
| 517 |
#include <spec_comm.h>\ |
| 518 |
\ |
| 519 |
char *text;\ |
| 520 |
int val;\ |
| 521 |
extern int Wlcniter[];\ |
| 522 |
\ |
| 523 |
text = XmTextGetString(UxWidget);\ |
| 524 |
sscanf(text, "%d", &val);\ |
| 525 |
\ |
| 526 |
if ( val != Wlcniter[0] ) {\ |
| 527 |
Wlcniter[0] = val;\ |
| 528 |
WriteKeyword(text, K_WLCNITER1);\ |
| 529 |
}\ |
| 530 |
\ |
| 531 |
XtFree(text);\ |
| 532 |
} |
| 533 |
|
| 534 |
*tf_wlcniter2.class: textField |
| 535 |
*tf_wlcniter2.parent: form3 |
| 536 |
*tf_wlcniter2.static: true |
| 537 |
*tf_wlcniter2.name: tf_wlcniter2 |
| 538 |
*tf_wlcniter2.x: 260 |
| 539 |
*tf_wlcniter2.y: 82 |
| 540 |
*tf_wlcniter2.width: 44 |
| 541 |
*tf_wlcniter2.height: 34 |
| 542 |
*tf_wlcniter2.background: TextBackground |
| 543 |
*tf_wlcniter2.fontList: TextFont |
| 544 |
*tf_wlcniter2.highlightOnEnter: "true" |
| 545 |
*tf_wlcniter2.foreground: TextForeground |
| 546 |
*tf_wlcniter2.losingFocusCallback: {\ |
| 547 |
#include <spec_comm.h>\ |
| 548 |
\ |
| 549 |
char *text;\ |
| 550 |
int val;\ |
| 551 |
extern int Wlcniter[];\ |
| 552 |
\ |
| 553 |
text = XmTextGetString(UxWidget);\ |
| 554 |
sscanf(text, "%d", &val);\ |
| 555 |
\ |
| 556 |
if ( val != Wlcniter[1] ) {\ |
| 557 |
Wlcniter[1] = val;\ |
| 558 |
WriteKeyword(text, K_WLCNITER2);\ |
| 559 |
}\ |
| 560 |
\ |
| 561 |
XtFree(text);\ |
| 562 |
} |
| 563 |
|
| 564 |
*mn_tol.class: rowColumn |
| 565 |
*mn_tol.parent: form3 |
| 566 |
*mn_tol.static: true |
| 567 |
*mn_tol.name: mn_tol |
| 568 |
*mn_tol.rowColumnType: "menu_option" |
| 569 |
*mn_tol.subMenuId: "menu2_p1" |
| 570 |
*mn_tol.x: 296 |
| 571 |
*mn_tol.y: 8 |
| 572 |
*mn_tol.background: WindowBackground |
| 573 |
*mn_tol.foreground: TextForeground |
| 574 |
*mn_tol.marginWidth: 0 |
| 575 |
*mn_tol.spacing: 0 |
| 576 |
*mn_tol.labelString: " " |
| 577 |
|
| 578 |
*menu2_p1.class: rowColumn |
| 579 |
*menu2_p1.parent: mn_tol |
| 580 |
*menu2_p1.static: true |
| 581 |
*menu2_p1.name: menu2_p1 |
| 582 |
*menu2_p1.rowColumnType: "menu_pulldown" |
| 583 |
*menu2_p1.background: WindowBackground |
| 584 |
*menu2_p1.foreground: TextForeground |
| 585 |
|
| 586 |
*mn_tol_angstroms.class: pushButtonGadget |
| 587 |
*mn_tol_angstroms.parent: menu2_p1 |
| 588 |
*mn_tol_angstroms.static: true |
| 589 |
*mn_tol_angstroms.name: mn_tol_angstroms |
| 590 |
*mn_tol_angstroms.labelString: " Angstroms " |
| 591 |
*mn_tol_angstroms.activateCallback: {\ |
| 592 |
#include <spec_comm.h>\ |
| 593 |
\ |
| 594 |
char text[32];\ |
| 595 |
extern float Tol;\ |
| 596 |
extern int TolPixels;\ |
| 597 |
\ |
| 598 |
TolPixels = FALSE;\ |
| 599 |
\ |
| 600 |
sprintf(text, "%f", -Tol);\ |
| 601 |
WriteKeyword(text, K_TOL);\ |
| 602 |
\ |
| 603 |
XtFree(text);\ |
| 604 |
} |
| 605 |
*mn_tol_angstroms.fontList: TextFont |
| 606 |
|
| 607 |
*mn_tol_pixels.class: pushButtonGadget |
| 608 |
*mn_tol_pixels.parent: menu2_p1 |
| 609 |
*mn_tol_pixels.static: true |
| 610 |
*mn_tol_pixels.name: mn_tol_pixels |
| 611 |
*mn_tol_pixels.labelString: " Pixels " |
| 612 |
*mn_tol_pixels.activateCallback: {\ |
| 613 |
#include <spec_comm.h>\ |
| 614 |
\ |
| 615 |
char text[32];\ |
| 616 |
extern float Tol;\ |
| 617 |
extern int TolPixels;\ |
| 618 |
\ |
| 619 |
TolPixels = TRUE;\ |
| 620 |
\ |
| 621 |
sprintf(text, "%f", Tol);\ |
| 622 |
WriteKeyword(text, K_TOL);\ |
| 623 |
\ |
| 624 |
XtFree(text);\ |
| 625 |
} |
| 626 |
*mn_tol_pixels.fontList: TextFont |
| 627 |
|
| 628 |
*tg_twodopt.class: toggleButton |
| 629 |
*tg_twodopt.parent: form3 |
| 630 |
*tg_twodopt.static: true |
| 631 |
*tg_twodopt.name: tg_twodopt |
| 632 |
*tg_twodopt.x: 306 |
| 633 |
*tg_twodopt.y: 46 |
| 634 |
*tg_twodopt.width: 172 |
| 635 |
*tg_twodopt.height: 31 |
| 636 |
*tg_twodopt.background: WindowBackground |
| 637 |
*tg_twodopt.fontList: TextFont |
| 638 |
*tg_twodopt.labelString: "Compute 2-D solution" |
| 639 |
*tg_twodopt.set: "false" |
| 640 |
*tg_twodopt.selectColor: SelectColor |
| 641 |
*tg_twodopt.foreground: TextForeground |
| 642 |
*tg_twodopt.highlightOnEnter: "true" |
| 643 |
*tg_twodopt.sensitive: "true" |
| 644 |
*tg_twodopt.valueChangedCallback: {\ |
| 645 |
#include <spec_comm.h>\ |
| 646 |
\ |
| 647 |
if ( XmToggleButtonGetState(UxWidget) )\ |
| 648 |
WriteKeyword("YES", K_TWODOPT);\ |
| 649 |
else\ |
| 650 |
WriteKeyword("NO", K_TWODOPT);\ |
| 651 |
} |
| 652 |
*tg_twodopt.indicatorSize: 16 |
| 653 |
|
| 654 |
*tg_coropt.class: toggleButton |
| 655 |
*tg_coropt.parent: form3 |
| 656 |
*tg_coropt.static: true |
| 657 |
*tg_coropt.name: tg_coropt |
| 658 |
*tg_coropt.x: 282 |
| 659 |
*tg_coropt.y: 204 |
| 660 |
*tg_coropt.width: 206 |
| 661 |
*tg_coropt.height: 26 |
| 662 |
*tg_coropt.background: WindowBackground |
| 663 |
*tg_coropt.fontList: TextFont |
| 664 |
*tg_coropt.labelString: "Compute Cross-correlation" |
| 665 |
*tg_coropt.set: "false" |
| 666 |
*tg_coropt.selectColor: SelectColor |
| 667 |
*tg_coropt.foreground: TextForeground |
| 668 |
*tg_coropt.highlightOnEnter: "true" |
| 669 |
*tg_coropt.sensitive: "false" |
| 670 |
*tg_coropt.valueChangedCallback: {\ |
| 671 |
#include <spec_comm.h>\ |
| 672 |
\ |
| 673 |
extern int UpdateToggle;\ |
| 674 |
\ |
| 675 |
if ( !UpdateToggle )\ |
| 676 |
return;\ |
| 677 |
\ |
| 678 |
if ( XmToggleButtonGetState(UxWidget) )\ |
| 679 |
AppendDialogText("set/long CORVISU=YES COROPT=YES");\ |
| 680 |
else\ |
| 681 |
AppendDialogText("set/long CORVISU=NO COROPT=NO");\ |
| 682 |
} |
| 683 |
*tg_coropt.indicatorSize: 16 |
| 684 |
|
| 685 |
*form20.class: form |
| 686 |
*form20.parent: form3 |
| 687 |
*form20.static: true |
| 688 |
*form20.name: form20 |
| 689 |
*form20.resizePolicy: "resize_none" |
| 690 |
*form20.x: 0 |
| 691 |
*form20.y: 310 |
| 692 |
*form20.width: 490 |
| 693 |
*form20.height: 76 |
| 694 |
*form20.background: ButtonBackground |
| 695 |
|
| 696 |
*pb_calib_calibrate.class: pushButton |
| 697 |
*pb_calib_calibrate.parent: form20 |
| 698 |
*pb_calib_calibrate.static: true |
| 699 |
*pb_calib_calibrate.name: pb_calib_calibrate |
| 700 |
*pb_calib_calibrate.x: 10 |
| 701 |
*pb_calib_calibrate.y: 6 |
| 702 |
*pb_calib_calibrate.width: 86 |
| 703 |
*pb_calib_calibrate.height: 30 |
| 704 |
*pb_calib_calibrate.background: ButtonBackground |
| 705 |
*pb_calib_calibrate.fontList: BoldTextFont |
| 706 |
*pb_calib_calibrate.foreground: ApplyForeground |
| 707 |
*pb_calib_calibrate.labelString: "Calibrate" |
| 708 |
*pb_calib_calibrate.activateCallback: {\ |
| 709 |
#include <spec_comm.h>\ |
| 710 |
\ |
| 711 |
extern char Plotmode[];\ |
| 712 |
\ |
| 713 |
AppendDialogText(C_SELINE);\ |
| 714 |
AppendDialogText(C_CALIB_RBR);\ |
| 715 |
AppendDialogText(C_PLOT_DELTA);\ |
| 716 |
strcpy(Plotmode, C_PLOT_DELTA);\ |
| 717 |
UpdateRebinParameters();\ |
| 718 |
} |
| 719 |
|
| 720 |
*pushButton40.class: pushButton |
| 721 |
*pushButton40.parent: form20 |
| 722 |
*pushButton40.static: true |
| 723 |
*pushButton40.name: pushButton40 |
| 724 |
*pushButton40.x: 384 |
| 725 |
*pushButton40.y: 40 |
| 726 |
*pushButton40.width: 86 |
| 727 |
*pushButton40.height: 30 |
| 728 |
*pushButton40.background: ButtonBackground |
| 729 |
*pushButton40.fontList: BoldTextFont |
| 730 |
*pushButton40.foreground: CancelForeground |
| 731 |
*pushButton40.labelString: "Cancel" |
| 732 |
*pushButton40.activateCallback: {\ |
| 733 |
AppendDialogText(C_SELCAT_ALL);\ |
| 734 |
UxPopdownInterface(UxFindSwidget("CalibShell"));\ |
| 735 |
} |
| 736 |
|
| 737 |
*pb_calib_disper.class: pushButton |
| 738 |
*pb_calib_disper.parent: form20 |
| 739 |
*pb_calib_disper.static: true |
| 740 |
*pb_calib_disper.name: pb_calib_disper |
| 741 |
*pb_calib_disper.x: 10 |
| 742 |
*pb_calib_disper.y: 40 |
| 743 |
*pb_calib_disper.width: 86 |
| 744 |
*pb_calib_disper.height: 30 |
| 745 |
*pb_calib_disper.background: ButtonBackground |
| 746 |
*pb_calib_disper.fontList: BoldTextFont |
| 747 |
*pb_calib_disper.foreground: ButtonForeground |
| 748 |
*pb_calib_disper.labelString: "Dispersion" |
| 749 |
*pb_calib_disper.activateCallback: {\ |
| 750 |
#include <spec_comm.h>\ |
| 751 |
\ |
| 752 |
extern char Plotmode[];\ |
| 753 |
\ |
| 754 |
AppendDialogText(C_PLOT_DELTA);\ |
| 755 |
strcpy(Plotmode, C_PLOT_DELTA);\ |
| 756 |
} |
| 757 |
|
| 758 |
*pb_calib_resid.class: pushButton |
| 759 |
*pb_calib_resid.parent: form20 |
| 760 |
*pb_calib_resid.static: true |
| 761 |
*pb_calib_resid.name: pb_calib_resid |
| 762 |
*pb_calib_resid.x: 102 |
| 763 |
*pb_calib_resid.y: 40 |
| 764 |
*pb_calib_resid.width: 86 |
| 765 |
*pb_calib_resid.height: 30 |
| 766 |
*pb_calib_resid.background: ButtonBackground |
| 767 |
*pb_calib_resid.fontList: BoldTextFont |
| 768 |
*pb_calib_resid.foreground: ButtonForeground |
| 769 |
*pb_calib_resid.labelString: "Residuals" |
| 770 |
*pb_calib_resid.activateCallback: {\ |
| 771 |
extern int Ystart;\ |
| 772 |
char str[20];\ |
| 773 |
\ |
| 774 |
sprintf(str, "%d", Ystart);\ |
| 775 |
XmTextSetString(UxGetWidget(UxFindSwidget("tf_residual")), str);\ |
| 776 |
UxPopupInterface(UxFindSwidget("resid_dialog"), exclusive_grab);\ |
| 777 |
} |
| 778 |
|
| 779 |
*pb_calib_spec.class: pushButton |
| 780 |
*pb_calib_spec.parent: form20 |
| 781 |
*pb_calib_spec.static: true |
| 782 |
*pb_calib_spec.name: pb_calib_spec |
| 783 |
*pb_calib_spec.x: 196 |
| 784 |
*pb_calib_spec.y: 40 |
| 785 |
*pb_calib_spec.width: 86 |
| 786 |
*pb_calib_spec.height: 30 |
| 787 |
*pb_calib_spec.background: ButtonBackground |
| 788 |
*pb_calib_spec.fontList: BoldTextFont |
| 789 |
*pb_calib_spec.foreground: ButtonForeground |
| 790 |
*pb_calib_spec.labelString: "Spectrum" |
| 791 |
*pb_calib_spec.activateCallback: {\ |
| 792 |
#include <spec_comm.h>\ |
| 793 |
\ |
| 794 |
extern char Plotmode[];\ |
| 795 |
\ |
| 796 |
AppendDialogText(C_PLOT_CALIB);\ |
| 797 |
strcpy(Plotmode, C_PLOT_CALIB);\ |
| 798 |
} |
| 799 |
|
| 800 |
*pb_calib_edit.class: pushButton |
| 801 |
*pb_calib_edit.parent: form20 |
| 802 |
*pb_calib_edit.static: true |
| 803 |
*pb_calib_edit.name: pb_calib_edit |
| 804 |
*pb_calib_edit.x: 102 |
| 805 |
*pb_calib_edit.y: 6 |
| 806 |
*pb_calib_edit.width: 86 |
| 807 |
*pb_calib_edit.height: 30 |
| 808 |
*pb_calib_edit.background: ButtonBackground |
| 809 |
*pb_calib_edit.fontList: BoldTextFont |
| 810 |
*pb_calib_edit.foreground: ApplyForeground |
| 811 |
*pb_calib_edit.labelString: "Edit" |
| 812 |
*pb_calib_edit.activateCallback: {\ |
| 813 |
#include <spec_comm.h>\ |
| 814 |
\ |
| 815 |
if ( !strcmp(Plotmode, C_PLOT_DELTA) ) \ |
| 816 |
AppendDialogText(C_CALIB_EDIT_D);\ |
| 817 |
else if ( !strcmp(Plotmode, C_PLOT_CALIB) ) \ |
| 818 |
AppendDialogText(C_CALIB_EDIT_C);\ |
| 819 |
else {\ |
| 820 |
SCTPUT("** Edition can only be done in the dispersion or the spectrum plot.");\ |
| 821 |
return;\ |
| 822 |
}\ |
| 823 |
\ |
| 824 |
AppendDialogText(C_CALIB_ERAS);\ |
| 825 |
UpdateRebinParameters();\ |
| 826 |
} |
| 827 |
|
| 828 |
*pb_calib_shape.class: pushButton |
| 829 |
*pb_calib_shape.parent: form20 |
| 830 |
*pb_calib_shape.static: true |
| 831 |
*pb_calib_shape.name: pb_calib_shape |
| 832 |
*pb_calib_shape.x: 290 |
| 833 |
*pb_calib_shape.y: 40 |
| 834 |
*pb_calib_shape.width: 86 |
| 835 |
*pb_calib_shape.height: 30 |
| 836 |
*pb_calib_shape.background: ButtonBackground |
| 837 |
*pb_calib_shape.fontList: BoldTextFont |
| 838 |
*pb_calib_shape.foreground: ButtonForeground |
| 839 |
*pb_calib_shape.labelString: "Line shape" |
| 840 |
*pb_calib_shape.activateCallback: {\ |
| 841 |
if ( !read_lincat_table() ) {\ |
| 842 |
SCTPUT( "Error: cannot read Line Catalog Table");\ |
| 843 |
return;\ |
| 844 |
}\ |
| 845 |
display_lincat_table(UxGetWidget(UxFindSwidget("sl_lincat_list")));\ |
| 846 |
UxPopupInterface(UxFindSwidget("lincat_list"), exclusive_grab);\ |
| 847 |
} |
| 848 |
|
| 849 |
*pb_calib_twice.class: pushButton |
| 850 |
*pb_calib_twice.parent: form20 |
| 851 |
*pb_calib_twice.static: true |
| 852 |
*pb_calib_twice.name: pb_calib_twice |
| 853 |
*pb_calib_twice.x: 384 |
| 854 |
*pb_calib_twice.y: 6 |
| 855 |
*pb_calib_twice.width: 86 |
| 856 |
*pb_calib_twice.height: 30 |
| 857 |
*pb_calib_twice.background: ButtonBackground |
| 858 |
*pb_calib_twice.fontList: BoldTextFont |
| 859 |
*pb_calib_twice.foreground: ApplyForeground |
| 860 |
*pb_calib_twice.labelString: "Calib twice" |
| 861 |
*pb_calib_twice.activateCallback: {\ |
| 862 |
#include <spec_comm.h>\ |
| 863 |
\ |
| 864 |
AppendDialogText(C_SELLIN_ALL);\ |
| 865 |
AppendDialogText(C_CALIB_RBR2);\ |
| 866 |
UpdateRebinParameters();\ |
| 867 |
} |
| 868 |
|
| 869 |
*pb_calib_all.class: pushButton |
| 870 |
*pb_calib_all.parent: form20 |
| 871 |
*pb_calib_all.static: true |
| 872 |
*pb_calib_all.name: pb_calib_all |
| 873 |
*pb_calib_all.x: 290 |
| 874 |
*pb_calib_all.y: 6 |
| 875 |
*pb_calib_all.width: 86 |
| 876 |
*pb_calib_all.height: 30 |
| 877 |
*pb_calib_all.background: ButtonBackground |
| 878 |
*pb_calib_all.fontList: BoldTextFont |
| 879 |
*pb_calib_all.foreground: ApplyForeground |
| 880 |
*pb_calib_all.labelString: "Calib all" |
| 881 |
*pb_calib_all.activateCallback: {\ |
| 882 |
#include <spec_comm.h>\ |
| 883 |
AppendDialogText(C_SELLIN_ALL);\ |
| 884 |
AppendDialogText(C_CALIB_RBR);\ |
| 885 |
UpdateRebinParameters();\ |
| 886 |
} |
| 887 |
|
| 888 |
*pb_calib_getcur.class: pushButton |
| 889 |
*pb_calib_getcur.parent: form20 |
| 890 |
*pb_calib_getcur.static: true |
| 891 |
*pb_calib_getcur.name: pb_calib_getcur |
| 892 |
*pb_calib_getcur.x: 196 |
| 893 |
*pb_calib_getcur.y: 6 |
| 894 |
*pb_calib_getcur.width: 86 |
| 895 |
*pb_calib_getcur.height: 30 |
| 896 |
*pb_calib_getcur.background: ButtonBackground |
| 897 |
*pb_calib_getcur.fontList: BoldTextFont |
| 898 |
*pb_calib_getcur.foreground: ApplyForeground |
| 899 |
*pb_calib_getcur.labelString: "Get cursor" |
| 900 |
*pb_calib_getcur.activateCallback: {\ |
| 901 |
#include <spec_comm.h>\ |
| 902 |
\ |
| 903 |
AppendDialogText(C_CALIB_CURS);\ |
| 904 |
\ |
| 905 |
} |
| 906 |
|