| 1 |
/* @(#)ExtractShell.c 19.1 (ES0-DMD) 02/25/03 13:45:55 */ |
| 2 |
/*=========================================================================== |
| 3 |
Copyright (C) 1995 European Southern Observatory (ESO) |
| 4 |
|
| 5 |
This program is free software; you can redistribute it and/or |
| 6 |
modify it under the terms of the GNU General Public License as |
| 7 |
published by the Free Software Foundation; either version 2 of |
| 8 |
the License, or (at your option) any later version. |
| 9 |
|
| 10 |
This program is distributed in the hope that it will be useful, |
| 11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
GNU General Public License for more details. |
| 14 |
|
| 15 |
You should have received a copy of the GNU General Public |
| 16 |
License along with this program; if not, write to the Free |
| 17 |
Software Foundation, Inc., 675 Massachusetss Ave, Cambridge, |
| 18 |
MA 02139, USA. |
| 19 |
|
| 20 |
Corresponding concerning ESO-MIDAS should be addressed as follows: |
| 21 |
Internet e-mail: [email protected] |
| 22 |
Postal address: European Southern Observatory |
| 23 |
Data Management Division |
| 24 |
Karl-Schwarzschild-Strasse 2 |
| 25 |
D 85748 Garching bei Muenchen |
| 26 |
GERMANY |
| 27 |
===========================================================================*/ |
| 28 |
|
| 29 |
|
| 30 |
/******************************************************************************* |
| 31 |
ExtractShell.c |
| 32 |
|
| 33 |
*******************************************************************************/ |
| 34 |
|
| 35 |
#include <stdio.h> |
| 36 |
#include "UxLib.h" |
| 37 |
#include "UxTextF.h" |
| 38 |
#include "UxSepG.h" |
| 39 |
#include "UxLabel.h" |
| 40 |
#include "UxTogB.h" |
| 41 |
#include "UxRowCol.h" |
| 42 |
#include "UxSep.h" |
| 43 |
#include "UxText.h" |
| 44 |
#include "UxPushB.h" |
| 45 |
#include "UxForm.h" |
| 46 |
#include "UxApplSh.h" |
| 47 |
|
| 48 |
/******************************************************************************* |
| 49 |
Includes, Defines, and Global variables from the Declarations Editor: |
| 50 |
*******************************************************************************/ |
| 51 |
|
| 52 |
#include <ExternResources.h> |
| 53 |
|
| 54 |
/******************************************************************************* |
| 55 |
The definition of the context structure: |
| 56 |
If you create multiple instances of your interface, the context |
| 57 |
structure ensures that your callbacks use the variables for the |
| 58 |
correct instance. |
| 59 |
|
| 60 |
For each swidget in the interface, each argument to the Interface |
| 61 |
function, and each variable in the Instance Specific section of the |
| 62 |
Declarations Editor, there is an entry in the context structure. |
| 63 |
and a #define. The #define makes the variable name refer to the |
| 64 |
corresponding entry in the context structure. |
| 65 |
*******************************************************************************/ |
| 66 |
|
| 67 |
typedef struct |
| 68 |
{ |
| 69 |
swidget UxExtractShell; |
| 70 |
swidget Uxform14; |
| 71 |
swidget Uxform15; |
| 72 |
swidget Uxpb_ext_sky; |
| 73 |
swidget UxpushButton28; |
| 74 |
swidget Uxpb_ext_object; |
| 75 |
swidget Uxpb_ext_fit; |
| 76 |
swidget Uxpb_ext_weight; |
| 77 |
swidget Uxpb_ext_average; |
| 78 |
swidget Uxshelp_extract; |
| 79 |
swidget Uxseparator10; |
| 80 |
swidget Uxseparator11; |
| 81 |
swidget UxrowColumn6; |
| 82 |
swidget Uxrb_extmtd_line; |
| 83 |
swidget Uxrb_extmtd_aver; |
| 84 |
swidget Uxlabel47; |
| 85 |
swidget UxseparatorGadget26; |
| 86 |
swidget UxseparatorGadget27; |
| 87 |
swidget UxseparatorGadget28; |
| 88 |
swidget UxrowColumn7; |
| 89 |
swidget Uxrb_skymod_0; |
| 90 |
swidget Uxrb_skymod_1; |
| 91 |
swidget Uxlabel48; |
| 92 |
swidget UxseparatorGadget29; |
| 93 |
swidget UxseparatorGadget30; |
| 94 |
swidget UxseparatorGadget31; |
| 95 |
swidget UxseparatorGadget32; |
| 96 |
swidget UxseparatorGadget33; |
| 97 |
swidget UxseparatorGadget34; |
| 98 |
swidget UxseparatorGadget35; |
| 99 |
swidget Uxlabel49; |
| 100 |
swidget Uxlabel50; |
| 101 |
swidget Uxtf_lowsky2; |
| 102 |
swidget Uxtf_sky; |
| 103 |
swidget Uxlabel38; |
| 104 |
swidget Uxlabel42; |
| 105 |
swidget Uxtf_order; |
| 106 |
swidget Uxtf_skyord; |
| 107 |
swidget Uxlabel43; |
| 108 |
swidget Uxlabel45; |
| 109 |
swidget Uxtf_ron; |
| 110 |
swidget Uxtf_niter; |
| 111 |
swidget Uxlabel46; |
| 112 |
swidget Uxlabel51; |
| 113 |
swidget Uxtf_gain; |
| 114 |
swidget Uxlabel52; |
| 115 |
swidget Uxtf_radius; |
| 116 |
swidget Uxtf_sigma; |
| 117 |
swidget Uxlabel53; |
| 118 |
swidget Uxtf_lowsky1; |
| 119 |
swidget Uxtf_uppsky1; |
| 120 |
swidget Uxtf_uppsky2; |
| 121 |
swidget Uxtf_object1; |
| 122 |
swidget Uxtf_object2; |
| 123 |
} _UxCExtractShell; |
| 124 |
|
| 125 |
#define ExtractShell UxExtractShellContext->UxExtractShell |
| 126 |
#define form14 UxExtractShellContext->Uxform14 |
| 127 |
#define form15 UxExtractShellContext->Uxform15 |
| 128 |
#define pb_ext_sky UxExtractShellContext->Uxpb_ext_sky |
| 129 |
#define pushButton28 UxExtractShellContext->UxpushButton28 |
| 130 |
#define pb_ext_object UxExtractShellContext->Uxpb_ext_object |
| 131 |
#define pb_ext_fit UxExtractShellContext->Uxpb_ext_fit |
| 132 |
#define pb_ext_weight UxExtractShellContext->Uxpb_ext_weight |
| 133 |
#define pb_ext_average UxExtractShellContext->Uxpb_ext_average |
| 134 |
#define shelp_extract UxExtractShellContext->Uxshelp_extract |
| 135 |
#define separator10 UxExtractShellContext->Uxseparator10 |
| 136 |
#define separator11 UxExtractShellContext->Uxseparator11 |
| 137 |
#define rowColumn6 UxExtractShellContext->UxrowColumn6 |
| 138 |
#define rb_extmtd_line UxExtractShellContext->Uxrb_extmtd_line |
| 139 |
#define rb_extmtd_aver UxExtractShellContext->Uxrb_extmtd_aver |
| 140 |
#define label47 UxExtractShellContext->Uxlabel47 |
| 141 |
#define separatorGadget26 UxExtractShellContext->UxseparatorGadget26 |
| 142 |
#define separatorGadget27 UxExtractShellContext->UxseparatorGadget27 |
| 143 |
#define separatorGadget28 UxExtractShellContext->UxseparatorGadget28 |
| 144 |
#define rowColumn7 UxExtractShellContext->UxrowColumn7 |
| 145 |
#define rb_skymod_0 UxExtractShellContext->Uxrb_skymod_0 |
| 146 |
#define rb_skymod_1 UxExtractShellContext->Uxrb_skymod_1 |
| 147 |
#define label48 UxExtractShellContext->Uxlabel48 |
| 148 |
#define separatorGadget29 UxExtractShellContext->UxseparatorGadget29 |
| 149 |
#define separatorGadget30 UxExtractShellContext->UxseparatorGadget30 |
| 150 |
#define separatorGadget31 UxExtractShellContext->UxseparatorGadget31 |
| 151 |
#define separatorGadget32 UxExtractShellContext->UxseparatorGadget32 |
| 152 |
#define separatorGadget33 UxExtractShellContext->UxseparatorGadget33 |
| 153 |
#define separatorGadget34 UxExtractShellContext->UxseparatorGadget34 |
| 154 |
#define separatorGadget35 UxExtractShellContext->UxseparatorGadget35 |
| 155 |
#define label49 UxExtractShellContext->Uxlabel49 |
| 156 |
#define label50 UxExtractShellContext->Uxlabel50 |
| 157 |
#define tf_lowsky2 UxExtractShellContext->Uxtf_lowsky2 |
| 158 |
#define tf_sky UxExtractShellContext->Uxtf_sky |
| 159 |
#define label38 UxExtractShellContext->Uxlabel38 |
| 160 |
#define label42 UxExtractShellContext->Uxlabel42 |
| 161 |
#define tf_order UxExtractShellContext->Uxtf_order |
| 162 |
#define tf_skyord UxExtractShellContext->Uxtf_skyord |
| 163 |
#define label43 UxExtractShellContext->Uxlabel43 |
| 164 |
#define label45 UxExtractShellContext->Uxlabel45 |
| 165 |
#define tf_ron UxExtractShellContext->Uxtf_ron |
| 166 |
#define tf_niter UxExtractShellContext->Uxtf_niter |
| 167 |
#define label46 UxExtractShellContext->Uxlabel46 |
| 168 |
#define label51 UxExtractShellContext->Uxlabel51 |
| 169 |
#define tf_gain UxExtractShellContext->Uxtf_gain |
| 170 |
#define label52 UxExtractShellContext->Uxlabel52 |
| 171 |
#define tf_radius UxExtractShellContext->Uxtf_radius |
| 172 |
#define tf_sigma UxExtractShellContext->Uxtf_sigma |
| 173 |
#define label53 UxExtractShellContext->Uxlabel53 |
| 174 |
#define tf_lowsky1 UxExtractShellContext->Uxtf_lowsky1 |
| 175 |
#define tf_uppsky1 UxExtractShellContext->Uxtf_uppsky1 |
| 176 |
#define tf_uppsky2 UxExtractShellContext->Uxtf_uppsky2 |
| 177 |
#define tf_object1 UxExtractShellContext->Uxtf_object1 |
| 178 |
#define tf_object2 UxExtractShellContext->Uxtf_object2 |
| 179 |
|
| 180 |
static _UxCExtractShell *UxExtractShellContext; |
| 181 |
|
| 182 |
|
| 183 |
/******************************************************************************* |
| 184 |
The following are translation tables. |
| 185 |
*******************************************************************************/ |
| 186 |
|
| 187 |
static char *SelectFileExtract = "#override\n\ |
| 188 |
<Btn3Down>:FileSelectACT()\n"; |
| 189 |
|
| 190 |
/******************************************************************************* |
| 191 |
Forward declarations of functions that are defined later in this file. |
| 192 |
*******************************************************************************/ |
| 193 |
|
| 194 |
swidget create_ExtractShell(); |
| 195 |
|
| 196 |
/******************************************************************************* |
| 197 |
The following are Action functions. |
| 198 |
*******************************************************************************/ |
| 199 |
|
| 200 |
static void action_FileSelectACT( UxWidget, UxEvent, UxParams, p_UxNumParams ) |
| 201 |
Widget UxWidget; |
| 202 |
XEvent *UxEvent; |
| 203 |
String *UxParams; |
| 204 |
Cardinal *p_UxNumParams; |
| 205 |
{ |
| 206 |
Cardinal UxNumParams = *p_UxNumParams; |
| 207 |
_UxCExtractShell *UxSaveCtx, *UxContext; |
| 208 |
swidget UxThisWidget; |
| 209 |
|
| 210 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 211 |
UxSaveCtx = UxExtractShellContext; |
| 212 |
UxExtractShellContext = UxContext = |
| 213 |
(_UxCExtractShell *) UxGetContext( UxThisWidget ); |
| 214 |
{ |
| 215 |
#include <xm_defs.h> |
| 216 |
#include <spec_comm.h> |
| 217 |
|
| 218 |
extern swidget FileListInterface, TextFieldSwidget; |
| 219 |
extern Widget FileListWidget; |
| 220 |
extern char DirSpecs[]; |
| 221 |
extern int ListType; |
| 222 |
|
| 223 |
int strip = 1; /* strip off */ |
| 224 |
|
| 225 |
TextFieldSwidget = UxThisWidget; |
| 226 |
|
| 227 |
if ( UxWidget == UxGetWidget(UxFindSwidget("tf_lincat")) ) { |
| 228 |
SET_LIST_TITLE("Enter line catalog"); |
| 229 |
ListType = LIST_LINCAT; |
| 230 |
} |
| 231 |
else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_guess")) ) { |
| 232 |
SET_LIST_TITLE("Enter guess table"); |
| 233 |
ListType = LIST_GUESS; |
| 234 |
} |
| 235 |
else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_flux_tbl")) ) { |
| 236 |
SET_LIST_TITLE("Enter flux table"); |
| 237 |
ListType = LIST_FLUX_TBL; |
| 238 |
} |
| 239 |
else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_extin_tbl")) ) { |
| 240 |
SET_LIST_TITLE("Enter extinction table"); |
| 241 |
ListType = LIST_EXTIN_TBL; |
| 242 |
} |
| 243 |
|
| 244 |
strcpy(DirSpecs, "*.tbl"); |
| 245 |
SetFileList(FileListWidget, strip, DirSpecs); |
| 246 |
UxPopupInterface(FileListInterface, exclusive_grab); |
| 247 |
|
| 248 |
} |
| 249 |
UxExtractShellContext = UxSaveCtx; |
| 250 |
} |
| 251 |
|
| 252 |
/******************************************************************************* |
| 253 |
The following are callback functions. |
| 254 |
*******************************************************************************/ |
| 255 |
|
| 256 |
static void activateCB_pb_ext_sky( UxWidget, UxClientData, UxCallbackArg ) |
| 257 |
Widget UxWidget; |
| 258 |
XtPointer UxClientData, UxCallbackArg; |
| 259 |
{ |
| 260 |
_UxCExtractShell *UxSaveCtx, *UxContext; |
| 261 |
swidget UxThisWidget; |
| 262 |
|
| 263 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 264 |
UxSaveCtx = UxExtractShellContext; |
| 265 |
UxExtractShellContext = UxContext = |
| 266 |
(_UxCExtractShell *) UxGetContext( UxThisWidget ); |
| 267 |
{ |
| 268 |
#include <spec_comm.h> |
| 269 |
|
| 270 |
char command[128], s[10]; |
| 271 |
int sky[4]; |
| 272 |
extern int Lowsky[], Uppsky[]; |
| 273 |
|
| 274 |
sprintf(command, "%s 4", C_EXTR_GCOOR); |
| 275 |
AppendDialogText(command); |
| 276 |
|
| 277 |
if ( !GetCoords(sky, 4) ) |
| 278 |
return; |
| 279 |
|
| 280 |
sprintf(command, "set/long LOWSKY=%d,%d UPPSKY=%d,%d", sky[0], sky[1], sky[2], sky[3]); |
| 281 |
AppendDialogText(command); |
| 282 |
sprintf(s, "%d", sky[0]); |
| 283 |
UxPutValue(UxFindSwidget("tf_lowsky1"), s); |
| 284 |
sprintf(s, "%d", sky[1]); |
| 285 |
UxPutValue(UxFindSwidget("tf_lowsky2"), s); |
| 286 |
sprintf(s, "%d", sky[2]); |
| 287 |
UxPutValue(UxFindSwidget("tf_uppsky1"), s); |
| 288 |
sprintf(s, "%d", sky[3]); |
| 289 |
UxPutValue(UxFindSwidget("tf_uppsky2"), s); |
| 290 |
|
| 291 |
Lowsky[0] = sky[0]; Lowsky[1] = sky[1]; |
| 292 |
Uppsky[0] = sky[2]; Uppsky[1] = sky[3]; |
| 293 |
|
| 294 |
|
| 295 |
|
| 296 |
|
| 297 |
|
| 298 |
|
| 299 |
} |
| 300 |
UxExtractShellContext = UxSaveCtx; |
| 301 |
} |
| 302 |
|
| 303 |
static void activateCB_pushButton28( UxWidget, UxClientData, UxCallbackArg ) |
| 304 |
Widget UxWidget; |
| 305 |
XtPointer UxClientData, UxCallbackArg; |
| 306 |
{ |
| 307 |
_UxCExtractShell *UxSaveCtx, *UxContext; |
| 308 |
swidget UxThisWidget; |
| 309 |
|
| 310 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 311 |
UxSaveCtx = UxExtractShellContext; |
| 312 |
UxExtractShellContext = UxContext = |
| 313 |
(_UxCExtractShell *) UxGetContext( UxThisWidget ); |
| 314 |
{ |
| 315 |
UxPopdownInterface(UxFindSwidget("ExtractShell")); |
| 316 |
} |
| 317 |
UxExtractShellContext = UxSaveCtx; |
| 318 |
} |
| 319 |
|
| 320 |
static void activateCB_pb_ext_object( UxWidget, UxClientData, UxCallbackArg ) |
| 321 |
Widget UxWidget; |
| 322 |
XtPointer UxClientData, UxCallbackArg; |
| 323 |
{ |
| 324 |
_UxCExtractShell *UxSaveCtx, *UxContext; |
| 325 |
swidget UxThisWidget; |
| 326 |
|
| 327 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 328 |
UxSaveCtx = UxExtractShellContext; |
| 329 |
UxExtractShellContext = UxContext = |
| 330 |
(_UxCExtractShell *) UxGetContext( UxThisWidget ); |
| 331 |
{ |
| 332 |
#include <spec_comm.h> |
| 333 |
|
| 334 |
char command[128], s[10]; |
| 335 |
extern int Objlim[]; |
| 336 |
|
| 337 |
sprintf(command, "%s 2", C_EXTR_GCOOR); |
| 338 |
AppendDialogText(command); |
| 339 |
|
| 340 |
if ( !GetCoords(Objlim, 2) ) |
| 341 |
return; |
| 342 |
|
| 343 |
sprintf(command, "set/long OBJECT=%d,%d", Objlim[0], Objlim[1]); |
| 344 |
AppendDialogText(command); |
| 345 |
sprintf(s, "%d", Objlim[0]); |
| 346 |
UxPutValue(UxFindSwidget("tf_object1"), s); |
| 347 |
sprintf(s, "%d", Objlim[1]); |
| 348 |
UxPutValue(UxFindSwidget("tf_object2"), s); |
| 349 |
|
| 350 |
} |
| 351 |
UxExtractShellContext = UxSaveCtx; |
| 352 |
} |
| 353 |
|
| 354 |
static void activateCB_pb_ext_fit( UxWidget, UxClientData, UxCallbackArg ) |
| 355 |
Widget UxWidget; |
| 356 |
XtPointer UxClientData, UxCallbackArg; |
| 357 |
{ |
| 358 |
_UxCExtractShell *UxSaveCtx, *UxContext; |
| 359 |
swidget UxThisWidget; |
| 360 |
|
| 361 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 362 |
UxSaveCtx = UxExtractShellContext; |
| 363 |
UxExtractShellContext = UxContext = |
| 364 |
(_UxCExtractShell *) UxGetContext( UxThisWidget ); |
| 365 |
{ |
| 366 |
#include <spec_comm.h> |
| 367 |
|
| 368 |
PopupList(LIST_FIT_SKY); |
| 369 |
} |
| 370 |
UxExtractShellContext = UxSaveCtx; |
| 371 |
} |
| 372 |
|
| 373 |
static void activateCB_pb_ext_weight( UxWidget, UxClientData, UxCallbackArg ) |
| 374 |
Widget UxWidget; |
| 375 |
XtPointer UxClientData, UxCallbackArg; |
| 376 |
{ |
| 377 |
_UxCExtractShell *UxSaveCtx, *UxContext; |
| 378 |
swidget UxThisWidget; |
| 379 |
|
| 380 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 381 |
UxSaveCtx = UxExtractShellContext; |
| 382 |
UxExtractShellContext = UxContext = |
| 383 |
(_UxCExtractShell *) UxGetContext( UxThisWidget ); |
| 384 |
{ |
| 385 |
#include <spec_comm.h> |
| 386 |
|
| 387 |
PopupList(LIST_EXT_WEIGHT); |
| 388 |
} |
| 389 |
UxExtractShellContext = UxSaveCtx; |
| 390 |
} |
| 391 |
|
| 392 |
static void activateCB_pb_ext_average( UxWidget, UxClientData, UxCallbackArg ) |
| 393 |
Widget UxWidget; |
| 394 |
XtPointer UxClientData, UxCallbackArg; |
| 395 |
{ |
| 396 |
_UxCExtractShell *UxSaveCtx, *UxContext; |
| 397 |
swidget UxThisWidget; |
| 398 |
|
| 399 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 400 |
UxSaveCtx = UxExtractShellContext; |
| 401 |
UxExtractShellContext = UxContext = |
| 402 |
(_UxCExtractShell *) UxGetContext( UxThisWidget ); |
| 403 |
{ |
| 404 |
#include <spec_comm.h> |
| 405 |
|
| 406 |
PopupList(LIST_EXT_AVER); |
| 407 |
} |
| 408 |
UxExtractShellContext = UxSaveCtx; |
| 409 |
} |
| 410 |
|
| 411 |
static void valueChangedCB_rb_extmtd_aver( UxWidget, UxClientData, UxCallbackArg ) |
| 412 |
Widget UxWidget; |
| 413 |
XtPointer UxClientData, UxCallbackArg; |
| 414 |
{ |
| 415 |
_UxCExtractShell *UxSaveCtx, *UxContext; |
| 416 |
swidget UxThisWidget; |
| 417 |
|
| 418 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 419 |
UxSaveCtx = UxExtractShellContext; |
| 420 |
UxExtractShellContext = UxContext = |
| 421 |
(_UxCExtractShell *) UxGetContext( UxThisWidget ); |
| 422 |
{ |
| 423 |
#include <spec_comm.h> |
| 424 |
|
| 425 |
extern int UpdateToggle; |
| 426 |
|
| 427 |
if ( !UpdateToggle ) |
| 428 |
return; |
| 429 |
|
| 430 |
if ( XmToggleButtonGetState(UxWidget) ) /*selected */ |
| 431 |
WriteKeyword("AVERAGE", K_EXTMTD); |
| 432 |
else |
| 433 |
WriteKeyword("LINEAR", K_EXTMTD); |
| 434 |
|
| 435 |
} |
| 436 |
UxExtractShellContext = UxSaveCtx; |
| 437 |
} |
| 438 |
|
| 439 |
static void valueChangedCB_rb_skymod_1( UxWidget, UxClientData, UxCallbackArg ) |
| 440 |
Widget UxWidget; |
| 441 |
XtPointer UxClientData, UxCallbackArg; |
| 442 |
{ |
| 443 |
_UxCExtractShell *UxSaveCtx, *UxContext; |
| 444 |
swidget UxThisWidget; |
| 445 |
|
| 446 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 447 |
UxSaveCtx = UxExtractShellContext; |
| 448 |
UxExtractShellContext = UxContext = |
| 449 |
(_UxCExtractShell *) UxGetContext( UxThisWidget ); |
| 450 |
{ |
| 451 |
#include <spec_comm.h> |
| 452 |
|
| 453 |
extern int UpdateToggle; |
| 454 |
|
| 455 |
if ( !UpdateToggle ) |
| 456 |
return; |
| 457 |
|
| 458 |
if ( XmToggleButtonGetState(UxWidget) ) /*selected */ |
| 459 |
WriteKeyword("1", K_SKYMOD); |
| 460 |
else |
| 461 |
WriteKeyword("0", K_SKYMOD); |
| 462 |
|
| 463 |
} |
| 464 |
UxExtractShellContext = UxSaveCtx; |
| 465 |
} |
| 466 |
|
| 467 |
static void losingFocusCB_tf_lowsky2( UxWidget, UxClientData, UxCallbackArg ) |
| 468 |
Widget UxWidget; |
| 469 |
XtPointer UxClientData, UxCallbackArg; |
| 470 |
{ |
| 471 |
_UxCExtractShell *UxSaveCtx, *UxContext; |
| 472 |
swidget UxThisWidget; |
| 473 |
|
| 474 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 475 |
UxSaveCtx = UxExtractShellContext; |
| 476 |
UxExtractShellContext = UxContext = |
| 477 |
(_UxCExtractShell *) UxGetContext( UxThisWidget ); |
| 478 |
{ |
| 479 |
#include <spec_comm.h> |
| 480 |
|
| 481 |
char *text; |
| 482 |
int val; |
| 483 |
extern int Lowsky[]; |
| 484 |
|
| 485 |
text = XmTextGetString(UxWidget); |
| 486 |
sscanf(text, "%d", &val); |
| 487 |
|
| 488 |
if ( val != Lowsky[1] ) { |
| 489 |
Lowsky[1] = val; |
| 490 |
WriteKeyword(text, K_LOWSKY2); |
| 491 |
} |
| 492 |
|
| 493 |
XtFree(text); |
| 494 |
} |
| 495 |
UxExtractShellContext = UxSaveCtx; |
| 496 |
} |
| 497 |
|
| 498 |
static void losingFocusCB_tf_order( UxWidget, UxClientData, UxCallbackArg ) |
| 499 |
Widget UxWidget; |
| 500 |
XtPointer UxClientData, UxCallbackArg; |
| 501 |
{ |
| 502 |
_UxCExtractShell *UxSaveCtx, *UxContext; |
| 503 |
swidget UxThisWidget; |
| 504 |
|
| 505 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 506 |
UxSaveCtx = UxExtractShellContext; |
| 507 |
UxExtractShellContext = UxContext = |
| 508 |
(_UxCExtractShell *) UxGetContext( UxThisWidget ); |
| 509 |
{ |
| 510 |
#include <spec_comm.h> |
| 511 |
|
| 512 |
char *text; |
| 513 |
int val; |
| 514 |
extern int Order; |
| 515 |
|
| 516 |
text = XmTextGetString(UxWidget); |
| 517 |
sscanf(text, "%d", &val); |
| 518 |
|
| 519 |
if ( val != Order ) { |
| 520 |
Order = val; |
| 521 |
WriteKeyword(text, K_ORDER); |
| 522 |
} |
| 523 |
|
| 524 |
XtFree(text); |
| 525 |
} |
| 526 |
UxExtractShellContext = UxSaveCtx; |
| 527 |
} |
| 528 |
|
| 529 |
static void losingFocusCB_tf_skyord( UxWidget, UxClientData, UxCallbackArg ) |
| 530 |
Widget UxWidget; |
| 531 |
XtPointer UxClientData, UxCallbackArg; |
| 532 |
{ |
| 533 |
_UxCExtractShell *UxSaveCtx, *UxContext; |
| 534 |
swidget UxThisWidget; |
| 535 |
|
| 536 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 537 |
UxSaveCtx = UxExtractShellContext; |
| 538 |
UxExtractShellContext = UxContext = |
| 539 |
(_UxCExtractShell *) UxGetContext( UxThisWidget ); |
| 540 |
{ |
| 541 |
#include <spec_comm.h> |
| 542 |
|
| 543 |
char *text; |
| 544 |
int val; |
| 545 |
extern int Skyord; |
| 546 |
|
| 547 |
text = XmTextGetString(UxWidget); |
| 548 |
sscanf(text, "%d", &val); |
| 549 |
|
| 550 |
if ( val != Skyord ) { |
| 551 |
Skyord = val; |
| 552 |
WriteKeyword(text, K_SKYORD); |
| 553 |
} |
| 554 |
|
| 555 |
XtFree(text); |
| 556 |
} |
| 557 |
UxExtractShellContext = UxSaveCtx; |
| 558 |
} |
| 559 |
|
| 560 |
static void losingFocusCB_tf_ron( UxWidget, UxClientData, UxCallbackArg ) |
| 561 |
Widget UxWidget; |
| 562 |
XtPointer UxClientData, UxCallbackArg; |
| 563 |
{ |
| 564 |
_UxCExtractShell *UxSaveCtx, *UxContext; |
| 565 |
swidget UxThisWidget; |
| 566 |
|
| 567 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 568 |
UxSaveCtx = UxExtractShellContext; |
| 569 |
UxExtractShellContext = UxContext = |
| 570 |
(_UxCExtractShell *) UxGetContext( UxThisWidget ); |
| 571 |
{ |
| 572 |
#include <spec_comm.h> |
| 573 |
|
| 574 |
char *text; |
| 575 |
float val; |
| 576 |
extern float Ron; |
| 577 |
|
| 578 |
text = XmTextGetString(UxWidget); |
| 579 |
sscanf(text, "%f", &val); |
| 580 |
|
| 581 |
if ( val != Ron ) { |
| 582 |
Ron = val; |
| 583 |
WriteKeyword(text, K_RON); |
| 584 |
} |
| 585 |
|
| 586 |
XtFree(text); |
| 587 |
|
| 588 |
} |
| 589 |
UxExtractShellContext = UxSaveCtx; |
| 590 |
} |
| 591 |
|
| 592 |
static void losingFocusCB_tf_niter( UxWidget, UxClientData, UxCallbackArg ) |
| 593 |
Widget UxWidget; |
| 594 |
XtPointer UxClientData, UxCallbackArg; |
| 595 |
{ |
| 596 |
_UxCExtractShell *UxSaveCtx, *UxContext; |
| 597 |
swidget UxThisWidget; |
| 598 |
|
| 599 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 600 |
UxSaveCtx = UxExtractShellContext; |
| 601 |
UxExtractShellContext = UxContext = |
| 602 |
(_UxCExtractShell *) UxGetContext( UxThisWidget ); |
| 603 |
{ |
| 604 |
#include <spec_comm.h> |
| 605 |
|
| 606 |
char *text; |
| 607 |
int val; |
| 608 |
extern int Niter; |
| 609 |
|
| 610 |
text = XmTextGetString(UxWidget); |
| 611 |
sscanf(text, "%d", &val); |
| 612 |
|
| 613 |
if ( val != Niter ) { |
| 614 |
Niter = val; |
| 615 |
WriteKeyword(text, K_NITER); |
| 616 |
} |
| 617 |
|
| 618 |
XtFree(text); |
| 619 |
} |
| 620 |
UxExtractShellContext = UxSaveCtx; |
| 621 |
} |
| 622 |
|
| 623 |
static void losingFocusCB_tf_gain( UxWidget, UxClientData, UxCallbackArg ) |
| 624 |
Widget UxWidget; |
| 625 |
XtPointer UxClientData, UxCallbackArg; |
| 626 |
{ |
| 627 |
_UxCExtractShell *UxSaveCtx, *UxContext; |
| 628 |
swidget UxThisWidget; |
| 629 |
|
| 630 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 631 |
UxSaveCtx = UxExtractShellContext; |
| 632 |
UxExtractShellContext = UxContext = |
| 633 |
(_UxCExtractShell *) UxGetContext( UxThisWidget ); |
| 634 |
{ |
| 635 |
#include <spec_comm.h> |
| 636 |
|
| 637 |
char *text; |
| 638 |
float val; |
| 639 |
extern float Gain; |
| 640 |
|
| 641 |
text = XmTextGetString(UxWidget); |
| 642 |
sscanf(text, "%f", &val); |
| 643 |
|
| 644 |
if ( val != Gain ) { |
| 645 |
Gain = val; |
| 646 |
WriteKeyword(text, K_GAIN); |
| 647 |
} |
| 648 |
|
| 649 |
XtFree(text); |
| 650 |
|
| 651 |
} |
| 652 |
UxExtractShellContext = UxSaveCtx; |
| 653 |
} |
| 654 |
|
| 655 |
static void losingFocusCB_tf_radius( UxWidget, UxClientData, UxCallbackArg ) |
| 656 |
Widget UxWidget; |
| 657 |
XtPointer UxClientData, UxCallbackArg; |
| 658 |
{ |
| 659 |
_UxCExtractShell *UxSaveCtx, *UxContext; |
| 660 |
swidget UxThisWidget; |
| 661 |
|
| 662 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 663 |
UxSaveCtx = UxExtractShellContext; |
| 664 |
UxExtractShellContext = UxContext = |
| 665 |
(_UxCExtractShell *) UxGetContext( UxThisWidget ); |
| 666 |
{ |
| 667 |
#include <spec_comm.h> |
| 668 |
|
| 669 |
char *text; |
| 670 |
int val; |
| 671 |
extern int Radius; |
| 672 |
|
| 673 |
text = XmTextGetString(UxWidget); |
| 674 |
sscanf(text, "%d", &val); |
| 675 |
|
| 676 |
if ( val != Radius ) { |
| 677 |
Radius = val; |
| 678 |
WriteKeyword(text, K_RADIUS); |
| 679 |
} |
| 680 |
|
| 681 |
XtFree(text); |
| 682 |
} |
| 683 |
UxExtractShellContext = UxSaveCtx; |
| 684 |
} |
| 685 |
|
| 686 |
static void losingFocusCB_tf_sigma( UxWidget, UxClientData, UxCallbackArg ) |
| 687 |
Widget UxWidget; |
| 688 |
XtPointer UxClientData, UxCallbackArg; |
| 689 |
{ |
| 690 |
_UxCExtractShell *UxSaveCtx, *UxContext; |
| 691 |
swidget UxThisWidget; |
| 692 |
|
| 693 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 694 |
UxSaveCtx = UxExtractShellContext; |
| 695 |
UxExtractShellContext = UxContext = |
| 696 |
(_UxCExtractShell *) UxGetContext( UxThisWidget ); |
| 697 |
{ |
| 698 |
#include <spec_comm.h> |
| 699 |
|
| 700 |
char *text; |
| 701 |
float val; |
| 702 |
extern float Sigma; |
| 703 |
|
| 704 |
text = XmTextGetString(UxWidget); |
| 705 |
sscanf(text, "%f", &val); |
| 706 |
|
| 707 |
if ( val != Sigma ) { |
| 708 |
Sigma = val; |
| 709 |
WriteKeyword(text, K_SIGMA); |
| 710 |
} |
| 711 |
|
| 712 |
XtFree(text); |
| 713 |
|
| 714 |
} |
| 715 |
UxExtractShellContext = UxSaveCtx; |
| 716 |
} |
| 717 |
|
| 718 |
static void losingFocusCB_tf_lowsky1( UxWidget, UxClientData, UxCallbackArg ) |
| 719 |
Widget UxWidget; |
| 720 |
XtPointer UxClientData, UxCallbackArg; |
| 721 |
{ |
| 722 |
_UxCExtractShell *UxSaveCtx, *UxContext; |
| 723 |
swidget UxThisWidget; |
| 724 |
|
| 725 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 726 |
UxSaveCtx = UxExtractShellContext; |
| 727 |
UxExtractShellContext = UxContext = |
| 728 |
(_UxCExtractShell *) UxGetContext( UxThisWidget ); |
| 729 |
{ |
| 730 |
#include <spec_comm.h> |
| 731 |
|
| 732 |
char *text; |
| 733 |
int val; |
| 734 |
extern int Lowsky[]; |
| 735 |
|
| 736 |
text = XmTextGetString(UxWidget); |
| 737 |
sscanf(text, "%d", &val); |
| 738 |
|
| 739 |
if ( val != Lowsky[0] ) { |
| 740 |
Lowsky[0] = val; |
| 741 |
WriteKeyword(text, K_LOWSKY1); |
| 742 |
} |
| 743 |
|
| 744 |
XtFree(text); |
| 745 |
} |
| 746 |
UxExtractShellContext = UxSaveCtx; |
| 747 |
} |
| 748 |
|
| 749 |
static void losingFocusCB_tf_uppsky1( UxWidget, UxClientData, UxCallbackArg ) |
| 750 |
Widget UxWidget; |
| 751 |
XtPointer UxClientData, UxCallbackArg; |
| 752 |
{ |
| 753 |
_UxCExtractShell *UxSaveCtx, *UxContext; |
| 754 |
swidget UxThisWidget; |
| 755 |
|
| 756 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 757 |
UxSaveCtx = UxExtractShellContext; |
| 758 |
UxExtractShellContext = UxContext = |
| 759 |
(_UxCExtractShell *) UxGetContext( UxThisWidget ); |
| 760 |
{ |
| 761 |
#include <spec_comm.h> |
| 762 |
|
| 763 |
char *text; |
| 764 |
int val; |
| 765 |
extern int Uppsky[]; |
| 766 |
|
| 767 |
text = XmTextGetString(UxWidget); |
| 768 |
sscanf(text, "%d", &val); |
| 769 |
|
| 770 |
if ( val != Uppsky[0] ) { |
| 771 |
Uppsky[0] = val; |
| 772 |
WriteKeyword(text, K_UPPSKY1); |
| 773 |
} |
| 774 |
|
| 775 |
XtFree(text); |
| 776 |
} |
| 777 |
UxExtractShellContext = UxSaveCtx; |
| 778 |
} |
| 779 |
|
| 780 |
static void losingFocusCB_tf_uppsky2( UxWidget, UxClientData, UxCallbackArg ) |
| 781 |
Widget UxWidget; |
| 782 |
XtPointer UxClientData, UxCallbackArg; |
| 783 |
{ |
| 784 |
_UxCExtractShell *UxSaveCtx, *UxContext; |
| 785 |
swidget UxThisWidget; |
| 786 |
|
| 787 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 788 |
UxSaveCtx = UxExtractShellContext; |
| 789 |
UxExtractShellContext = UxContext = |
| 790 |
(_UxCExtractShell *) UxGetContext( UxThisWidget ); |
| 791 |
{ |
| 792 |
#include <spec_comm.h> |
| 793 |
|
| 794 |
char *text; |
| 795 |
int val; |
| 796 |
extern int Uppsky[]; |
| 797 |
|
| 798 |
text = XmTextGetString(UxWidget); |
| 799 |
sscanf(text, "%d", &val); |
| 800 |
|
| 801 |
if ( val != Uppsky[1] ) { |
| 802 |
Uppsky[1] = val; |
| 803 |
WriteKeyword(text, K_UPPSKY2); |
| 804 |
} |
| 805 |
|
| 806 |
XtFree(text); |
| 807 |
} |
| 808 |
UxExtractShellContext = UxSaveCtx; |
| 809 |
} |
| 810 |
|
| 811 |
static void losingFocusCB_tf_object1( UxWidget, UxClientData, UxCallbackArg ) |
| 812 |
Widget UxWidget; |
| 813 |
XtPointer UxClientData, UxCallbackArg; |
| 814 |
{ |
| 815 |
_UxCExtractShell *UxSaveCtx, *UxContext; |
| 816 |
swidget UxThisWidget; |
| 817 |
|
| 818 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 819 |
UxSaveCtx = UxExtractShellContext; |
| 820 |
UxExtractShellContext = UxContext = |
| 821 |
(_UxCExtractShell *) UxGetContext( UxThisWidget ); |
| 822 |
{ |
| 823 |
#include <spec_comm.h> |
| 824 |
|
| 825 |
char *text; |
| 826 |
int val; |
| 827 |
extern int Objlim[]; |
| 828 |
|
| 829 |
text = XmTextGetString(UxWidget); |
| 830 |
sscanf(text, "%d", &val); |
| 831 |
|
| 832 |
if ( val != Objlim[0] ) { |
| 833 |
Objlim[0] = val; |
| 834 |
WriteKeyword(text, K_OBJECT1); |
| 835 |
} |
| 836 |
|
| 837 |
XtFree(text); |
| 838 |
} |
| 839 |
UxExtractShellContext = UxSaveCtx; |
| 840 |
} |
| 841 |
|
| 842 |
static void losingFocusCB_tf_object2( UxWidget, UxClientData, UxCallbackArg ) |
| 843 |
Widget UxWidget; |
| 844 |
XtPointer UxClientData, UxCallbackArg; |
| 845 |
{ |
| 846 |
_UxCExtractShell *UxSaveCtx, *UxContext; |
| 847 |
swidget UxThisWidget; |
| 848 |
|
| 849 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 850 |
UxSaveCtx = UxExtractShellContext; |
| 851 |
UxExtractShellContext = UxContext = |
| 852 |
(_UxCExtractShell *) UxGetContext( UxThisWidget ); |
| 853 |
{ |
| 854 |
#include <spec_comm.h> |
| 855 |
|
| 856 |
char *text; |
| 857 |
int val; |
| 858 |
extern int Objlim[]; |
| 859 |
|
| 860 |
text = XmTextGetString(UxWidget); |
| 861 |
sscanf(text, "%d", &val); |
| 862 |
|
| 863 |
if ( val != Objlim[1] ) { |
| 864 |
Objlim[1] = val; |
| 865 |
WriteKeyword(text, K_OBJECT2); |
| 866 |
} |
| 867 |
|
| 868 |
XtFree(text); |
| 869 |
} |
| 870 |
UxExtractShellContext = UxSaveCtx; |
| 871 |
} |
| 872 |
|
| 873 |
/******************************************************************************* |
| 874 |
The 'init_' function sets the private properties for all the |
| 875 |
swidgets to the values specified in the Property Table. |
| 876 |
Some properties need to be set after the X widgets have been |
| 877 |
created and the setting of these properties is done in the |
| 878 |
'build_' function after the UxCreateWidget call. |
| 879 |
*******************************************************************************/ |
| 880 |
|
| 881 |
static void _Uxinit_ExtractShell() |
| 882 |
{ |
| 883 |
UxPutBackground( ExtractShell, WindowBackground ); |
| 884 |
UxPutGeometry( ExtractShell, "+10+60" ); |
| 885 |
UxPutKeyboardFocusPolicy( ExtractShell, "pointer" ); |
| 886 |
UxPutTitle( ExtractShell, "Spectrum Extraction" ); |
| 887 |
UxPutHeight( ExtractShell, 661 ); |
| 888 |
UxPutWidth( ExtractShell, 490 ); |
| 889 |
UxPutY( ExtractShell, 21 ); |
| 890 |
UxPutX( ExtractShell, 2 ); |
| 891 |
|
| 892 |
UxPutBackground( form14, WindowBackground ); |
| 893 |
UxPutHeight( form14, 662 ); |
| 894 |
UxPutWidth( form14, 490 ); |
| 895 |
UxPutY( form14, 0 ); |
| 896 |
UxPutX( form14, 0 ); |
| 897 |
UxPutUnitType( form14, "pixels" ); |
| 898 |
UxPutResizePolicy( form14, "resize_none" ); |
| 899 |
|
| 900 |
UxPutBackground( form15, ButtonBackground ); |
| 901 |
UxPutHeight( form15, 84 ); |
| 902 |
UxPutWidth( form15, 490 ); |
| 903 |
UxPutY( form15, 576 ); |
| 904 |
UxPutX( form15, 0 ); |
| 905 |
UxPutResizePolicy( form15, "resize_none" ); |
| 906 |
|
| 907 |
UxPutLabelString( pb_ext_sky, "Get sky" ); |
| 908 |
UxPutForeground( pb_ext_sky, ApplyForeground ); |
| 909 |
UxPutFontList( pb_ext_sky, BoldTextFont ); |
| 910 |
UxPutBackground( pb_ext_sky, ButtonBackground ); |
| 911 |
UxPutHeight( pb_ext_sky, 30 ); |
| 912 |
UxPutWidth( pb_ext_sky, 86 ); |
| 913 |
UxPutY( pb_ext_sky, 4 ); |
| 914 |
UxPutX( pb_ext_sky, 8 ); |
| 915 |
|
| 916 |
UxPutLabelString( pushButton28, "Cancel" ); |
| 917 |
UxPutForeground( pushButton28, CancelForeground ); |
| 918 |
UxPutFontList( pushButton28, BoldTextFont ); |
| 919 |
UxPutBackground( pushButton28, ButtonBackground ); |
| 920 |
UxPutHeight( pushButton28, 30 ); |
| 921 |
UxPutWidth( pushButton28, 86 ); |
| 922 |
UxPutY( pushButton28, 40 ); |
| 923 |
UxPutX( pushButton28, 8 ); |
| 924 |
|
| 925 |
UxPutLabelString( pb_ext_object, "Get object" ); |
| 926 |
UxPutForeground( pb_ext_object, ApplyForeground ); |
| 927 |
UxPutFontList( pb_ext_object, BoldTextFont ); |
| 928 |
UxPutBackground( pb_ext_object, ButtonBackground ); |
| 929 |
UxPutHeight( pb_ext_object, 30 ); |
| 930 |
UxPutWidth( pb_ext_object, 86 ); |
| 931 |
UxPutY( pb_ext_object, 4 ); |
| 932 |
UxPutX( pb_ext_object, 102 ); |
| 933 |
|
| 934 |
UxPutLabelString( pb_ext_fit, "Fit sky" ); |
| 935 |
UxPutForeground( pb_ext_fit, ApplyForeground ); |
| 936 |
UxPutFontList( pb_ext_fit, BoldTextFont ); |
| 937 |
UxPutBackground( pb_ext_fit, ButtonBackground ); |
| 938 |
UxPutHeight( pb_ext_fit, 30 ); |
| 939 |
UxPutWidth( pb_ext_fit, 86 ); |
| 940 |
UxPutY( pb_ext_fit, 4 ); |
| 941 |
UxPutX( pb_ext_fit, 196 ); |
| 942 |
|
| 943 |
UxPutLabelString( pb_ext_weight, "Ext weight" ); |
| 944 |
UxPutForeground( pb_ext_weight, ApplyForeground ); |
| 945 |
UxPutFontList( pb_ext_weight, BoldTextFont ); |
| 946 |
UxPutBackground( pb_ext_weight, ButtonBackground ); |
| 947 |
UxPutHeight( pb_ext_weight, 30 ); |
| 948 |
UxPutWidth( pb_ext_weight, 86 ); |
| 949 |
UxPutY( pb_ext_weight, 4 ); |
| 950 |
UxPutX( pb_ext_weight, 386 ); |
| 951 |
|
| 952 |
UxPutLabelString( pb_ext_average, "Ext average" ); |
| 953 |
UxPutForeground( pb_ext_average, ApplyForeground ); |
| 954 |
UxPutFontList( pb_ext_average, BoldTextFont ); |
| 955 |
UxPutBackground( pb_ext_average, ButtonBackground ); |
| 956 |
UxPutHeight( pb_ext_average, 30 ); |
| 957 |
UxPutWidth( pb_ext_average, 86 ); |
| 958 |
UxPutY( pb_ext_average, 4 ); |
| 959 |
UxPutX( pb_ext_average, 290 ); |
| 960 |
|
| 961 |
UxPutFontList( shelp_extract, TextFont ); |
| 962 |
UxPutEditable( shelp_extract, "false" ); |
| 963 |
UxPutCursorPositionVisible( shelp_extract, "false" ); |
| 964 |
UxPutBackground( shelp_extract, SHelpBackground ); |
| 965 |
UxPutHeight( shelp_extract, 50 ); |
| 966 |
UxPutWidth( shelp_extract, 484 ); |
| 967 |
UxPutY( shelp_extract, 516 ); |
| 968 |
UxPutX( shelp_extract, 2 ); |
| 969 |
|
| 970 |
UxPutBackground( separator10, WindowBackground ); |
| 971 |
UxPutHeight( separator10, 10 ); |
| 972 |
UxPutWidth( separator10, 492 ); |
| 973 |
UxPutY( separator10, 506 ); |
| 974 |
UxPutX( separator10, 0 ); |
| 975 |
|
| 976 |
UxPutBackground( separator11, WindowBackground ); |
| 977 |
UxPutHeight( separator11, 10 ); |
| 978 |
UxPutWidth( separator11, 492 ); |
| 979 |
UxPutY( separator11, 564 ); |
| 980 |
UxPutX( separator11, -2 ); |
| 981 |
|
| 982 |
UxPutIsAligned( rowColumn6, "true" ); |
| 983 |
UxPutEntryAlignment( rowColumn6, "alignment_beginning" ); |
| 984 |
UxPutBorderWidth( rowColumn6, 0 ); |
| 985 |
UxPutShadowThickness( rowColumn6, 0 ); |
| 986 |
UxPutLabelString( rowColumn6, "" ); |
| 987 |
UxPutEntryBorder( rowColumn6, 0 ); |
| 988 |
UxPutBackground( rowColumn6, "grey80" ); |
| 989 |
UxPutRadioBehavior( rowColumn6, "true" ); |
| 990 |
UxPutHeight( rowColumn6, 67 ); |
| 991 |
UxPutWidth( rowColumn6, 82 ); |
| 992 |
UxPutY( rowColumn6, 422 ); |
| 993 |
UxPutX( rowColumn6, 264 ); |
| 994 |
|
| 995 |
UxPutIndicatorSize( rb_extmtd_line, 16 ); |
| 996 |
UxPutHighlightOnEnter( rb_extmtd_line, "true" ); |
| 997 |
UxPutForeground( rb_extmtd_line, TextForeground ); |
| 998 |
UxPutSelectColor( rb_extmtd_line, SelectColor ); |
| 999 |
UxPutSet( rb_extmtd_line, "true" ); |
| 1000 |
UxPutLabelString( rb_extmtd_line, "SUM" ); |
| 1001 |
UxPutFontList( rb_extmtd_line, TextFont ); |
| 1002 |
UxPutBackground( rb_extmtd_line, WindowBackground ); |
| 1003 |
UxPutHeight( rb_extmtd_line, 20 ); |
| 1004 |
UxPutWidth( rb_extmtd_line, 76 ); |
| 1005 |
UxPutY( rb_extmtd_line, 2 ); |
| 1006 |
UxPutX( rb_extmtd_line, 3 ); |
| 1007 |
|
| 1008 |
UxPutIndicatorSize( rb_extmtd_aver, 16 ); |
| 1009 |
UxPutHighlightOnEnter( rb_extmtd_aver, "true" ); |
| 1010 |
UxPutSet( rb_extmtd_aver, "false" ); |
| 1011 |
UxPutForeground( rb_extmtd_aver, TextForeground ); |
| 1012 |
UxPutSelectColor( rb_extmtd_aver, SelectColor ); |
| 1013 |
UxPutLabelString( rb_extmtd_aver, "AVERAGE" ); |
| 1014 |
UxPutFontList( rb_extmtd_aver, TextFont ); |
| 1015 |
UxPutBackground( rb_extmtd_aver, WindowBackground ); |
| 1016 |
UxPutHeight( rb_extmtd_aver, 66 ); |
| 1017 |
UxPutWidth( rb_extmtd_aver, 76 ); |
| 1018 |
UxPutY( rb_extmtd_aver, 34 ); |
| 1019 |
UxPutX( rb_extmtd_aver, 3 ); |
| 1020 |
|
| 1021 |
UxPutForeground( label47, TextForeground ); |
| 1022 |
UxPutAlignment( label47, "alignment_beginning" ); |
| 1023 |
UxPutLabelString( label47, "Extraction method" ); |
| 1024 |
UxPutFontList( label47, TextFont ); |
| 1025 |
UxPutBackground( label47, WindowBackground ); |
| 1026 |
UxPutHeight( label47, 26 ); |
| 1027 |
UxPutWidth( label47, 122 ); |
| 1028 |
UxPutY( label47, 396 ); |
| 1029 |
UxPutX( label47, 256 ); |
| 1030 |
|
| 1031 |
UxPutOrientation( separatorGadget26, "vertical" ); |
| 1032 |
UxPutHeight( separatorGadget26, 84 ); |
| 1033 |
UxPutWidth( separatorGadget26, 12 ); |
| 1034 |
UxPutY( separatorGadget26, 412 ); |
| 1035 |
UxPutX( separatorGadget26, 241 ); |
| 1036 |
|
| 1037 |
UxPutHeight( separatorGadget27, 8 ); |
| 1038 |
UxPutWidth( separatorGadget27, 144 ); |
| 1039 |
UxPutY( separatorGadget27, 492 ); |
| 1040 |
UxPutX( separatorGadget27, 246 ); |
| 1041 |
|
| 1042 |
UxPutOrientation( separatorGadget28, "vertical" ); |
| 1043 |
UxPutHeight( separatorGadget28, 84 ); |
| 1044 |
UxPutWidth( separatorGadget28, 12 ); |
| 1045 |
UxPutY( separatorGadget28, 412 ); |
| 1046 |
UxPutX( separatorGadget28, 384 ); |
| 1047 |
|
| 1048 |
UxPutIsAligned( rowColumn7, "true" ); |
| 1049 |
UxPutEntryAlignment( rowColumn7, "alignment_beginning" ); |
| 1050 |
UxPutBorderWidth( rowColumn7, 0 ); |
| 1051 |
UxPutShadowThickness( rowColumn7, 0 ); |
| 1052 |
UxPutLabelString( rowColumn7, "" ); |
| 1053 |
UxPutEntryBorder( rowColumn7, 0 ); |
| 1054 |
UxPutBackground( rowColumn7, "grey80" ); |
| 1055 |
UxPutRadioBehavior( rowColumn7, "true" ); |
| 1056 |
UxPutHeight( rowColumn7, 67 ); |
| 1057 |
UxPutWidth( rowColumn7, 82 ); |
| 1058 |
UxPutY( rowColumn7, 420 ); |
| 1059 |
UxPutX( rowColumn7, 45 ); |
| 1060 |
|
| 1061 |
UxPutIndicatorSize( rb_skymod_0, 16 ); |
| 1062 |
UxPutHighlightOnEnter( rb_skymod_0, "true" ); |
| 1063 |
UxPutForeground( rb_skymod_0, TextForeground ); |
| 1064 |
UxPutSelectColor( rb_skymod_0, SelectColor ); |
| 1065 |
UxPutSet( rb_skymod_0, "true" ); |
| 1066 |
UxPutLabelString( rb_skymod_0, "Same spatial profile" ); |
| 1067 |
UxPutFontList( rb_skymod_0, TextFont ); |
| 1068 |
UxPutBackground( rb_skymod_0, WindowBackground ); |
| 1069 |
UxPutHeight( rb_skymod_0, 20 ); |
| 1070 |
UxPutWidth( rb_skymod_0, 76 ); |
| 1071 |
UxPutY( rb_skymod_0, 0 ); |
| 1072 |
UxPutX( rb_skymod_0, -12 ); |
| 1073 |
|
| 1074 |
UxPutIndicatorSize( rb_skymod_1, 16 ); |
| 1075 |
UxPutHighlightOnEnter( rb_skymod_1, "true" ); |
| 1076 |
UxPutSet( rb_skymod_1, "false" ); |
| 1077 |
UxPutForeground( rb_skymod_1, TextForeground ); |
| 1078 |
UxPutSelectColor( rb_skymod_1, SelectColor ); |
| 1079 |
UxPutLabelString( rb_skymod_1, "Independent profile" ); |
| 1080 |
UxPutFontList( rb_skymod_1, TextFont ); |
| 1081 |
UxPutBackground( rb_skymod_1, WindowBackground ); |
| 1082 |
UxPutHeight( rb_skymod_1, 66 ); |
| 1083 |
UxPutWidth( rb_skymod_1, 76 ); |
| 1084 |
UxPutY( rb_skymod_1, 34 ); |
| 1085 |
UxPutX( rb_skymod_1, 3 ); |
| 1086 |
|
| 1087 |
UxPutForeground( label48, TextForeground ); |
| 1088 |
UxPutAlignment( label48, "alignment_beginning" ); |
| 1089 |
UxPutLabelString( label48, "Sky fitting mode" ); |
| 1090 |
UxPutFontList( label48, TextFont ); |
| 1091 |
UxPutBackground( label48, WindowBackground ); |
| 1092 |
UxPutHeight( label48, 26 ); |
| 1093 |
UxPutWidth( label48, 105 ); |
| 1094 |
UxPutY( label48, 394 ); |
| 1095 |
UxPutX( label48, 68 ); |
| 1096 |
|
| 1097 |
UxPutOrientation( separatorGadget29, "vertical" ); |
| 1098 |
UxPutHeight( separatorGadget29, 84 ); |
| 1099 |
UxPutWidth( separatorGadget29, 12 ); |
| 1100 |
UxPutY( separatorGadget29, 410 ); |
| 1101 |
UxPutX( separatorGadget29, 31 ); |
| 1102 |
|
| 1103 |
UxPutOrientation( separatorGadget30, "vertical" ); |
| 1104 |
UxPutHeight( separatorGadget30, 84 ); |
| 1105 |
UxPutWidth( separatorGadget30, 12 ); |
| 1106 |
UxPutY( separatorGadget30, 410 ); |
| 1107 |
UxPutX( separatorGadget30, 202 ); |
| 1108 |
|
| 1109 |
UxPutHeight( separatorGadget31, 10 ); |
| 1110 |
UxPutWidth( separatorGadget31, 33 ); |
| 1111 |
UxPutY( separatorGadget31, 406 ); |
| 1112 |
UxPutX( separatorGadget31, 35 ); |
| 1113 |
|
| 1114 |
UxPutHeight( separatorGadget32, 10 ); |
| 1115 |
UxPutWidth( separatorGadget32, 36 ); |
| 1116 |
UxPutY( separatorGadget32, 406 ); |
| 1117 |
UxPutX( separatorGadget32, 172 ); |
| 1118 |
|
| 1119 |
UxPutHeight( separatorGadget33, 8 ); |
| 1120 |
UxPutWidth( separatorGadget33, 172 ); |
| 1121 |
UxPutY( separatorGadget33, 490 ); |
| 1122 |
UxPutX( separatorGadget33, 36 ); |
| 1123 |
|
| 1124 |
UxPutHeight( separatorGadget34, 10 ); |
| 1125 |
UxPutWidth( separatorGadget34, 16 ); |
| 1126 |
UxPutY( separatorGadget34, 408 ); |
| 1127 |
UxPutX( separatorGadget34, 374 ); |
| 1128 |
|
| 1129 |
UxPutHeight( separatorGadget35, 10 ); |
| 1130 |
UxPutWidth( separatorGadget35, 13 ); |
| 1131 |
UxPutY( separatorGadget35, 408 ); |
| 1132 |
UxPutX( separatorGadget35, 246 ); |
| 1133 |
|
| 1134 |
UxPutForeground( label49, TextForeground ); |
| 1135 |
UxPutAlignment( label49, "alignment_beginning" ); |
| 1136 |
UxPutLabelString( label49, "Object limits (pixels) :" ); |
| 1137 |
UxPutFontList( label49, TextFont ); |
| 1138 |
UxPutBackground( label49, LabelBackground ); |
| 1139 |
UxPutHeight( label49, 30 ); |
| 1140 |
UxPutWidth( label49, 150 ); |
| 1141 |
UxPutY( label49, 62 ); |
| 1142 |
UxPutX( label49, 16 ); |
| 1143 |
|
| 1144 |
UxPutForeground( label50, TextForeground ); |
| 1145 |
UxPutAlignment( label50, "alignment_beginning" ); |
| 1146 |
UxPutLabelString( label50, "Sky limits (pixels) :" ); |
| 1147 |
UxPutFontList( label50, TextFont ); |
| 1148 |
UxPutBackground( label50, LabelBackground ); |
| 1149 |
UxPutHeight( label50, 30 ); |
| 1150 |
UxPutWidth( label50, 120 ); |
| 1151 |
UxPutY( label50, 26 ); |
| 1152 |
UxPutX( label50, 16 ); |
| 1153 |
|
| 1154 |
UxPutMaxLength( tf_lowsky2, 5 ); |
| 1155 |
UxPutForeground( tf_lowsky2, TextForeground ); |
| 1156 |
UxPutHighlightOnEnter( tf_lowsky2, "true" ); |
| 1157 |
UxPutFontList( tf_lowsky2, TextFont ); |
| 1158 |
UxPutBackground( tf_lowsky2, TextBackground ); |
| 1159 |
UxPutHeight( tf_lowsky2, 34 ); |
| 1160 |
UxPutWidth( tf_lowsky2, 56 ); |
| 1161 |
UxPutY( tf_lowsky2, 24 ); |
| 1162 |
UxPutX( tf_lowsky2, 292 ); |
| 1163 |
|
| 1164 |
UxPutForeground( tf_sky, TextForeground ); |
| 1165 |
UxPutHighlightOnEnter( tf_sky, "true" ); |
| 1166 |
UxPutFontList( tf_sky, TextFont ); |
| 1167 |
UxPutBackground( tf_sky, TextBackground ); |
| 1168 |
UxPutHeight( tf_sky, 34 ); |
| 1169 |
UxPutWidth( tf_sky, 210 ); |
| 1170 |
UxPutY( tf_sky, 356 ); |
| 1171 |
UxPutX( tf_sky, 238 ); |
| 1172 |
|
| 1173 |
UxPutForeground( label38, TextForeground ); |
| 1174 |
UxPutAlignment( label38, "alignment_beginning" ); |
| 1175 |
UxPutLabelString( label38, "Sky (image or constant) :" ); |
| 1176 |
UxPutFontList( label38, TextFont ); |
| 1177 |
UxPutBackground( label38, LabelBackground ); |
| 1178 |
UxPutHeight( label38, 30 ); |
| 1179 |
UxPutWidth( label38, 186 ); |
| 1180 |
UxPutY( label38, 354 ); |
| 1181 |
UxPutX( label38, 16 ); |
| 1182 |
|
| 1183 |
UxPutForeground( label42, TextForeground ); |
| 1184 |
UxPutAlignment( label42, "alignment_beginning" ); |
| 1185 |
UxPutLabelString( label42, "Order for optimal extraction :" ); |
| 1186 |
UxPutFontList( label42, TextFont ); |
| 1187 |
UxPutBackground( label42, LabelBackground ); |
| 1188 |
UxPutHeight( label42, 30 ); |
| 1189 |
UxPutWidth( label42, 194 ); |
| 1190 |
UxPutY( label42, 136 ); |
| 1191 |
UxPutX( label42, 16 ); |
| 1192 |
|
| 1193 |
UxPutForeground( tf_order, TextForeground ); |
| 1194 |
UxPutHighlightOnEnter( tf_order, "true" ); |
| 1195 |
UxPutFontList( tf_order, TextFont ); |
| 1196 |
UxPutBackground( tf_order, TextBackground ); |
| 1197 |
UxPutHeight( tf_order, 34 ); |
| 1198 |
UxPutWidth( tf_order, 80 ); |
| 1199 |
UxPutY( tf_order, 136 ); |
| 1200 |
UxPutX( tf_order, 238 ); |
| 1201 |
|
| 1202 |
UxPutForeground( tf_skyord, TextForeground ); |
| 1203 |
UxPutHighlightOnEnter( tf_skyord, "true" ); |
| 1204 |
UxPutFontList( tf_skyord, TextFont ); |
| 1205 |
UxPutBackground( tf_skyord, TextBackground ); |
| 1206 |
UxPutHeight( tf_skyord, 34 ); |
| 1207 |
UxPutWidth( tf_skyord, 80 ); |
| 1208 |
UxPutY( tf_skyord, 98 ); |
| 1209 |
UxPutX( tf_skyord, 238 ); |
| 1210 |
|
| 1211 |
UxPutForeground( label43, TextForeground ); |
| 1212 |
UxPutAlignment( label43, "alignment_beginning" ); |
| 1213 |
UxPutLabelString( label43, "Order for sky fit :" ); |
| 1214 |
UxPutFontList( label43, TextFont ); |
| 1215 |
UxPutBackground( label43, LabelBackground ); |
| 1216 |
UxPutHeight( label43, 30 ); |
| 1217 |
UxPutWidth( label43, 120 ); |
| 1218 |
UxPutY( label43, 100 ); |
| 1219 |
UxPutX( label43, 16 ); |
| 1220 |
|
| 1221 |
UxPutForeground( label45, TextForeground ); |
| 1222 |
UxPutAlignment( label45, "alignment_beginning" ); |
| 1223 |
UxPutLabelString( label45, "Read-out-noise (e-) :" ); |
| 1224 |
UxPutFontList( label45, TextFont ); |
| 1225 |
UxPutBackground( label45, LabelBackground ); |
| 1226 |
UxPutHeight( label45, 30 ); |
| 1227 |
UxPutWidth( label45, 154 ); |
| 1228 |
UxPutY( label45, 210 ); |
| 1229 |
UxPutX( label45, 16 ); |
| 1230 |
|
| 1231 |
UxPutForeground( tf_ron, TextForeground ); |
| 1232 |
UxPutHighlightOnEnter( tf_ron, "true" ); |
| 1233 |
UxPutFontList( tf_ron, TextFont ); |
| 1234 |
UxPutBackground( tf_ron, TextBackground ); |
| 1235 |
UxPutHeight( tf_ron, 34 ); |
| 1236 |
UxPutWidth( tf_ron, 80 ); |
| 1237 |
UxPutY( tf_ron, 210 ); |
| 1238 |
UxPutX( tf_ron, 238 ); |
| 1239 |
|
| 1240 |
UxPutForeground( tf_niter, TextForeground ); |
| 1241 |
UxPutHighlightOnEnter( tf_niter, "true" ); |
| 1242 |
UxPutFontList( tf_niter, TextFont ); |
| 1243 |
UxPutBackground( tf_niter, TextBackground ); |
| 1244 |
UxPutHeight( tf_niter, 34 ); |
| 1245 |
UxPutWidth( tf_niter, 80 ); |
| 1246 |
UxPutY( tf_niter, 172 ); |
| 1247 |
UxPutX( tf_niter, 238 ); |
| 1248 |
|
| 1249 |
UxPutForeground( label46, TextForeground ); |
| 1250 |
UxPutAlignment( label46, "alignment_beginning" ); |
| 1251 |
UxPutLabelString( label46, "Extraction iterations :" ); |
| 1252 |
UxPutFontList( label46, TextFont ); |
| 1253 |
UxPutBackground( label46, LabelBackground ); |
| 1254 |
UxPutHeight( label46, 30 ); |
| 1255 |
UxPutWidth( label46, 146 ); |
| 1256 |
UxPutY( label46, 174 ); |
| 1257 |
UxPutX( label46, 16 ); |
| 1258 |
|
| 1259 |
UxPutForeground( label51, TextForeground ); |
| 1260 |
UxPutAlignment( label51, "alignment_beginning" ); |
| 1261 |
UxPutLabelString( label51, "Inverse gain factor (e-/ADU) :" ); |
| 1262 |
UxPutFontList( label51, TextFont ); |
| 1263 |
UxPutBackground( label51, LabelBackground ); |
| 1264 |
UxPutHeight( label51, 30 ); |
| 1265 |
UxPutWidth( label51, 206 ); |
| 1266 |
UxPutY( label51, 246 ); |
| 1267 |
UxPutX( label51, 16 ); |
| 1268 |
|
| 1269 |
UxPutForeground( tf_gain, TextForeground ); |
| 1270 |
UxPutHighlightOnEnter( tf_gain, "true" ); |
| 1271 |
UxPutFontList( tf_gain, TextFont ); |
| 1272 |
UxPutBackground( tf_gain, TextBackground ); |
| 1273 |
UxPutHeight( tf_gain, 34 ); |
| 1274 |
UxPutWidth( tf_gain, 80 ); |
| 1275 |
UxPutY( tf_gain, 246 ); |
| 1276 |
UxPutX( tf_gain, 238 ); |
| 1277 |
|
| 1278 |
UxPutForeground( label52, TextForeground ); |
| 1279 |
UxPutAlignment( label52, "alignment_beginning" ); |
| 1280 |
UxPutLabelString( label52, "Radius for cosmic rays removal :" ); |
| 1281 |
UxPutFontList( label52, TextFont ); |
| 1282 |
UxPutBackground( label52, LabelBackground ); |
| 1283 |
UxPutHeight( label52, 30 ); |
| 1284 |
UxPutWidth( label52, 220 ); |
| 1285 |
UxPutY( label52, 320 ); |
| 1286 |
UxPutX( label52, 16 ); |
| 1287 |
|
| 1288 |
UxPutForeground( tf_radius, TextForeground ); |
| 1289 |
UxPutHighlightOnEnter( tf_radius, "true" ); |
| 1290 |
UxPutFontList( tf_radius, TextFont ); |
| 1291 |
UxPutBackground( tf_radius, TextBackground ); |
| 1292 |
UxPutHeight( tf_radius, 34 ); |
| 1293 |
UxPutWidth( tf_radius, 80 ); |
| 1294 |
UxPutY( tf_radius, 320 ); |
| 1295 |
UxPutX( tf_radius, 238 ); |
| 1296 |
|
| 1297 |
UxPutForeground( tf_sigma, TextForeground ); |
| 1298 |
UxPutHighlightOnEnter( tf_sigma, "true" ); |
| 1299 |
UxPutFontList( tf_sigma, TextFont ); |
| 1300 |
UxPutBackground( tf_sigma, TextBackground ); |
| 1301 |
UxPutHeight( tf_sigma, 34 ); |
| 1302 |
UxPutWidth( tf_sigma, 80 ); |
| 1303 |
UxPutY( tf_sigma, 282 ); |
| 1304 |
UxPutX( tf_sigma, 238 ); |
| 1305 |
|
| 1306 |
UxPutForeground( label53, TextForeground ); |
| 1307 |
UxPutAlignment( label53, "alignment_beginning" ); |
| 1308 |
UxPutLabelString( label53, "Threshold for cosmic rays :" ); |
| 1309 |
UxPutFontList( label53, TextFont ); |
| 1310 |
UxPutBackground( label53, LabelBackground ); |
| 1311 |
UxPutHeight( label53, 30 ); |
| 1312 |
UxPutWidth( label53, 182 ); |
| 1313 |
UxPutY( label53, 284 ); |
| 1314 |
UxPutX( label53, 16 ); |
| 1315 |
|
| 1316 |
UxPutMaxLength( tf_lowsky1, 5 ); |
| 1317 |
UxPutForeground( tf_lowsky1, TextForeground ); |
| 1318 |
UxPutHighlightOnEnter( tf_lowsky1, "true" ); |
| 1319 |
UxPutFontList( tf_lowsky1, TextFont ); |
| 1320 |
UxPutBackground( tf_lowsky1, TextBackground ); |
| 1321 |
UxPutHeight( tf_lowsky1, 34 ); |
| 1322 |
UxPutWidth( tf_lowsky1, 56 ); |
| 1323 |
UxPutY( tf_lowsky1, 24 ); |
| 1324 |
UxPutX( tf_lowsky1, 238 ); |
| 1325 |
|
| 1326 |
UxPutMaxLength( tf_uppsky1, 5 ); |
| 1327 |
UxPutForeground( tf_uppsky1, TextForeground ); |
| 1328 |
UxPutHighlightOnEnter( tf_uppsky1, "true" ); |
| 1329 |
UxPutFontList( tf_uppsky1, TextFont ); |
| 1330 |
UxPutBackground( tf_uppsky1, TextBackground ); |
| 1331 |
UxPutHeight( tf_uppsky1, 34 ); |
| 1332 |
UxPutWidth( tf_uppsky1, 56 ); |
| 1333 |
UxPutY( tf_uppsky1, 24 ); |
| 1334 |
UxPutX( tf_uppsky1, 346 ); |
| 1335 |
|
| 1336 |
UxPutMaxLength( tf_uppsky2, 5 ); |
| 1337 |
UxPutForeground( tf_uppsky2, TextForeground ); |
| 1338 |
UxPutHighlightOnEnter( tf_uppsky2, "true" ); |
| 1339 |
UxPutFontList( tf_uppsky2, TextFont ); |
| 1340 |
UxPutBackground( tf_uppsky2, TextBackground ); |
| 1341 |
UxPutHeight( tf_uppsky2, 34 ); |
| 1342 |
UxPutWidth( tf_uppsky2, 56 ); |
| 1343 |
UxPutY( tf_uppsky2, 24 ); |
| 1344 |
UxPutX( tf_uppsky2, 400 ); |
| 1345 |
|
| 1346 |
UxPutMaxLength( tf_object1, 5 ); |
| 1347 |
UxPutForeground( tf_object1, TextForeground ); |
| 1348 |
UxPutHighlightOnEnter( tf_object1, "true" ); |
| 1349 |
UxPutFontList( tf_object1, TextFont ); |
| 1350 |
UxPutBackground( tf_object1, TextBackground ); |
| 1351 |
UxPutHeight( tf_object1, 34 ); |
| 1352 |
UxPutWidth( tf_object1, 56 ); |
| 1353 |
UxPutY( tf_object1, 60 ); |
| 1354 |
UxPutX( tf_object1, 238 ); |
| 1355 |
|
| 1356 |
UxPutMaxLength( tf_object2, 5 ); |
| 1357 |
UxPutForeground( tf_object2, TextForeground ); |
| 1358 |
UxPutHighlightOnEnter( tf_object2, "true" ); |
| 1359 |
UxPutFontList( tf_object2, TextFont ); |
| 1360 |
UxPutBackground( tf_object2, TextBackground ); |
| 1361 |
UxPutHeight( tf_object2, 34 ); |
| 1362 |
UxPutWidth( tf_object2, 56 ); |
| 1363 |
UxPutY( tf_object2, 60 ); |
| 1364 |
UxPutX( tf_object2, 292 ); |
| 1365 |
|
| 1366 |
} |
| 1367 |
|
| 1368 |
/******************************************************************************* |
| 1369 |
The 'build_' function creates all the swidgets and X widgets, |
| 1370 |
and sets their properties to the values specified in the |
| 1371 |
Property Editor. |
| 1372 |
*******************************************************************************/ |
| 1373 |
|
| 1374 |
static swidget _Uxbuild_ExtractShell() |
| 1375 |
{ |
| 1376 |
/* Create the swidgets */ |
| 1377 |
|
| 1378 |
ExtractShell = UxCreateApplicationShell( "ExtractShell", NO_PARENT ); |
| 1379 |
UxPutContext( ExtractShell, UxExtractShellContext ); |
| 1380 |
|
| 1381 |
form14 = UxCreateForm( "form14", ExtractShell ); |
| 1382 |
form15 = UxCreateForm( "form15", form14 ); |
| 1383 |
pb_ext_sky = UxCreatePushButton( "pb_ext_sky", form15 ); |
| 1384 |
pushButton28 = UxCreatePushButton( "pushButton28", form15 ); |
| 1385 |
pb_ext_object = UxCreatePushButton( "pb_ext_object", form15 ); |
| 1386 |
pb_ext_fit = UxCreatePushButton( "pb_ext_fit", form15 ); |
| 1387 |
pb_ext_weight = UxCreatePushButton( "pb_ext_weight", form15 ); |
| 1388 |
pb_ext_average = UxCreatePushButton( "pb_ext_average", form15 ); |
| 1389 |
shelp_extract = UxCreateText( "shelp_extract", form14 ); |
| 1390 |
separator10 = UxCreateSeparator( "separator10", form14 ); |
| 1391 |
separator11 = UxCreateSeparator( "separator11", form14 ); |
| 1392 |
rowColumn6 = UxCreateRowColumn( "rowColumn6", form14 ); |
| 1393 |
rb_extmtd_line = UxCreateToggleButton( "rb_extmtd_line", rowColumn6 ); |
| 1394 |
rb_extmtd_aver = UxCreateToggleButton( "rb_extmtd_aver", rowColumn6 ); |
| 1395 |
label47 = UxCreateLabel( "label47", form14 ); |
| 1396 |
separatorGadget26 = UxCreateSeparatorGadget( "separatorGadget26", form14 ); |
| 1397 |
separatorGadget27 = UxCreateSeparatorGadget( "separatorGadget27", form14 ); |
| 1398 |
separatorGadget28 = UxCreateSeparatorGadget( "separatorGadget28", form14 ); |
| 1399 |
rowColumn7 = UxCreateRowColumn( "rowColumn7", form14 ); |
| 1400 |
rb_skymod_0 = UxCreateToggleButton( "rb_skymod_0", rowColumn7 ); |
| 1401 |
rb_skymod_1 = UxCreateToggleButton( "rb_skymod_1", rowColumn7 ); |
| 1402 |
label48 = UxCreateLabel( "label48", form14 ); |
| 1403 |
separatorGadget29 = UxCreateSeparatorGadget( "separatorGadget29", form14 ); |
| 1404 |
separatorGadget30 = UxCreateSeparatorGadget( "separatorGadget30", form14 ); |
| 1405 |
separatorGadget31 = UxCreateSeparatorGadget( "separatorGadget31", form14 ); |
| 1406 |
separatorGadget32 = UxCreateSeparatorGadget( "separatorGadget32", form14 ); |
| 1407 |
separatorGadget33 = UxCreateSeparatorGadget( "separatorGadget33", form14 ); |
| 1408 |
separatorGadget34 = UxCreateSeparatorGadget( "separatorGadget34", form14 ); |
| 1409 |
separatorGadget35 = UxCreateSeparatorGadget( "separatorGadget35", form14 ); |
| 1410 |
label49 = UxCreateLabel( "label49", form14 ); |
| 1411 |
label50 = UxCreateLabel( "label50", form14 ); |
| 1412 |
tf_lowsky2 = UxCreateTextField( "tf_lowsky2", form14 ); |
| 1413 |
tf_sky = UxCreateTextField( "tf_sky", form14 ); |
| 1414 |
label38 = UxCreateLabel( "label38", form14 ); |
| 1415 |
label42 = UxCreateLabel( "label42", form14 ); |
| 1416 |
tf_order = UxCreateTextField( "tf_order", form14 ); |
| 1417 |
tf_skyord = UxCreateTextField( "tf_skyord", form14 ); |
| 1418 |
label43 = UxCreateLabel( "label43", form14 ); |
| 1419 |
label45 = UxCreateLabel( "label45", form14 ); |
| 1420 |
tf_ron = UxCreateTextField( "tf_ron", form14 ); |
| 1421 |
tf_niter = UxCreateTextField( "tf_niter", form14 ); |
| 1422 |
label46 = UxCreateLabel( "label46", form14 ); |
| 1423 |
label51 = UxCreateLabel( "label51", form14 ); |
| 1424 |
tf_gain = UxCreateTextField( "tf_gain", form14 ); |
| 1425 |
label52 = UxCreateLabel( "label52", form14 ); |
| 1426 |
tf_radius = UxCreateTextField( "tf_radius", form14 ); |
| 1427 |
tf_sigma = UxCreateTextField( "tf_sigma", form14 ); |
| 1428 |
label53 = UxCreateLabel( "label53", form14 ); |
| 1429 |
tf_lowsky1 = UxCreateTextField( "tf_lowsky1", form14 ); |
| 1430 |
tf_uppsky1 = UxCreateTextField( "tf_uppsky1", form14 ); |
| 1431 |
tf_uppsky2 = UxCreateTextField( "tf_uppsky2", form14 ); |
| 1432 |
tf_object1 = UxCreateTextField( "tf_object1", form14 ); |
| 1433 |
tf_object2 = UxCreateTextField( "tf_object2", form14 ); |
| 1434 |
|
| 1435 |
_Uxinit_ExtractShell(); |
| 1436 |
|
| 1437 |
/* Create the X widgets */ |
| 1438 |
|
| 1439 |
UxCreateWidget( ExtractShell ); |
| 1440 |
UxCreateWidget( form14 ); |
| 1441 |
UxCreateWidget( form15 ); |
| 1442 |
UxCreateWidget( pb_ext_sky ); |
| 1443 |
UxCreateWidget( pushButton28 ); |
| 1444 |
UxCreateWidget( pb_ext_object ); |
| 1445 |
UxCreateWidget( pb_ext_fit ); |
| 1446 |
UxCreateWidget( pb_ext_weight ); |
| 1447 |
UxCreateWidget( pb_ext_average ); |
| 1448 |
UxCreateWidget( shelp_extract ); |
| 1449 |
UxCreateWidget( separator10 ); |
| 1450 |
UxCreateWidget( separator11 ); |
| 1451 |
UxCreateWidget( rowColumn6 ); |
| 1452 |
UxCreateWidget( rb_extmtd_line ); |
| 1453 |
UxCreateWidget( rb_extmtd_aver ); |
| 1454 |
UxCreateWidget( label47 ); |
| 1455 |
UxCreateWidget( separatorGadget26 ); |
| 1456 |
UxCreateWidget( separatorGadget27 ); |
| 1457 |
UxCreateWidget( separatorGadget28 ); |
| 1458 |
UxCreateWidget( rowColumn7 ); |
| 1459 |
UxCreateWidget( rb_skymod_0 ); |
| 1460 |
UxCreateWidget( rb_skymod_1 ); |
| 1461 |
UxCreateWidget( label48 ); |
| 1462 |
UxCreateWidget( separatorGadget29 ); |
| 1463 |
UxCreateWidget( separatorGadget30 ); |
| 1464 |
UxCreateWidget( separatorGadget31 ); |
| 1465 |
UxCreateWidget( separatorGadget32 ); |
| 1466 |
UxCreateWidget( separatorGadget33 ); |
| 1467 |
UxCreateWidget( separatorGadget34 ); |
| 1468 |
UxCreateWidget( separatorGadget35 ); |
| 1469 |
UxCreateWidget( label49 ); |
| 1470 |
UxCreateWidget( label50 ); |
| 1471 |
UxCreateWidget( tf_lowsky2 ); |
| 1472 |
UxCreateWidget( tf_sky ); |
| 1473 |
UxCreateWidget( label38 ); |
| 1474 |
UxCreateWidget( label42 ); |
| 1475 |
UxCreateWidget( tf_order ); |
| 1476 |
UxCreateWidget( tf_skyord ); |
| 1477 |
UxCreateWidget( label43 ); |
| 1478 |
UxCreateWidget( label45 ); |
| 1479 |
UxCreateWidget( tf_ron ); |
| 1480 |
UxCreateWidget( tf_niter ); |
| 1481 |
UxCreateWidget( label46 ); |
| 1482 |
UxCreateWidget( label51 ); |
| 1483 |
UxCreateWidget( tf_gain ); |
| 1484 |
UxCreateWidget( label52 ); |
| 1485 |
UxCreateWidget( tf_radius ); |
| 1486 |
UxCreateWidget( tf_sigma ); |
| 1487 |
UxCreateWidget( label53 ); |
| 1488 |
UxCreateWidget( tf_lowsky1 ); |
| 1489 |
UxCreateWidget( tf_uppsky1 ); |
| 1490 |
UxCreateWidget( tf_uppsky2 ); |
| 1491 |
UxCreateWidget( tf_object1 ); |
| 1492 |
UxCreateWidget( tf_object2 ); |
| 1493 |
|
| 1494 |
UxAddCallback( pb_ext_sky, XmNactivateCallback, |
| 1495 |
activateCB_pb_ext_sky, |
| 1496 |
(XtPointer) UxExtractShellContext ); |
| 1497 |
|
| 1498 |
UxAddCallback( pushButton28, XmNactivateCallback, |
| 1499 |
activateCB_pushButton28, |
| 1500 |
(XtPointer) UxExtractShellContext ); |
| 1501 |
|
| 1502 |
UxAddCallback( pb_ext_object, XmNactivateCallback, |
| 1503 |
activateCB_pb_ext_object, |
| 1504 |
(XtPointer) UxExtractShellContext ); |
| 1505 |
|
| 1506 |
UxAddCallback( pb_ext_fit, XmNactivateCallback, |
| 1507 |
activateCB_pb_ext_fit, |
| 1508 |
(XtPointer) UxExtractShellContext ); |
| 1509 |
|
| 1510 |
UxAddCallback( pb_ext_weight, XmNactivateCallback, |
| 1511 |
activateCB_pb_ext_weight, |
| 1512 |
(XtPointer) UxExtractShellContext ); |
| 1513 |
|
| 1514 |
UxAddCallback( pb_ext_average, XmNactivateCallback, |
| 1515 |
activateCB_pb_ext_average, |
| 1516 |
(XtPointer) UxExtractShellContext ); |
| 1517 |
|
| 1518 |
UxAddCallback( rb_extmtd_aver, XmNvalueChangedCallback, |
| 1519 |
valueChangedCB_rb_extmtd_aver, |
| 1520 |
(XtPointer) UxExtractShellContext ); |
| 1521 |
|
| 1522 |
UxAddCallback( rb_skymod_1, XmNvalueChangedCallback, |
| 1523 |
valueChangedCB_rb_skymod_1, |
| 1524 |
(XtPointer) UxExtractShellContext ); |
| 1525 |
|
| 1526 |
UxAddCallback( tf_lowsky2, XmNlosingFocusCallback, |
| 1527 |
losingFocusCB_tf_lowsky2, |
| 1528 |
(XtPointer) UxExtractShellContext ); |
| 1529 |
|
| 1530 |
UxAddCallback( tf_order, XmNlosingFocusCallback, |
| 1531 |
losingFocusCB_tf_order, |
| 1532 |
(XtPointer) UxExtractShellContext ); |
| 1533 |
|
| 1534 |
UxAddCallback( tf_skyord, XmNlosingFocusCallback, |
| 1535 |
losingFocusCB_tf_skyord, |
| 1536 |
(XtPointer) UxExtractShellContext ); |
| 1537 |
|
| 1538 |
UxAddCallback( tf_ron, XmNlosingFocusCallback, |
| 1539 |
losingFocusCB_tf_ron, |
| 1540 |
(XtPointer) UxExtractShellContext ); |
| 1541 |
|
| 1542 |
UxAddCallback( tf_niter, XmNlosingFocusCallback, |
| 1543 |
losingFocusCB_tf_niter, |
| 1544 |
(XtPointer) UxExtractShellContext ); |
| 1545 |
|
| 1546 |
UxAddCallback( tf_gain, XmNlosingFocusCallback, |
| 1547 |
losingFocusCB_tf_gain, |
| 1548 |
(XtPointer) UxExtractShellContext ); |
| 1549 |
|
| 1550 |
UxAddCallback( tf_radius, XmNlosingFocusCallback, |
| 1551 |
losingFocusCB_tf_radius, |
| 1552 |
(XtPointer) UxExtractShellContext ); |
| 1553 |
|
| 1554 |
UxAddCallback( tf_sigma, XmNlosingFocusCallback, |
| 1555 |
losingFocusCB_tf_sigma, |
| 1556 |
(XtPointer) UxExtractShellContext ); |
| 1557 |
|
| 1558 |
UxAddCallback( tf_lowsky1, XmNlosingFocusCallback, |
| 1559 |
losingFocusCB_tf_lowsky1, |
| 1560 |
(XtPointer) UxExtractShellContext ); |
| 1561 |
|
| 1562 |
UxAddCallback( tf_uppsky1, XmNlosingFocusCallback, |
| 1563 |
losingFocusCB_tf_uppsky1, |
| 1564 |
(XtPointer) UxExtractShellContext ); |
| 1565 |
|
| 1566 |
UxAddCallback( tf_uppsky2, XmNlosingFocusCallback, |
| 1567 |
losingFocusCB_tf_uppsky2, |
| 1568 |
(XtPointer) UxExtractShellContext ); |
| 1569 |
|
| 1570 |
UxAddCallback( tf_object1, XmNlosingFocusCallback, |
| 1571 |
losingFocusCB_tf_object1, |
| 1572 |
(XtPointer) UxExtractShellContext ); |
| 1573 |
|
| 1574 |
UxAddCallback( tf_object2, XmNlosingFocusCallback, |
| 1575 |
losingFocusCB_tf_object2, |
| 1576 |
(XtPointer) UxExtractShellContext ); |
| 1577 |
|
| 1578 |
|
| 1579 |
/* Finally, call UxRealizeInterface to create the X windows |
| 1580 |
for the widgets created above. */ |
| 1581 |
|
| 1582 |
UxRealizeInterface( ExtractShell ); |
| 1583 |
|
| 1584 |
return ( ExtractShell ); |
| 1585 |
} |
| 1586 |
|
| 1587 |
/******************************************************************************* |
| 1588 |
The following function includes the code that was entered |
| 1589 |
in the 'Initial Code' and 'Final Code' sections of the |
| 1590 |
Declarations Editor. This function is called from the |
| 1591 |
'Interface function' below. |
| 1592 |
*******************************************************************************/ |
| 1593 |
|
| 1594 |
static swidget _Ux_create_ExtractShell() |
| 1595 |
{ |
| 1596 |
swidget rtrn; |
| 1597 |
_UxCExtractShell *UxContext; |
| 1598 |
|
| 1599 |
UxExtractShellContext = UxContext = |
| 1600 |
(_UxCExtractShell *) UxMalloc( sizeof(_UxCExtractShell) ); |
| 1601 |
|
| 1602 |
rtrn = _Uxbuild_ExtractShell(); |
| 1603 |
|
| 1604 |
return(rtrn); |
| 1605 |
} |
| 1606 |
|
| 1607 |
/******************************************************************************* |
| 1608 |
The following is the 'Interface function' which is the |
| 1609 |
external entry point for creating this interface. |
| 1610 |
This function should be called from your application or from |
| 1611 |
a callback function. |
| 1612 |
*******************************************************************************/ |
| 1613 |
|
| 1614 |
swidget create_ExtractShell() |
| 1615 |
{ |
| 1616 |
swidget _Uxrtrn; |
| 1617 |
static int _Uxinit = 0; |
| 1618 |
|
| 1619 |
if ( ! _Uxinit ) |
| 1620 |
{ |
| 1621 |
static XtActionsRec _Uxactions[] = { |
| 1622 |
{ "FileSelectACT", action_FileSelectACT } |
| 1623 |
}; |
| 1624 |
|
| 1625 |
XtAppAddActions( UxAppContext, |
| 1626 |
_Uxactions, |
| 1627 |
XtNumber(_Uxactions) ); |
| 1628 |
|
| 1629 |
_Uxinit = 1; |
| 1630 |
} |
| 1631 |
|
| 1632 |
_Uxrtrn = _Ux_create_ExtractShell(); |
| 1633 |
|
| 1634 |
return ( _Uxrtrn ); |
| 1635 |
} |
| 1636 |
|
| 1637 |
/******************************************************************************* |
| 1638 |
END OF FILE |
| 1639 |
*******************************************************************************/ |
| 1640 |
|