| 1 |
! UIMX ascii 2.0 key: 8738 |
| 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.ClearHelp: {\ |
| 38 |
UxPutText(UxFindSwidget("shelp_main"), "");\ |
| 39 |
UxPutText(UxFindSwidget("shelp_search"), "");\ |
| 40 |
UxPutText(UxFindSwidget("shelp_calib"), "");\ |
| 41 |
UxPutText(UxFindSwidget("shelp_rebin"), "");\ |
| 42 |
UxPutText(UxFindSwidget("shelp_extract"), "");\ |
| 43 |
UxPutText(UxFindSwidget("shelp_flux"), "");\ |
| 44 |
} |
| 45 |
*action.WriteHelp: {\ |
| 46 |
DisplayShortHelp(UxWidget);\ |
| 47 |
} |
| 48 |
*action.ExtendedHelp: {\ |
| 49 |
DisplayExtendedHelp(UxWidget);\ |
| 50 |
} |
| 51 |
|
| 52 |
*translation.table: SelectFileMain |
| 53 |
*translation.parent: ApplicWindow |
| 54 |
*translation.policy: override |
| 55 |
*translation.<Btn3Down>: FileSelectACT() |
| 56 |
|
| 57 |
*ApplicWindow.class: applicationShell |
| 58 |
*ApplicWindow.parent: NO_PARENT |
| 59 |
*ApplicWindow.static: true |
| 60 |
*ApplicWindow.gbldecl: #include <stdio.h>\ |
| 61 |
#include <ExternResources.h> |
| 62 |
*ApplicWindow.ispecdecl: |
| 63 |
*ApplicWindow.funcdecl: swidget create_ApplicWindow()\ |
| 64 |
|
| 65 |
*ApplicWindow.funcname: create_ApplicWindow |
| 66 |
*ApplicWindow.funcdef: "swidget", "<create_ApplicWindow>(%)" |
| 67 |
*ApplicWindow.icode: extern swidget create_SearchShell();\ |
| 68 |
extern swidget create_CalibShell();\ |
| 69 |
extern swidget create_RebinShell();\ |
| 70 |
extern swidget create_FluxShell();\ |
| 71 |
extern swidget create_file_dialog();\ |
| 72 |
extern swidget create_extin_dialog();\ |
| 73 |
extern swidget create_resid_dialog();\ |
| 74 |
extern swidget create_ExtractShell();\ |
| 75 |
extern swidget create_HelpShell();\ |
| 76 |
\ |
| 77 |
\ |
| 78 |
|
| 79 |
*ApplicWindow.fcode: create_SearchShell();\ |
| 80 |
create_CalibShell();\ |
| 81 |
create_RebinShell();\ |
| 82 |
create_FluxShell();\ |
| 83 |
create_file_dialog();\ |
| 84 |
create_extin_dialog();\ |
| 85 |
create_resid_dialog();\ |
| 86 |
create_ExtractShell();\ |
| 87 |
create_HelpShell();\ |
| 88 |
\ |
| 89 |
return(rtrn);\ |
| 90 |
|
| 91 |
*ApplicWindow.auxdecl: |
| 92 |
*ApplicWindow.name: ApplicWindow |
| 93 |
*ApplicWindow.x: 2 |
| 94 |
*ApplicWindow.y: 21 |
| 95 |
*ApplicWindow.width: 447 |
| 96 |
*ApplicWindow.height: 460 |
| 97 |
*ApplicWindow.iconName: "Long Slit" |
| 98 |
*ApplicWindow.keyboardFocusPolicy: "pointer" |
| 99 |
*ApplicWindow.title: "Long slit reduction" |
| 100 |
*ApplicWindow.geometry: "+0+0" |
| 101 |
|
| 102 |
*MainWindow.class: mainWindow |
| 103 |
*MainWindow.parent: ApplicWindow |
| 104 |
*MainWindow.static: true |
| 105 |
*MainWindow.name: MainWindow |
| 106 |
*MainWindow.unitType: "pixels" |
| 107 |
*MainWindow.x: 10 |
| 108 |
*MainWindow.y: 0 |
| 109 |
*MainWindow.width: 440 |
| 110 |
*MainWindow.height: 460 |
| 111 |
*MainWindow.background: WindowBackground |
| 112 |
|
| 113 |
*menu1.class: rowColumn |
| 114 |
*menu1.parent: MainWindow |
| 115 |
*menu1.static: true |
| 116 |
*menu1.name: menu1 |
| 117 |
*menu1.rowColumnType: "menu_bar" |
| 118 |
*menu1.menuAccelerator: "<KeyUp>F10" |
| 119 |
*menu1.menuHelpWidget: "menu1_top_b5" |
| 120 |
*menu1.background: MenuBackground |
| 121 |
|
| 122 |
*menu1_p1.class: rowColumn |
| 123 |
*menu1_p1.parent: menu1 |
| 124 |
*menu1_p1.static: true |
| 125 |
*menu1_p1.name: menu1_p1 |
| 126 |
*menu1_p1.rowColumnType: "menu_pulldown" |
| 127 |
*menu1_p1.background: MenuBackground |
| 128 |
*menu1_p1.foreground: MenuForeground |
| 129 |
|
| 130 |
*menu1_p1_b1.class: pushButtonGadget |
| 131 |
*menu1_p1_b1.parent: menu1_p1 |
| 132 |
*menu1_p1_b1.static: true |
| 133 |
*menu1_p1_b1.name: menu1_p1_b1 |
| 134 |
*menu1_p1_b1.labelString: "Open" |
| 135 |
*menu1_p1_b1.mnemonic: "O" |
| 136 |
*menu1_p1_b1.fontList: BoldTextFont |
| 137 |
*menu1_p1_b1.activateCallback: {\ |
| 138 |
#include <spec_comm.h>\ |
| 139 |
\ |
| 140 |
PopupList(LIST_SESSION);\ |
| 141 |
} |
| 142 |
|
| 143 |
*menu1_p1_b2.class: pushButtonGadget |
| 144 |
*menu1_p1_b2.parent: menu1_p1 |
| 145 |
*menu1_p1_b2.static: true |
| 146 |
*menu1_p1_b2.name: menu1_p1_b2 |
| 147 |
*menu1_p1_b2.labelString: "Save" |
| 148 |
*menu1_p1_b2.mnemonic: "S" |
| 149 |
*menu1_p1_b2.fontList: BoldTextFont |
| 150 |
*menu1_p1_b2.activateCallback: {\ |
| 151 |
#include <spec_comm.h>\ |
| 152 |
\ |
| 153 |
extern char Session[];\ |
| 154 |
char command[256];\ |
| 155 |
\ |
| 156 |
sprintf(command, "%s%s", C_SAVE, Session);\ |
| 157 |
AppendDialogText(command);\ |
| 158 |
} |
| 159 |
|
| 160 |
*menu1_p1_b3.class: pushButtonGadget |
| 161 |
*menu1_p1_b3.parent: menu1_p1 |
| 162 |
*menu1_p1_b3.static: true |
| 163 |
*menu1_p1_b3.name: menu1_p1_b3 |
| 164 |
*menu1_p1_b3.labelString: "Save As ..." |
| 165 |
*menu1_p1_b3.mnemonic: "S" |
| 166 |
*menu1_p1_b3.fontList: BoldTextFont |
| 167 |
*menu1_p1_b3.activateCallback: {\ |
| 168 |
#include <xm_defs.h>\ |
| 169 |
#include <spec_comm.h>\ |
| 170 |
\ |
| 171 |
extern int DialogType;\ |
| 172 |
extern char Session[];\ |
| 173 |
\ |
| 174 |
SET_DIALOG_PROMPT("Output parameters table :");\ |
| 175 |
\ |
| 176 |
XmTextSetString(UxGetWidget(UxFindSwidget("tf_file_dialog")), Session);\ |
| 177 |
DialogType = DIALOG_SESSION;\ |
| 178 |
UxPopupInterface(UxFindSwidget("file_dialog"), exclusive_grab);\ |
| 179 |
} |
| 180 |
|
| 181 |
*menu1_p1_b4.class: pushButtonGadget |
| 182 |
*menu1_p1_b4.parent: menu1_p1 |
| 183 |
*menu1_p1_b4.static: true |
| 184 |
*menu1_p1_b4.name: menu1_p1_b4 |
| 185 |
*menu1_p1_b4.labelString: "Exit" |
| 186 |
*menu1_p1_b4.accelerator: "E" |
| 187 |
*menu1_p1_b4.activateCallback: {\ |
| 188 |
#include <spec_comm.h>\ |
| 189 |
\ |
| 190 |
AppendDialogText(C_CLEAN);\ |
| 191 |
SCSEPI();\ |
| 192 |
exit(0);\ |
| 193 |
\ |
| 194 |
} |
| 195 |
*menu1_p1_b4.fontList: BoldTextFont |
| 196 |
|
| 197 |
*menu1_p4.class: rowColumn |
| 198 |
*menu1_p4.parent: menu1 |
| 199 |
*menu1_p4.static: true |
| 200 |
*menu1_p4.name: menu1_p4 |
| 201 |
*menu1_p4.rowColumnType: "menu_pulldown" |
| 202 |
*menu1_p4.background: MenuBackground |
| 203 |
*menu1_p4.foreground: MenuForeground |
| 204 |
|
| 205 |
*menu1_p4_b1.class: pushButtonGadget |
| 206 |
*menu1_p4_b1.parent: menu1_p4 |
| 207 |
*menu1_p4_b1.static: true |
| 208 |
*menu1_p4_b1.name: menu1_p4_b1 |
| 209 |
*menu1_p4_b1.labelString: "Create Display" |
| 210 |
*menu1_p4_b1.mnemonic: "D" |
| 211 |
*menu1_p4_b1.fontList: BoldTextFont |
| 212 |
*menu1_p4_b1.activateCallback: AppendDialogText("make/display"); |
| 213 |
|
| 214 |
*menu1_p4_b2.class: pushButtonGadget |
| 215 |
*menu1_p4_b2.parent: menu1_p4 |
| 216 |
*menu1_p4_b2.static: true |
| 217 |
*menu1_p4_b2.name: menu1_p4_b2 |
| 218 |
*menu1_p4_b2.labelString: "Create Graphics" |
| 219 |
*menu1_p4_b2.mnemonic: "G" |
| 220 |
*menu1_p4_b2.fontList: BoldTextFont |
| 221 |
*menu1_p4_b2.activateCallback: AppendDialogText("graph/long"); |
| 222 |
|
| 223 |
*menu1_p4_b8.class: separatorGadget |
| 224 |
*menu1_p4_b8.parent: menu1_p4 |
| 225 |
*menu1_p4_b8.static: true |
| 226 |
*menu1_p4_b8.name: menu1_p4_b8 |
| 227 |
|
| 228 |
*menu1_p4_b10.class: pushButtonGadget |
| 229 |
*menu1_p4_b10.parent: menu1_p4 |
| 230 |
*menu1_p4_b10.static: true |
| 231 |
*menu1_p4_b10.name: menu1_p4_b10 |
| 232 |
*menu1_p4_b10.labelString: "Load image" |
| 233 |
*menu1_p4_b10.activateCallback: { \ |
| 234 |
#include <spec_comm.h>\ |
| 235 |
\ |
| 236 |
PopupList(LIST_LOAD_IMA);\ |
| 237 |
} |
| 238 |
*menu1_p4_b10.fontList: BoldTextFont |
| 239 |
*menu1_p4_b10.mnemonic: "L" |
| 240 |
|
| 241 |
*menu1_p4_b13.class: pushButtonGadget |
| 242 |
*menu1_p4_b13.parent: menu1_p4 |
| 243 |
*menu1_p4_b13.static: true |
| 244 |
*menu1_p4_b13.name: menu1_p4_b13 |
| 245 |
*menu1_p4_b13.labelString: "Clear overlay" |
| 246 |
*menu1_p4_b13.activateCallback: AppendDialogText("clear/channel over"); |
| 247 |
*menu1_p4_b13.fontList: BoldTextFont |
| 248 |
*menu1_p4_b13.mnemonic: "o" |
| 249 |
|
| 250 |
*menu1_p4_b12.class: separatorGadget |
| 251 |
*menu1_p4_b12.parent: menu1_p4 |
| 252 |
*menu1_p4_b12.static: true |
| 253 |
*menu1_p4_b12.name: menu1_p4_b12 |
| 254 |
|
| 255 |
*menu1_p4_b3.class: pushButtonGadget |
| 256 |
*menu1_p4_b3.parent: menu1_p4 |
| 257 |
*menu1_p4_b3.static: true |
| 258 |
*menu1_p4_b3.name: menu1_p4_b3 |
| 259 |
*menu1_p4_b3.labelString: "Print Display" |
| 260 |
*menu1_p4_b3.mnemonic: "P" |
| 261 |
*menu1_p4_b3.fontList: BoldTextFont |
| 262 |
*menu1_p4_b3.activateCallback: AppendDialogText("copy/display laser"); |
| 263 |
|
| 264 |
*menu1_p4_b4.class: pushButtonGadget |
| 265 |
*menu1_p4_b4.parent: menu1_p4 |
| 266 |
*menu1_p4_b4.static: true |
| 267 |
*menu1_p4_b4.name: menu1_p4_b4 |
| 268 |
*menu1_p4_b4.labelString: "Print Graphics" |
| 269 |
*menu1_p4_b4.mnemonic: "r" |
| 270 |
*menu1_p4_b4.fontList: BoldTextFont |
| 271 |
*menu1_p4_b4.activateCallback: AppendDialogText("copy/graph laser"); |
| 272 |
|
| 273 |
*menu1_p4_b9.class: separatorGadget |
| 274 |
*menu1_p4_b9.parent: menu1_p4 |
| 275 |
*menu1_p4_b9.static: true |
| 276 |
*menu1_p4_b9.name: menu1_p4_b9 |
| 277 |
|
| 278 |
*menu1_p4_b5.class: pushButtonGadget |
| 279 |
*menu1_p4_b5.parent: menu1_p4 |
| 280 |
*menu1_p4_b5.static: true |
| 281 |
*menu1_p4_b5.name: menu1_p4_b5 |
| 282 |
*menu1_p4_b5.labelString: "Graphics Cursor" |
| 283 |
*menu1_p4_b5.mnemonic: "C" |
| 284 |
*menu1_p4_b5.fontList: BoldTextFont |
| 285 |
*menu1_p4_b5.activateCallback: AppendDialogText("get/gcursor"); |
| 286 |
|
| 287 |
*menu1_p4_b11.class: pushButtonGadget |
| 288 |
*menu1_p4_b11.parent: menu1_p4 |
| 289 |
*menu1_p4_b11.static: true |
| 290 |
*menu1_p4_b11.name: menu1_p4_b11 |
| 291 |
*menu1_p4_b11.labelString: "Display Cursor" |
| 292 |
*menu1_p4_b11.mnemonic: "u" |
| 293 |
*menu1_p4_b11.activateCallback: AppendDialogText("get/cursor"); |
| 294 |
*menu1_p4_b11.fontList: BoldTextFont |
| 295 |
|
| 296 |
*menu1_p4_b14.class: separatorGadget |
| 297 |
*menu1_p4_b14.parent: menu1_p4 |
| 298 |
*menu1_p4_b14.static: true |
| 299 |
*menu1_p4_b14.name: menu1_p4_b14 |
| 300 |
|
| 301 |
*menu1_p4_b15.class: pushButtonGadget |
| 302 |
*menu1_p4_b15.parent: menu1_p4 |
| 303 |
*menu1_p4_b15.static: true |
| 304 |
*menu1_p4_b15.name: menu1_p4_b15 |
| 305 |
*menu1_p4_b15.labelString: "get MIDAS table" |
| 306 |
*menu1_p4_b15.activateCallback: {\ |
| 307 |
#include <spec_comm.h>\ |
| 308 |
\ |
| 309 |
char midashome[256];\ |
| 310 |
\ |
| 311 |
osfphname("MIDASHOME", midashome);\ |
| 312 |
sprintf(DirSpecs, "%s/calib/data/", midashome);\ |
| 313 |
\ |
| 314 |
PopupList(LIST_BROWSER);\ |
| 315 |
} |
| 316 |
*menu1_p4_b15.fontList: BoldTextFont |
| 317 |
|
| 318 |
*menu1_p5.class: rowColumn |
| 319 |
*menu1_p5.parent: menu1 |
| 320 |
*menu1_p5.static: true |
| 321 |
*menu1_p5.name: menu1_p5 |
| 322 |
*menu1_p5.rowColumnType: "menu_pulldown" |
| 323 |
*menu1_p5.background: MenuBackground |
| 324 |
*menu1_p5.foreground: MenuForeground |
| 325 |
|
| 326 |
*menu_help_context.class: pushButtonGadget |
| 327 |
*menu_help_context.parent: menu1_p5 |
| 328 |
*menu_help_context.static: true |
| 329 |
*menu_help_context.name: menu_help_context |
| 330 |
*menu_help_context.labelString: "On Context ..." |
| 331 |
*menu_help_context.mnemonic: "C" |
| 332 |
*menu_help_context.fontList: BoldTextFont |
| 333 |
*menu_help_context.activateCallback: DisplayExtendedHelp(UxWidget); |
| 334 |
|
| 335 |
*menu_help_help.class: pushButtonGadget |
| 336 |
*menu_help_help.parent: menu1_p5 |
| 337 |
*menu_help_help.static: true |
| 338 |
*menu_help_help.name: menu_help_help |
| 339 |
*menu_help_help.labelString: "On Help ..." |
| 340 |
*menu_help_help.mnemonic: "H" |
| 341 |
*menu_help_help.fontList: BoldTextFont |
| 342 |
*menu_help_help.activateCallback: DisplayExtendedHelp(UxWidget); |
| 343 |
|
| 344 |
*menu1_p5_b5.class: separatorGadget |
| 345 |
*menu1_p5_b5.parent: menu1_p5 |
| 346 |
*menu1_p5_b5.static: true |
| 347 |
*menu1_p5_b5.name: menu1_p5_b5 |
| 348 |
|
| 349 |
*menu_help_tutorial.class: pushButtonGadget |
| 350 |
*menu_help_tutorial.parent: menu1_p5 |
| 351 |
*menu_help_tutorial.static: true |
| 352 |
*menu_help_tutorial.name: menu_help_tutorial |
| 353 |
*menu_help_tutorial.labelString: "Tutorial" |
| 354 |
*menu_help_tutorial.mnemonic: "T" |
| 355 |
*menu_help_tutorial.fontList: BoldTextFont |
| 356 |
*menu_help_tutorial.activateCallback: DisplayExtendedHelp(UxWidget); |
| 357 |
|
| 358 |
*menu_help_version.class: pushButtonGadget |
| 359 |
*menu_help_version.parent: menu1_p5 |
| 360 |
*menu_help_version.static: true |
| 361 |
*menu_help_version.name: menu_help_version |
| 362 |
*menu_help_version.labelString: "On Version..." |
| 363 |
*menu_help_version.mnemonic: "V" |
| 364 |
*menu_help_version.fontList: BoldTextFont |
| 365 |
*menu_help_version.activateCallback: DisplayExtendedHelp(UxWidget); |
| 366 |
|
| 367 |
*menu1_top_b1.class: cascadeButton |
| 368 |
*menu1_top_b1.parent: menu1 |
| 369 |
*menu1_top_b1.static: true |
| 370 |
*menu1_top_b1.name: menu1_top_b1 |
| 371 |
*menu1_top_b1.labelString: "File" |
| 372 |
*menu1_top_b1.mnemonic: "F" |
| 373 |
*menu1_top_b1.subMenuId: "menu1_p1" |
| 374 |
*menu1_top_b1.background: MenuBackground |
| 375 |
*menu1_top_b1.fontList: BoldTextFont |
| 376 |
*menu1_top_b1.foreground: MenuForeground |
| 377 |
|
| 378 |
*menu1_top_b4.class: cascadeButton |
| 379 |
*menu1_top_b4.parent: menu1 |
| 380 |
*menu1_top_b4.static: true |
| 381 |
*menu1_top_b4.name: menu1_top_b4 |
| 382 |
*menu1_top_b4.labelString: "Utils" |
| 383 |
*menu1_top_b4.mnemonic: "U" |
| 384 |
*menu1_top_b4.subMenuId: "menu1_p4" |
| 385 |
*menu1_top_b4.background: MenuBackground |
| 386 |
*menu1_top_b4.fontList: BoldTextFont |
| 387 |
*menu1_top_b4.foreground: MenuForeground |
| 388 |
|
| 389 |
*menu1_top_b5.class: cascadeButton |
| 390 |
*menu1_top_b5.parent: menu1 |
| 391 |
*menu1_top_b5.static: true |
| 392 |
*menu1_top_b5.name: menu1_top_b5 |
| 393 |
*menu1_top_b5.labelString: "Help" |
| 394 |
*menu1_top_b5.mnemonic: "H" |
| 395 |
*menu1_top_b5.subMenuId: "menu1_p5" |
| 396 |
*menu1_top_b5.background: MenuBackground |
| 397 |
*menu1_top_b5.fontList: BoldTextFont |
| 398 |
*menu1_top_b5.foreground: MenuForeground |
| 399 |
|
| 400 |
*form1.class: form |
| 401 |
*form1.parent: MainWindow |
| 402 |
*form1.static: true |
| 403 |
*form1.name: form1 |
| 404 |
*form1.background: WindowBackground |
| 405 |
|
| 406 |
*form5.class: form |
| 407 |
*form5.parent: form1 |
| 408 |
*form5.static: true |
| 409 |
*form5.name: form5 |
| 410 |
*form5.resizePolicy: "resize_none" |
| 411 |
*form5.x: -1 |
| 412 |
*form5.y: 368 |
| 413 |
*form5.width: 451 |
| 414 |
*form5.height: 72 |
| 415 |
*form5.background: ButtonBackground |
| 416 |
*form5.bottomAttachment: "attach_form" |
| 417 |
|
| 418 |
*pb_main_search.class: pushButton |
| 419 |
*pb_main_search.parent: form5 |
| 420 |
*pb_main_search.static: true |
| 421 |
*pb_main_search.name: pb_main_search |
| 422 |
*pb_main_search.x: 4 |
| 423 |
*pb_main_search.y: 6 |
| 424 |
*pb_main_search.width: 86 |
| 425 |
*pb_main_search.height: 30 |
| 426 |
*pb_main_search.background: ButtonBackground |
| 427 |
*pb_main_search.fontList: BoldTextFont |
| 428 |
*pb_main_search.foreground: ButtonForeground |
| 429 |
*pb_main_search.labelString: "Search ..." |
| 430 |
*pb_main_search.activateCallback: {\ |
| 431 |
PopupLong("SearchShell");\ |
| 432 |
} |
| 433 |
|
| 434 |
*pb_main_ident.class: pushButton |
| 435 |
*pb_main_ident.parent: form5 |
| 436 |
*pb_main_ident.static: true |
| 437 |
*pb_main_ident.name: pb_main_ident |
| 438 |
*pb_main_ident.x: 94 |
| 439 |
*pb_main_ident.y: 6 |
| 440 |
*pb_main_ident.width: 86 |
| 441 |
*pb_main_ident.height: 30 |
| 442 |
*pb_main_ident.background: ButtonBackground |
| 443 |
*pb_main_ident.fontList: BoldTextFont |
| 444 |
*pb_main_ident.foreground: ButtonForeground |
| 445 |
*pb_main_ident.labelString: "Identify ..." |
| 446 |
*pb_main_ident.activateCallback: {\ |
| 447 |
{\ |
| 448 |
#include <spec_comm.h>\ |
| 449 |
\ |
| 450 |
extern char Lincat[], Wlc[];\ |
| 451 |
\ |
| 452 |
if ( !file_exists(Wlc, ".bdf") ) {\ |
| 453 |
SCTPUT("*** Error: invalid calibration frame ***");\ |
| 454 |
return;\ |
| 455 |
}\ |
| 456 |
if ( !file_exists(Lincat, ".tbl") ) {\ |
| 457 |
SCTPUT("*** Error: invalid line catalog table ***");\ |
| 458 |
return;\ |
| 459 |
}\ |
| 460 |
\ |
| 461 |
AppendDialogText(C_IDENT);\ |
| 462 |
}\ |
| 463 |
} |
| 464 |
|
| 465 |
*pb_main_calib.class: pushButton |
| 466 |
*pb_main_calib.parent: form5 |
| 467 |
*pb_main_calib.static: true |
| 468 |
*pb_main_calib.name: pb_main_calib |
| 469 |
*pb_main_calib.x: 182 |
| 470 |
*pb_main_calib.y: 6 |
| 471 |
*pb_main_calib.width: 86 |
| 472 |
*pb_main_calib.height: 30 |
| 473 |
*pb_main_calib.background: ButtonBackground |
| 474 |
*pb_main_calib.fontList: BoldTextFont |
| 475 |
*pb_main_calib.foreground: ButtonForeground |
| 476 |
*pb_main_calib.labelString: "Calibrate ..." |
| 477 |
*pb_main_calib.activateCallback: {\ |
| 478 |
{\ |
| 479 |
#include <spec_comm.h>\ |
| 480 |
\ |
| 481 |
AppendDialogText(C_CALIB_ERAS);\ |
| 482 |
PopupLong("CalibShell");\ |
| 483 |
}\ |
| 484 |
\ |
| 485 |
} |
| 486 |
|
| 487 |
*pb_main_rebin.class: pushButton |
| 488 |
*pb_main_rebin.parent: form5 |
| 489 |
*pb_main_rebin.static: true |
| 490 |
*pb_main_rebin.name: pb_main_rebin |
| 491 |
*pb_main_rebin.x: 270 |
| 492 |
*pb_main_rebin.y: 6 |
| 493 |
*pb_main_rebin.width: 86 |
| 494 |
*pb_main_rebin.height: 30 |
| 495 |
*pb_main_rebin.background: ButtonBackground |
| 496 |
*pb_main_rebin.fontList: BoldTextFont |
| 497 |
*pb_main_rebin.foreground: ButtonForeground |
| 498 |
*pb_main_rebin.labelString: "Rebin ..." |
| 499 |
*pb_main_rebin.activateCallback: {\ |
| 500 |
PopupLong("RebinShell");\ |
| 501 |
} |
| 502 |
|
| 503 |
*pb_main_extract.class: pushButton |
| 504 |
*pb_main_extract.parent: form5 |
| 505 |
*pb_main_extract.static: true |
| 506 |
*pb_main_extract.name: pb_main_extract |
| 507 |
*pb_main_extract.x: 358 |
| 508 |
*pb_main_extract.y: 6 |
| 509 |
*pb_main_extract.width: 86 |
| 510 |
*pb_main_extract.height: 30 |
| 511 |
*pb_main_extract.background: ButtonBackground |
| 512 |
*pb_main_extract.fontList: BoldTextFont |
| 513 |
*pb_main_extract.foreground: ButtonForeground |
| 514 |
*pb_main_extract.labelString: "Extract ..." |
| 515 |
*pb_main_extract.activateCallback: {\ |
| 516 |
PopupLong("ExtractShell");\ |
| 517 |
} |
| 518 |
|
| 519 |
*pb_main_flux.class: pushButton |
| 520 |
*pb_main_flux.parent: form5 |
| 521 |
*pb_main_flux.static: true |
| 522 |
*pb_main_flux.name: pb_main_flux |
| 523 |
*pb_main_flux.x: 4 |
| 524 |
*pb_main_flux.y: 38 |
| 525 |
*pb_main_flux.width: 86 |
| 526 |
*pb_main_flux.height: 30 |
| 527 |
*pb_main_flux.background: ButtonBackground |
| 528 |
*pb_main_flux.fontList: BoldTextFont |
| 529 |
*pb_main_flux.foreground: ButtonForeground |
| 530 |
*pb_main_flux.labelString: "Flux ..." |
| 531 |
*pb_main_flux.activateCallback: {\ |
| 532 |
PopupLong("FluxShell");\ |
| 533 |
} |
| 534 |
|
| 535 |
*pb_main_batch.class: pushButton |
| 536 |
*pb_main_batch.parent: form5 |
| 537 |
*pb_main_batch.static: true |
| 538 |
*pb_main_batch.name: pb_main_batch |
| 539 |
*pb_main_batch.x: 94 |
| 540 |
*pb_main_batch.y: 38 |
| 541 |
*pb_main_batch.width: 86 |
| 542 |
*pb_main_batch.height: 30 |
| 543 |
*pb_main_batch.background: ButtonBackground |
| 544 |
*pb_main_batch.fontList: BoldTextFont |
| 545 |
*pb_main_batch.foreground: ButtonForeground |
| 546 |
*pb_main_batch.labelString: "Batch ..." |
| 547 |
*pb_main_batch.activateCallback: {\ |
| 548 |
{\ |
| 549 |
#include <spec_comm.h>\ |
| 550 |
\ |
| 551 |
AppendDialogText(C_BATCHRED);\ |
| 552 |
}\ |
| 553 |
} |
| 554 |
|
| 555 |
*separator12.class: separator |
| 556 |
*separator12.parent: form1 |
| 557 |
*separator12.static: true |
| 558 |
*separator12.name: separator12 |
| 559 |
*separator12.x: 0 |
| 560 |
*separator12.y: 360 |
| 561 |
*separator12.width: 450 |
| 562 |
*separator12.height: 6 |
| 563 |
*separator12.background: LabelBackground |
| 564 |
*separator12.bottomAttachment: "attach_widget" |
| 565 |
*separator12.bottomWidget: "form5" |
| 566 |
|
| 567 |
*shelp_main.class: text |
| 568 |
*shelp_main.parent: form1 |
| 569 |
*shelp_main.static: true |
| 570 |
*shelp_main.name: shelp_main |
| 571 |
*shelp_main.x: 0 |
| 572 |
*shelp_main.y: 310 |
| 573 |
*shelp_main.width: 448 |
| 574 |
*shelp_main.height: 50 |
| 575 |
*shelp_main.background: SHelpBackground |
| 576 |
*shelp_main.cursorPositionVisible: "false" |
| 577 |
*shelp_main.editable: "false" |
| 578 |
*shelp_main.fontList: TextFont |
| 579 |
*shelp_main.bottomAttachment: "attach_widget" |
| 580 |
*shelp_main.bottomWidget: "separator12" |
| 581 |
|
| 582 |
*separator1.class: separator |
| 583 |
*separator1.parent: form1 |
| 584 |
*separator1.static: true |
| 585 |
*separator1.name: separator1 |
| 586 |
*separator1.x: -2 |
| 587 |
*separator1.y: 304 |
| 588 |
*separator1.width: 450 |
| 589 |
*separator1.height: 6 |
| 590 |
*separator1.background: LabelBackground |
| 591 |
*separator1.bottomAttachment: "attach_widget" |
| 592 |
*separator1.bottomWidget: "shelp_main" |
| 593 |
|
| 594 |
*tf_imin.class: textField |
| 595 |
*tf_imin.parent: form1 |
| 596 |
*tf_imin.static: true |
| 597 |
*tf_imin.name: tf_imin |
| 598 |
*tf_imin.x: 204 |
| 599 |
*tf_imin.y: 268 |
| 600 |
*tf_imin.width: 68 |
| 601 |
*tf_imin.height: 37 |
| 602 |
*tf_imin.background: TextBackground |
| 603 |
*tf_imin.fontList: TextFont |
| 604 |
*tf_imin.highlightOnEnter: "true" |
| 605 |
*tf_imin.foreground: TextForeground |
| 606 |
*tf_imin.losingFocusCallback: {\ |
| 607 |
#include <spec_comm.h>\ |
| 608 |
\ |
| 609 |
char *text;\ |
| 610 |
float val;\ |
| 611 |
extern float Imin;\ |
| 612 |
\ |
| 613 |
text = XmTextGetString(UxWidget);\ |
| 614 |
sscanf(text, "%f", &val);\ |
| 615 |
\ |
| 616 |
if ( val != Imin ) {\ |
| 617 |
Imin = val;\ |
| 618 |
WriteKeyword(text, K_IMIN);\ |
| 619 |
}\ |
| 620 |
\ |
| 621 |
XtFree(text);\ |
| 622 |
} |
| 623 |
*tf_imin.bottomAttachment: "attach_widget" |
| 624 |
*tf_imin.bottomWidget: "separator1" |
| 625 |
|
| 626 |
*label6.class: label |
| 627 |
*label6.parent: form1 |
| 628 |
*label6.static: true |
| 629 |
*label6.name: label6 |
| 630 |
*label6.x: 12 |
| 631 |
*label6.y: 270 |
| 632 |
*label6.width: 190 |
| 633 |
*label6.height: 30 |
| 634 |
*label6.background: LabelBackground |
| 635 |
*label6.fontList: TextFont |
| 636 |
*label6.labelString: "Minimal Intensity in Catalog :" |
| 637 |
*label6.alignment: "alignment_beginning" |
| 638 |
*label6.foreground: TextForeground |
| 639 |
*label6.bottomAttachment: "attach_widget" |
| 640 |
*label6.bottomWidget: "separator1" |
| 641 |
|
| 642 |
*tf_wrang1.class: textField |
| 643 |
*tf_wrang1.parent: form1 |
| 644 |
*tf_wrang1.static: true |
| 645 |
*tf_wrang1.name: tf_wrang1 |
| 646 |
*tf_wrang1.x: 204 |
| 647 |
*tf_wrang1.y: 230 |
| 648 |
*tf_wrang1.width: 68 |
| 649 |
*tf_wrang1.height: 37 |
| 650 |
*tf_wrang1.background: TextBackground |
| 651 |
*tf_wrang1.fontList: TextFont |
| 652 |
*tf_wrang1.highlightOnEnter: "true" |
| 653 |
*tf_wrang1.foreground: TextForeground |
| 654 |
*tf_wrang1.losingFocusCallback: {\ |
| 655 |
#include <spec_comm.h>\ |
| 656 |
\ |
| 657 |
char *text;\ |
| 658 |
int val;\ |
| 659 |
extern int Wrang[];\ |
| 660 |
\ |
| 661 |
text = XmTextGetString(UxWidget);\ |
| 662 |
sscanf(text, "%d", &val);\ |
| 663 |
\ |
| 664 |
if ( val != Wrang[0] ) {\ |
| 665 |
Wrang[0] = val;\ |
| 666 |
WriteKeyword(text, K_WRANG1);\ |
| 667 |
}\ |
| 668 |
\ |
| 669 |
XtFree(text);\ |
| 670 |
} |
| 671 |
*tf_wrang1.bottomAttachment: "attach_widget" |
| 672 |
*tf_wrang1.bottomWidget: "tf_imin" |
| 673 |
|
| 674 |
*label5.class: label |
| 675 |
*label5.parent: form1 |
| 676 |
*label5.static: true |
| 677 |
*label5.name: label5 |
| 678 |
*label5.x: 12 |
| 679 |
*label5.y: 232 |
| 680 |
*label5.width: 190 |
| 681 |
*label5.height: 30 |
| 682 |
*label5.background: LabelBackground |
| 683 |
*label5.fontList: TextFont |
| 684 |
*label5.labelString: "Wavelength Range :" |
| 685 |
*label5.alignment: "alignment_beginning" |
| 686 |
*label5.foreground: TextForeground |
| 687 |
*label5.bottomAttachment: "attach_widget" |
| 688 |
*label5.bottomWidget: "tf_imin" |
| 689 |
|
| 690 |
*tf_wrang2.class: textField |
| 691 |
*tf_wrang2.parent: form1 |
| 692 |
*tf_wrang2.static: true |
| 693 |
*tf_wrang2.name: tf_wrang2 |
| 694 |
*tf_wrang2.x: 272 |
| 695 |
*tf_wrang2.y: 230 |
| 696 |
*tf_wrang2.width: 68 |
| 697 |
*tf_wrang2.height: 37 |
| 698 |
*tf_wrang2.background: TextBackground |
| 699 |
*tf_wrang2.fontList: TextFont |
| 700 |
*tf_wrang2.highlightOnEnter: "true" |
| 701 |
*tf_wrang2.foreground: TextForeground |
| 702 |
*tf_wrang2.losingFocusCallback: {\ |
| 703 |
#include <spec_comm.h>\ |
| 704 |
\ |
| 705 |
char *text;\ |
| 706 |
int val;\ |
| 707 |
extern int Wrang[];\ |
| 708 |
\ |
| 709 |
text = XmTextGetString(UxWidget);\ |
| 710 |
sscanf(text, "%d", &val);\ |
| 711 |
\ |
| 712 |
if ( val != Wrang[1] ) {\ |
| 713 |
Wrang[1] = val;\ |
| 714 |
WriteKeyword(text, K_WRANG2);\ |
| 715 |
}\ |
| 716 |
\ |
| 717 |
XtFree(text);\ |
| 718 |
} |
| 719 |
*tf_wrang2.bottomAttachment: "attach_widget" |
| 720 |
*tf_wrang2.bottomWidget: "tf_imin" |
| 721 |
|
| 722 |
*tf_lincat.class: textField |
| 723 |
*tf_lincat.parent: form1 |
| 724 |
*tf_lincat.static: true |
| 725 |
*tf_lincat.name: tf_lincat |
| 726 |
*tf_lincat.x: 204 |
| 727 |
*tf_lincat.y: 192 |
| 728 |
*tf_lincat.width: 236 |
| 729 |
*tf_lincat.height: 37 |
| 730 |
*tf_lincat.background: TextBackground |
| 731 |
*tf_lincat.fontList: TextFont |
| 732 |
*tf_lincat.highlightOnEnter: "true" |
| 733 |
*tf_lincat.foreground: TextForeground |
| 734 |
*tf_lincat.translations: SelectFileMain |
| 735 |
*tf_lincat.losingFocusCallback: {\ |
| 736 |
#include <spec_comm.h>\ |
| 737 |
\ |
| 738 |
char *text;\ |
| 739 |
extern char Lincat[];\ |
| 740 |
\ |
| 741 |
text = XmTextGetString(UxWidget);\ |
| 742 |
\ |
| 743 |
if ( strcmp(text, Lincat) ) {\ |
| 744 |
strcpy(Lincat, text);\ |
| 745 |
WriteKeyword(text, K_LINCAT);\ |
| 746 |
}\ |
| 747 |
\ |
| 748 |
XtFree(text);\ |
| 749 |
} |
| 750 |
*tf_lincat.bottomAttachment: "attach_widget" |
| 751 |
*tf_lincat.bottomWidget: "tf_wrang1" |
| 752 |
|
| 753 |
*label4.class: label |
| 754 |
*label4.parent: form1 |
| 755 |
*label4.static: true |
| 756 |
*label4.name: label4 |
| 757 |
*label4.x: 12 |
| 758 |
*label4.y: 196 |
| 759 |
*label4.width: 190 |
| 760 |
*label4.height: 30 |
| 761 |
*label4.background: LabelBackground |
| 762 |
*label4.fontList: TextFont |
| 763 |
*label4.labelString: "Line Catalog :" |
| 764 |
*label4.alignment: "alignment_beginning" |
| 765 |
*label4.foreground: TextForeground |
| 766 |
*label4.bottomAttachment: "attach_widget" |
| 767 |
*label4.bottomWidget: "tf_wrang1" |
| 768 |
|
| 769 |
*tf_ystart.class: textField |
| 770 |
*tf_ystart.parent: form1 |
| 771 |
*tf_ystart.static: true |
| 772 |
*tf_ystart.name: tf_ystart |
| 773 |
*tf_ystart.x: 204 |
| 774 |
*tf_ystart.y: 156 |
| 775 |
*tf_ystart.width: 71 |
| 776 |
*tf_ystart.height: 37 |
| 777 |
*tf_ystart.background: TextBackground |
| 778 |
*tf_ystart.fontList: TextFont |
| 779 |
*tf_ystart.highlightOnEnter: "true" |
| 780 |
*tf_ystart.foreground: TextForeground |
| 781 |
*tf_ystart.losingFocusCallback: {\ |
| 782 |
#include <spec_comm.h>\ |
| 783 |
\ |
| 784 |
char *text;\ |
| 785 |
int val;\ |
| 786 |
extern int Ystart;\ |
| 787 |
\ |
| 788 |
text = XmTextGetString(UxWidget);\ |
| 789 |
sscanf(text, "%d", &val);\ |
| 790 |
\ |
| 791 |
if ( val != Ystart ) {\ |
| 792 |
Ystart = val;\ |
| 793 |
WriteKeyword(text, K_YSTART);\ |
| 794 |
}\ |
| 795 |
\ |
| 796 |
XtFree(text);\ |
| 797 |
} |
| 798 |
*tf_ystart.bottomAttachment: "attach_widget" |
| 799 |
*tf_ystart.bottomWidget: "tf_lincat" |
| 800 |
|
| 801 |
*label3.class: label |
| 802 |
*label3.parent: form1 |
| 803 |
*label3.static: true |
| 804 |
*label3.name: label3 |
| 805 |
*label3.x: 12 |
| 806 |
*label3.y: 158 |
| 807 |
*label3.width: 190 |
| 808 |
*label3.height: 30 |
| 809 |
*label3.background: LabelBackground |
| 810 |
*label3.fontList: TextFont |
| 811 |
*label3.labelString: "Calibration Starting Row :" |
| 812 |
*label3.alignment: "alignment_beginning" |
| 813 |
*label3.foreground: TextForeground |
| 814 |
*label3.bottomAttachment: "attach_widget" |
| 815 |
*label3.bottomWidget: "tf_lincat" |
| 816 |
|
| 817 |
*tf_instrume.class: textField |
| 818 |
*tf_instrume.parent: form1 |
| 819 |
*tf_instrume.static: true |
| 820 |
*tf_instrume.name: tf_instrume |
| 821 |
*tf_instrume.x: 204 |
| 822 |
*tf_instrume.y: 118 |
| 823 |
*tf_instrume.width: 236 |
| 824 |
*tf_instrume.height: 37 |
| 825 |
*tf_instrume.background: TextBackground |
| 826 |
*tf_instrume.fontList: TextFont |
| 827 |
*tf_instrume.highlightOnEnter: "true" |
| 828 |
*tf_instrume.foreground: TextForeground |
| 829 |
*tf_instrume.borderWidth: 0 |
| 830 |
*tf_instrume.bottomAttachment: "attach_widget" |
| 831 |
*tf_instrume.bottomWidget: "tf_ystart" |
| 832 |
|
| 833 |
*label8.class: label |
| 834 |
*label8.parent: form1 |
| 835 |
*label8.static: true |
| 836 |
*label8.name: label8 |
| 837 |
*label8.x: 12 |
| 838 |
*label8.y: 122 |
| 839 |
*label8.width: 190 |
| 840 |
*label8.height: 30 |
| 841 |
*label8.background: LabelBackground |
| 842 |
*label8.fontList: TextFont |
| 843 |
*label8.labelString: "Instrument :" |
| 844 |
*label8.alignment: "alignment_beginning" |
| 845 |
*label8.foreground: TextForeground |
| 846 |
*label8.bottomAttachment: "attach_widget" |
| 847 |
*label8.bottomWidget: "tf_ystart" |
| 848 |
|
| 849 |
*label1.class: label |
| 850 |
*label1.parent: form1 |
| 851 |
*label1.static: true |
| 852 |
*label1.name: label1 |
| 853 |
*label1.x: 12 |
| 854 |
*label1.y: 84 |
| 855 |
*label1.width: 190 |
| 856 |
*label1.height: 30 |
| 857 |
*label1.background: LabelBackground |
| 858 |
*label1.fontList: TextFont |
| 859 |
*label1.labelString: "Calibration Frame :" |
| 860 |
*label1.alignment: "alignment_beginning" |
| 861 |
*label1.foreground: TextForeground |
| 862 |
*label1.bottomAttachment: "attach_widget" |
| 863 |
*label1.bottomWidget: "tf_instrume" |
| 864 |
|
| 865 |
*tf_wlc.class: textField |
| 866 |
*tf_wlc.parent: form1 |
| 867 |
*tf_wlc.static: true |
| 868 |
*tf_wlc.name: tf_wlc |
| 869 |
*tf_wlc.x: 204 |
| 870 |
*tf_wlc.y: 80 |
| 871 |
*tf_wlc.width: 235 |
| 872 |
*tf_wlc.height: 37 |
| 873 |
*tf_wlc.background: TextBackground |
| 874 |
*tf_wlc.fontList: TextFont |
| 875 |
*tf_wlc.highlightOnEnter: "false" |
| 876 |
*tf_wlc.foreground: TextForeground |
| 877 |
*tf_wlc.cursorPositionVisible: "false" |
| 878 |
*tf_wlc.editable: "false" |
| 879 |
*tf_wlc.borderWidth: 1 |
| 880 |
*tf_wlc.bottomAttachment: "attach_widget" |
| 881 |
*tf_wlc.bottomWidget: "tf_instrume" |
| 882 |
|
| 883 |
*tf_session.class: textField |
| 884 |
*tf_session.parent: form1 |
| 885 |
*tf_session.static: true |
| 886 |
*tf_session.name: tf_session |
| 887 |
*tf_session.x: 204 |
| 888 |
*tf_session.y: 42 |
| 889 |
*tf_session.width: 235 |
| 890 |
*tf_session.height: 37 |
| 891 |
*tf_session.background: TextBackground |
| 892 |
*tf_session.fontList: TextFont |
| 893 |
*tf_session.highlightOnEnter: "false" |
| 894 |
*tf_session.foreground: TextForeground |
| 895 |
*tf_session.cursorPositionVisible: "false" |
| 896 |
*tf_session.editable: "false" |
| 897 |
*tf_session.borderWidth: 1 |
| 898 |
*tf_session.bottomAttachment: "attach_widget" |
| 899 |
*tf_session.bottomWidget: "tf_wlc" |
| 900 |
|
| 901 |
*label2.class: label |
| 902 |
*label2.parent: form1 |
| 903 |
*label2.static: true |
| 904 |
*label2.name: label2 |
| 905 |
*label2.x: 12 |
| 906 |
*label2.y: 44 |
| 907 |
*label2.width: 190 |
| 908 |
*label2.height: 30 |
| 909 |
*label2.background: LabelBackground |
| 910 |
*label2.fontList: TextFont |
| 911 |
*label2.labelString: "Session :" |
| 912 |
*label2.alignment: "alignment_beginning" |
| 913 |
*label2.foreground: TextForeground |
| 914 |
*label2.bottomAttachment: "attach_widget" |
| 915 |
*label2.bottomWidget: "tf_wlc" |
| 916 |
|
| 917 |
*label7.class: label |
| 918 |
*label7.parent: form1 |
| 919 |
*label7.static: true |
| 920 |
*label7.name: label7 |
| 921 |
*label7.x: 2 |
| 922 |
*label7.y: 8 |
| 923 |
*label7.width: 180 |
| 924 |
*label7.height: 30 |
| 925 |
*label7.background: LabelBackground |
| 926 |
*label7.fontList: TextFont |
| 927 |
*label7.labelString: "GENERAL PARAMETERS" |
| 928 |
*label7.alignment: "alignment_beginning" |
| 929 |
*label7.foreground: TextForeground |
| 930 |
*label7.bottomAttachment: "attach_widget" |
| 931 |
*label7.bottomWidget: "tf_session" |
| 932 |
|