| 1 |
! UIMX ascii 2.0 key: 660 |
| 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: SelectFileExtract |
| 39 |
*translation.parent: ExtractShell |
| 40 |
*translation.policy: override |
| 41 |
*translation.<Btn3Down>: FileSelectACT() |
| 42 |
|
| 43 |
*ExtractShell.class: applicationShell |
| 44 |
*ExtractShell.parent: NO_PARENT |
| 45 |
*ExtractShell.static: true |
| 46 |
*ExtractShell.gbldecl: #include <stdio.h>\ |
| 47 |
#include <ExternResources.h> |
| 48 |
*ExtractShell.ispecdecl: |
| 49 |
*ExtractShell.funcdecl: swidget create_ExtractShell()\ |
| 50 |
|
| 51 |
*ExtractShell.funcname: create_ExtractShell |
| 52 |
*ExtractShell.funcdef: "swidget", "<create_ExtractShell>(%)" |
| 53 |
*ExtractShell.icode: |
| 54 |
*ExtractShell.fcode: return(rtrn);\ |
| 55 |
|
| 56 |
*ExtractShell.auxdecl: |
| 57 |
*ExtractShell.name: ExtractShell |
| 58 |
*ExtractShell.x: 2 |
| 59 |
*ExtractShell.y: 21 |
| 60 |
*ExtractShell.width: 490 |
| 61 |
*ExtractShell.height: 661 |
| 62 |
*ExtractShell.title: "Spectrum Extraction" |
| 63 |
*ExtractShell.keyboardFocusPolicy: "pointer" |
| 64 |
*ExtractShell.geometry: "+10+60" |
| 65 |
*ExtractShell.background: WindowBackground |
| 66 |
|
| 67 |
*form14.class: form |
| 68 |
*form14.parent: ExtractShell |
| 69 |
*form14.static: true |
| 70 |
*form14.name: form14 |
| 71 |
*form14.resizePolicy: "resize_none" |
| 72 |
*form14.unitType: "pixels" |
| 73 |
*form14.x: 0 |
| 74 |
*form14.y: 0 |
| 75 |
*form14.width: 490 |
| 76 |
*form14.height: 662 |
| 77 |
*form14.background: WindowBackground |
| 78 |
|
| 79 |
*form15.class: form |
| 80 |
*form15.parent: form14 |
| 81 |
*form15.static: true |
| 82 |
*form15.name: form15 |
| 83 |
*form15.resizePolicy: "resize_none" |
| 84 |
*form15.x: 0 |
| 85 |
*form15.y: 576 |
| 86 |
*form15.width: 490 |
| 87 |
*form15.height: 84 |
| 88 |
*form15.background: ButtonBackground |
| 89 |
|
| 90 |
*pb_ext_sky.class: pushButton |
| 91 |
*pb_ext_sky.parent: form15 |
| 92 |
*pb_ext_sky.static: true |
| 93 |
*pb_ext_sky.name: pb_ext_sky |
| 94 |
*pb_ext_sky.x: 8 |
| 95 |
*pb_ext_sky.y: 4 |
| 96 |
*pb_ext_sky.width: 86 |
| 97 |
*pb_ext_sky.height: 30 |
| 98 |
*pb_ext_sky.background: ButtonBackground |
| 99 |
*pb_ext_sky.fontList: BoldTextFont |
| 100 |
*pb_ext_sky.foreground: ApplyForeground |
| 101 |
*pb_ext_sky.labelString: "Get sky" |
| 102 |
*pb_ext_sky.activateCallback: {\ |
| 103 |
#include <spec_comm.h>\ |
| 104 |
\ |
| 105 |
char command[128], s[10];\ |
| 106 |
int sky[4];\ |
| 107 |
extern int Lowsky[], Uppsky[];\ |
| 108 |
\ |
| 109 |
sprintf(command, "%s 4", C_EXTR_GCOOR);\ |
| 110 |
AppendDialogText(command);\ |
| 111 |
\ |
| 112 |
if ( !GetCoords(sky, 4) )\ |
| 113 |
return;\ |
| 114 |
\ |
| 115 |
sprintf(command, "set/long LOWSKY=%d,%d UPPSKY=%d,%d", sky[0], sky[1], sky[2], sky[3]);\ |
| 116 |
AppendDialogText(command);\ |
| 117 |
sprintf(s, "%d", sky[0]);\ |
| 118 |
UxPutValue(UxFindSwidget("tf_lowsky1"), s);\ |
| 119 |
sprintf(s, "%d", sky[1]);\ |
| 120 |
UxPutValue(UxFindSwidget("tf_lowsky2"), s);\ |
| 121 |
sprintf(s, "%d", sky[2]);\ |
| 122 |
UxPutValue(UxFindSwidget("tf_uppsky1"), s);\ |
| 123 |
sprintf(s, "%d", sky[3]);\ |
| 124 |
UxPutValue(UxFindSwidget("tf_uppsky2"), s);\ |
| 125 |
\ |
| 126 |
Lowsky[0] = sky[0]; Lowsky[1] = sky[1];\ |
| 127 |
Uppsky[0] = sky[2]; Uppsky[1] = sky[3];\ |
| 128 |
\ |
| 129 |
\ |
| 130 |
\ |
| 131 |
\ |
| 132 |
\ |
| 133 |
\ |
| 134 |
} |
| 135 |
|
| 136 |
*pushButton28.class: pushButton |
| 137 |
*pushButton28.parent: form15 |
| 138 |
*pushButton28.static: true |
| 139 |
*pushButton28.name: pushButton28 |
| 140 |
*pushButton28.x: 8 |
| 141 |
*pushButton28.y: 40 |
| 142 |
*pushButton28.width: 86 |
| 143 |
*pushButton28.height: 30 |
| 144 |
*pushButton28.background: ButtonBackground |
| 145 |
*pushButton28.fontList: BoldTextFont |
| 146 |
*pushButton28.foreground: CancelForeground |
| 147 |
*pushButton28.labelString: "Cancel" |
| 148 |
*pushButton28.activateCallback: {\ |
| 149 |
UxPopdownInterface(UxFindSwidget("ExtractShell"));\ |
| 150 |
} |
| 151 |
|
| 152 |
*pb_ext_object.class: pushButton |
| 153 |
*pb_ext_object.parent: form15 |
| 154 |
*pb_ext_object.static: true |
| 155 |
*pb_ext_object.name: pb_ext_object |
| 156 |
*pb_ext_object.x: 102 |
| 157 |
*pb_ext_object.y: 4 |
| 158 |
*pb_ext_object.width: 86 |
| 159 |
*pb_ext_object.height: 30 |
| 160 |
*pb_ext_object.background: ButtonBackground |
| 161 |
*pb_ext_object.fontList: BoldTextFont |
| 162 |
*pb_ext_object.foreground: ApplyForeground |
| 163 |
*pb_ext_object.labelString: "Get object" |
| 164 |
*pb_ext_object.activateCallback: {\ |
| 165 |
#include <spec_comm.h>\ |
| 166 |
\ |
| 167 |
char command[128], s[10];\ |
| 168 |
extern int Objlim[];\ |
| 169 |
\ |
| 170 |
sprintf(command, "%s 2", C_EXTR_GCOOR);\ |
| 171 |
AppendDialogText(command);\ |
| 172 |
\ |
| 173 |
if ( !GetCoords(Objlim, 2) )\ |
| 174 |
return;\ |
| 175 |
\ |
| 176 |
sprintf(command, "set/long OBJECT=%d,%d", Objlim[0], Objlim[1]);\ |
| 177 |
AppendDialogText(command);\ |
| 178 |
sprintf(s, "%d", Objlim[0]);\ |
| 179 |
UxPutValue(UxFindSwidget("tf_object1"), s);\ |
| 180 |
sprintf(s, "%d", Objlim[1]);\ |
| 181 |
UxPutValue(UxFindSwidget("tf_object2"), s);\ |
| 182 |
\ |
| 183 |
} |
| 184 |
|
| 185 |
*pb_ext_fit.class: pushButton |
| 186 |
*pb_ext_fit.parent: form15 |
| 187 |
*pb_ext_fit.static: true |
| 188 |
*pb_ext_fit.name: pb_ext_fit |
| 189 |
*pb_ext_fit.x: 196 |
| 190 |
*pb_ext_fit.y: 4 |
| 191 |
*pb_ext_fit.width: 86 |
| 192 |
*pb_ext_fit.height: 30 |
| 193 |
*pb_ext_fit.background: ButtonBackground |
| 194 |
*pb_ext_fit.fontList: BoldTextFont |
| 195 |
*pb_ext_fit.foreground: ApplyForeground |
| 196 |
*pb_ext_fit.labelString: "Fit sky" |
| 197 |
*pb_ext_fit.activateCallback: {\ |
| 198 |
#include <spec_comm.h>\ |
| 199 |
\ |
| 200 |
PopupList(LIST_FIT_SKY);\ |
| 201 |
} |
| 202 |
|
| 203 |
*pb_ext_weight.class: pushButton |
| 204 |
*pb_ext_weight.parent: form15 |
| 205 |
*pb_ext_weight.static: true |
| 206 |
*pb_ext_weight.name: pb_ext_weight |
| 207 |
*pb_ext_weight.x: 386 |
| 208 |
*pb_ext_weight.y: 4 |
| 209 |
*pb_ext_weight.width: 86 |
| 210 |
*pb_ext_weight.height: 30 |
| 211 |
*pb_ext_weight.background: ButtonBackground |
| 212 |
*pb_ext_weight.fontList: BoldTextFont |
| 213 |
*pb_ext_weight.foreground: ApplyForeground |
| 214 |
*pb_ext_weight.labelString: "Ext weight" |
| 215 |
*pb_ext_weight.activateCallback: {\ |
| 216 |
#include <spec_comm.h>\ |
| 217 |
\ |
| 218 |
PopupList(LIST_EXT_WEIGHT);\ |
| 219 |
} |
| 220 |
|
| 221 |
*pb_ext_average.class: pushButton |
| 222 |
*pb_ext_average.parent: form15 |
| 223 |
*pb_ext_average.static: true |
| 224 |
*pb_ext_average.name: pb_ext_average |
| 225 |
*pb_ext_average.x: 290 |
| 226 |
*pb_ext_average.y: 4 |
| 227 |
*pb_ext_average.width: 86 |
| 228 |
*pb_ext_average.height: 30 |
| 229 |
*pb_ext_average.background: ButtonBackground |
| 230 |
*pb_ext_average.fontList: BoldTextFont |
| 231 |
*pb_ext_average.foreground: ApplyForeground |
| 232 |
*pb_ext_average.labelString: "Ext average" |
| 233 |
*pb_ext_average.activateCallback: {\ |
| 234 |
#include <spec_comm.h>\ |
| 235 |
\ |
| 236 |
PopupList(LIST_EXT_AVER);\ |
| 237 |
} |
| 238 |
|
| 239 |
*shelp_extract.class: text |
| 240 |
*shelp_extract.parent: form14 |
| 241 |
*shelp_extract.static: true |
| 242 |
*shelp_extract.name: shelp_extract |
| 243 |
*shelp_extract.x: 2 |
| 244 |
*shelp_extract.y: 516 |
| 245 |
*shelp_extract.width: 484 |
| 246 |
*shelp_extract.height: 50 |
| 247 |
*shelp_extract.background: SHelpBackground |
| 248 |
*shelp_extract.cursorPositionVisible: "false" |
| 249 |
*shelp_extract.editable: "false" |
| 250 |
*shelp_extract.fontList: TextFont |
| 251 |
|
| 252 |
*separator10.class: separator |
| 253 |
*separator10.parent: form14 |
| 254 |
*separator10.static: true |
| 255 |
*separator10.name: separator10 |
| 256 |
*separator10.x: 0 |
| 257 |
*separator10.y: 506 |
| 258 |
*separator10.width: 492 |
| 259 |
*separator10.height: 10 |
| 260 |
*separator10.background: WindowBackground |
| 261 |
|
| 262 |
*separator11.class: separator |
| 263 |
*separator11.parent: form14 |
| 264 |
*separator11.static: true |
| 265 |
*separator11.name: separator11 |
| 266 |
*separator11.x: -2 |
| 267 |
*separator11.y: 564 |
| 268 |
*separator11.width: 492 |
| 269 |
*separator11.height: 10 |
| 270 |
*separator11.background: WindowBackground |
| 271 |
|
| 272 |
*rowColumn6.class: rowColumn |
| 273 |
*rowColumn6.parent: form14 |
| 274 |
*rowColumn6.static: true |
| 275 |
*rowColumn6.name: rowColumn6 |
| 276 |
*rowColumn6.x: 264 |
| 277 |
*rowColumn6.y: 422 |
| 278 |
*rowColumn6.width: 82 |
| 279 |
*rowColumn6.height: 67 |
| 280 |
*rowColumn6.radioBehavior: "true" |
| 281 |
*rowColumn6.background: "grey80" |
| 282 |
*rowColumn6.entryBorder: 0 |
| 283 |
*rowColumn6.labelString: "" |
| 284 |
*rowColumn6.shadowThickness: 0 |
| 285 |
*rowColumn6.borderWidth: 0 |
| 286 |
*rowColumn6.entryAlignment: "alignment_beginning" |
| 287 |
*rowColumn6.isAligned: "true" |
| 288 |
|
| 289 |
*rb_extmtd_line.class: toggleButton |
| 290 |
*rb_extmtd_line.parent: rowColumn6 |
| 291 |
*rb_extmtd_line.static: true |
| 292 |
*rb_extmtd_line.name: rb_extmtd_line |
| 293 |
*rb_extmtd_line.x: 3 |
| 294 |
*rb_extmtd_line.y: 2 |
| 295 |
*rb_extmtd_line.width: 76 |
| 296 |
*rb_extmtd_line.height: 20 |
| 297 |
*rb_extmtd_line.background: WindowBackground |
| 298 |
*rb_extmtd_line.fontList: TextFont |
| 299 |
*rb_extmtd_line.labelString: "SUM" |
| 300 |
*rb_extmtd_line.set: "true" |
| 301 |
*rb_extmtd_line.selectColor: SelectColor |
| 302 |
*rb_extmtd_line.foreground: TextForeground |
| 303 |
*rb_extmtd_line.highlightOnEnter: "true" |
| 304 |
*rb_extmtd_line.indicatorSize: 16 |
| 305 |
|
| 306 |
*rb_extmtd_aver.class: toggleButton |
| 307 |
*rb_extmtd_aver.parent: rowColumn6 |
| 308 |
*rb_extmtd_aver.static: true |
| 309 |
*rb_extmtd_aver.name: rb_extmtd_aver |
| 310 |
*rb_extmtd_aver.x: 3 |
| 311 |
*rb_extmtd_aver.y: 34 |
| 312 |
*rb_extmtd_aver.width: 76 |
| 313 |
*rb_extmtd_aver.height: 66 |
| 314 |
*rb_extmtd_aver.background: WindowBackground |
| 315 |
*rb_extmtd_aver.fontList: TextFont |
| 316 |
*rb_extmtd_aver.labelString: "AVERAGE" |
| 317 |
*rb_extmtd_aver.selectColor: SelectColor |
| 318 |
*rb_extmtd_aver.foreground: TextForeground |
| 319 |
*rb_extmtd_aver.valueChangedCallback: {\ |
| 320 |
#include <spec_comm.h>\ |
| 321 |
\ |
| 322 |
extern int UpdateToggle;\ |
| 323 |
\ |
| 324 |
if ( !UpdateToggle )\ |
| 325 |
return;\ |
| 326 |
\ |
| 327 |
if ( XmToggleButtonGetState(UxWidget) ) /*selected */\ |
| 328 |
WriteKeyword("AVERAGE", K_EXTMTD);\ |
| 329 |
else\ |
| 330 |
WriteKeyword("LINEAR", K_EXTMTD);\ |
| 331 |
\ |
| 332 |
} |
| 333 |
*rb_extmtd_aver.set: "false" |
| 334 |
*rb_extmtd_aver.highlightOnEnter: "true" |
| 335 |
*rb_extmtd_aver.indicatorSize: 16 |
| 336 |
|
| 337 |
*label47.class: label |
| 338 |
*label47.parent: form14 |
| 339 |
*label47.static: true |
| 340 |
*label47.name: label47 |
| 341 |
*label47.x: 256 |
| 342 |
*label47.y: 396 |
| 343 |
*label47.width: 122 |
| 344 |
*label47.height: 26 |
| 345 |
*label47.background: WindowBackground |
| 346 |
*label47.fontList: TextFont |
| 347 |
*label47.labelString: "Extraction method" |
| 348 |
*label47.alignment: "alignment_beginning" |
| 349 |
*label47.foreground: TextForeground |
| 350 |
|
| 351 |
*separatorGadget26.class: separatorGadget |
| 352 |
*separatorGadget26.parent: form14 |
| 353 |
*separatorGadget26.static: true |
| 354 |
*separatorGadget26.name: separatorGadget26 |
| 355 |
*separatorGadget26.x: 241 |
| 356 |
*separatorGadget26.y: 412 |
| 357 |
*separatorGadget26.width: 12 |
| 358 |
*separatorGadget26.height: 84 |
| 359 |
*separatorGadget26.orientation: "vertical" |
| 360 |
|
| 361 |
*separatorGadget27.class: separatorGadget |
| 362 |
*separatorGadget27.parent: form14 |
| 363 |
*separatorGadget27.static: true |
| 364 |
*separatorGadget27.name: separatorGadget27 |
| 365 |
*separatorGadget27.x: 246 |
| 366 |
*separatorGadget27.y: 492 |
| 367 |
*separatorGadget27.width: 144 |
| 368 |
*separatorGadget27.height: 8 |
| 369 |
|
| 370 |
*separatorGadget28.class: separatorGadget |
| 371 |
*separatorGadget28.parent: form14 |
| 372 |
*separatorGadget28.static: true |
| 373 |
*separatorGadget28.name: separatorGadget28 |
| 374 |
*separatorGadget28.x: 384 |
| 375 |
*separatorGadget28.y: 412 |
| 376 |
*separatorGadget28.width: 12 |
| 377 |
*separatorGadget28.height: 84 |
| 378 |
*separatorGadget28.orientation: "vertical" |
| 379 |
|
| 380 |
*rowColumn7.class: rowColumn |
| 381 |
*rowColumn7.parent: form14 |
| 382 |
*rowColumn7.static: true |
| 383 |
*rowColumn7.name: rowColumn7 |
| 384 |
*rowColumn7.x: 45 |
| 385 |
*rowColumn7.y: 420 |
| 386 |
*rowColumn7.width: 82 |
| 387 |
*rowColumn7.height: 67 |
| 388 |
*rowColumn7.radioBehavior: "true" |
| 389 |
*rowColumn7.background: "grey80" |
| 390 |
*rowColumn7.entryBorder: 0 |
| 391 |
*rowColumn7.labelString: "" |
| 392 |
*rowColumn7.shadowThickness: 0 |
| 393 |
*rowColumn7.borderWidth: 0 |
| 394 |
*rowColumn7.entryAlignment: "alignment_beginning" |
| 395 |
*rowColumn7.isAligned: "true" |
| 396 |
|
| 397 |
*rb_skymod_0.class: toggleButton |
| 398 |
*rb_skymod_0.parent: rowColumn7 |
| 399 |
*rb_skymod_0.static: true |
| 400 |
*rb_skymod_0.name: rb_skymod_0 |
| 401 |
*rb_skymod_0.x: -12 |
| 402 |
*rb_skymod_0.y: 0 |
| 403 |
*rb_skymod_0.width: 76 |
| 404 |
*rb_skymod_0.height: 20 |
| 405 |
*rb_skymod_0.background: WindowBackground |
| 406 |
*rb_skymod_0.fontList: TextFont |
| 407 |
*rb_skymod_0.labelString: "Same spatial profile" |
| 408 |
*rb_skymod_0.set: "true" |
| 409 |
*rb_skymod_0.selectColor: SelectColor |
| 410 |
*rb_skymod_0.foreground: TextForeground |
| 411 |
*rb_skymod_0.highlightOnEnter: "true" |
| 412 |
*rb_skymod_0.indicatorSize: 16 |
| 413 |
|
| 414 |
*rb_skymod_1.class: toggleButton |
| 415 |
*rb_skymod_1.parent: rowColumn7 |
| 416 |
*rb_skymod_1.static: true |
| 417 |
*rb_skymod_1.name: rb_skymod_1 |
| 418 |
*rb_skymod_1.x: 3 |
| 419 |
*rb_skymod_1.y: 34 |
| 420 |
*rb_skymod_1.width: 76 |
| 421 |
*rb_skymod_1.height: 66 |
| 422 |
*rb_skymod_1.background: WindowBackground |
| 423 |
*rb_skymod_1.fontList: TextFont |
| 424 |
*rb_skymod_1.labelString: "Independent profile" |
| 425 |
*rb_skymod_1.selectColor: SelectColor |
| 426 |
*rb_skymod_1.foreground: TextForeground |
| 427 |
*rb_skymod_1.valueChangedCallback: {\ |
| 428 |
#include <spec_comm.h>\ |
| 429 |
\ |
| 430 |
extern int UpdateToggle;\ |
| 431 |
\ |
| 432 |
if ( !UpdateToggle )\ |
| 433 |
return;\ |
| 434 |
\ |
| 435 |
if ( XmToggleButtonGetState(UxWidget) ) /*selected */\ |
| 436 |
WriteKeyword("1", K_SKYMOD);\ |
| 437 |
else\ |
| 438 |
WriteKeyword("0", K_SKYMOD);\ |
| 439 |
\ |
| 440 |
} |
| 441 |
*rb_skymod_1.set: "false" |
| 442 |
*rb_skymod_1.highlightOnEnter: "true" |
| 443 |
*rb_skymod_1.indicatorSize: 16 |
| 444 |
|
| 445 |
*label48.class: label |
| 446 |
*label48.parent: form14 |
| 447 |
*label48.static: true |
| 448 |
*label48.name: label48 |
| 449 |
*label48.x: 68 |
| 450 |
*label48.y: 394 |
| 451 |
*label48.width: 105 |
| 452 |
*label48.height: 26 |
| 453 |
*label48.background: WindowBackground |
| 454 |
*label48.fontList: TextFont |
| 455 |
*label48.labelString: "Sky fitting mode" |
| 456 |
*label48.alignment: "alignment_beginning" |
| 457 |
*label48.foreground: TextForeground |
| 458 |
|
| 459 |
*separatorGadget29.class: separatorGadget |
| 460 |
*separatorGadget29.parent: form14 |
| 461 |
*separatorGadget29.static: true |
| 462 |
*separatorGadget29.name: separatorGadget29 |
| 463 |
*separatorGadget29.x: 31 |
| 464 |
*separatorGadget29.y: 410 |
| 465 |
*separatorGadget29.width: 12 |
| 466 |
*separatorGadget29.height: 84 |
| 467 |
*separatorGadget29.orientation: "vertical" |
| 468 |
|
| 469 |
*separatorGadget30.class: separatorGadget |
| 470 |
*separatorGadget30.parent: form14 |
| 471 |
*separatorGadget30.static: true |
| 472 |
*separatorGadget30.name: separatorGadget30 |
| 473 |
*separatorGadget30.x: 202 |
| 474 |
*separatorGadget30.y: 410 |
| 475 |
*separatorGadget30.width: 12 |
| 476 |
*separatorGadget30.height: 84 |
| 477 |
*separatorGadget30.orientation: "vertical" |
| 478 |
|
| 479 |
*separatorGadget31.class: separatorGadget |
| 480 |
*separatorGadget31.parent: form14 |
| 481 |
*separatorGadget31.static: true |
| 482 |
*separatorGadget31.name: separatorGadget31 |
| 483 |
*separatorGadget31.x: 35 |
| 484 |
*separatorGadget31.y: 406 |
| 485 |
*separatorGadget31.width: 33 |
| 486 |
*separatorGadget31.height: 10 |
| 487 |
|
| 488 |
*separatorGadget32.class: separatorGadget |
| 489 |
*separatorGadget32.parent: form14 |
| 490 |
*separatorGadget32.static: true |
| 491 |
*separatorGadget32.name: separatorGadget32 |
| 492 |
*separatorGadget32.x: 172 |
| 493 |
*separatorGadget32.y: 406 |
| 494 |
*separatorGadget32.width: 36 |
| 495 |
*separatorGadget32.height: 10 |
| 496 |
|
| 497 |
*separatorGadget33.class: separatorGadget |
| 498 |
*separatorGadget33.parent: form14 |
| 499 |
*separatorGadget33.static: true |
| 500 |
*separatorGadget33.name: separatorGadget33 |
| 501 |
*separatorGadget33.x: 36 |
| 502 |
*separatorGadget33.y: 490 |
| 503 |
*separatorGadget33.width: 172 |
| 504 |
*separatorGadget33.height: 8 |
| 505 |
|
| 506 |
*separatorGadget34.class: separatorGadget |
| 507 |
*separatorGadget34.parent: form14 |
| 508 |
*separatorGadget34.static: true |
| 509 |
*separatorGadget34.name: separatorGadget34 |
| 510 |
*separatorGadget34.x: 374 |
| 511 |
*separatorGadget34.y: 408 |
| 512 |
*separatorGadget34.width: 16 |
| 513 |
*separatorGadget34.height: 10 |
| 514 |
|
| 515 |
*separatorGadget35.class: separatorGadget |
| 516 |
*separatorGadget35.parent: form14 |
| 517 |
*separatorGadget35.static: true |
| 518 |
*separatorGadget35.name: separatorGadget35 |
| 519 |
*separatorGadget35.x: 246 |
| 520 |
*separatorGadget35.y: 408 |
| 521 |
*separatorGadget35.width: 13 |
| 522 |
*separatorGadget35.height: 10 |
| 523 |
|
| 524 |
*label49.class: label |
| 525 |
*label49.parent: form14 |
| 526 |
*label49.static: true |
| 527 |
*label49.name: label49 |
| 528 |
*label49.x: 16 |
| 529 |
*label49.y: 62 |
| 530 |
*label49.width: 150 |
| 531 |
*label49.height: 30 |
| 532 |
*label49.background: LabelBackground |
| 533 |
*label49.fontList: TextFont |
| 534 |
*label49.labelString: "Object limits (pixels) :" |
| 535 |
*label49.alignment: "alignment_beginning" |
| 536 |
*label49.foreground: TextForeground |
| 537 |
|
| 538 |
*label50.class: label |
| 539 |
*label50.parent: form14 |
| 540 |
*label50.static: true |
| 541 |
*label50.name: label50 |
| 542 |
*label50.x: 16 |
| 543 |
*label50.y: 26 |
| 544 |
*label50.width: 120 |
| 545 |
*label50.height: 30 |
| 546 |
*label50.background: LabelBackground |
| 547 |
*label50.fontList: TextFont |
| 548 |
*label50.labelString: "Sky limits (pixels) :" |
| 549 |
*label50.alignment: "alignment_beginning" |
| 550 |
*label50.foreground: TextForeground |
| 551 |
|
| 552 |
*tf_lowsky2.class: textField |
| 553 |
*tf_lowsky2.parent: form14 |
| 554 |
*tf_lowsky2.static: true |
| 555 |
*tf_lowsky2.name: tf_lowsky2 |
| 556 |
*tf_lowsky2.x: 292 |
| 557 |
*tf_lowsky2.y: 24 |
| 558 |
*tf_lowsky2.width: 56 |
| 559 |
*tf_lowsky2.height: 34 |
| 560 |
*tf_lowsky2.background: TextBackground |
| 561 |
*tf_lowsky2.fontList: TextFont |
| 562 |
*tf_lowsky2.highlightOnEnter: "true" |
| 563 |
*tf_lowsky2.foreground: TextForeground |
| 564 |
*tf_lowsky2.losingFocusCallback: {\ |
| 565 |
#include <spec_comm.h>\ |
| 566 |
\ |
| 567 |
char *text;\ |
| 568 |
int val;\ |
| 569 |
extern int Lowsky[];\ |
| 570 |
\ |
| 571 |
text = XmTextGetString(UxWidget);\ |
| 572 |
sscanf(text, "%d", &val);\ |
| 573 |
\ |
| 574 |
if ( val != Lowsky[1] ) {\ |
| 575 |
Lowsky[1] = val;\ |
| 576 |
WriteKeyword(text, K_LOWSKY2);\ |
| 577 |
}\ |
| 578 |
\ |
| 579 |
XtFree(text);\ |
| 580 |
} |
| 581 |
*tf_lowsky2.maxLength: 5 |
| 582 |
|
| 583 |
*tf_sky.class: textField |
| 584 |
*tf_sky.parent: form14 |
| 585 |
*tf_sky.static: true |
| 586 |
*tf_sky.name: tf_sky |
| 587 |
*tf_sky.x: 238 |
| 588 |
*tf_sky.y: 356 |
| 589 |
*tf_sky.width: 210 |
| 590 |
*tf_sky.height: 34 |
| 591 |
*tf_sky.background: TextBackground |
| 592 |
*tf_sky.fontList: TextFont |
| 593 |
*tf_sky.highlightOnEnter: "true" |
| 594 |
*tf_sky.foreground: TextForeground |
| 595 |
|
| 596 |
*label38.class: label |
| 597 |
*label38.parent: form14 |
| 598 |
*label38.static: true |
| 599 |
*label38.name: label38 |
| 600 |
*label38.x: 16 |
| 601 |
*label38.y: 354 |
| 602 |
*label38.width: 186 |
| 603 |
*label38.height: 30 |
| 604 |
*label38.background: LabelBackground |
| 605 |
*label38.fontList: TextFont |
| 606 |
*label38.labelString: "Sky (image or constant) :" |
| 607 |
*label38.alignment: "alignment_beginning" |
| 608 |
*label38.foreground: TextForeground |
| 609 |
|
| 610 |
*label42.class: label |
| 611 |
*label42.parent: form14 |
| 612 |
*label42.static: true |
| 613 |
*label42.name: label42 |
| 614 |
*label42.x: 16 |
| 615 |
*label42.y: 136 |
| 616 |
*label42.width: 194 |
| 617 |
*label42.height: 30 |
| 618 |
*label42.background: LabelBackground |
| 619 |
*label42.fontList: TextFont |
| 620 |
*label42.labelString: "Order for optimal extraction :" |
| 621 |
*label42.alignment: "alignment_beginning" |
| 622 |
*label42.foreground: TextForeground |
| 623 |
|
| 624 |
*tf_order.class: textField |
| 625 |
*tf_order.parent: form14 |
| 626 |
*tf_order.static: true |
| 627 |
*tf_order.name: tf_order |
| 628 |
*tf_order.x: 238 |
| 629 |
*tf_order.y: 136 |
| 630 |
*tf_order.width: 80 |
| 631 |
*tf_order.height: 34 |
| 632 |
*tf_order.background: TextBackground |
| 633 |
*tf_order.fontList: TextFont |
| 634 |
*tf_order.highlightOnEnter: "true" |
| 635 |
*tf_order.foreground: TextForeground |
| 636 |
*tf_order.losingFocusCallback: {\ |
| 637 |
#include <spec_comm.h>\ |
| 638 |
\ |
| 639 |
char *text;\ |
| 640 |
int val;\ |
| 641 |
extern int Order;\ |
| 642 |
\ |
| 643 |
text = XmTextGetString(UxWidget);\ |
| 644 |
sscanf(text, "%d", &val);\ |
| 645 |
\ |
| 646 |
if ( val != Order ) {\ |
| 647 |
Order = val;\ |
| 648 |
WriteKeyword(text, K_ORDER);\ |
| 649 |
}\ |
| 650 |
\ |
| 651 |
XtFree(text);\ |
| 652 |
} |
| 653 |
|
| 654 |
*tf_skyord.class: textField |
| 655 |
*tf_skyord.parent: form14 |
| 656 |
*tf_skyord.static: true |
| 657 |
*tf_skyord.name: tf_skyord |
| 658 |
*tf_skyord.x: 238 |
| 659 |
*tf_skyord.y: 98 |
| 660 |
*tf_skyord.width: 80 |
| 661 |
*tf_skyord.height: 34 |
| 662 |
*tf_skyord.background: TextBackground |
| 663 |
*tf_skyord.fontList: TextFont |
| 664 |
*tf_skyord.highlightOnEnter: "true" |
| 665 |
*tf_skyord.foreground: TextForeground |
| 666 |
*tf_skyord.losingFocusCallback: {\ |
| 667 |
#include <spec_comm.h>\ |
| 668 |
\ |
| 669 |
char *text;\ |
| 670 |
int val;\ |
| 671 |
extern int Skyord;\ |
| 672 |
\ |
| 673 |
text = XmTextGetString(UxWidget);\ |
| 674 |
sscanf(text, "%d", &val);\ |
| 675 |
\ |
| 676 |
if ( val != Skyord ) {\ |
| 677 |
Skyord = val;\ |
| 678 |
WriteKeyword(text, K_SKYORD);\ |
| 679 |
}\ |
| 680 |
\ |
| 681 |
XtFree(text);\ |
| 682 |
} |
| 683 |
|
| 684 |
*label43.class: label |
| 685 |
*label43.parent: form14 |
| 686 |
*label43.static: true |
| 687 |
*label43.name: label43 |
| 688 |
*label43.x: 16 |
| 689 |
*label43.y: 100 |
| 690 |
*label43.width: 120 |
| 691 |
*label43.height: 30 |
| 692 |
*label43.background: LabelBackground |
| 693 |
*label43.fontList: TextFont |
| 694 |
*label43.labelString: "Order for sky fit :" |
| 695 |
*label43.alignment: "alignment_beginning" |
| 696 |
*label43.foreground: TextForeground |
| 697 |
|
| 698 |
*label45.class: label |
| 699 |
*label45.parent: form14 |
| 700 |
*label45.static: true |
| 701 |
*label45.name: label45 |
| 702 |
*label45.x: 16 |
| 703 |
*label45.y: 210 |
| 704 |
*label45.width: 154 |
| 705 |
*label45.height: 30 |
| 706 |
*label45.background: LabelBackground |
| 707 |
*label45.fontList: TextFont |
| 708 |
*label45.labelString: "Read-out-noise (e-) :" |
| 709 |
*label45.alignment: "alignment_beginning" |
| 710 |
*label45.foreground: TextForeground |
| 711 |
|
| 712 |
*tf_ron.class: textField |
| 713 |
*tf_ron.parent: form14 |
| 714 |
*tf_ron.static: true |
| 715 |
*tf_ron.name: tf_ron |
| 716 |
*tf_ron.x: 238 |
| 717 |
*tf_ron.y: 210 |
| 718 |
*tf_ron.width: 80 |
| 719 |
*tf_ron.height: 34 |
| 720 |
*tf_ron.background: TextBackground |
| 721 |
*tf_ron.fontList: TextFont |
| 722 |
*tf_ron.highlightOnEnter: "true" |
| 723 |
*tf_ron.foreground: TextForeground |
| 724 |
*tf_ron.losingFocusCallback: {\ |
| 725 |
#include <spec_comm.h>\ |
| 726 |
\ |
| 727 |
char *text;\ |
| 728 |
float val;\ |
| 729 |
extern float Ron;\ |
| 730 |
\ |
| 731 |
text = XmTextGetString(UxWidget);\ |
| 732 |
sscanf(text, "%f", &val);\ |
| 733 |
\ |
| 734 |
if ( val != Ron ) {\ |
| 735 |
Ron = val;\ |
| 736 |
WriteKeyword(text, K_RON);\ |
| 737 |
}\ |
| 738 |
\ |
| 739 |
XtFree(text);\ |
| 740 |
\ |
| 741 |
} |
| 742 |
|
| 743 |
*tf_niter.class: textField |
| 744 |
*tf_niter.parent: form14 |
| 745 |
*tf_niter.static: true |
| 746 |
*tf_niter.name: tf_niter |
| 747 |
*tf_niter.x: 238 |
| 748 |
*tf_niter.y: 172 |
| 749 |
*tf_niter.width: 80 |
| 750 |
*tf_niter.height: 34 |
| 751 |
*tf_niter.background: TextBackground |
| 752 |
*tf_niter.fontList: TextFont |
| 753 |
*tf_niter.highlightOnEnter: "true" |
| 754 |
*tf_niter.foreground: TextForeground |
| 755 |
*tf_niter.losingFocusCallback: {\ |
| 756 |
#include <spec_comm.h>\ |
| 757 |
\ |
| 758 |
char *text;\ |
| 759 |
int val;\ |
| 760 |
extern int Niter;\ |
| 761 |
\ |
| 762 |
text = XmTextGetString(UxWidget);\ |
| 763 |
sscanf(text, "%d", &val);\ |
| 764 |
\ |
| 765 |
if ( val != Niter ) {\ |
| 766 |
Niter = val;\ |
| 767 |
WriteKeyword(text, K_NITER);\ |
| 768 |
}\ |
| 769 |
\ |
| 770 |
XtFree(text);\ |
| 771 |
} |
| 772 |
|
| 773 |
*label46.class: label |
| 774 |
*label46.parent: form14 |
| 775 |
*label46.static: true |
| 776 |
*label46.name: label46 |
| 777 |
*label46.x: 16 |
| 778 |
*label46.y: 174 |
| 779 |
*label46.width: 146 |
| 780 |
*label46.height: 30 |
| 781 |
*label46.background: LabelBackground |
| 782 |
*label46.fontList: TextFont |
| 783 |
*label46.labelString: "Extraction iterations :" |
| 784 |
*label46.alignment: "alignment_beginning" |
| 785 |
*label46.foreground: TextForeground |
| 786 |
|
| 787 |
*label51.class: label |
| 788 |
*label51.parent: form14 |
| 789 |
*label51.static: true |
| 790 |
*label51.name: label51 |
| 791 |
*label51.x: 16 |
| 792 |
*label51.y: 246 |
| 793 |
*label51.width: 206 |
| 794 |
*label51.height: 30 |
| 795 |
*label51.background: LabelBackground |
| 796 |
*label51.fontList: TextFont |
| 797 |
*label51.labelString: "Inverse gain factor (e-/ADU) :" |
| 798 |
*label51.alignment: "alignment_beginning" |
| 799 |
*label51.foreground: TextForeground |
| 800 |
|
| 801 |
*tf_gain.class: textField |
| 802 |
*tf_gain.parent: form14 |
| 803 |
*tf_gain.static: true |
| 804 |
*tf_gain.name: tf_gain |
| 805 |
*tf_gain.x: 238 |
| 806 |
*tf_gain.y: 246 |
| 807 |
*tf_gain.width: 80 |
| 808 |
*tf_gain.height: 34 |
| 809 |
*tf_gain.background: TextBackground |
| 810 |
*tf_gain.fontList: TextFont |
| 811 |
*tf_gain.highlightOnEnter: "true" |
| 812 |
*tf_gain.foreground: TextForeground |
| 813 |
*tf_gain.losingFocusCallback: {\ |
| 814 |
#include <spec_comm.h>\ |
| 815 |
\ |
| 816 |
char *text;\ |
| 817 |
float val;\ |
| 818 |
extern float Gain;\ |
| 819 |
\ |
| 820 |
text = XmTextGetString(UxWidget);\ |
| 821 |
sscanf(text, "%f", &val);\ |
| 822 |
\ |
| 823 |
if ( val != Gain ) {\ |
| 824 |
Gain = val;\ |
| 825 |
WriteKeyword(text, K_GAIN);\ |
| 826 |
}\ |
| 827 |
\ |
| 828 |
XtFree(text);\ |
| 829 |
\ |
| 830 |
} |
| 831 |
|
| 832 |
*label52.class: label |
| 833 |
*label52.parent: form14 |
| 834 |
*label52.static: true |
| 835 |
*label52.name: label52 |
| 836 |
*label52.x: 16 |
| 837 |
*label52.y: 320 |
| 838 |
*label52.width: 220 |
| 839 |
*label52.height: 30 |
| 840 |
*label52.background: LabelBackground |
| 841 |
*label52.fontList: TextFont |
| 842 |
*label52.labelString: "Radius for cosmic rays removal :" |
| 843 |
*label52.alignment: "alignment_beginning" |
| 844 |
*label52.foreground: TextForeground |
| 845 |
|
| 846 |
*tf_radius.class: textField |
| 847 |
*tf_radius.parent: form14 |
| 848 |
*tf_radius.static: true |
| 849 |
*tf_radius.name: tf_radius |
| 850 |
*tf_radius.x: 238 |
| 851 |
*tf_radius.y: 320 |
| 852 |
*tf_radius.width: 80 |
| 853 |
*tf_radius.height: 34 |
| 854 |
*tf_radius.background: TextBackground |
| 855 |
*tf_radius.fontList: TextFont |
| 856 |
*tf_radius.highlightOnEnter: "true" |
| 857 |
*tf_radius.foreground: TextForeground |
| 858 |
*tf_radius.losingFocusCallback: {\ |
| 859 |
#include <spec_comm.h>\ |
| 860 |
\ |
| 861 |
char *text;\ |
| 862 |
int val;\ |
| 863 |
extern int Radius;\ |
| 864 |
\ |
| 865 |
text = XmTextGetString(UxWidget);\ |
| 866 |
sscanf(text, "%d", &val);\ |
| 867 |
\ |
| 868 |
if ( val != Radius ) {\ |
| 869 |
Radius = val;\ |
| 870 |
WriteKeyword(text, K_RADIUS);\ |
| 871 |
}\ |
| 872 |
\ |
| 873 |
XtFree(text);\ |
| 874 |
} |
| 875 |
|
| 876 |
*tf_sigma.class: textField |
| 877 |
*tf_sigma.parent: form14 |
| 878 |
*tf_sigma.static: true |
| 879 |
*tf_sigma.name: tf_sigma |
| 880 |
*tf_sigma.x: 238 |
| 881 |
*tf_sigma.y: 282 |
| 882 |
*tf_sigma.width: 80 |
| 883 |
*tf_sigma.height: 34 |
| 884 |
*tf_sigma.background: TextBackground |
| 885 |
*tf_sigma.fontList: TextFont |
| 886 |
*tf_sigma.highlightOnEnter: "true" |
| 887 |
*tf_sigma.foreground: TextForeground |
| 888 |
*tf_sigma.losingFocusCallback: {\ |
| 889 |
#include <spec_comm.h>\ |
| 890 |
\ |
| 891 |
char *text;\ |
| 892 |
float val;\ |
| 893 |
extern float Sigma;\ |
| 894 |
\ |
| 895 |
text = XmTextGetString(UxWidget);\ |
| 896 |
sscanf(text, "%f", &val);\ |
| 897 |
\ |
| 898 |
if ( val != Sigma ) {\ |
| 899 |
Sigma = val;\ |
| 900 |
WriteKeyword(text, K_SIGMA);\ |
| 901 |
}\ |
| 902 |
\ |
| 903 |
XtFree(text);\ |
| 904 |
\ |
| 905 |
} |
| 906 |
|
| 907 |
*label53.class: label |
| 908 |
*label53.parent: form14 |
| 909 |
*label53.static: true |
| 910 |
*label53.name: label53 |
| 911 |
*label53.x: 16 |
| 912 |
*label53.y: 284 |
| 913 |
*label53.width: 182 |
| 914 |
*label53.height: 30 |
| 915 |
*label53.background: LabelBackground |
| 916 |
*label53.fontList: TextFont |
| 917 |
*label53.labelString: "Threshold for cosmic rays :" |
| 918 |
*label53.alignment: "alignment_beginning" |
| 919 |
*label53.foreground: TextForeground |
| 920 |
|
| 921 |
*tf_lowsky1.class: textField |
| 922 |
*tf_lowsky1.parent: form14 |
| 923 |
*tf_lowsky1.static: true |
| 924 |
*tf_lowsky1.name: tf_lowsky1 |
| 925 |
*tf_lowsky1.x: 238 |
| 926 |
*tf_lowsky1.y: 24 |
| 927 |
*tf_lowsky1.width: 56 |
| 928 |
*tf_lowsky1.height: 34 |
| 929 |
*tf_lowsky1.background: TextBackground |
| 930 |
*tf_lowsky1.fontList: TextFont |
| 931 |
*tf_lowsky1.highlightOnEnter: "true" |
| 932 |
*tf_lowsky1.foreground: TextForeground |
| 933 |
*tf_lowsky1.losingFocusCallback: {\ |
| 934 |
#include <spec_comm.h>\ |
| 935 |
\ |
| 936 |
char *text;\ |
| 937 |
int val;\ |
| 938 |
extern int Lowsky[];\ |
| 939 |
\ |
| 940 |
text = XmTextGetString(UxWidget);\ |
| 941 |
sscanf(text, "%d", &val);\ |
| 942 |
\ |
| 943 |
if ( val != Lowsky[0] ) {\ |
| 944 |
Lowsky[0] = val;\ |
| 945 |
WriteKeyword(text, K_LOWSKY1);\ |
| 946 |
}\ |
| 947 |
\ |
| 948 |
XtFree(text);\ |
| 949 |
} |
| 950 |
*tf_lowsky1.maxLength: 5 |
| 951 |
|
| 952 |
*tf_uppsky1.class: textField |
| 953 |
*tf_uppsky1.parent: form14 |
| 954 |
*tf_uppsky1.static: true |
| 955 |
*tf_uppsky1.name: tf_uppsky1 |
| 956 |
*tf_uppsky1.x: 346 |
| 957 |
*tf_uppsky1.y: 24 |
| 958 |
*tf_uppsky1.width: 56 |
| 959 |
*tf_uppsky1.height: 34 |
| 960 |
*tf_uppsky1.background: TextBackground |
| 961 |
*tf_uppsky1.fontList: TextFont |
| 962 |
*tf_uppsky1.highlightOnEnter: "true" |
| 963 |
*tf_uppsky1.foreground: TextForeground |
| 964 |
*tf_uppsky1.losingFocusCallback: {\ |
| 965 |
#include <spec_comm.h>\ |
| 966 |
\ |
| 967 |
char *text;\ |
| 968 |
int val;\ |
| 969 |
extern int Uppsky[];\ |
| 970 |
\ |
| 971 |
text = XmTextGetString(UxWidget);\ |
| 972 |
sscanf(text, "%d", &val);\ |
| 973 |
\ |
| 974 |
if ( val != Uppsky[0] ) {\ |
| 975 |
Uppsky[0] = val;\ |
| 976 |
WriteKeyword(text, K_UPPSKY1);\ |
| 977 |
}\ |
| 978 |
\ |
| 979 |
XtFree(text);\ |
| 980 |
} |
| 981 |
*tf_uppsky1.maxLength: 5 |
| 982 |
|
| 983 |
*tf_uppsky2.class: textField |
| 984 |
*tf_uppsky2.parent: form14 |
| 985 |
*tf_uppsky2.static: true |
| 986 |
*tf_uppsky2.name: tf_uppsky2 |
| 987 |
*tf_uppsky2.x: 400 |
| 988 |
*tf_uppsky2.y: 24 |
| 989 |
*tf_uppsky2.width: 56 |
| 990 |
*tf_uppsky2.height: 34 |
| 991 |
*tf_uppsky2.background: TextBackground |
| 992 |
*tf_uppsky2.fontList: TextFont |
| 993 |
*tf_uppsky2.highlightOnEnter: "true" |
| 994 |
*tf_uppsky2.foreground: TextForeground |
| 995 |
*tf_uppsky2.losingFocusCallback: {\ |
| 996 |
#include <spec_comm.h>\ |
| 997 |
\ |
| 998 |
char *text;\ |
| 999 |
int val;\ |
| 1000 |
extern int Uppsky[];\ |
| 1001 |
\ |
| 1002 |
text = XmTextGetString(UxWidget);\ |
| 1003 |
sscanf(text, "%d", &val);\ |
| 1004 |
\ |
| 1005 |
if ( val != Uppsky[1] ) {\ |
| 1006 |
Uppsky[1] = val;\ |
| 1007 |
WriteKeyword(text, K_UPPSKY2);\ |
| 1008 |
}\ |
| 1009 |
\ |
| 1010 |
XtFree(text);\ |
| 1011 |
} |
| 1012 |
*tf_uppsky2.maxLength: 5 |
| 1013 |
|
| 1014 |
*tf_object1.class: textField |
| 1015 |
*tf_object1.parent: form14 |
| 1016 |
*tf_object1.static: true |
| 1017 |
*tf_object1.name: tf_object1 |
| 1018 |
*tf_object1.x: 238 |
| 1019 |
*tf_object1.y: 60 |
| 1020 |
*tf_object1.width: 56 |
| 1021 |
*tf_object1.height: 34 |
| 1022 |
*tf_object1.background: TextBackground |
| 1023 |
*tf_object1.fontList: TextFont |
| 1024 |
*tf_object1.highlightOnEnter: "true" |
| 1025 |
*tf_object1.foreground: TextForeground |
| 1026 |
*tf_object1.losingFocusCallback: {\ |
| 1027 |
#include <spec_comm.h>\ |
| 1028 |
\ |
| 1029 |
char *text;\ |
| 1030 |
int val;\ |
| 1031 |
extern int Objlim[];\ |
| 1032 |
\ |
| 1033 |
text = XmTextGetString(UxWidget);\ |
| 1034 |
sscanf(text, "%d", &val);\ |
| 1035 |
\ |
| 1036 |
if ( val != Objlim[0] ) {\ |
| 1037 |
Objlim[0] = val;\ |
| 1038 |
WriteKeyword(text, K_OBJECT1);\ |
| 1039 |
}\ |
| 1040 |
\ |
| 1041 |
XtFree(text);\ |
| 1042 |
} |
| 1043 |
*tf_object1.maxLength: 5 |
| 1044 |
|
| 1045 |
*tf_object2.class: textField |
| 1046 |
*tf_object2.parent: form14 |
| 1047 |
*tf_object2.static: true |
| 1048 |
*tf_object2.name: tf_object2 |
| 1049 |
*tf_object2.x: 292 |
| 1050 |
*tf_object2.y: 60 |
| 1051 |
*tf_object2.width: 56 |
| 1052 |
*tf_object2.height: 34 |
| 1053 |
*tf_object2.background: TextBackground |
| 1054 |
*tf_object2.fontList: TextFont |
| 1055 |
*tf_object2.highlightOnEnter: "true" |
| 1056 |
*tf_object2.foreground: TextForeground |
| 1057 |
*tf_object2.losingFocusCallback: {\ |
| 1058 |
#include <spec_comm.h>\ |
| 1059 |
\ |
| 1060 |
char *text;\ |
| 1061 |
int val;\ |
| 1062 |
extern int Objlim[];\ |
| 1063 |
\ |
| 1064 |
text = XmTextGetString(UxWidget);\ |
| 1065 |
sscanf(text, "%d", &val);\ |
| 1066 |
\ |
| 1067 |
if ( val != Objlim[1] ) {\ |
| 1068 |
Objlim[1] = val;\ |
| 1069 |
WriteKeyword(text, K_OBJECT2);\ |
| 1070 |
}\ |
| 1071 |
\ |
| 1072 |
XtFree(text);\ |
| 1073 |
} |
| 1074 |
*tf_object2.maxLength: 5 |
| 1075 |
|