| 1 |
/*=========================================================================== |
| 2 |
Copyright (C) 1995-2009 European Southern Observatory (ESO) |
| 3 |
|
| 4 |
This program is free software; you can redistribute it and/or |
| 5 |
modify it under the terms of the GNU General Public License as |
| 6 |
published by the Free Software Foundation; either version 2 of |
| 7 |
the License, or (at your option) any later version. |
| 8 |
|
| 9 |
This program is distributed in the hope that it will be useful, |
| 10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
GNU General Public License for more details. |
| 13 |
|
| 14 |
You should have received a copy of the GNU General Public |
| 15 |
License along with this program; if not, write to the Free |
| 16 |
Software Foundation, Inc., 675 Massachusetts Ave, Cambridge, |
| 17 |
MA 02139, USA. |
| 18 |
|
| 19 |
Correspondence concerning ESO-MIDAS should be addressed as follows: |
| 20 |
Internet e-mail: [email protected] |
| 21 |
Postal address: European Southern Observatory |
| 22 |
Data Management Division |
| 23 |
Karl-Schwarzschild-Strasse 2 |
| 24 |
D 85748 Garching bei Muenchen |
| 25 |
GERMANY |
| 26 |
===========================================================================*/ |
| 27 |
|
| 28 |
|
| 29 |
/******************************************************************************* |
| 30 |
ExtractionShell.c |
| 31 |
|
| 32 |
.VERSION |
| 33 |
090825 last modif |
| 34 |
|
| 35 |
*******************************************************************************/ |
| 36 |
|
| 37 |
#include <stdio.h> |
| 38 |
#include "UxLib.h" |
| 39 |
#include "UxSep.h" |
| 40 |
#include "UxText.h" |
| 41 |
#include "UxPushB.h" |
| 42 |
#include "UxSepG.h" |
| 43 |
#include "UxTogB.h" |
| 44 |
#include "UxRowCol.h" |
| 45 |
#include "UxTextF.h" |
| 46 |
#include "UxLabel.h" |
| 47 |
#include "UxForm.h" |
| 48 |
#include "UxTranSh.h" |
| 49 |
|
| 50 |
/******************************************************************************* |
| 51 |
Includes, Defines, and Global variables from the Declarations Editor: |
| 52 |
*******************************************************************************/ |
| 53 |
|
| 54 |
#include <ExternResources.h> |
| 55 |
|
| 56 |
/******************************************************************************* |
| 57 |
The definition of the context structure: |
| 58 |
If you create multiple instances of your interface, the context |
| 59 |
structure ensures that your callbacks use the variables for the |
| 60 |
correct instance. |
| 61 |
|
| 62 |
For each swidget in the interface, each argument to the Interface |
| 63 |
function, and each variable in the Instance Specific section of the |
| 64 |
Declarations Editor, there is an entry in the context structure. |
| 65 |
and a #define. The #define makes the variable name refer to the |
| 66 |
corresponding entry in the context structure. |
| 67 |
*******************************************************************************/ |
| 68 |
|
| 69 |
typedef struct |
| 70 |
{ |
| 71 |
swidget UxExtractionShell; |
| 72 |
swidget Uxform31; |
| 73 |
swidget Uxlabel88; |
| 74 |
swidget Uxtf_ywidth3; |
| 75 |
swidget Uxlabel89; |
| 76 |
swidget Uxlabel90; |
| 77 |
swidget Uxtf_ystep3; |
| 78 |
swidget Uxtf_width3; |
| 79 |
swidget UxrowColumn27; |
| 80 |
swidget Uxrb_seamtd_gaus3; |
| 81 |
swidget Uxrb_seamtd_grav3; |
| 82 |
swidget Uxrb_seamtd_maxi3; |
| 83 |
swidget Uxlabel91; |
| 84 |
swidget UxseparatorGadget1; |
| 85 |
swidget UxseparatorGadget2; |
| 86 |
swidget UxseparatorGadget3; |
| 87 |
swidget UxseparatorGadget4; |
| 88 |
swidget Uxtf_thres5; |
| 89 |
swidget Uxform32; |
| 90 |
swidget Uxpb_search_search7; |
| 91 |
swidget UxpushButton5; |
| 92 |
swidget Uxpb_search_plot13; |
| 93 |
swidget Uxpb_search_plot18; |
| 94 |
swidget Uxshelp_search5; |
| 95 |
swidget Uxseparator26; |
| 96 |
swidget Uxseparator27; |
| 97 |
swidget UxseparatorGadget5; |
| 98 |
swidget Uxlabel92; |
| 99 |
swidget Uxtf_thres6; |
| 100 |
swidget Uxlabel93; |
| 101 |
swidget Uxpb_main_search19; |
| 102 |
swidget Uxlabel94; |
| 103 |
swidget Uxtf_thres7; |
| 104 |
swidget Uxlabel95; |
| 105 |
swidget Uxtf_ystep4; |
| 106 |
swidget Uxpb_main_search20; |
| 107 |
} _UxCExtractionShell; |
| 108 |
|
| 109 |
#define ExtractionShell UxExtractionShellContext->UxExtractionShell |
| 110 |
#define form31 UxExtractionShellContext->Uxform31 |
| 111 |
#define label88 UxExtractionShellContext->Uxlabel88 |
| 112 |
#define tf_ywidth3 UxExtractionShellContext->Uxtf_ywidth3 |
| 113 |
#define label89 UxExtractionShellContext->Uxlabel89 |
| 114 |
#define label90 UxExtractionShellContext->Uxlabel90 |
| 115 |
#define tf_ystep3 UxExtractionShellContext->Uxtf_ystep3 |
| 116 |
#define tf_width3 UxExtractionShellContext->Uxtf_width3 |
| 117 |
#define rowColumn27 UxExtractionShellContext->UxrowColumn27 |
| 118 |
#define rb_seamtd_gaus3 UxExtractionShellContext->Uxrb_seamtd_gaus3 |
| 119 |
#define rb_seamtd_grav3 UxExtractionShellContext->Uxrb_seamtd_grav3 |
| 120 |
#define rb_seamtd_maxi3 UxExtractionShellContext->Uxrb_seamtd_maxi3 |
| 121 |
#define label91 UxExtractionShellContext->Uxlabel91 |
| 122 |
#define separatorGadget1 UxExtractionShellContext->UxseparatorGadget1 |
| 123 |
#define separatorGadget2 UxExtractionShellContext->UxseparatorGadget2 |
| 124 |
#define separatorGadget3 UxExtractionShellContext->UxseparatorGadget3 |
| 125 |
#define separatorGadget4 UxExtractionShellContext->UxseparatorGadget4 |
| 126 |
#define tf_thres5 UxExtractionShellContext->Uxtf_thres5 |
| 127 |
#define form32 UxExtractionShellContext->Uxform32 |
| 128 |
#define pb_search_search7 UxExtractionShellContext->Uxpb_search_search7 |
| 129 |
#define pushButton5 UxExtractionShellContext->UxpushButton5 |
| 130 |
#define pb_search_plot13 UxExtractionShellContext->Uxpb_search_plot13 |
| 131 |
#define pb_search_plot18 UxExtractionShellContext->Uxpb_search_plot18 |
| 132 |
#define shelp_search5 UxExtractionShellContext->Uxshelp_search5 |
| 133 |
#define separator26 UxExtractionShellContext->Uxseparator26 |
| 134 |
#define separator27 UxExtractionShellContext->Uxseparator27 |
| 135 |
#define separatorGadget5 UxExtractionShellContext->UxseparatorGadget5 |
| 136 |
#define label92 UxExtractionShellContext->Uxlabel92 |
| 137 |
#define tf_thres6 UxExtractionShellContext->Uxtf_thres6 |
| 138 |
#define label93 UxExtractionShellContext->Uxlabel93 |
| 139 |
#define pb_main_search19 UxExtractionShellContext->Uxpb_main_search19 |
| 140 |
#define label94 UxExtractionShellContext->Uxlabel94 |
| 141 |
#define tf_thres7 UxExtractionShellContext->Uxtf_thres7 |
| 142 |
#define label95 UxExtractionShellContext->Uxlabel95 |
| 143 |
#define tf_ystep4 UxExtractionShellContext->Uxtf_ystep4 |
| 144 |
#define pb_main_search20 UxExtractionShellContext->Uxpb_main_search20 |
| 145 |
|
| 146 |
static _UxCExtractionShell *UxExtractionShellContext; |
| 147 |
|
| 148 |
extern void DisplayShortHelp(), DisplayExtendedHelp(), SetFileList(); |
| 149 |
extern void MidasCommand(), PopupLong(), InitAllFields(); |
| 150 |
extern void WidgetLeave(), WidgetEnter(); |
| 151 |
extern void WriteKeyword(), GetExtendedHelp(), SelectList(); |
| 152 |
|
| 153 |
|
| 154 |
extern int RadioSet(), PopupList(), AppendDialogText(); |
| 155 |
|
| 156 |
/******************************************************************************* |
| 157 |
The following are translation tables. |
| 158 |
*******************************************************************************/ |
| 159 |
|
| 160 |
static char *transTable18 = "#override\n\ |
| 161 |
<Btn3Down>:ExtendedHelp()\n\ |
| 162 |
<EnterWindow>:HelpShort()\n\ |
| 163 |
<LeaveWindow>:ClearShort()\n"; |
| 164 |
|
| 165 |
/******************************************************************************* |
| 166 |
Forward declarations of functions that are defined later in this file. |
| 167 |
*******************************************************************************/ |
| 168 |
|
| 169 |
swidget create_ExtractionShell(); |
| 170 |
|
| 171 |
/******************************************************************************* |
| 172 |
The following are Action functions. |
| 173 |
*******************************************************************************/ |
| 174 |
|
| 175 |
static void action_ClearShort( UxWidget, UxEvent, UxParams, p_UxNumParams ) |
| 176 |
Widget UxWidget; |
| 177 |
XEvent *UxEvent; |
| 178 |
String *UxParams; |
| 179 |
Cardinal *p_UxNumParams; |
| 180 |
{ |
| 181 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 182 |
swidget UxThisWidget; |
| 183 |
|
| 184 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 185 |
UxSaveCtx = UxExtractionShellContext; |
| 186 |
UxExtractionShellContext = UxContext = |
| 187 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 188 |
{WidgetLeave(UxWidget);} |
| 189 |
UxExtractionShellContext = UxSaveCtx; |
| 190 |
} |
| 191 |
|
| 192 |
static void action_HelpShort( UxWidget, UxEvent, UxParams, p_UxNumParams ) |
| 193 |
Widget UxWidget; |
| 194 |
XEvent *UxEvent; |
| 195 |
String *UxParams; |
| 196 |
Cardinal *p_UxNumParams; |
| 197 |
{ |
| 198 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 199 |
swidget UxThisWidget; |
| 200 |
|
| 201 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 202 |
UxSaveCtx = UxExtractionShellContext; |
| 203 |
UxExtractionShellContext = UxContext = |
| 204 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 205 |
{WidgetEnter(UxWidget);} |
| 206 |
UxExtractionShellContext = UxSaveCtx; |
| 207 |
} |
| 208 |
|
| 209 |
static void action_ExtendedHelp( UxWidget, UxEvent, UxParams, p_UxNumParams ) |
| 210 |
Widget UxWidget; |
| 211 |
XEvent *UxEvent; |
| 212 |
String *UxParams; |
| 213 |
Cardinal *p_UxNumParams; |
| 214 |
{ |
| 215 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 216 |
swidget UxThisWidget; |
| 217 |
|
| 218 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 219 |
UxSaveCtx = UxExtractionShellContext; |
| 220 |
UxExtractionShellContext = UxContext = |
| 221 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 222 |
{ |
| 223 |
DisplayExtendedHelp(UxWidget); |
| 224 |
} |
| 225 |
UxExtractionShellContext = UxSaveCtx; |
| 226 |
} |
| 227 |
|
| 228 |
static void action_FileSelectACT( UxWidget, UxEvent, UxParams, p_UxNumParams ) |
| 229 |
Widget UxWidget; |
| 230 |
XEvent *UxEvent; |
| 231 |
String *UxParams; |
| 232 |
Cardinal *p_UxNumParams; |
| 233 |
{ |
| 234 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 235 |
swidget UxThisWidget; |
| 236 |
|
| 237 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 238 |
UxSaveCtx = UxExtractionShellContext; |
| 239 |
UxExtractionShellContext = UxContext = |
| 240 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 241 |
{ |
| 242 |
#include <xm_defs.h> |
| 243 |
#include <spec_comm.h> |
| 244 |
|
| 245 |
extern swidget FileListInterface, TextFieldSwidget; |
| 246 |
extern Widget FileListWidget; |
| 247 |
extern char DirSpecs[]; |
| 248 |
extern int ListType; |
| 249 |
|
| 250 |
int strip = 1; /* strip off */ |
| 251 |
|
| 252 |
TextFieldSwidget = UxThisWidget; |
| 253 |
|
| 254 |
if ( UxWidget == UxGetWidget(UxFindSwidget("tf_lincat")) ) { |
| 255 |
SET_LIST_TITLE("Enter line catalog"); |
| 256 |
ListType = LIST_LINCAT; |
| 257 |
} |
| 258 |
else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_guess")) ) { |
| 259 |
SET_LIST_TITLE("Enter guess table"); |
| 260 |
ListType = LIST_GUESS; |
| 261 |
} |
| 262 |
else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_flux_tbl")) ) { |
| 263 |
SET_LIST_TITLE("Enter flux table"); |
| 264 |
ListType = LIST_FLUX_TBL; |
| 265 |
} |
| 266 |
else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_extin_tbl")) ) { |
| 267 |
SET_LIST_TITLE("Enter extinction table"); |
| 268 |
ListType = LIST_EXTIN_TBL; |
| 269 |
} |
| 270 |
|
| 271 |
strcpy(DirSpecs, "*.tbl"); |
| 272 |
SetFileList(FileListWidget, strip, DirSpecs); |
| 273 |
UxPopupInterface(FileListInterface, exclusive_grab); |
| 274 |
|
| 275 |
} |
| 276 |
UxExtractionShellContext = UxSaveCtx; |
| 277 |
} |
| 278 |
|
| 279 |
/******************************************************************************* |
| 280 |
The following are callback functions. |
| 281 |
*******************************************************************************/ |
| 282 |
|
| 283 |
static void losingFocusCB_tf_ywidth3( UxWidget, UxClientData, UxCallbackArg ) |
| 284 |
Widget UxWidget; |
| 285 |
XtPointer UxClientData, UxCallbackArg; |
| 286 |
{ |
| 287 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 288 |
swidget UxThisWidget; |
| 289 |
|
| 290 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 291 |
UxSaveCtx = UxExtractionShellContext; |
| 292 |
UxExtractionShellContext = UxContext = |
| 293 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 294 |
{ |
| 295 |
|
| 296 |
} |
| 297 |
UxExtractionShellContext = UxSaveCtx; |
| 298 |
} |
| 299 |
|
| 300 |
static void losingFocusCB_tf_ystep3( UxWidget, UxClientData, UxCallbackArg ) |
| 301 |
Widget UxWidget; |
| 302 |
XtPointer UxClientData, UxCallbackArg; |
| 303 |
{ |
| 304 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 305 |
swidget UxThisWidget; |
| 306 |
|
| 307 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 308 |
UxSaveCtx = UxExtractionShellContext; |
| 309 |
UxExtractionShellContext = UxContext = |
| 310 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 311 |
{ |
| 312 |
|
| 313 |
} |
| 314 |
UxExtractionShellContext = UxSaveCtx; |
| 315 |
} |
| 316 |
|
| 317 |
static void losingFocusCB_tf_width3( UxWidget, UxClientData, UxCallbackArg ) |
| 318 |
Widget UxWidget; |
| 319 |
XtPointer UxClientData, UxCallbackArg; |
| 320 |
{ |
| 321 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 322 |
swidget UxThisWidget; |
| 323 |
|
| 324 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 325 |
UxSaveCtx = UxExtractionShellContext; |
| 326 |
UxExtractionShellContext = UxContext = |
| 327 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 328 |
{ |
| 329 |
|
| 330 |
} |
| 331 |
UxExtractionShellContext = UxSaveCtx; |
| 332 |
} |
| 333 |
|
| 334 |
static void armCB_rb_seamtd_gaus3( UxWidget, UxClientData, UxCallbackArg ) |
| 335 |
Widget UxWidget; |
| 336 |
XtPointer UxClientData, UxCallbackArg; |
| 337 |
{ |
| 338 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 339 |
swidget UxThisWidget; |
| 340 |
|
| 341 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 342 |
UxSaveCtx = UxExtractionShellContext; |
| 343 |
UxExtractionShellContext = UxContext = |
| 344 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 345 |
RadioSet(UxWidget); |
| 346 |
UxExtractionShellContext = UxSaveCtx; |
| 347 |
} |
| 348 |
|
| 349 |
static void valueChangedCB_rb_seamtd_gaus3( UxWidget, UxClientData, UxCallbackArg ) |
| 350 |
Widget UxWidget; |
| 351 |
XtPointer UxClientData, UxCallbackArg; |
| 352 |
{ |
| 353 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 354 |
swidget UxThisWidget; |
| 355 |
|
| 356 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 357 |
UxSaveCtx = UxExtractionShellContext; |
| 358 |
UxExtractionShellContext = UxContext = |
| 359 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 360 |
{ |
| 361 |
|
| 362 |
} |
| 363 |
UxExtractionShellContext = UxSaveCtx; |
| 364 |
} |
| 365 |
|
| 366 |
static void armCB_rb_seamtd_grav3( UxWidget, UxClientData, UxCallbackArg ) |
| 367 |
Widget UxWidget; |
| 368 |
XtPointer UxClientData, UxCallbackArg; |
| 369 |
{ |
| 370 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 371 |
swidget UxThisWidget; |
| 372 |
|
| 373 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 374 |
UxSaveCtx = UxExtractionShellContext; |
| 375 |
UxExtractionShellContext = UxContext = |
| 376 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 377 |
RadioSet(UxWidget); |
| 378 |
UxExtractionShellContext = UxSaveCtx; |
| 379 |
} |
| 380 |
|
| 381 |
static void valueChangedCB_rb_seamtd_grav3( UxWidget, UxClientData, UxCallbackArg ) |
| 382 |
Widget UxWidget; |
| 383 |
XtPointer UxClientData, UxCallbackArg; |
| 384 |
{ |
| 385 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 386 |
swidget UxThisWidget; |
| 387 |
|
| 388 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 389 |
UxSaveCtx = UxExtractionShellContext; |
| 390 |
UxExtractionShellContext = UxContext = |
| 391 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 392 |
{ |
| 393 |
|
| 394 |
} |
| 395 |
UxExtractionShellContext = UxSaveCtx; |
| 396 |
} |
| 397 |
|
| 398 |
static void armCB_rb_seamtd_maxi3( UxWidget, UxClientData, UxCallbackArg ) |
| 399 |
Widget UxWidget; |
| 400 |
XtPointer UxClientData, UxCallbackArg; |
| 401 |
{ |
| 402 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 403 |
swidget UxThisWidget; |
| 404 |
|
| 405 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 406 |
UxSaveCtx = UxExtractionShellContext; |
| 407 |
UxExtractionShellContext = UxContext = |
| 408 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 409 |
RadioSet(UxWidget); |
| 410 |
UxExtractionShellContext = UxSaveCtx; |
| 411 |
} |
| 412 |
|
| 413 |
static void valueChangedCB_rb_seamtd_maxi3( UxWidget, UxClientData, UxCallbackArg ) |
| 414 |
Widget UxWidget; |
| 415 |
XtPointer UxClientData, UxCallbackArg; |
| 416 |
{ |
| 417 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 418 |
swidget UxThisWidget; |
| 419 |
|
| 420 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 421 |
UxSaveCtx = UxExtractionShellContext; |
| 422 |
UxExtractionShellContext = UxContext = |
| 423 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 424 |
{ |
| 425 |
|
| 426 |
} |
| 427 |
UxExtractionShellContext = UxSaveCtx; |
| 428 |
} |
| 429 |
|
| 430 |
static void losingFocusCB_tf_thres5( UxWidget, UxClientData, UxCallbackArg ) |
| 431 |
Widget UxWidget; |
| 432 |
XtPointer UxClientData, UxCallbackArg; |
| 433 |
{ |
| 434 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 435 |
swidget UxThisWidget; |
| 436 |
|
| 437 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 438 |
UxSaveCtx = UxExtractionShellContext; |
| 439 |
UxExtractionShellContext = UxContext = |
| 440 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 441 |
{ |
| 442 |
|
| 443 |
} |
| 444 |
UxExtractionShellContext = UxSaveCtx; |
| 445 |
} |
| 446 |
|
| 447 |
static void activateCB_pb_search_search7( UxWidget, UxClientData, UxCallbackArg ) |
| 448 |
Widget UxWidget; |
| 449 |
XtPointer UxClientData, UxCallbackArg; |
| 450 |
{ |
| 451 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 452 |
swidget UxThisWidget; |
| 453 |
|
| 454 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 455 |
UxSaveCtx = UxExtractionShellContext; |
| 456 |
UxExtractionShellContext = UxContext = |
| 457 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 458 |
{ |
| 459 |
MidasCommand(UxWidget); |
| 460 |
|
| 461 |
} |
| 462 |
UxExtractionShellContext = UxSaveCtx; |
| 463 |
} |
| 464 |
|
| 465 |
static void activateCB_pushButton5( UxWidget, UxClientData, UxCallbackArg ) |
| 466 |
Widget UxWidget; |
| 467 |
XtPointer UxClientData, UxCallbackArg; |
| 468 |
{ |
| 469 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 470 |
swidget UxThisWidget; |
| 471 |
|
| 472 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 473 |
UxSaveCtx = UxExtractionShellContext; |
| 474 |
UxExtractionShellContext = UxContext = |
| 475 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 476 |
{ |
| 477 |
UxPopdownInterface(UxFindSwidget("ExtractionShell")); |
| 478 |
} |
| 479 |
UxExtractionShellContext = UxSaveCtx; |
| 480 |
} |
| 481 |
|
| 482 |
static void activateCB_pb_search_plot13( UxWidget, UxClientData, UxCallbackArg ) |
| 483 |
Widget UxWidget; |
| 484 |
XtPointer UxClientData, UxCallbackArg; |
| 485 |
{ |
| 486 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 487 |
swidget UxThisWidget; |
| 488 |
|
| 489 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 490 |
UxSaveCtx = UxExtractionShellContext; |
| 491 |
UxExtractionShellContext = UxContext = |
| 492 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 493 |
{ |
| 494 |
MidasCommand(UxWidget); |
| 495 |
|
| 496 |
} |
| 497 |
UxExtractionShellContext = UxSaveCtx; |
| 498 |
} |
| 499 |
|
| 500 |
static void activateCB_pb_search_plot18( UxWidget, UxClientData, UxCallbackArg ) |
| 501 |
Widget UxWidget; |
| 502 |
XtPointer UxClientData, UxCallbackArg; |
| 503 |
{ |
| 504 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 505 |
swidget UxThisWidget; |
| 506 |
|
| 507 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 508 |
UxSaveCtx = UxExtractionShellContext; |
| 509 |
UxExtractionShellContext = UxContext = |
| 510 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 511 |
{ |
| 512 |
GetExtendedHelp(UxWidget); |
| 513 |
} |
| 514 |
UxExtractionShellContext = UxSaveCtx; |
| 515 |
} |
| 516 |
|
| 517 |
static void losingFocusCB_tf_thres6( UxWidget, UxClientData, UxCallbackArg ) |
| 518 |
Widget UxWidget; |
| 519 |
XtPointer UxClientData, UxCallbackArg; |
| 520 |
{ |
| 521 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 522 |
swidget UxThisWidget; |
| 523 |
|
| 524 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 525 |
UxSaveCtx = UxExtractionShellContext; |
| 526 |
UxExtractionShellContext = UxContext = |
| 527 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 528 |
{ |
| 529 |
|
| 530 |
} |
| 531 |
UxExtractionShellContext = UxSaveCtx; |
| 532 |
} |
| 533 |
|
| 534 |
static void activateCB_pb_main_search19( UxWidget, UxClientData, UxCallbackArg ) |
| 535 |
Widget UxWidget; |
| 536 |
XtPointer UxClientData, UxCallbackArg; |
| 537 |
{ |
| 538 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 539 |
swidget UxThisWidget; |
| 540 |
|
| 541 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 542 |
UxSaveCtx = UxExtractionShellContext; |
| 543 |
UxExtractionShellContext = UxContext = |
| 544 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 545 |
{ |
| 546 |
SelectList(UxWidget); |
| 547 |
|
| 548 |
} |
| 549 |
UxExtractionShellContext = UxSaveCtx; |
| 550 |
} |
| 551 |
|
| 552 |
static void losingFocusCB_tf_thres7( UxWidget, UxClientData, UxCallbackArg ) |
| 553 |
Widget UxWidget; |
| 554 |
XtPointer UxClientData, UxCallbackArg; |
| 555 |
{ |
| 556 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 557 |
swidget UxThisWidget; |
| 558 |
|
| 559 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 560 |
UxSaveCtx = UxExtractionShellContext; |
| 561 |
UxExtractionShellContext = UxContext = |
| 562 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 563 |
{ |
| 564 |
|
| 565 |
} |
| 566 |
UxExtractionShellContext = UxSaveCtx; |
| 567 |
} |
| 568 |
|
| 569 |
static void losingFocusCB_tf_ystep4( UxWidget, UxClientData, UxCallbackArg ) |
| 570 |
Widget UxWidget; |
| 571 |
XtPointer UxClientData, UxCallbackArg; |
| 572 |
{ |
| 573 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 574 |
swidget UxThisWidget; |
| 575 |
|
| 576 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 577 |
UxSaveCtx = UxExtractionShellContext; |
| 578 |
UxExtractionShellContext = UxContext = |
| 579 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 580 |
{ |
| 581 |
|
| 582 |
} |
| 583 |
UxExtractionShellContext = UxSaveCtx; |
| 584 |
} |
| 585 |
|
| 586 |
static void activateCB_pb_main_search20( UxWidget, UxClientData, UxCallbackArg ) |
| 587 |
Widget UxWidget; |
| 588 |
XtPointer UxClientData, UxCallbackArg; |
| 589 |
{ |
| 590 |
_UxCExtractionShell *UxSaveCtx, *UxContext; |
| 591 |
swidget UxThisWidget; |
| 592 |
|
| 593 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 594 |
UxSaveCtx = UxExtractionShellContext; |
| 595 |
UxExtractionShellContext = UxContext = |
| 596 |
(_UxCExtractionShell *) UxGetContext( UxThisWidget ); |
| 597 |
{ |
| 598 |
SelectList(UxWidget); |
| 599 |
|
| 600 |
} |
| 601 |
UxExtractionShellContext = UxSaveCtx; |
| 602 |
} |
| 603 |
|
| 604 |
/******************************************************************************* |
| 605 |
The 'init_' function sets the private properties for all the |
| 606 |
swidgets to the values specified in the Property Table. |
| 607 |
Some properties need to be set after the X widgets have been |
| 608 |
created and the setting of these properties is done in the |
| 609 |
'build_' function after the UxCreateWidget call. |
| 610 |
*******************************************************************************/ |
| 611 |
|
| 612 |
static void _Uxinit_ExtractionShell() |
| 613 |
{ |
| 614 |
UxPutTitle( ExtractionShell, "XEchelle: Extraction" ); |
| 615 |
UxPutGeometry( ExtractionShell, "+10+60" ); |
| 616 |
UxPutHeight( ExtractionShell, 410 ); |
| 617 |
UxPutWidth( ExtractionShell, 510 ); |
| 618 |
UxPutY( ExtractionShell, 506 ); |
| 619 |
UxPutX( ExtractionShell, 520 ); |
| 620 |
|
| 621 |
UxPutBackground( form31, WindowBackground ); |
| 622 |
UxPutHeight( form31, 344 ); |
| 623 |
UxPutWidth( form31, 500 ); |
| 624 |
UxPutY( form31, 2 ); |
| 625 |
UxPutX( form31, 4 ); |
| 626 |
UxPutUnitType( form31, "pixels" ); |
| 627 |
UxPutResizePolicy( form31, "resize_none" ); |
| 628 |
|
| 629 |
UxPutForeground( label88, TextForeground ); |
| 630 |
UxPutAlignment( label88, "alignment_beginning" ); |
| 631 |
UxPutLabelString( label88, "Read-Out Noise:" ); |
| 632 |
UxPutFontList( label88, TextFont ); |
| 633 |
UxPutBackground( label88, LabelBackground ); |
| 634 |
UxPutHeight( label88, 30 ); |
| 635 |
UxPutWidth( label88, 170 ); |
| 636 |
UxPutY( label88, 168 ); |
| 637 |
UxPutX( label88, 22 ); |
| 638 |
|
| 639 |
UxPutForeground( tf_ywidth3, TextForeground ); |
| 640 |
UxPutHighlightOnEnter( tf_ywidth3, "true" ); |
| 641 |
UxPutFontList( tf_ywidth3, TextFont ); |
| 642 |
UxPutBackground( tf_ywidth3, TextBackground ); |
| 643 |
UxPutHeight( tf_ywidth3, 34 ); |
| 644 |
UxPutWidth( tf_ywidth3, 82 ); |
| 645 |
UxPutY( tf_ywidth3, 166 ); |
| 646 |
UxPutX( tf_ywidth3, 212 ); |
| 647 |
|
| 648 |
UxPutForeground( label89, TextForeground ); |
| 649 |
UxPutAlignment( label89, "alignment_beginning" ); |
| 650 |
UxPutLabelString( label89, "Gain:" ); |
| 651 |
UxPutFontList( label89, TextFont ); |
| 652 |
UxPutBackground( label89, LabelBackground ); |
| 653 |
UxPutHeight( label89, 30 ); |
| 654 |
UxPutWidth( label89, 170 ); |
| 655 |
UxPutY( label89, 204 ); |
| 656 |
UxPutX( label89, 22 ); |
| 657 |
|
| 658 |
UxPutForeground( label90, TextForeground ); |
| 659 |
UxPutAlignment( label90, "alignment_beginning" ); |
| 660 |
UxPutLabelString( label90, "Slit:" ); |
| 661 |
UxPutFontList( label90, TextFont ); |
| 662 |
UxPutBackground( label90, LabelBackground ); |
| 663 |
UxPutHeight( label90, 30 ); |
| 664 |
UxPutWidth( label90, 170 ); |
| 665 |
UxPutY( label90, 92 ); |
| 666 |
UxPutX( label90, 22 ); |
| 667 |
|
| 668 |
UxPutForeground( tf_ystep3, TextForeground ); |
| 669 |
UxPutHighlightOnEnter( tf_ystep3, "true" ); |
| 670 |
UxPutFontList( tf_ystep3, TextFont ); |
| 671 |
UxPutBackground( tf_ystep3, TextBackground ); |
| 672 |
UxPutHeight( tf_ystep3, 34 ); |
| 673 |
UxPutWidth( tf_ystep3, 82 ); |
| 674 |
UxPutY( tf_ystep3, 200 ); |
| 675 |
UxPutX( tf_ystep3, 212 ); |
| 676 |
|
| 677 |
UxPutForeground( tf_width3, TextForeground ); |
| 678 |
UxPutHighlightOnEnter( tf_width3, "true" ); |
| 679 |
UxPutFontList( tf_width3, TextFont ); |
| 680 |
UxPutBackground( tf_width3, TextBackground ); |
| 681 |
UxPutHeight( tf_width3, 34 ); |
| 682 |
UxPutWidth( tf_width3, 82 ); |
| 683 |
UxPutY( tf_width3, 128 ); |
| 684 |
UxPutX( tf_width3, 212 ); |
| 685 |
|
| 686 |
UxPutIsAligned( rowColumn27, "true" ); |
| 687 |
UxPutAdjustMargin( rowColumn27, "true" ); |
| 688 |
UxPutAdjustLast( rowColumn27, "false" ); |
| 689 |
UxPutEntryAlignment( rowColumn27, "alignment_beginning" ); |
| 690 |
UxPutBorderWidth( rowColumn27, 0 ); |
| 691 |
UxPutShadowThickness( rowColumn27, 0 ); |
| 692 |
UxPutLabelString( rowColumn27, "" ); |
| 693 |
UxPutEntryBorder( rowColumn27, 0 ); |
| 694 |
UxPutBackground( rowColumn27, WindowBackground ); |
| 695 |
UxPutRadioBehavior( rowColumn27, "true" ); |
| 696 |
UxPutHeight( rowColumn27, 96 ); |
| 697 |
UxPutWidth( rowColumn27, 106 ); |
| 698 |
UxPutY( rowColumn27, 116 ); |
| 699 |
UxPutX( rowColumn27, 336 ); |
| 700 |
|
| 701 |
UxPutTranslations( rb_seamtd_gaus3, transTable18 ); |
| 702 |
UxPutForeground( rb_seamtd_gaus3, TextForeground ); |
| 703 |
UxPutIndicatorSize( rb_seamtd_gaus3, 16 ); |
| 704 |
UxPutHighlightOnEnter( rb_seamtd_gaus3, "true" ); |
| 705 |
UxPutSelectColor( rb_seamtd_gaus3, SelectColor ); |
| 706 |
UxPutSet( rb_seamtd_gaus3, "true" ); |
| 707 |
UxPutLabelString( rb_seamtd_gaus3, "Average" ); |
| 708 |
UxPutFontList( rb_seamtd_gaus3, TextFont ); |
| 709 |
UxPutBackground( rb_seamtd_gaus3, WindowBackground ); |
| 710 |
UxPutHeight( rb_seamtd_gaus3, 30 ); |
| 711 |
UxPutWidth( rb_seamtd_gaus3, 148 ); |
| 712 |
UxPutY( rb_seamtd_gaus3, 12 ); |
| 713 |
UxPutX( rb_seamtd_gaus3, 12 ); |
| 714 |
|
| 715 |
UxPutTranslations( rb_seamtd_grav3, transTable18 ); |
| 716 |
UxPutForeground( rb_seamtd_grav3, TextForeground ); |
| 717 |
UxPutIndicatorSize( rb_seamtd_grav3, 16 ); |
| 718 |
UxPutHighlightOnEnter( rb_seamtd_grav3, "true" ); |
| 719 |
UxPutSelectColor( rb_seamtd_grav3, SelectColor ); |
| 720 |
UxPutLabelString( rb_seamtd_grav3, "Linear" ); |
| 721 |
UxPutFontList( rb_seamtd_grav3, TextFont ); |
| 722 |
UxPutBackground( rb_seamtd_grav3, WindowBackground ); |
| 723 |
UxPutHeight( rb_seamtd_grav3, 30 ); |
| 724 |
UxPutWidth( rb_seamtd_grav3, 148 ); |
| 725 |
UxPutY( rb_seamtd_grav3, 85 ); |
| 726 |
UxPutX( rb_seamtd_grav3, 5 ); |
| 727 |
|
| 728 |
UxPutTranslations( rb_seamtd_maxi3, transTable18 ); |
| 729 |
UxPutForeground( rb_seamtd_maxi3, TextForeground ); |
| 730 |
UxPutIndicatorSize( rb_seamtd_maxi3, 16 ); |
| 731 |
UxPutHighlightOnEnter( rb_seamtd_maxi3, "true" ); |
| 732 |
UxPutSelectColor( rb_seamtd_maxi3, SelectColor ); |
| 733 |
UxPutLabelString( rb_seamtd_maxi3, "Optimal" ); |
| 734 |
UxPutFontList( rb_seamtd_maxi3, TextFont ); |
| 735 |
UxPutBackground( rb_seamtd_maxi3, WindowBackground ); |
| 736 |
UxPutHeight( rb_seamtd_maxi3, 24 ); |
| 737 |
UxPutWidth( rb_seamtd_maxi3, 96 ); |
| 738 |
UxPutY( rb_seamtd_maxi3, 66 ); |
| 739 |
UxPutX( rb_seamtd_maxi3, 4 ); |
| 740 |
|
| 741 |
UxPutForeground( label91, TextForeground ); |
| 742 |
UxPutAlignment( label91, "alignment_center" ); |
| 743 |
UxPutLabelString( label91, "Method" ); |
| 744 |
UxPutFontList( label91, TextFont ); |
| 745 |
UxPutBackground( label91, LabelBackground ); |
| 746 |
UxPutHeight( label91, 30 ); |
| 747 |
UxPutWidth( label91, 106 ); |
| 748 |
UxPutY( label91, 86 ); |
| 749 |
UxPutX( label91, 340 ); |
| 750 |
|
| 751 |
UxPutOrientation( separatorGadget1, "vertical" ); |
| 752 |
UxPutHeight( separatorGadget1, 120 ); |
| 753 |
UxPutWidth( separatorGadget1, 12 ); |
| 754 |
UxPutY( separatorGadget1, 100 ); |
| 755 |
UxPutX( separatorGadget1, 454 ); |
| 756 |
|
| 757 |
UxPutOrientation( separatorGadget2, "vertical" ); |
| 758 |
UxPutHeight( separatorGadget2, 120 ); |
| 759 |
UxPutWidth( separatorGadget2, 12 ); |
| 760 |
UxPutY( separatorGadget2, 100 ); |
| 761 |
UxPutX( separatorGadget2, 318 ); |
| 762 |
|
| 763 |
UxPutHeight( separatorGadget3, 10 ); |
| 764 |
UxPutWidth( separatorGadget3, 16 ); |
| 765 |
UxPutY( separatorGadget3, 98 ); |
| 766 |
UxPutX( separatorGadget3, 322 ); |
| 767 |
|
| 768 |
UxPutHeight( separatorGadget4, 10 ); |
| 769 |
UxPutWidth( separatorGadget4, 14 ); |
| 770 |
UxPutY( separatorGadget4, 98 ); |
| 771 |
UxPutX( separatorGadget4, 446 ); |
| 772 |
|
| 773 |
UxPutForeground( tf_thres5, TextForeground ); |
| 774 |
UxPutHighlightOnEnter( tf_thres5, "true" ); |
| 775 |
UxPutFontList( tf_thres5, TextFont ); |
| 776 |
UxPutBackground( tf_thres5, TextBackground ); |
| 777 |
UxPutHeight( tf_thres5, 34 ); |
| 778 |
UxPutWidth( tf_thres5, 82 ); |
| 779 |
UxPutY( tf_thres5, 90 ); |
| 780 |
UxPutX( tf_thres5, 212 ); |
| 781 |
|
| 782 |
UxPutBackground( form32, ButtonBackground ); |
| 783 |
UxPutHeight( form32, 40 ); |
| 784 |
UxPutWidth( form32, 490 ); |
| 785 |
UxPutY( form32, 360 ); |
| 786 |
UxPutX( form32, 14 ); |
| 787 |
UxPutResizePolicy( form32, "resize_none" ); |
| 788 |
|
| 789 |
UxPutLabelString( pb_search_search7, "Extract" ); |
| 790 |
UxPutForeground( pb_search_search7, ApplyForeground ); |
| 791 |
UxPutFontList( pb_search_search7, BoldTextFont ); |
| 792 |
UxPutBackground( pb_search_search7, ButtonBackground ); |
| 793 |
UxPutHeight( pb_search_search7, 30 ); |
| 794 |
UxPutWidth( pb_search_search7, 86 ); |
| 795 |
UxPutY( pb_search_search7, 4 ); |
| 796 |
UxPutX( pb_search_search7, 8 ); |
| 797 |
|
| 798 |
UxPutLabelString( pushButton5, "Cancel" ); |
| 799 |
UxPutForeground( pushButton5, CancelForeground ); |
| 800 |
UxPutFontList( pushButton5, BoldTextFont ); |
| 801 |
UxPutBackground( pushButton5, ButtonBackground ); |
| 802 |
UxPutHeight( pushButton5, 30 ); |
| 803 |
UxPutWidth( pushButton5, 86 ); |
| 804 |
UxPutY( pushButton5, 6 ); |
| 805 |
UxPutX( pushButton5, 392 ); |
| 806 |
|
| 807 |
UxPutLabelString( pb_search_plot13, "Plot Orders" ); |
| 808 |
UxPutForeground( pb_search_plot13, ButtonForeground ); |
| 809 |
UxPutFontList( pb_search_plot13, BoldTextFont ); |
| 810 |
UxPutBackground( pb_search_plot13, ButtonBackground ); |
| 811 |
UxPutHeight( pb_search_plot13, 30 ); |
| 812 |
UxPutWidth( pb_search_plot13, 100 ); |
| 813 |
UxPutY( pb_search_plot13, 4 ); |
| 814 |
UxPutX( pb_search_plot13, 102 ); |
| 815 |
|
| 816 |
UxPutLabelString( pb_search_plot18, "Help..." ); |
| 817 |
UxPutForeground( pb_search_plot18, ButtonForeground ); |
| 818 |
UxPutFontList( pb_search_plot18, BoldTextFont ); |
| 819 |
UxPutBackground( pb_search_plot18, ButtonBackground ); |
| 820 |
UxPutHeight( pb_search_plot18, 30 ); |
| 821 |
UxPutWidth( pb_search_plot18, 86 ); |
| 822 |
UxPutY( pb_search_plot18, 4 ); |
| 823 |
UxPutX( pb_search_plot18, 304 ); |
| 824 |
|
| 825 |
UxPutFontList( shelp_search5, TextFont ); |
| 826 |
UxPutEditable( shelp_search5, "false" ); |
| 827 |
UxPutCursorPositionVisible( shelp_search5, "false" ); |
| 828 |
UxPutBackground( shelp_search5, SHelpBackground ); |
| 829 |
UxPutHeight( shelp_search5, 50 ); |
| 830 |
UxPutWidth( shelp_search5, 484 ); |
| 831 |
UxPutY( shelp_search5, 300 ); |
| 832 |
UxPutX( shelp_search5, 16 ); |
| 833 |
|
| 834 |
UxPutBackground( separator26, WindowBackground ); |
| 835 |
UxPutHeight( separator26, 10 ); |
| 836 |
UxPutWidth( separator26, 492 ); |
| 837 |
UxPutY( separator26, 290 ); |
| 838 |
UxPutX( separator26, 14 ); |
| 839 |
|
| 840 |
UxPutBackground( separator27, WindowBackground ); |
| 841 |
UxPutHeight( separator27, 10 ); |
| 842 |
UxPutWidth( separator27, 492 ); |
| 843 |
UxPutY( separator27, 348 ); |
| 844 |
UxPutX( separator27, 10 ); |
| 845 |
|
| 846 |
UxPutHeight( separatorGadget5, 10 ); |
| 847 |
UxPutWidth( separatorGadget5, 138 ); |
| 848 |
UxPutY( separatorGadget5, 214 ); |
| 849 |
UxPutX( separatorGadget5, 322 ); |
| 850 |
|
| 851 |
UxPutForeground( label92, TextForeground ); |
| 852 |
UxPutAlignment( label92, "alignment_beginning" ); |
| 853 |
UxPutLabelString( label92, "Offset:" ); |
| 854 |
UxPutFontList( label92, TextFont ); |
| 855 |
UxPutBackground( label92, LabelBackground ); |
| 856 |
UxPutHeight( label92, 30 ); |
| 857 |
UxPutWidth( label92, 170 ); |
| 858 |
UxPutY( label92, 128 ); |
| 859 |
UxPutX( label92, 22 ); |
| 860 |
|
| 861 |
UxPutForeground( tf_thres6, TextForeground ); |
| 862 |
UxPutHighlightOnEnter( tf_thres6, "true" ); |
| 863 |
UxPutFontList( tf_thres6, TextFont ); |
| 864 |
UxPutBackground( tf_thres6, TextBackground ); |
| 865 |
UxPutHeight( tf_thres6, 34 ); |
| 866 |
UxPutWidth( tf_thres6, 212 ); |
| 867 |
UxPutY( tf_thres6, 12 ); |
| 868 |
UxPutX( tf_thres6, 208 ); |
| 869 |
|
| 870 |
UxPutForeground( label93, TextForeground ); |
| 871 |
UxPutAlignment( label93, "alignment_beginning" ); |
| 872 |
UxPutLabelString( label93, "Input Frame:" ); |
| 873 |
UxPutFontList( label93, TextFont ); |
| 874 |
UxPutBackground( label93, LabelBackground ); |
| 875 |
UxPutHeight( label93, 30 ); |
| 876 |
UxPutWidth( label93, 170 ); |
| 877 |
UxPutY( label93, 14 ); |
| 878 |
UxPutX( label93, 20 ); |
| 879 |
|
| 880 |
UxPutWidth( pb_main_search19, 46 ); |
| 881 |
UxPutRecomputeSize( pb_main_search19, "true" ); |
| 882 |
UxPutLabelString( pb_main_search19, "..." ); |
| 883 |
UxPutForeground( pb_main_search19, ButtonForeground ); |
| 884 |
UxPutFontList( pb_main_search19, BoldTextFont ); |
| 885 |
UxPutBackground( pb_main_search19, ButtonBackground ); |
| 886 |
UxPutHeight( pb_main_search19, 28 ); |
| 887 |
UxPutY( pb_main_search19, 14 ); |
| 888 |
UxPutX( pb_main_search19, 428 ); |
| 889 |
|
| 890 |
UxPutForeground( label94, TextForeground ); |
| 891 |
UxPutAlignment( label94, "alignment_beginning" ); |
| 892 |
UxPutLabelString( label94, "Output Frame:" ); |
| 893 |
UxPutFontList( label94, TextFont ); |
| 894 |
UxPutBackground( label94, LabelBackground ); |
| 895 |
UxPutHeight( label94, 30 ); |
| 896 |
UxPutWidth( label94, 170 ); |
| 897 |
UxPutY( label94, 56 ); |
| 898 |
UxPutX( label94, 20 ); |
| 899 |
|
| 900 |
UxPutForeground( tf_thres7, TextForeground ); |
| 901 |
UxPutHighlightOnEnter( tf_thres7, "true" ); |
| 902 |
UxPutFontList( tf_thres7, TextFont ); |
| 903 |
UxPutBackground( tf_thres7, TextBackground ); |
| 904 |
UxPutHeight( tf_thres7, 34 ); |
| 905 |
UxPutWidth( tf_thres7, 212 ); |
| 906 |
UxPutY( tf_thres7, 50 ); |
| 907 |
UxPutX( tf_thres7, 210 ); |
| 908 |
|
| 909 |
UxPutForeground( label95, TextForeground ); |
| 910 |
UxPutAlignment( label95, "alignment_beginning" ); |
| 911 |
UxPutLabelString( label95, "Threshold:" ); |
| 912 |
UxPutFontList( label95, TextFont ); |
| 913 |
UxPutBackground( label95, LabelBackground ); |
| 914 |
UxPutHeight( label95, 30 ); |
| 915 |
UxPutWidth( label95, 170 ); |
| 916 |
UxPutY( label95, 242 ); |
| 917 |
UxPutX( label95, 22 ); |
| 918 |
|
| 919 |
UxPutForeground( tf_ystep4, TextForeground ); |
| 920 |
UxPutHighlightOnEnter( tf_ystep4, "true" ); |
| 921 |
UxPutFontList( tf_ystep4, TextFont ); |
| 922 |
UxPutBackground( tf_ystep4, TextBackground ); |
| 923 |
UxPutHeight( tf_ystep4, 34 ); |
| 924 |
UxPutWidth( tf_ystep4, 82 ); |
| 925 |
UxPutY( tf_ystep4, 240 ); |
| 926 |
UxPutX( tf_ystep4, 212 ); |
| 927 |
|
| 928 |
UxPutWidth( pb_main_search20, 46 ); |
| 929 |
UxPutRecomputeSize( pb_main_search20, "true" ); |
| 930 |
UxPutLabelString( pb_main_search20, "..." ); |
| 931 |
UxPutForeground( pb_main_search20, ButtonForeground ); |
| 932 |
UxPutFontList( pb_main_search20, BoldTextFont ); |
| 933 |
UxPutBackground( pb_main_search20, ButtonBackground ); |
| 934 |
UxPutHeight( pb_main_search20, 28 ); |
| 935 |
UxPutY( pb_main_search20, 52 ); |
| 936 |
UxPutX( pb_main_search20, 426 ); |
| 937 |
|
| 938 |
} |
| 939 |
|
| 940 |
/******************************************************************************* |
| 941 |
The 'build_' function creates all the swidgets and X widgets, |
| 942 |
and sets their properties to the values specified in the |
| 943 |
Property Editor. |
| 944 |
*******************************************************************************/ |
| 945 |
|
| 946 |
static swidget _Uxbuild_ExtractionShell() |
| 947 |
{ |
| 948 |
/* Create the swidgets */ |
| 949 |
|
| 950 |
ExtractionShell = UxCreateTransientShell( "ExtractionShell", NO_PARENT ); |
| 951 |
UxPutContext( ExtractionShell, UxExtractionShellContext ); |
| 952 |
|
| 953 |
form31 = UxCreateForm( "form31", ExtractionShell ); |
| 954 |
label88 = UxCreateLabel( "label88", form31 ); |
| 955 |
tf_ywidth3 = UxCreateTextField( "tf_ywidth3", form31 ); |
| 956 |
label89 = UxCreateLabel( "label89", form31 ); |
| 957 |
label90 = UxCreateLabel( "label90", form31 ); |
| 958 |
tf_ystep3 = UxCreateTextField( "tf_ystep3", form31 ); |
| 959 |
tf_width3 = UxCreateTextField( "tf_width3", form31 ); |
| 960 |
rowColumn27 = UxCreateRowColumn( "rowColumn27", form31 ); |
| 961 |
rb_seamtd_gaus3 = UxCreateToggleButton( "rb_seamtd_gaus3", rowColumn27 ); |
| 962 |
rb_seamtd_grav3 = UxCreateToggleButton( "rb_seamtd_grav3", rowColumn27 ); |
| 963 |
rb_seamtd_maxi3 = UxCreateToggleButton( "rb_seamtd_maxi3", rowColumn27 ); |
| 964 |
label91 = UxCreateLabel( "label91", form31 ); |
| 965 |
separatorGadget1 = UxCreateSeparatorGadget( "separatorGadget1", form31 ); |
| 966 |
separatorGadget2 = UxCreateSeparatorGadget( "separatorGadget2", form31 ); |
| 967 |
separatorGadget3 = UxCreateSeparatorGadget( "separatorGadget3", form31 ); |
| 968 |
separatorGadget4 = UxCreateSeparatorGadget( "separatorGadget4", form31 ); |
| 969 |
tf_thres5 = UxCreateTextField( "tf_thres5", form31 ); |
| 970 |
form32 = UxCreateForm( "form32", form31 ); |
| 971 |
pb_search_search7 = UxCreatePushButton( "pb_search_search7", form32 ); |
| 972 |
pushButton5 = UxCreatePushButton( "pushButton5", form32 ); |
| 973 |
pb_search_plot13 = UxCreatePushButton( "pb_search_plot13", form32 ); |
| 974 |
pb_search_plot18 = UxCreatePushButton( "pb_search_plot18", form32 ); |
| 975 |
shelp_search5 = UxCreateText( "shelp_search5", form31 ); |
| 976 |
separator26 = UxCreateSeparator( "separator26", form31 ); |
| 977 |
separator27 = UxCreateSeparator( "separator27", form31 ); |
| 978 |
separatorGadget5 = UxCreateSeparatorGadget( "separatorGadget5", form31 ); |
| 979 |
label92 = UxCreateLabel( "label92", form31 ); |
| 980 |
tf_thres6 = UxCreateTextField( "tf_thres6", form31 ); |
| 981 |
label93 = UxCreateLabel( "label93", form31 ); |
| 982 |
pb_main_search19 = UxCreatePushButton( "pb_main_search19", form31 ); |
| 983 |
label94 = UxCreateLabel( "label94", form31 ); |
| 984 |
tf_thres7 = UxCreateTextField( "tf_thres7", form31 ); |
| 985 |
label95 = UxCreateLabel( "label95", form31 ); |
| 986 |
tf_ystep4 = UxCreateTextField( "tf_ystep4", form31 ); |
| 987 |
pb_main_search20 = UxCreatePushButton( "pb_main_search20", form31 ); |
| 988 |
|
| 989 |
_Uxinit_ExtractionShell(); |
| 990 |
|
| 991 |
/* Create the X widgets */ |
| 992 |
|
| 993 |
UxCreateWidget( ExtractionShell ); |
| 994 |
UxCreateWidget( form31 ); |
| 995 |
UxCreateWidget( label88 ); |
| 996 |
UxCreateWidget( tf_ywidth3 ); |
| 997 |
UxCreateWidget( label89 ); |
| 998 |
UxCreateWidget( label90 ); |
| 999 |
UxCreateWidget( tf_ystep3 ); |
| 1000 |
UxCreateWidget( tf_width3 ); |
| 1001 |
UxCreateWidget( rowColumn27 ); |
| 1002 |
UxCreateWidget( rb_seamtd_gaus3 ); |
| 1003 |
UxCreateWidget( rb_seamtd_grav3 ); |
| 1004 |
UxCreateWidget( rb_seamtd_maxi3 ); |
| 1005 |
UxCreateWidget( label91 ); |
| 1006 |
UxCreateWidget( separatorGadget1 ); |
| 1007 |
UxCreateWidget( separatorGadget2 ); |
| 1008 |
UxCreateWidget( separatorGadget3 ); |
| 1009 |
UxCreateWidget( separatorGadget4 ); |
| 1010 |
UxCreateWidget( tf_thres5 ); |
| 1011 |
UxCreateWidget( form32 ); |
| 1012 |
UxCreateWidget( pb_search_search7 ); |
| 1013 |
UxCreateWidget( pushButton5 ); |
| 1014 |
UxCreateWidget( pb_search_plot13 ); |
| 1015 |
UxCreateWidget( pb_search_plot18 ); |
| 1016 |
UxCreateWidget( shelp_search5 ); |
| 1017 |
UxCreateWidget( separator26 ); |
| 1018 |
UxCreateWidget( separator27 ); |
| 1019 |
UxCreateWidget( separatorGadget5 ); |
| 1020 |
UxCreateWidget( label92 ); |
| 1021 |
UxCreateWidget( tf_thres6 ); |
| 1022 |
UxCreateWidget( label93 ); |
| 1023 |
UxCreateWidget( pb_main_search19 ); |
| 1024 |
UxCreateWidget( label94 ); |
| 1025 |
UxCreateWidget( tf_thres7 ); |
| 1026 |
UxCreateWidget( label95 ); |
| 1027 |
UxCreateWidget( tf_ystep4 ); |
| 1028 |
UxCreateWidget( pb_main_search20 ); |
| 1029 |
|
| 1030 |
UxAddCallback( tf_ywidth3, XmNlosingFocusCallback, |
| 1031 |
losingFocusCB_tf_ywidth3, |
| 1032 |
(XtPointer) UxExtractionShellContext ); |
| 1033 |
|
| 1034 |
UxAddCallback( tf_ystep3, XmNlosingFocusCallback, |
| 1035 |
losingFocusCB_tf_ystep3, |
| 1036 |
(XtPointer) UxExtractionShellContext ); |
| 1037 |
|
| 1038 |
UxAddCallback( tf_width3, XmNlosingFocusCallback, |
| 1039 |
losingFocusCB_tf_width3, |
| 1040 |
(XtPointer) UxExtractionShellContext ); |
| 1041 |
|
| 1042 |
UxAddCallback( rb_seamtd_gaus3, XmNarmCallback, |
| 1043 |
armCB_rb_seamtd_gaus3, |
| 1044 |
(XtPointer) UxExtractionShellContext ); |
| 1045 |
UxAddCallback( rb_seamtd_gaus3, XmNvalueChangedCallback, |
| 1046 |
valueChangedCB_rb_seamtd_gaus3, |
| 1047 |
(XtPointer) UxExtractionShellContext ); |
| 1048 |
|
| 1049 |
UxAddCallback( rb_seamtd_grav3, XmNarmCallback, |
| 1050 |
armCB_rb_seamtd_grav3, |
| 1051 |
(XtPointer) UxExtractionShellContext ); |
| 1052 |
UxAddCallback( rb_seamtd_grav3, XmNvalueChangedCallback, |
| 1053 |
valueChangedCB_rb_seamtd_grav3, |
| 1054 |
(XtPointer) UxExtractionShellContext ); |
| 1055 |
|
| 1056 |
UxAddCallback( rb_seamtd_maxi3, XmNarmCallback, |
| 1057 |
armCB_rb_seamtd_maxi3, |
| 1058 |
(XtPointer) UxExtractionShellContext ); |
| 1059 |
UxAddCallback( rb_seamtd_maxi3, XmNvalueChangedCallback, |
| 1060 |
valueChangedCB_rb_seamtd_maxi3, |
| 1061 |
(XtPointer) UxExtractionShellContext ); |
| 1062 |
|
| 1063 |
UxAddCallback( tf_thres5, XmNlosingFocusCallback, |
| 1064 |
losingFocusCB_tf_thres5, |
| 1065 |
(XtPointer) UxExtractionShellContext ); |
| 1066 |
|
| 1067 |
UxAddCallback( pb_search_search7, XmNactivateCallback, |
| 1068 |
activateCB_pb_search_search7, |
| 1069 |
(XtPointer) UxExtractionShellContext ); |
| 1070 |
|
| 1071 |
UxAddCallback( pushButton5, XmNactivateCallback, |
| 1072 |
activateCB_pushButton5, |
| 1073 |
(XtPointer) UxExtractionShellContext ); |
| 1074 |
|
| 1075 |
UxAddCallback( pb_search_plot13, XmNactivateCallback, |
| 1076 |
activateCB_pb_search_plot13, |
| 1077 |
(XtPointer) UxExtractionShellContext ); |
| 1078 |
|
| 1079 |
UxAddCallback( pb_search_plot18, XmNactivateCallback, |
| 1080 |
activateCB_pb_search_plot18, |
| 1081 |
(XtPointer) UxExtractionShellContext ); |
| 1082 |
|
| 1083 |
UxAddCallback( tf_thres6, XmNlosingFocusCallback, |
| 1084 |
losingFocusCB_tf_thres6, |
| 1085 |
(XtPointer) UxExtractionShellContext ); |
| 1086 |
|
| 1087 |
UxAddCallback( pb_main_search19, XmNactivateCallback, |
| 1088 |
activateCB_pb_main_search19, |
| 1089 |
(XtPointer) UxExtractionShellContext ); |
| 1090 |
|
| 1091 |
UxAddCallback( tf_thres7, XmNlosingFocusCallback, |
| 1092 |
losingFocusCB_tf_thres7, |
| 1093 |
(XtPointer) UxExtractionShellContext ); |
| 1094 |
|
| 1095 |
UxAddCallback( tf_ystep4, XmNlosingFocusCallback, |
| 1096 |
losingFocusCB_tf_ystep4, |
| 1097 |
(XtPointer) UxExtractionShellContext ); |
| 1098 |
|
| 1099 |
UxAddCallback( pb_main_search20, XmNactivateCallback, |
| 1100 |
activateCB_pb_main_search20, |
| 1101 |
(XtPointer) UxExtractionShellContext ); |
| 1102 |
|
| 1103 |
|
| 1104 |
/* Finally, call UxRealizeInterface to create the X windows |
| 1105 |
for the widgets created above. */ |
| 1106 |
|
| 1107 |
UxRealizeInterface( ExtractionShell ); |
| 1108 |
|
| 1109 |
return ( ExtractionShell ); |
| 1110 |
} |
| 1111 |
|
| 1112 |
/******************************************************************************* |
| 1113 |
The following function includes the code that was entered |
| 1114 |
in the 'Initial Code' and 'Final Code' sections of the |
| 1115 |
Declarations Editor. This function is called from the |
| 1116 |
'Interface function' below. |
| 1117 |
*******************************************************************************/ |
| 1118 |
|
| 1119 |
static swidget _Ux_create_ExtractionShell() |
| 1120 |
{ |
| 1121 |
swidget rtrn; |
| 1122 |
_UxCExtractionShell *UxContext; |
| 1123 |
|
| 1124 |
UxExtractionShellContext = UxContext = |
| 1125 |
(_UxCExtractionShell *) UxMalloc( sizeof(_UxCExtractionShell) ); |
| 1126 |
|
| 1127 |
rtrn = _Uxbuild_ExtractionShell(); |
| 1128 |
|
| 1129 |
return(rtrn); |
| 1130 |
} |
| 1131 |
|
| 1132 |
/******************************************************************************* |
| 1133 |
The following is the 'Interface function' which is the |
| 1134 |
external entry point for creating this interface. |
| 1135 |
This function should be called from your application or from |
| 1136 |
a callback function. |
| 1137 |
*******************************************************************************/ |
| 1138 |
|
| 1139 |
swidget create_ExtractionShell() |
| 1140 |
{ |
| 1141 |
swidget _Uxrtrn; |
| 1142 |
static int _Uxinit = 0; |
| 1143 |
|
| 1144 |
if ( ! _Uxinit ) |
| 1145 |
{ |
| 1146 |
static XtActionsRec _Uxactions[] = { |
| 1147 |
{ "ClearShort", action_ClearShort }, |
| 1148 |
{ "HelpShort", action_HelpShort }, |
| 1149 |
{ "ExtendedHelp", action_ExtendedHelp }, |
| 1150 |
{ "FileSelectACT", action_FileSelectACT } |
| 1151 |
}; |
| 1152 |
|
| 1153 |
XtAppAddActions( UxAppContext, |
| 1154 |
_Uxactions, |
| 1155 |
XtNumber(_Uxactions) ); |
| 1156 |
|
| 1157 |
_Uxinit = 1; |
| 1158 |
} |
| 1159 |
|
| 1160 |
_Uxrtrn = _Ux_create_ExtractionShell(); |
| 1161 |
|
| 1162 |
return ( _Uxrtrn ); |
| 1163 |
} |
| 1164 |
|
| 1165 |
/******************************************************************************* |
| 1166 |
END OF FILE |
| 1167 |
*******************************************************************************/ |
| 1168 |
|