| 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 |
BackgroundShell.c |
| 31 |
|
| 32 |
.VERSION |
| 33 |
090825 last modif |
| 34 |
|
| 35 |
*******************************************************************************/ |
| 36 |
|
| 37 |
#include <stdio.h> |
| 38 |
#include "UxLib.h" |
| 39 |
#include "UxRowCol.h" |
| 40 |
#include "UxTogB.h" |
| 41 |
#include "UxTextF.h" |
| 42 |
#include "UxLabel.h" |
| 43 |
#include "UxSep.h" |
| 44 |
#include "UxText.h" |
| 45 |
#include "UxPushB.h" |
| 46 |
#include "UxForm.h" |
| 47 |
#include "UxTranSh.h" |
| 48 |
|
| 49 |
#include "proto_xech.h" |
| 50 |
|
| 51 |
/******************************************************************************* |
| 52 |
Includes, Defines, and Global variables from the Declarations Editor: |
| 53 |
*******************************************************************************/ |
| 54 |
|
| 55 |
#include <ExternResources.h> |
| 56 |
|
| 57 |
/******************************************************************************* |
| 58 |
The definition of the context structure: |
| 59 |
If you create multiple instances of your interface, the context |
| 60 |
structure ensures that your callbacks use the variables for the |
| 61 |
correct instance. |
| 62 |
|
| 63 |
For each swidget in the interface, each argument to the Interface |
| 64 |
function, and each variable in the Instance Specific section of the |
| 65 |
Declarations Editor, there is an entry in the context structure. |
| 66 |
and a #define. The #define makes the variable name refer to the |
| 67 |
corresponding entry in the context structure. |
| 68 |
*******************************************************************************/ |
| 69 |
|
| 70 |
typedef struct |
| 71 |
{ |
| 72 |
swidget UxBackgroundShell; |
| 73 |
swidget Uxform29; |
| 74 |
swidget Uxform30; |
| 75 |
swidget UxpushButton4; |
| 76 |
swidget Uxpb_search_plot1; |
| 77 |
swidget Uxpb_search_search6; |
| 78 |
swidget Uxpb_search_plot9; |
| 79 |
swidget Uxpb_search_plot10; |
| 80 |
swidget Uxpb_search_plot12; |
| 81 |
swidget Uxshelp_search4; |
| 82 |
swidget Uxseparator24; |
| 83 |
swidget Uxseparator25; |
| 84 |
swidget Uxlabel69; |
| 85 |
swidget Uxtf_alpha8; |
| 86 |
swidget Uxtf_alpha9; |
| 87 |
swidget Uxlabel70; |
| 88 |
swidget Uxtf_alpha10; |
| 89 |
swidget Uxtf_alpha12; |
| 90 |
swidget Uxtf_alpha13; |
| 91 |
swidget Uxlabel71; |
| 92 |
swidget Uxlabel72; |
| 93 |
swidget Uxtf_alpha14; |
| 94 |
swidget Uxlabel74; |
| 95 |
swidget Uxlabel75; |
| 96 |
swidget Uxlabel77; |
| 97 |
swidget Uxlabel78; |
| 98 |
swidget UxtoggleButton17; |
| 99 |
swidget UxrowColumn1; |
| 100 |
swidget Uxrb_seamtd_gaus1; |
| 101 |
swidget Uxrb_seamtd_grav1; |
| 102 |
swidget Uxrb_seamtd_maxi1; |
| 103 |
swidget Uxlabel79; |
| 104 |
swidget Uxlabel80; |
| 105 |
swidget Uxtf_alpha15; |
| 106 |
swidget Uxtf_alpha16; |
| 107 |
swidget Uxlabel81; |
| 108 |
swidget Uxtf_alpha17; |
| 109 |
swidget Uxtf_alpha18; |
| 110 |
swidget Uxtf_alpha19; |
| 111 |
swidget Uxlabel82; |
| 112 |
swidget Uxpb_main_search17; |
| 113 |
swidget Uxpb_main_search18; |
| 114 |
swidget Uxlabel83; |
| 115 |
swidget Uxlabel84; |
| 116 |
swidget Uxtf_alpha20; |
| 117 |
swidget Uxtf_alpha21; |
| 118 |
swidget Uxlabel85; |
| 119 |
swidget Uxlabel86; |
| 120 |
swidget Uxlabel87; |
| 121 |
swidget Uxpb_search_plot11; |
| 122 |
swidget Uxpb_search_plot15; |
| 123 |
swidget Uxpb_search_plot16; |
| 124 |
swidget Uxpb_main_search8; |
| 125 |
} _UxCBackgroundShell; |
| 126 |
|
| 127 |
#define BackgroundShell UxBackgroundShellContext->UxBackgroundShell |
| 128 |
#define form29 UxBackgroundShellContext->Uxform29 |
| 129 |
#define form30 UxBackgroundShellContext->Uxform30 |
| 130 |
#define pushButton4 UxBackgroundShellContext->UxpushButton4 |
| 131 |
#define pb_search_plot1 UxBackgroundShellContext->Uxpb_search_plot1 |
| 132 |
#define pb_search_search6 UxBackgroundShellContext->Uxpb_search_search6 |
| 133 |
#define pb_search_plot9 UxBackgroundShellContext->Uxpb_search_plot9 |
| 134 |
#define pb_search_plot10 UxBackgroundShellContext->Uxpb_search_plot10 |
| 135 |
#define pb_search_plot12 UxBackgroundShellContext->Uxpb_search_plot12 |
| 136 |
#define shelp_search4 UxBackgroundShellContext->Uxshelp_search4 |
| 137 |
#define separator24 UxBackgroundShellContext->Uxseparator24 |
| 138 |
#define separator25 UxBackgroundShellContext->Uxseparator25 |
| 139 |
#define label69 UxBackgroundShellContext->Uxlabel69 |
| 140 |
#define tf_alpha8 UxBackgroundShellContext->Uxtf_alpha8 |
| 141 |
#define tf_alpha9 UxBackgroundShellContext->Uxtf_alpha9 |
| 142 |
#define label70 UxBackgroundShellContext->Uxlabel70 |
| 143 |
#define tf_alpha10 UxBackgroundShellContext->Uxtf_alpha10 |
| 144 |
#define tf_alpha12 UxBackgroundShellContext->Uxtf_alpha12 |
| 145 |
#define tf_alpha13 UxBackgroundShellContext->Uxtf_alpha13 |
| 146 |
#define label71 UxBackgroundShellContext->Uxlabel71 |
| 147 |
#define label72 UxBackgroundShellContext->Uxlabel72 |
| 148 |
#define tf_alpha14 UxBackgroundShellContext->Uxtf_alpha14 |
| 149 |
#define label74 UxBackgroundShellContext->Uxlabel74 |
| 150 |
#define label75 UxBackgroundShellContext->Uxlabel75 |
| 151 |
#define label77 UxBackgroundShellContext->Uxlabel77 |
| 152 |
#define label78 UxBackgroundShellContext->Uxlabel78 |
| 153 |
#define toggleButton17 UxBackgroundShellContext->UxtoggleButton17 |
| 154 |
#define rowColumn1 UxBackgroundShellContext->UxrowColumn1 |
| 155 |
#define rb_seamtd_gaus1 UxBackgroundShellContext->Uxrb_seamtd_gaus1 |
| 156 |
#define rb_seamtd_grav1 UxBackgroundShellContext->Uxrb_seamtd_grav1 |
| 157 |
#define rb_seamtd_maxi1 UxBackgroundShellContext->Uxrb_seamtd_maxi1 |
| 158 |
#define label79 UxBackgroundShellContext->Uxlabel79 |
| 159 |
#define label80 UxBackgroundShellContext->Uxlabel80 |
| 160 |
#define tf_alpha15 UxBackgroundShellContext->Uxtf_alpha15 |
| 161 |
#define tf_alpha16 UxBackgroundShellContext->Uxtf_alpha16 |
| 162 |
#define label81 UxBackgroundShellContext->Uxlabel81 |
| 163 |
#define tf_alpha17 UxBackgroundShellContext->Uxtf_alpha17 |
| 164 |
#define tf_alpha18 UxBackgroundShellContext->Uxtf_alpha18 |
| 165 |
#define tf_alpha19 UxBackgroundShellContext->Uxtf_alpha19 |
| 166 |
#define label82 UxBackgroundShellContext->Uxlabel82 |
| 167 |
#define pb_main_search17 UxBackgroundShellContext->Uxpb_main_search17 |
| 168 |
#define pb_main_search18 UxBackgroundShellContext->Uxpb_main_search18 |
| 169 |
#define label83 UxBackgroundShellContext->Uxlabel83 |
| 170 |
#define label84 UxBackgroundShellContext->Uxlabel84 |
| 171 |
#define tf_alpha20 UxBackgroundShellContext->Uxtf_alpha20 |
| 172 |
#define tf_alpha21 UxBackgroundShellContext->Uxtf_alpha21 |
| 173 |
#define label85 UxBackgroundShellContext->Uxlabel85 |
| 174 |
#define label86 UxBackgroundShellContext->Uxlabel86 |
| 175 |
#define label87 UxBackgroundShellContext->Uxlabel87 |
| 176 |
#define pb_search_plot11 UxBackgroundShellContext->Uxpb_search_plot11 |
| 177 |
#define pb_search_plot15 UxBackgroundShellContext->Uxpb_search_plot15 |
| 178 |
#define pb_search_plot16 UxBackgroundShellContext->Uxpb_search_plot16 |
| 179 |
#define pb_main_search8 UxBackgroundShellContext->Uxpb_main_search8 |
| 180 |
|
| 181 |
static _UxCBackgroundShell *UxBackgroundShellContext; |
| 182 |
|
| 183 |
extern void DisplayShortHelp(), DisplayExtendedHelp(), SetFileList(); |
| 184 |
extern void MidasCommand(), PopupLong(), InitAllFields(); |
| 185 |
extern void WidgetLeave(), WidgetEnter(); |
| 186 |
extern void WriteKeyword(), GetExtendedHelp(), SelectList(); |
| 187 |
|
| 188 |
|
| 189 |
extern int RadioSet(), PopupList(), AppendDialogText(); |
| 190 |
|
| 191 |
/******************************************************************************* |
| 192 |
The following are translation tables. |
| 193 |
*******************************************************************************/ |
| 194 |
|
| 195 |
/******************************************************************************* |
| 196 |
Forward declarations of functions that are defined later in this file. |
| 197 |
*******************************************************************************/ |
| 198 |
|
| 199 |
swidget create_BackgroundShell(); |
| 200 |
|
| 201 |
/******************************************************************************* |
| 202 |
The following are Action functions. |
| 203 |
*******************************************************************************/ |
| 204 |
|
| 205 |
static void action_UpdateDirectory( UxWidget, UxEvent, UxParams, p_UxNumParams ) |
| 206 |
Widget UxWidget; |
| 207 |
XEvent *UxEvent; |
| 208 |
String *UxParams; |
| 209 |
Cardinal *p_UxNumParams; |
| 210 |
{ |
| 211 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 212 |
swidget UxThisWidget; |
| 213 |
|
| 214 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 215 |
UxSaveCtx = UxBackgroundShellContext; |
| 216 |
UxBackgroundShellContext = UxContext = |
| 217 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 218 |
{ |
| 219 |
|
| 220 |
char node[80]; |
| 221 |
|
| 222 |
/* if (XmTextGetSelection(UxWidget) == NULL) return; */ |
| 223 |
strcpy(node, |
| 224 |
XmTextGetSelection(UxWidget)); |
| 225 |
XmTextClearSelection(UxWidget,XtLastTimestampProcessed(UxDisplay)); |
| 226 |
|
| 227 |
node[strlen(node)-1] = '\0'; |
| 228 |
WGet_all_dirs(node); |
| 229 |
WChange_Midas_dir(); |
| 230 |
WGet_all_files(); |
| 231 |
|
| 232 |
} |
| 233 |
UxBackgroundShellContext = UxSaveCtx; |
| 234 |
} |
| 235 |
|
| 236 |
static void action_ClearShort( UxWidget, UxEvent, UxParams, p_UxNumParams ) |
| 237 |
Widget UxWidget; |
| 238 |
XEvent *UxEvent; |
| 239 |
String *UxParams; |
| 240 |
Cardinal *p_UxNumParams; |
| 241 |
{ |
| 242 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 243 |
swidget UxThisWidget; |
| 244 |
|
| 245 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 246 |
UxSaveCtx = UxBackgroundShellContext; |
| 247 |
UxBackgroundShellContext = UxContext = |
| 248 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 249 |
{WidgetLeave(UxWidget);} |
| 250 |
UxBackgroundShellContext = UxSaveCtx; |
| 251 |
} |
| 252 |
|
| 253 |
static void action_HelpShort( UxWidget, UxEvent, UxParams, p_UxNumParams ) |
| 254 |
Widget UxWidget; |
| 255 |
XEvent *UxEvent; |
| 256 |
String *UxParams; |
| 257 |
Cardinal *p_UxNumParams; |
| 258 |
{ |
| 259 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 260 |
swidget UxThisWidget; |
| 261 |
|
| 262 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 263 |
UxSaveCtx = UxBackgroundShellContext; |
| 264 |
UxBackgroundShellContext = UxContext = |
| 265 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 266 |
{WidgetEnter(UxWidget);} |
| 267 |
UxBackgroundShellContext = UxSaveCtx; |
| 268 |
} |
| 269 |
|
| 270 |
static void action_FileSelectACT( UxWidget, UxEvent, UxParams, p_UxNumParams ) |
| 271 |
Widget UxWidget; |
| 272 |
XEvent *UxEvent; |
| 273 |
String *UxParams; |
| 274 |
Cardinal *p_UxNumParams; |
| 275 |
{ |
| 276 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 277 |
swidget UxThisWidget; |
| 278 |
|
| 279 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 280 |
UxSaveCtx = UxBackgroundShellContext; |
| 281 |
UxBackgroundShellContext = UxContext = |
| 282 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 283 |
{ |
| 284 |
#include <xm_defs.h> |
| 285 |
#include <spec_comm.h> |
| 286 |
|
| 287 |
extern swidget FileListInterface, TextFieldSwidget; |
| 288 |
extern Widget FileListWidget; |
| 289 |
extern char DirSpecs[]; |
| 290 |
extern int ListType; |
| 291 |
|
| 292 |
int strip = 1; /* strip off */ |
| 293 |
|
| 294 |
TextFieldSwidget = UxThisWidget; |
| 295 |
|
| 296 |
if ( UxWidget == UxGetWidget(UxFindSwidget("tf_lincat")) ) { |
| 297 |
SET_LIST_TITLE("Enter line catalog"); |
| 298 |
ListType = LIST_LINCAT; |
| 299 |
} |
| 300 |
else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_guess")) ) { |
| 301 |
SET_LIST_TITLE("Enter guess table"); |
| 302 |
ListType = LIST_GUESS; |
| 303 |
} |
| 304 |
else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_flux_tbl")) ) { |
| 305 |
SET_LIST_TITLE("Enter flux table"); |
| 306 |
ListType = LIST_FLUX_TBL; |
| 307 |
} |
| 308 |
else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_extin_tbl")) ) { |
| 309 |
SET_LIST_TITLE("Enter extinction table"); |
| 310 |
ListType = LIST_EXTIN_TBL; |
| 311 |
} |
| 312 |
|
| 313 |
strcpy(DirSpecs, "*.tbl"); |
| 314 |
SetFileList(FileListWidget, strip, DirSpecs); |
| 315 |
UxPopupInterface(FileListInterface, exclusive_grab); |
| 316 |
|
| 317 |
} |
| 318 |
UxBackgroundShellContext = UxSaveCtx; |
| 319 |
} |
| 320 |
|
| 321 |
/******************************************************************************* |
| 322 |
The following are callback functions. |
| 323 |
*******************************************************************************/ |
| 324 |
|
| 325 |
static void activateCB_pushButton4( UxWidget, UxClientData, UxCallbackArg ) |
| 326 |
Widget UxWidget; |
| 327 |
XtPointer UxClientData, UxCallbackArg; |
| 328 |
{ |
| 329 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 330 |
swidget UxThisWidget; |
| 331 |
|
| 332 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 333 |
UxSaveCtx = UxBackgroundShellContext; |
| 334 |
UxBackgroundShellContext = UxContext = |
| 335 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 336 |
{ |
| 337 |
UxPopdownInterface(UxFindSwidget("BackgroundShell")); |
| 338 |
} |
| 339 |
UxBackgroundShellContext = UxSaveCtx; |
| 340 |
} |
| 341 |
|
| 342 |
static void activateCB_pb_search_plot1( UxWidget, UxClientData, UxCallbackArg ) |
| 343 |
Widget UxWidget; |
| 344 |
XtPointer UxClientData, UxCallbackArg; |
| 345 |
{ |
| 346 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 347 |
swidget UxThisWidget; |
| 348 |
|
| 349 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 350 |
UxSaveCtx = UxBackgroundShellContext; |
| 351 |
UxBackgroundShellContext = UxContext = |
| 352 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 353 |
{ |
| 354 |
GetExtendedHelp(UxWidget); |
| 355 |
} |
| 356 |
UxBackgroundShellContext = UxSaveCtx; |
| 357 |
} |
| 358 |
|
| 359 |
static void activateCB_pb_search_search6( UxWidget, UxClientData, UxCallbackArg ) |
| 360 |
Widget UxWidget; |
| 361 |
XtPointer UxClientData, UxCallbackArg; |
| 362 |
{ |
| 363 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 364 |
swidget UxThisWidget; |
| 365 |
|
| 366 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 367 |
UxSaveCtx = UxBackgroundShellContext; |
| 368 |
UxBackgroundShellContext = UxContext = |
| 369 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 370 |
{ |
| 371 |
MidasCommand(UxWidget); |
| 372 |
|
| 373 |
} |
| 374 |
UxBackgroundShellContext = UxSaveCtx; |
| 375 |
} |
| 376 |
|
| 377 |
static void activateCB_pb_search_plot9( UxWidget, UxClientData, UxCallbackArg ) |
| 378 |
Widget UxWidget; |
| 379 |
XtPointer UxClientData, UxCallbackArg; |
| 380 |
{ |
| 381 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 382 |
swidget UxThisWidget; |
| 383 |
|
| 384 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 385 |
UxSaveCtx = UxBackgroundShellContext; |
| 386 |
UxBackgroundShellContext = UxContext = |
| 387 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 388 |
{ |
| 389 |
MidasCommand(UxWidget); |
| 390 |
|
| 391 |
} |
| 392 |
UxBackgroundShellContext = UxSaveCtx; |
| 393 |
} |
| 394 |
|
| 395 |
static void activateCB_pb_search_plot10( UxWidget, UxClientData, UxCallbackArg ) |
| 396 |
Widget UxWidget; |
| 397 |
XtPointer UxClientData, UxCallbackArg; |
| 398 |
{ |
| 399 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 400 |
swidget UxThisWidget; |
| 401 |
|
| 402 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 403 |
UxSaveCtx = UxBackgroundShellContext; |
| 404 |
UxBackgroundShellContext = UxContext = |
| 405 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 406 |
{ |
| 407 |
MidasCommand(UxWidget); |
| 408 |
|
| 409 |
} |
| 410 |
UxBackgroundShellContext = UxSaveCtx; |
| 411 |
} |
| 412 |
|
| 413 |
static void activateCB_pb_search_plot12( UxWidget, UxClientData, UxCallbackArg ) |
| 414 |
Widget UxWidget; |
| 415 |
XtPointer UxClientData, UxCallbackArg; |
| 416 |
{ |
| 417 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 418 |
swidget UxThisWidget; |
| 419 |
|
| 420 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 421 |
UxSaveCtx = UxBackgroundShellContext; |
| 422 |
UxBackgroundShellContext = UxContext = |
| 423 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 424 |
{ |
| 425 |
MidasCommand(UxWidget); |
| 426 |
|
| 427 |
} |
| 428 |
UxBackgroundShellContext = UxSaveCtx; |
| 429 |
} |
| 430 |
|
| 431 |
static void losingFocusCB_tf_alpha8( UxWidget, UxClientData, UxCallbackArg ) |
| 432 |
Widget UxWidget; |
| 433 |
XtPointer UxClientData, UxCallbackArg; |
| 434 |
{ |
| 435 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 436 |
swidget UxThisWidget; |
| 437 |
|
| 438 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 439 |
UxSaveCtx = UxBackgroundShellContext; |
| 440 |
UxBackgroundShellContext = UxContext = |
| 441 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 442 |
{ |
| 443 |
|
| 444 |
} |
| 445 |
UxBackgroundShellContext = UxSaveCtx; |
| 446 |
} |
| 447 |
|
| 448 |
static void losingFocusCB_tf_alpha9( UxWidget, UxClientData, UxCallbackArg ) |
| 449 |
Widget UxWidget; |
| 450 |
XtPointer UxClientData, UxCallbackArg; |
| 451 |
{ |
| 452 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 453 |
swidget UxThisWidget; |
| 454 |
|
| 455 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 456 |
UxSaveCtx = UxBackgroundShellContext; |
| 457 |
UxBackgroundShellContext = UxContext = |
| 458 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 459 |
{ |
| 460 |
|
| 461 |
} |
| 462 |
UxBackgroundShellContext = UxSaveCtx; |
| 463 |
} |
| 464 |
|
| 465 |
static void losingFocusCB_tf_alpha10( UxWidget, UxClientData, UxCallbackArg ) |
| 466 |
Widget UxWidget; |
| 467 |
XtPointer UxClientData, UxCallbackArg; |
| 468 |
{ |
| 469 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 470 |
swidget UxThisWidget; |
| 471 |
|
| 472 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 473 |
UxSaveCtx = UxBackgroundShellContext; |
| 474 |
UxBackgroundShellContext = UxContext = |
| 475 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 476 |
{ |
| 477 |
|
| 478 |
} |
| 479 |
UxBackgroundShellContext = UxSaveCtx; |
| 480 |
} |
| 481 |
|
| 482 |
static void losingFocusCB_tf_alpha12( UxWidget, UxClientData, UxCallbackArg ) |
| 483 |
Widget UxWidget; |
| 484 |
XtPointer UxClientData, UxCallbackArg; |
| 485 |
{ |
| 486 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 487 |
swidget UxThisWidget; |
| 488 |
|
| 489 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 490 |
UxSaveCtx = UxBackgroundShellContext; |
| 491 |
UxBackgroundShellContext = UxContext = |
| 492 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 493 |
{ |
| 494 |
|
| 495 |
} |
| 496 |
UxBackgroundShellContext = UxSaveCtx; |
| 497 |
} |
| 498 |
|
| 499 |
static void losingFocusCB_tf_alpha13( UxWidget, UxClientData, UxCallbackArg ) |
| 500 |
Widget UxWidget; |
| 501 |
XtPointer UxClientData, UxCallbackArg; |
| 502 |
{ |
| 503 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 504 |
swidget UxThisWidget; |
| 505 |
|
| 506 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 507 |
UxSaveCtx = UxBackgroundShellContext; |
| 508 |
UxBackgroundShellContext = UxContext = |
| 509 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 510 |
{ |
| 511 |
|
| 512 |
} |
| 513 |
UxBackgroundShellContext = UxSaveCtx; |
| 514 |
} |
| 515 |
|
| 516 |
static void losingFocusCB_tf_alpha14( UxWidget, UxClientData, UxCallbackArg ) |
| 517 |
Widget UxWidget; |
| 518 |
XtPointer UxClientData, UxCallbackArg; |
| 519 |
{ |
| 520 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 521 |
swidget UxThisWidget; |
| 522 |
|
| 523 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 524 |
UxSaveCtx = UxBackgroundShellContext; |
| 525 |
UxBackgroundShellContext = UxContext = |
| 526 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 527 |
{ |
| 528 |
|
| 529 |
} |
| 530 |
UxBackgroundShellContext = UxSaveCtx; |
| 531 |
} |
| 532 |
|
| 533 |
static void armCB_toggleButton17( UxWidget, UxClientData, UxCallbackArg ) |
| 534 |
Widget UxWidget; |
| 535 |
XtPointer UxClientData, UxCallbackArg; |
| 536 |
{ |
| 537 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 538 |
swidget UxThisWidget; |
| 539 |
|
| 540 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 541 |
UxSaveCtx = UxBackgroundShellContext; |
| 542 |
UxBackgroundShellContext = UxContext = |
| 543 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 544 |
RadioSet(UxWidget); |
| 545 |
UxBackgroundShellContext = UxSaveCtx; |
| 546 |
} |
| 547 |
|
| 548 |
static void valueChangedCB_toggleButton17( UxWidget, UxClientData, UxCallbackArg ) |
| 549 |
Widget UxWidget; |
| 550 |
XtPointer UxClientData, UxCallbackArg; |
| 551 |
{ |
| 552 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 553 |
swidget UxThisWidget; |
| 554 |
|
| 555 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 556 |
UxSaveCtx = UxBackgroundShellContext; |
| 557 |
UxBackgroundShellContext = UxContext = |
| 558 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 559 |
{ |
| 560 |
|
| 561 |
} |
| 562 |
UxBackgroundShellContext = UxSaveCtx; |
| 563 |
} |
| 564 |
|
| 565 |
static void armCB_rb_seamtd_gaus1( UxWidget, UxClientData, UxCallbackArg ) |
| 566 |
Widget UxWidget; |
| 567 |
XtPointer UxClientData, UxCallbackArg; |
| 568 |
{ |
| 569 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 570 |
swidget UxThisWidget; |
| 571 |
|
| 572 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 573 |
UxSaveCtx = UxBackgroundShellContext; |
| 574 |
UxBackgroundShellContext = UxContext = |
| 575 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 576 |
RadioSet(UxWidget); |
| 577 |
UxBackgroundShellContext = UxSaveCtx; |
| 578 |
} |
| 579 |
|
| 580 |
static void valueChangedCB_rb_seamtd_gaus1( UxWidget, UxClientData, UxCallbackArg ) |
| 581 |
Widget UxWidget; |
| 582 |
XtPointer UxClientData, UxCallbackArg; |
| 583 |
{ |
| 584 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 585 |
swidget UxThisWidget; |
| 586 |
|
| 587 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 588 |
UxSaveCtx = UxBackgroundShellContext; |
| 589 |
UxBackgroundShellContext = UxContext = |
| 590 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 591 |
{ |
| 592 |
|
| 593 |
} |
| 594 |
UxBackgroundShellContext = UxSaveCtx; |
| 595 |
} |
| 596 |
|
| 597 |
static void armCB_rb_seamtd_grav1( UxWidget, UxClientData, UxCallbackArg ) |
| 598 |
Widget UxWidget; |
| 599 |
XtPointer UxClientData, UxCallbackArg; |
| 600 |
{ |
| 601 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 602 |
swidget UxThisWidget; |
| 603 |
|
| 604 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 605 |
UxSaveCtx = UxBackgroundShellContext; |
| 606 |
UxBackgroundShellContext = UxContext = |
| 607 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 608 |
RadioSet(UxWidget); |
| 609 |
UxBackgroundShellContext = UxSaveCtx; |
| 610 |
} |
| 611 |
|
| 612 |
static void valueChangedCB_rb_seamtd_grav1( UxWidget, UxClientData, UxCallbackArg ) |
| 613 |
Widget UxWidget; |
| 614 |
XtPointer UxClientData, UxCallbackArg; |
| 615 |
{ |
| 616 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 617 |
swidget UxThisWidget; |
| 618 |
|
| 619 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 620 |
UxSaveCtx = UxBackgroundShellContext; |
| 621 |
UxBackgroundShellContext = UxContext = |
| 622 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 623 |
{ |
| 624 |
|
| 625 |
} |
| 626 |
UxBackgroundShellContext = UxSaveCtx; |
| 627 |
} |
| 628 |
|
| 629 |
static void armCB_rb_seamtd_maxi1( UxWidget, UxClientData, UxCallbackArg ) |
| 630 |
Widget UxWidget; |
| 631 |
XtPointer UxClientData, UxCallbackArg; |
| 632 |
{ |
| 633 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 634 |
swidget UxThisWidget; |
| 635 |
|
| 636 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 637 |
UxSaveCtx = UxBackgroundShellContext; |
| 638 |
UxBackgroundShellContext = UxContext = |
| 639 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 640 |
RadioSet(UxWidget); |
| 641 |
UxBackgroundShellContext = UxSaveCtx; |
| 642 |
} |
| 643 |
|
| 644 |
static void valueChangedCB_rb_seamtd_maxi1( UxWidget, UxClientData, UxCallbackArg ) |
| 645 |
Widget UxWidget; |
| 646 |
XtPointer UxClientData, UxCallbackArg; |
| 647 |
{ |
| 648 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 649 |
swidget UxThisWidget; |
| 650 |
|
| 651 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 652 |
UxSaveCtx = UxBackgroundShellContext; |
| 653 |
UxBackgroundShellContext = UxContext = |
| 654 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 655 |
{ |
| 656 |
|
| 657 |
} |
| 658 |
UxBackgroundShellContext = UxSaveCtx; |
| 659 |
} |
| 660 |
|
| 661 |
static void losingFocusCB_tf_alpha15( UxWidget, UxClientData, UxCallbackArg ) |
| 662 |
Widget UxWidget; |
| 663 |
XtPointer UxClientData, UxCallbackArg; |
| 664 |
{ |
| 665 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 666 |
swidget UxThisWidget; |
| 667 |
|
| 668 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 669 |
UxSaveCtx = UxBackgroundShellContext; |
| 670 |
UxBackgroundShellContext = UxContext = |
| 671 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 672 |
{ |
| 673 |
|
| 674 |
} |
| 675 |
UxBackgroundShellContext = UxSaveCtx; |
| 676 |
} |
| 677 |
|
| 678 |
static void losingFocusCB_tf_alpha16( UxWidget, UxClientData, UxCallbackArg ) |
| 679 |
Widget UxWidget; |
| 680 |
XtPointer UxClientData, UxCallbackArg; |
| 681 |
{ |
| 682 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 683 |
swidget UxThisWidget; |
| 684 |
|
| 685 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 686 |
UxSaveCtx = UxBackgroundShellContext; |
| 687 |
UxBackgroundShellContext = UxContext = |
| 688 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 689 |
{ |
| 690 |
|
| 691 |
} |
| 692 |
UxBackgroundShellContext = UxSaveCtx; |
| 693 |
} |
| 694 |
|
| 695 |
static void losingFocusCB_tf_alpha17( UxWidget, UxClientData, UxCallbackArg ) |
| 696 |
Widget UxWidget; |
| 697 |
XtPointer UxClientData, UxCallbackArg; |
| 698 |
{ |
| 699 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 700 |
swidget UxThisWidget; |
| 701 |
|
| 702 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 703 |
UxSaveCtx = UxBackgroundShellContext; |
| 704 |
UxBackgroundShellContext = UxContext = |
| 705 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 706 |
{ |
| 707 |
|
| 708 |
} |
| 709 |
UxBackgroundShellContext = UxSaveCtx; |
| 710 |
} |
| 711 |
|
| 712 |
static void losingFocusCB_tf_alpha18( UxWidget, UxClientData, UxCallbackArg ) |
| 713 |
Widget UxWidget; |
| 714 |
XtPointer UxClientData, UxCallbackArg; |
| 715 |
{ |
| 716 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 717 |
swidget UxThisWidget; |
| 718 |
|
| 719 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 720 |
UxSaveCtx = UxBackgroundShellContext; |
| 721 |
UxBackgroundShellContext = UxContext = |
| 722 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 723 |
{ |
| 724 |
|
| 725 |
} |
| 726 |
UxBackgroundShellContext = UxSaveCtx; |
| 727 |
} |
| 728 |
|
| 729 |
static void losingFocusCB_tf_alpha19( UxWidget, UxClientData, UxCallbackArg ) |
| 730 |
Widget UxWidget; |
| 731 |
XtPointer UxClientData, UxCallbackArg; |
| 732 |
{ |
| 733 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 734 |
swidget UxThisWidget; |
| 735 |
|
| 736 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 737 |
UxSaveCtx = UxBackgroundShellContext; |
| 738 |
UxBackgroundShellContext = UxContext = |
| 739 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 740 |
{ |
| 741 |
|
| 742 |
} |
| 743 |
UxBackgroundShellContext = UxSaveCtx; |
| 744 |
} |
| 745 |
|
| 746 |
static void activateCB_pb_main_search17( UxWidget, UxClientData, UxCallbackArg ) |
| 747 |
Widget UxWidget; |
| 748 |
XtPointer UxClientData, UxCallbackArg; |
| 749 |
{ |
| 750 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 751 |
swidget UxThisWidget; |
| 752 |
|
| 753 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 754 |
UxSaveCtx = UxBackgroundShellContext; |
| 755 |
UxBackgroundShellContext = UxContext = |
| 756 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 757 |
{ |
| 758 |
SelectList(UxWidget); |
| 759 |
|
| 760 |
} |
| 761 |
UxBackgroundShellContext = UxSaveCtx; |
| 762 |
} |
| 763 |
|
| 764 |
static void activateCB_pb_main_search18( UxWidget, UxClientData, UxCallbackArg ) |
| 765 |
Widget UxWidget; |
| 766 |
XtPointer UxClientData, UxCallbackArg; |
| 767 |
{ |
| 768 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 769 |
swidget UxThisWidget; |
| 770 |
|
| 771 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 772 |
UxSaveCtx = UxBackgroundShellContext; |
| 773 |
UxBackgroundShellContext = UxContext = |
| 774 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 775 |
{ |
| 776 |
SelectList(UxWidget); |
| 777 |
|
| 778 |
} |
| 779 |
UxBackgroundShellContext = UxSaveCtx; |
| 780 |
} |
| 781 |
|
| 782 |
static void losingFocusCB_tf_alpha20( UxWidget, UxClientData, UxCallbackArg ) |
| 783 |
Widget UxWidget; |
| 784 |
XtPointer UxClientData, UxCallbackArg; |
| 785 |
{ |
| 786 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 787 |
swidget UxThisWidget; |
| 788 |
|
| 789 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 790 |
UxSaveCtx = UxBackgroundShellContext; |
| 791 |
UxBackgroundShellContext = UxContext = |
| 792 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 793 |
{ |
| 794 |
|
| 795 |
} |
| 796 |
UxBackgroundShellContext = UxSaveCtx; |
| 797 |
} |
| 798 |
|
| 799 |
static void losingFocusCB_tf_alpha21( UxWidget, UxClientData, UxCallbackArg ) |
| 800 |
Widget UxWidget; |
| 801 |
XtPointer UxClientData, UxCallbackArg; |
| 802 |
{ |
| 803 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 804 |
swidget UxThisWidget; |
| 805 |
|
| 806 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 807 |
UxSaveCtx = UxBackgroundShellContext; |
| 808 |
UxBackgroundShellContext = UxContext = |
| 809 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 810 |
{ |
| 811 |
|
| 812 |
} |
| 813 |
UxBackgroundShellContext = UxSaveCtx; |
| 814 |
} |
| 815 |
|
| 816 |
static void activateCB_pb_search_plot11( UxWidget, UxClientData, UxCallbackArg ) |
| 817 |
Widget UxWidget; |
| 818 |
XtPointer UxClientData, UxCallbackArg; |
| 819 |
{ |
| 820 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 821 |
swidget UxThisWidget; |
| 822 |
|
| 823 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 824 |
UxSaveCtx = UxBackgroundShellContext; |
| 825 |
UxBackgroundShellContext = UxContext = |
| 826 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 827 |
{ |
| 828 |
MidasCommand(UxWidget); |
| 829 |
|
| 830 |
} |
| 831 |
UxBackgroundShellContext = UxSaveCtx; |
| 832 |
} |
| 833 |
|
| 834 |
static void activateCB_pb_search_plot15( UxWidget, UxClientData, UxCallbackArg ) |
| 835 |
Widget UxWidget; |
| 836 |
XtPointer UxClientData, UxCallbackArg; |
| 837 |
{ |
| 838 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 839 |
swidget UxThisWidget; |
| 840 |
|
| 841 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 842 |
UxSaveCtx = UxBackgroundShellContext; |
| 843 |
UxBackgroundShellContext = UxContext = |
| 844 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 845 |
{ |
| 846 |
MidasCommand(UxWidget); |
| 847 |
|
| 848 |
} |
| 849 |
UxBackgroundShellContext = UxSaveCtx; |
| 850 |
} |
| 851 |
|
| 852 |
static void activateCB_pb_search_plot16( UxWidget, UxClientData, UxCallbackArg ) |
| 853 |
Widget UxWidget; |
| 854 |
XtPointer UxClientData, UxCallbackArg; |
| 855 |
{ |
| 856 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 857 |
swidget UxThisWidget; |
| 858 |
|
| 859 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 860 |
UxSaveCtx = UxBackgroundShellContext; |
| 861 |
UxBackgroundShellContext = UxContext = |
| 862 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 863 |
{ |
| 864 |
MidasCommand(UxWidget); |
| 865 |
|
| 866 |
} |
| 867 |
UxBackgroundShellContext = UxSaveCtx; |
| 868 |
} |
| 869 |
|
| 870 |
static void activateCB_pb_main_search8( UxWidget, UxClientData, UxCallbackArg ) |
| 871 |
Widget UxWidget; |
| 872 |
XtPointer UxClientData, UxCallbackArg; |
| 873 |
{ |
| 874 |
_UxCBackgroundShell *UxSaveCtx, *UxContext; |
| 875 |
swidget UxThisWidget; |
| 876 |
|
| 877 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 878 |
UxSaveCtx = UxBackgroundShellContext; |
| 879 |
UxBackgroundShellContext = UxContext = |
| 880 |
(_UxCBackgroundShell *) UxGetContext( UxThisWidget ); |
| 881 |
{ |
| 882 |
SelectList(UxWidget); |
| 883 |
|
| 884 |
} |
| 885 |
UxBackgroundShellContext = UxSaveCtx; |
| 886 |
} |
| 887 |
|
| 888 |
/******************************************************************************* |
| 889 |
The 'init_' function sets the private properties for all the |
| 890 |
swidgets to the values specified in the Property Table. |
| 891 |
Some properties need to be set after the X widgets have been |
| 892 |
created and the setting of these properties is done in the |
| 893 |
'build_' function after the UxCreateWidget call. |
| 894 |
*******************************************************************************/ |
| 895 |
|
| 896 |
static void _Uxinit_BackgroundShell() |
| 897 |
{ |
| 898 |
UxPutTitle( BackgroundShell, "XEchelle: Interorder Background" ); |
| 899 |
UxPutGeometry( BackgroundShell, "+10+60" ); |
| 900 |
UxPutHeight( BackgroundShell, 505 ); |
| 901 |
UxPutWidth( BackgroundShell, 520 ); |
| 902 |
UxPutY( BackgroundShell, 466 ); |
| 903 |
UxPutX( BackgroundShell, 604 ); |
| 904 |
|
| 905 |
UxPutBackground( form29, WindowBackground ); |
| 906 |
UxPutHeight( form29, 348 ); |
| 907 |
UxPutWidth( form29, 408 ); |
| 908 |
UxPutY( form29, -2 ); |
| 909 |
UxPutX( form29, 0 ); |
| 910 |
UxPutUnitType( form29, "pixels" ); |
| 911 |
UxPutResizePolicy( form29, "resize_none" ); |
| 912 |
|
| 913 |
UxPutBackground( form30, ButtonBackground ); |
| 914 |
UxPutHeight( form30, 40 ); |
| 915 |
UxPutWidth( form30, 508 ); |
| 916 |
UxPutY( form30, 460 ); |
| 917 |
UxPutX( form30, 6 ); |
| 918 |
UxPutResizePolicy( form30, "resize_none" ); |
| 919 |
|
| 920 |
UxPutLabelString( pushButton4, "Cancel" ); |
| 921 |
UxPutForeground( pushButton4, CancelForeground ); |
| 922 |
UxPutFontList( pushButton4, BoldTextFont ); |
| 923 |
UxPutBackground( pushButton4, ButtonBackground ); |
| 924 |
UxPutHeight( pushButton4, 30 ); |
| 925 |
UxPutWidth( pushButton4, 80 ); |
| 926 |
UxPutY( pushButton4, 4 ); |
| 927 |
UxPutX( pushButton4, 422 ); |
| 928 |
|
| 929 |
UxPutLabelString( pb_search_plot1, "Help..." ); |
| 930 |
UxPutForeground( pb_search_plot1, ButtonForeground ); |
| 931 |
UxPutFontList( pb_search_plot1, BoldTextFont ); |
| 932 |
UxPutBackground( pb_search_plot1, ButtonBackground ); |
| 933 |
UxPutHeight( pb_search_plot1, 30 ); |
| 934 |
UxPutWidth( pb_search_plot1, 80 ); |
| 935 |
UxPutY( pb_search_plot1, 4 ); |
| 936 |
UxPutX( pb_search_plot1, 340 ); |
| 937 |
|
| 938 |
UxPutLabelString( pb_search_search6, "Subtract" ); |
| 939 |
UxPutForeground( pb_search_search6, ApplyForeground ); |
| 940 |
UxPutFontList( pb_search_search6, BoldTextFont ); |
| 941 |
UxPutBackground( pb_search_search6, ButtonBackground ); |
| 942 |
UxPutHeight( pb_search_search6, 30 ); |
| 943 |
UxPutWidth( pb_search_search6, 80 ); |
| 944 |
UxPutY( pb_search_search6, 4 ); |
| 945 |
UxPutX( pb_search_search6, 8 ); |
| 946 |
|
| 947 |
UxPutLabelString( pb_search_plot9, "Positions" ); |
| 948 |
UxPutForeground( pb_search_plot9, ButtonForeground ); |
| 949 |
UxPutFontList( pb_search_plot9, BoldTextFont ); |
| 950 |
UxPutBackground( pb_search_plot9, ButtonBackground ); |
| 951 |
UxPutHeight( pb_search_plot9, 30 ); |
| 952 |
UxPutWidth( pb_search_plot9, 80 ); |
| 953 |
UxPutY( pb_search_plot9, 4 ); |
| 954 |
UxPutX( pb_search_plot9, 92 ); |
| 955 |
|
| 956 |
UxPutLabelString( pb_search_plot10, "Select" ); |
| 957 |
UxPutForeground( pb_search_plot10, ButtonForeground ); |
| 958 |
UxPutFontList( pb_search_plot10, BoldTextFont ); |
| 959 |
UxPutBackground( pb_search_plot10, ButtonBackground ); |
| 960 |
UxPutHeight( pb_search_plot10, 30 ); |
| 961 |
UxPutWidth( pb_search_plot10, 80 ); |
| 962 |
UxPutY( pb_search_plot10, 4 ); |
| 963 |
UxPutX( pb_search_plot10, 176 ); |
| 964 |
|
| 965 |
UxPutLabelString( pb_search_plot12, "Plot" ); |
| 966 |
UxPutForeground( pb_search_plot12, ButtonForeground ); |
| 967 |
UxPutFontList( pb_search_plot12, BoldTextFont ); |
| 968 |
UxPutBackground( pb_search_plot12, ButtonBackground ); |
| 969 |
UxPutHeight( pb_search_plot12, 30 ); |
| 970 |
UxPutWidth( pb_search_plot12, 80 ); |
| 971 |
UxPutY( pb_search_plot12, 4 ); |
| 972 |
UxPutX( pb_search_plot12, 258 ); |
| 973 |
|
| 974 |
UxPutFontList( shelp_search4, TextFont ); |
| 975 |
UxPutEditable( shelp_search4, "false" ); |
| 976 |
UxPutCursorPositionVisible( shelp_search4, "false" ); |
| 977 |
UxPutBackground( shelp_search4, SHelpBackground ); |
| 978 |
UxPutHeight( shelp_search4, 50 ); |
| 979 |
UxPutWidth( shelp_search4, 508 ); |
| 980 |
UxPutY( shelp_search4, 402 ); |
| 981 |
UxPutX( shelp_search4, 4 ); |
| 982 |
|
| 983 |
UxPutBackground( separator24, WindowBackground ); |
| 984 |
UxPutHeight( separator24, 10 ); |
| 985 |
UxPutWidth( separator24, 514 ); |
| 986 |
UxPutY( separator24, 452 ); |
| 987 |
UxPutX( separator24, 4 ); |
| 988 |
|
| 989 |
UxPutBackground( separator25, WindowBackground ); |
| 990 |
UxPutHeight( separator25, 10 ); |
| 991 |
UxPutWidth( separator25, 518 ); |
| 992 |
UxPutY( separator25, 388 ); |
| 993 |
UxPutX( separator25, 2 ); |
| 994 |
|
| 995 |
UxPutForeground( label69, TextForeground ); |
| 996 |
UxPutAlignment( label69, "alignment_beginning" ); |
| 997 |
UxPutLabelString( label69, "Radius (pixel):" ); |
| 998 |
UxPutFontList( label69, TextFont ); |
| 999 |
UxPutBackground( label69, LabelBackground ); |
| 1000 |
UxPutHeight( label69, 30 ); |
| 1001 |
UxPutWidth( label69, 100 ); |
| 1002 |
UxPutY( label69, 342 ); |
| 1003 |
UxPutX( label69, 16 ); |
| 1004 |
|
| 1005 |
UxPutForeground( tf_alpha8, TextForeground ); |
| 1006 |
UxPutHighlightOnEnter( tf_alpha8, "true" ); |
| 1007 |
UxPutFontList( tf_alpha8, TextFont ); |
| 1008 |
UxPutBackground( tf_alpha8, TextBackground ); |
| 1009 |
UxPutHeight( tf_alpha8, 32 ); |
| 1010 |
UxPutWidth( tf_alpha8, 96 ); |
| 1011 |
UxPutY( tf_alpha8, 296 ); |
| 1012 |
UxPutX( tf_alpha8, 370 ); |
| 1013 |
|
| 1014 |
UxPutForeground( tf_alpha9, TextForeground ); |
| 1015 |
UxPutHighlightOnEnter( tf_alpha9, "true" ); |
| 1016 |
UxPutFontList( tf_alpha9, TextFont ); |
| 1017 |
UxPutBackground( tf_alpha9, TextBackground ); |
| 1018 |
UxPutHeight( tf_alpha9, 32 ); |
| 1019 |
UxPutWidth( tf_alpha9, 96 ); |
| 1020 |
UxPutY( tf_alpha9, 222 ); |
| 1021 |
UxPutX( tf_alpha9, 370 ); |
| 1022 |
|
| 1023 |
UxPutForeground( label70, TextForeground ); |
| 1024 |
UxPutAlignment( label70, "alignment_beginning" ); |
| 1025 |
UxPutLabelString( label70, "Number of iterations:" ); |
| 1026 |
UxPutFontList( label70, TextFont ); |
| 1027 |
UxPutBackground( label70, LabelBackground ); |
| 1028 |
UxPutHeight( label70, 30 ); |
| 1029 |
UxPutWidth( label70, 140 ); |
| 1030 |
UxPutY( label70, 224 ); |
| 1031 |
UxPutX( label70, 222 ); |
| 1032 |
|
| 1033 |
UxPutForeground( tf_alpha10, TextForeground ); |
| 1034 |
UxPutHighlightOnEnter( tf_alpha10, "true" ); |
| 1035 |
UxPutFontList( tf_alpha10, TextFont ); |
| 1036 |
UxPutBackground( tf_alpha10, TextBackground ); |
| 1037 |
UxPutHeight( tf_alpha10, 32 ); |
| 1038 |
UxPutWidth( tf_alpha10, 96 ); |
| 1039 |
UxPutY( tf_alpha10, 338 ); |
| 1040 |
UxPutX( tf_alpha10, 214 ); |
| 1041 |
|
| 1042 |
UxPutForeground( tf_alpha12, TextForeground ); |
| 1043 |
UxPutHighlightOnEnter( tf_alpha12, "true" ); |
| 1044 |
UxPutFontList( tf_alpha12, TextFont ); |
| 1045 |
UxPutBackground( tf_alpha12, TextBackground ); |
| 1046 |
UxPutHeight( tf_alpha12, 32 ); |
| 1047 |
UxPutWidth( tf_alpha12, 96 ); |
| 1048 |
UxPutY( tf_alpha12, 338 ); |
| 1049 |
UxPutX( tf_alpha12, 368 ); |
| 1050 |
|
| 1051 |
UxPutForeground( tf_alpha13, TextForeground ); |
| 1052 |
UxPutHighlightOnEnter( tf_alpha13, "true" ); |
| 1053 |
UxPutFontList( tf_alpha13, TextFont ); |
| 1054 |
UxPutBackground( tf_alpha13, TextBackground ); |
| 1055 |
UxPutHeight( tf_alpha13, 32 ); |
| 1056 |
UxPutWidth( tf_alpha13, 96 ); |
| 1057 |
UxPutY( tf_alpha13, 222 ); |
| 1058 |
UxPutX( tf_alpha13, 120 ); |
| 1059 |
|
| 1060 |
UxPutForeground( label71, TextForeground ); |
| 1061 |
UxPutAlignment( label71, "alignment_beginning" ); |
| 1062 |
UxPutLabelString( label71, "Step (pixel):" ); |
| 1063 |
UxPutFontList( label71, TextFont ); |
| 1064 |
UxPutBackground( label71, LabelBackground ); |
| 1065 |
UxPutHeight( label71, 30 ); |
| 1066 |
UxPutWidth( label71, 94 ); |
| 1067 |
UxPutY( label71, 222 ); |
| 1068 |
UxPutX( label71, 14 ); |
| 1069 |
|
| 1070 |
UxPutForeground( label72, TextForeground ); |
| 1071 |
UxPutAlignment( label72, "alignment_beginning" ); |
| 1072 |
UxPutLabelString( label72, "Polynomial Degree:" ); |
| 1073 |
UxPutFontList( label72, TextFont ); |
| 1074 |
UxPutBackground( label72, LabelBackground ); |
| 1075 |
UxPutHeight( label72, 30 ); |
| 1076 |
UxPutWidth( label72, 136 ); |
| 1077 |
UxPutY( label72, 302 ); |
| 1078 |
UxPutX( label72, 16 ); |
| 1079 |
|
| 1080 |
UxPutForeground( tf_alpha14, TextForeground ); |
| 1081 |
UxPutHighlightOnEnter( tf_alpha14, "true" ); |
| 1082 |
UxPutFontList( tf_alpha14, TextFont ); |
| 1083 |
UxPutBackground( tf_alpha14, TextBackground ); |
| 1084 |
UxPutHeight( tf_alpha14, 32 ); |
| 1085 |
UxPutWidth( tf_alpha14, 96 ); |
| 1086 |
UxPutY( tf_alpha14, 298 ); |
| 1087 |
UxPutX( tf_alpha14, 216 ); |
| 1088 |
|
| 1089 |
UxPutForeground( label74, TextForeground ); |
| 1090 |
UxPutAlignment( label74, "alignment_beginning" ); |
| 1091 |
UxPutLabelString( label74, "X=" ); |
| 1092 |
UxPutFontList( label74, TextFont ); |
| 1093 |
UxPutBackground( label74, LabelBackground ); |
| 1094 |
UxPutHeight( label74, 30 ); |
| 1095 |
UxPutWidth( label74, 36 ); |
| 1096 |
UxPutY( label74, 340 ); |
| 1097 |
UxPutX( label74, 166 ); |
| 1098 |
|
| 1099 |
UxPutForeground( label75, TextForeground ); |
| 1100 |
UxPutAlignment( label75, "alignment_beginning" ); |
| 1101 |
UxPutLabelString( label75, "Y=" ); |
| 1102 |
UxPutFontList( label75, TextFont ); |
| 1103 |
UxPutBackground( label75, LabelBackground ); |
| 1104 |
UxPutHeight( label75, 30 ); |
| 1105 |
UxPutWidth( label75, 20 ); |
| 1106 |
UxPutY( label75, 296 ); |
| 1107 |
UxPutX( label75, 342 ); |
| 1108 |
|
| 1109 |
UxPutForeground( label77, TextForeground ); |
| 1110 |
UxPutAlignment( label77, "alignment_beginning" ); |
| 1111 |
UxPutLabelString( label77, "Y=" ); |
| 1112 |
UxPutFontList( label77, TextFont ); |
| 1113 |
UxPutBackground( label77, LabelBackground ); |
| 1114 |
UxPutHeight( label77, 30 ); |
| 1115 |
UxPutWidth( label77, 20 ); |
| 1116 |
UxPutY( label77, 338 ); |
| 1117 |
UxPutX( label77, 336 ); |
| 1118 |
|
| 1119 |
UxPutForeground( label78, TextForeground ); |
| 1120 |
UxPutAlignment( label78, "alignment_beginning" ); |
| 1121 |
UxPutLabelString( label78, "X=" ); |
| 1122 |
UxPutFontList( label78, TextFont ); |
| 1123 |
UxPutBackground( label78, LabelBackground ); |
| 1124 |
UxPutHeight( label78, 30 ); |
| 1125 |
UxPutWidth( label78, 34 ); |
| 1126 |
UxPutY( label78, 302 ); |
| 1127 |
UxPutX( label78, 166 ); |
| 1128 |
|
| 1129 |
UxPutSelectColor( toggleButton17, "Yellow" ); |
| 1130 |
UxPutLabelString( toggleButton17, "Plot Background" ); |
| 1131 |
UxPutForeground( toggleButton17, TextForeground ); |
| 1132 |
UxPutFontList( toggleButton17, TextFont ); |
| 1133 |
UxPutBackground( toggleButton17, WindowBackground ); |
| 1134 |
UxPutRecomputeSize( toggleButton17, "false" ); |
| 1135 |
UxPutHeight( toggleButton17, 29 ); |
| 1136 |
UxPutWidth( toggleButton17, 136 ); |
| 1137 |
UxPutY( toggleButton17, 172 ); |
| 1138 |
UxPutX( toggleButton17, 12 ); |
| 1139 |
|
| 1140 |
UxPutResizeWidth( rowColumn1, "true" ); |
| 1141 |
UxPutOrientation( rowColumn1, "horizontal" ); |
| 1142 |
UxPutIsAligned( rowColumn1, "true" ); |
| 1143 |
UxPutAdjustMargin( rowColumn1, "true" ); |
| 1144 |
UxPutAdjustLast( rowColumn1, "false" ); |
| 1145 |
UxPutEntryAlignment( rowColumn1, "alignment_beginning" ); |
| 1146 |
UxPutBorderWidth( rowColumn1, 0 ); |
| 1147 |
UxPutShadowThickness( rowColumn1, 0 ); |
| 1148 |
UxPutLabelString( rowColumn1, "" ); |
| 1149 |
UxPutEntryBorder( rowColumn1, 0 ); |
| 1150 |
UxPutBackground( rowColumn1, WindowBackground ); |
| 1151 |
UxPutRadioBehavior( rowColumn1, "true" ); |
| 1152 |
UxPutHeight( rowColumn1, 96 ); |
| 1153 |
UxPutWidth( rowColumn1, 106 ); |
| 1154 |
UxPutY( rowColumn1, 129 ); |
| 1155 |
UxPutX( rowColumn1, 88 ); |
| 1156 |
|
| 1157 |
UxPutForeground( rb_seamtd_gaus1, TextForeground ); |
| 1158 |
UxPutIndicatorSize( rb_seamtd_gaus1, 16 ); |
| 1159 |
UxPutHighlightOnEnter( rb_seamtd_gaus1, "true" ); |
| 1160 |
UxPutSelectColor( rb_seamtd_gaus1, SelectColor ); |
| 1161 |
UxPutSet( rb_seamtd_gaus1, "true" ); |
| 1162 |
UxPutLabelString( rb_seamtd_gaus1, "Spline" ); |
| 1163 |
UxPutFontList( rb_seamtd_gaus1, TextFont ); |
| 1164 |
UxPutBackground( rb_seamtd_gaus1, WindowBackground ); |
| 1165 |
UxPutHeight( rb_seamtd_gaus1, 30 ); |
| 1166 |
UxPutWidth( rb_seamtd_gaus1, 148 ); |
| 1167 |
UxPutY( rb_seamtd_gaus1, 12 ); |
| 1168 |
UxPutX( rb_seamtd_gaus1, 12 ); |
| 1169 |
|
| 1170 |
UxPutForeground( rb_seamtd_grav1, TextForeground ); |
| 1171 |
UxPutIndicatorSize( rb_seamtd_grav1, 16 ); |
| 1172 |
UxPutHighlightOnEnter( rb_seamtd_grav1, "true" ); |
| 1173 |
UxPutSelectColor( rb_seamtd_grav1, SelectColor ); |
| 1174 |
UxPutLabelString( rb_seamtd_grav1, "Polynomial " ); |
| 1175 |
UxPutFontList( rb_seamtd_grav1, TextFont ); |
| 1176 |
UxPutBackground( rb_seamtd_grav1, WindowBackground ); |
| 1177 |
UxPutHeight( rb_seamtd_grav1, 28 ); |
| 1178 |
UxPutWidth( rb_seamtd_grav1, 108 ); |
| 1179 |
UxPutY( rb_seamtd_grav1, 3 ); |
| 1180 |
UxPutX( rb_seamtd_grav1, 136 ); |
| 1181 |
|
| 1182 |
UxPutForeground( rb_seamtd_maxi1, TextForeground ); |
| 1183 |
UxPutIndicatorSize( rb_seamtd_maxi1, 16 ); |
| 1184 |
UxPutHighlightOnEnter( rb_seamtd_maxi1, "true" ); |
| 1185 |
UxPutSelectColor( rb_seamtd_maxi1, SelectColor ); |
| 1186 |
UxPutLabelString( rb_seamtd_maxi1, "Smooth" ); |
| 1187 |
UxPutFontList( rb_seamtd_maxi1, TextFont ); |
| 1188 |
UxPutBackground( rb_seamtd_maxi1, WindowBackground ); |
| 1189 |
UxPutHeight( rb_seamtd_maxi1, 24 ); |
| 1190 |
UxPutWidth( rb_seamtd_maxi1, 96 ); |
| 1191 |
UxPutY( rb_seamtd_maxi1, 66 ); |
| 1192 |
UxPutX( rb_seamtd_maxi1, 4 ); |
| 1193 |
|
| 1194 |
UxPutForeground( label79, TextForeground ); |
| 1195 |
UxPutAlignment( label79, "alignment_beginning" ); |
| 1196 |
UxPutLabelString( label79, "Spline degree:" ); |
| 1197 |
UxPutFontList( label79, TextFont ); |
| 1198 |
UxPutBackground( label79, LabelBackground ); |
| 1199 |
UxPutHeight( label79, 30 ); |
| 1200 |
UxPutWidth( label79, 100 ); |
| 1201 |
UxPutY( label79, 262 ); |
| 1202 |
UxPutX( label79, 14 ); |
| 1203 |
|
| 1204 |
UxPutForeground( label80, TextForeground ); |
| 1205 |
UxPutAlignment( label80, "alignment_beginning" ); |
| 1206 |
UxPutLabelString( label80, "Smoothing Factor:" ); |
| 1207 |
UxPutFontList( label80, TextFont ); |
| 1208 |
UxPutBackground( label80, LabelBackground ); |
| 1209 |
UxPutHeight( label80, 30 ); |
| 1210 |
UxPutWidth( label80, 126 ); |
| 1211 |
UxPutY( label80, 262 ); |
| 1212 |
UxPutX( label80, 224 ); |
| 1213 |
|
| 1214 |
UxPutForeground( tf_alpha15, TextForeground ); |
| 1215 |
UxPutHighlightOnEnter( tf_alpha15, "true" ); |
| 1216 |
UxPutFontList( tf_alpha15, TextFont ); |
| 1217 |
UxPutBackground( tf_alpha15, TextBackground ); |
| 1218 |
UxPutHeight( tf_alpha15, 32 ); |
| 1219 |
UxPutWidth( tf_alpha15, 96 ); |
| 1220 |
UxPutY( tf_alpha15, 258 ); |
| 1221 |
UxPutX( tf_alpha15, 368 ); |
| 1222 |
|
| 1223 |
UxPutForeground( tf_alpha16, TextForeground ); |
| 1224 |
UxPutHighlightOnEnter( tf_alpha16, "true" ); |
| 1225 |
UxPutFontList( tf_alpha16, TextFont ); |
| 1226 |
UxPutBackground( tf_alpha16, TextBackground ); |
| 1227 |
UxPutHeight( tf_alpha16, 32 ); |
| 1228 |
UxPutWidth( tf_alpha16, 96 ); |
| 1229 |
UxPutY( tf_alpha16, 264 ); |
| 1230 |
UxPutX( tf_alpha16, 120 ); |
| 1231 |
|
| 1232 |
UxPutForeground( label81, TextForeground ); |
| 1233 |
UxPutAlignment( label81, "alignment_beginning" ); |
| 1234 |
UxPutLabelString( label81, "Method:" ); |
| 1235 |
UxPutFontList( label81, TextFont ); |
| 1236 |
UxPutBackground( label81, LabelBackground ); |
| 1237 |
UxPutHeight( label81, 30 ); |
| 1238 |
UxPutWidth( label81, 68 ); |
| 1239 |
UxPutY( label81, 131 ); |
| 1240 |
UxPutX( label81, 14 ); |
| 1241 |
|
| 1242 |
UxPutForeground( tf_alpha17, TextForeground ); |
| 1243 |
UxPutHighlightOnEnter( tf_alpha17, "true" ); |
| 1244 |
UxPutFontList( tf_alpha17, TextFont ); |
| 1245 |
UxPutBackground( tf_alpha17, TextBackground ); |
| 1246 |
UxPutHeight( tf_alpha17, 32 ); |
| 1247 |
UxPutWidth( tf_alpha17, 236 ); |
| 1248 |
UxPutY( tf_alpha17, 8 ); |
| 1249 |
UxPutX( tf_alpha17, 126 ); |
| 1250 |
|
| 1251 |
UxPutForeground( tf_alpha18, TextForeground ); |
| 1252 |
UxPutHighlightOnEnter( tf_alpha18, "true" ); |
| 1253 |
UxPutFontList( tf_alpha18, TextFont ); |
| 1254 |
UxPutBackground( tf_alpha18, TextBackground ); |
| 1255 |
UxPutHeight( tf_alpha18, 32 ); |
| 1256 |
UxPutWidth( tf_alpha18, 228 ); |
| 1257 |
UxPutY( tf_alpha18, 46 ); |
| 1258 |
UxPutX( tf_alpha18, 132 ); |
| 1259 |
|
| 1260 |
UxPutForeground( tf_alpha19, TextForeground ); |
| 1261 |
UxPutHighlightOnEnter( tf_alpha19, "true" ); |
| 1262 |
UxPutFontList( tf_alpha19, TextFont ); |
| 1263 |
UxPutBackground( tf_alpha19, TextBackground ); |
| 1264 |
UxPutHeight( tf_alpha19, 32 ); |
| 1265 |
UxPutWidth( tf_alpha19, 230 ); |
| 1266 |
UxPutY( tf_alpha19, 90 ); |
| 1267 |
UxPutX( tf_alpha19, 128 ); |
| 1268 |
|
| 1269 |
UxPutForeground( label82, TextForeground ); |
| 1270 |
UxPutAlignment( label82, "alignment_beginning" ); |
| 1271 |
UxPutLabelString( label82, "Input Frame" ); |
| 1272 |
UxPutFontList( label82, TextFont ); |
| 1273 |
UxPutBackground( label82, LabelBackground ); |
| 1274 |
UxPutHeight( label82, 30 ); |
| 1275 |
UxPutWidth( label82, 94 ); |
| 1276 |
UxPutY( label82, 10 ); |
| 1277 |
UxPutX( label82, 18 ); |
| 1278 |
|
| 1279 |
UxPutWidth( pb_main_search17, 46 ); |
| 1280 |
UxPutRecomputeSize( pb_main_search17, "true" ); |
| 1281 |
UxPutLabelString( pb_main_search17, "..." ); |
| 1282 |
UxPutForeground( pb_main_search17, ButtonForeground ); |
| 1283 |
UxPutFontList( pb_main_search17, BoldTextFont ); |
| 1284 |
UxPutBackground( pb_main_search17, ButtonBackground ); |
| 1285 |
UxPutHeight( pb_main_search17, 28 ); |
| 1286 |
UxPutY( pb_main_search17, 50 ); |
| 1287 |
UxPutX( pb_main_search17, 366 ); |
| 1288 |
|
| 1289 |
UxPutWidth( pb_main_search18, 46 ); |
| 1290 |
UxPutRecomputeSize( pb_main_search18, "true" ); |
| 1291 |
UxPutLabelString( pb_main_search18, "..." ); |
| 1292 |
UxPutForeground( pb_main_search18, ButtonForeground ); |
| 1293 |
UxPutFontList( pb_main_search18, BoldTextFont ); |
| 1294 |
UxPutBackground( pb_main_search18, ButtonBackground ); |
| 1295 |
UxPutHeight( pb_main_search18, 28 ); |
| 1296 |
UxPutY( pb_main_search18, 88 ); |
| 1297 |
UxPutX( pb_main_search18, 364 ); |
| 1298 |
|
| 1299 |
UxPutForeground( label83, TextForeground ); |
| 1300 |
UxPutAlignment( label83, "alignment_beginning" ); |
| 1301 |
UxPutLabelString( label83, "- Background" ); |
| 1302 |
UxPutFontList( label83, TextFont ); |
| 1303 |
UxPutBackground( label83, LabelBackground ); |
| 1304 |
UxPutHeight( label83, 30 ); |
| 1305 |
UxPutWidth( label83, 94 ); |
| 1306 |
UxPutY( label83, 42 ); |
| 1307 |
UxPutX( label83, 4 ); |
| 1308 |
|
| 1309 |
UxPutForeground( label84, TextForeground ); |
| 1310 |
UxPutAlignment( label84, "alignment_beginning" ); |
| 1311 |
UxPutLabelString( label84, "= Output Frame" ); |
| 1312 |
UxPutFontList( label84, TextFont ); |
| 1313 |
UxPutBackground( label84, LabelBackground ); |
| 1314 |
UxPutHeight( label84, 30 ); |
| 1315 |
UxPutWidth( label84, 116 ); |
| 1316 |
UxPutY( label84, 86 ); |
| 1317 |
UxPutX( label84, 6 ); |
| 1318 |
|
| 1319 |
UxPutText( tf_alpha20, "5000" ); |
| 1320 |
UxPutForeground( tf_alpha20, TextForeground ); |
| 1321 |
UxPutHighlightOnEnter( tf_alpha20, "true" ); |
| 1322 |
UxPutFontList( tf_alpha20, TextFont ); |
| 1323 |
UxPutBackground( tf_alpha20, TextBackground ); |
| 1324 |
UxPutHeight( tf_alpha20, 32 ); |
| 1325 |
UxPutWidth( tf_alpha20, 78 ); |
| 1326 |
UxPutY( tf_alpha20, 174 ); |
| 1327 |
UxPutX( tf_alpha20, 394 ); |
| 1328 |
|
| 1329 |
UxPutText( tf_alpha21, "0" ); |
| 1330 |
UxPutForeground( tf_alpha21, TextForeground ); |
| 1331 |
UxPutHighlightOnEnter( tf_alpha21, "true" ); |
| 1332 |
UxPutFontList( tf_alpha21, TextFont ); |
| 1333 |
UxPutBackground( tf_alpha21, TextBackground ); |
| 1334 |
UxPutHeight( tf_alpha21, 32 ); |
| 1335 |
UxPutWidth( tf_alpha21, 70 ); |
| 1336 |
UxPutY( tf_alpha21, 172 ); |
| 1337 |
UxPutX( tf_alpha21, 266 ); |
| 1338 |
|
| 1339 |
UxPutForeground( label85, TextForeground ); |
| 1340 |
UxPutAlignment( label85, "alignment_beginning" ); |
| 1341 |
UxPutLabelString( label85, "Min=" ); |
| 1342 |
UxPutFontList( label85, TextFont ); |
| 1343 |
UxPutBackground( label85, LabelBackground ); |
| 1344 |
UxPutHeight( label85, 30 ); |
| 1345 |
UxPutWidth( label85, 40 ); |
| 1346 |
UxPutY( label85, 174 ); |
| 1347 |
UxPutX( label85, 222 ); |
| 1348 |
|
| 1349 |
UxPutForeground( label86, TextForeground ); |
| 1350 |
UxPutAlignment( label86, "alignment_beginning" ); |
| 1351 |
UxPutLabelString( label86, "Max=" ); |
| 1352 |
UxPutFontList( label86, TextFont ); |
| 1353 |
UxPutBackground( label86, LabelBackground ); |
| 1354 |
UxPutHeight( label86, 30 ); |
| 1355 |
UxPutWidth( label86, 50 ); |
| 1356 |
UxPutY( label86, 174 ); |
| 1357 |
UxPutX( label86, 342 ); |
| 1358 |
|
| 1359 |
UxPutForeground( label87, TextForeground ); |
| 1360 |
UxPutAlignment( label87, "alignment_beginning" ); |
| 1361 |
UxPutLabelString( label87, "Cuts:" ); |
| 1362 |
UxPutFontList( label87, TextFont ); |
| 1363 |
UxPutBackground( label87, LabelBackground ); |
| 1364 |
UxPutHeight( label87, 30 ); |
| 1365 |
UxPutWidth( label87, 50 ); |
| 1366 |
UxPutY( label87, 172 ); |
| 1367 |
UxPutX( label87, 162 ); |
| 1368 |
|
| 1369 |
UxPutLabelString( pb_search_plot11, "Display" ); |
| 1370 |
UxPutForeground( pb_search_plot11, ButtonForeground ); |
| 1371 |
UxPutFontList( pb_search_plot11, BoldTextFont ); |
| 1372 |
UxPutBackground( pb_search_plot11, ButtonBackground ); |
| 1373 |
UxPutHeight( pb_search_plot11, 30 ); |
| 1374 |
UxPutWidth( pb_search_plot11, 86 ); |
| 1375 |
UxPutY( pb_search_plot11, 10 ); |
| 1376 |
UxPutX( pb_search_plot11, 420 ); |
| 1377 |
|
| 1378 |
UxPutLabelString( pb_search_plot15, "Display" ); |
| 1379 |
UxPutForeground( pb_search_plot15, ButtonForeground ); |
| 1380 |
UxPutFontList( pb_search_plot15, BoldTextFont ); |
| 1381 |
UxPutBackground( pb_search_plot15, ButtonBackground ); |
| 1382 |
UxPutHeight( pb_search_plot15, 30 ); |
| 1383 |
UxPutWidth( pb_search_plot15, 86 ); |
| 1384 |
UxPutY( pb_search_plot15, 48 ); |
| 1385 |
UxPutX( pb_search_plot15, 422 ); |
| 1386 |
|
| 1387 |
UxPutLabelString( pb_search_plot16, "Display" ); |
| 1388 |
UxPutForeground( pb_search_plot16, ButtonForeground ); |
| 1389 |
UxPutFontList( pb_search_plot16, BoldTextFont ); |
| 1390 |
UxPutBackground( pb_search_plot16, ButtonBackground ); |
| 1391 |
UxPutHeight( pb_search_plot16, 30 ); |
| 1392 |
UxPutWidth( pb_search_plot16, 86 ); |
| 1393 |
UxPutY( pb_search_plot16, 88 ); |
| 1394 |
UxPutX( pb_search_plot16, 422 ); |
| 1395 |
|
| 1396 |
UxPutWidth( pb_main_search8, 46 ); |
| 1397 |
UxPutRecomputeSize( pb_main_search8, "true" ); |
| 1398 |
UxPutLabelString( pb_main_search8, "..." ); |
| 1399 |
UxPutForeground( pb_main_search8, ButtonForeground ); |
| 1400 |
UxPutFontList( pb_main_search8, BoldTextFont ); |
| 1401 |
UxPutBackground( pb_main_search8, ButtonBackground ); |
| 1402 |
UxPutHeight( pb_main_search8, 28 ); |
| 1403 |
UxPutY( pb_main_search8, 12 ); |
| 1404 |
UxPutX( pb_main_search8, 366 ); |
| 1405 |
|
| 1406 |
} |
| 1407 |
|
| 1408 |
/******************************************************************************* |
| 1409 |
The 'build_' function creates all the swidgets and X widgets, |
| 1410 |
and sets their properties to the values specified in the |
| 1411 |
Property Editor. |
| 1412 |
*******************************************************************************/ |
| 1413 |
|
| 1414 |
static swidget _Uxbuild_BackgroundShell() |
| 1415 |
{ |
| 1416 |
/* Create the swidgets */ |
| 1417 |
|
| 1418 |
BackgroundShell = UxCreateTransientShell( "BackgroundShell", NO_PARENT ); |
| 1419 |
UxPutContext( BackgroundShell, UxBackgroundShellContext ); |
| 1420 |
|
| 1421 |
form29 = UxCreateForm( "form29", BackgroundShell ); |
| 1422 |
form30 = UxCreateForm( "form30", form29 ); |
| 1423 |
pushButton4 = UxCreatePushButton( "pushButton4", form30 ); |
| 1424 |
pb_search_plot1 = UxCreatePushButton( "pb_search_plot1", form30 ); |
| 1425 |
pb_search_search6 = UxCreatePushButton( "pb_search_search6", form30 ); |
| 1426 |
pb_search_plot9 = UxCreatePushButton( "pb_search_plot9", form30 ); |
| 1427 |
pb_search_plot10 = UxCreatePushButton( "pb_search_plot10", form30 ); |
| 1428 |
pb_search_plot12 = UxCreatePushButton( "pb_search_plot12", form30 ); |
| 1429 |
shelp_search4 = UxCreateText( "shelp_search4", form29 ); |
| 1430 |
separator24 = UxCreateSeparator( "separator24", form29 ); |
| 1431 |
separator25 = UxCreateSeparator( "separator25", form29 ); |
| 1432 |
label69 = UxCreateLabel( "label69", form29 ); |
| 1433 |
tf_alpha8 = UxCreateTextField( "tf_alpha8", form29 ); |
| 1434 |
tf_alpha9 = UxCreateTextField( "tf_alpha9", form29 ); |
| 1435 |
label70 = UxCreateLabel( "label70", form29 ); |
| 1436 |
tf_alpha10 = UxCreateTextField( "tf_alpha10", form29 ); |
| 1437 |
tf_alpha12 = UxCreateTextField( "tf_alpha12", form29 ); |
| 1438 |
tf_alpha13 = UxCreateTextField( "tf_alpha13", form29 ); |
| 1439 |
label71 = UxCreateLabel( "label71", form29 ); |
| 1440 |
label72 = UxCreateLabel( "label72", form29 ); |
| 1441 |
tf_alpha14 = UxCreateTextField( "tf_alpha14", form29 ); |
| 1442 |
label74 = UxCreateLabel( "label74", form29 ); |
| 1443 |
label75 = UxCreateLabel( "label75", form29 ); |
| 1444 |
label77 = UxCreateLabel( "label77", form29 ); |
| 1445 |
label78 = UxCreateLabel( "label78", form29 ); |
| 1446 |
toggleButton17 = UxCreateToggleButton( "toggleButton17", form29 ); |
| 1447 |
rowColumn1 = UxCreateRowColumn( "rowColumn1", form29 ); |
| 1448 |
rb_seamtd_gaus1 = UxCreateToggleButton( "rb_seamtd_gaus1", rowColumn1 ); |
| 1449 |
rb_seamtd_grav1 = UxCreateToggleButton( "rb_seamtd_grav1", rowColumn1 ); |
| 1450 |
rb_seamtd_maxi1 = UxCreateToggleButton( "rb_seamtd_maxi1", rowColumn1 ); |
| 1451 |
label79 = UxCreateLabel( "label79", form29 ); |
| 1452 |
label80 = UxCreateLabel( "label80", form29 ); |
| 1453 |
tf_alpha15 = UxCreateTextField( "tf_alpha15", form29 ); |
| 1454 |
tf_alpha16 = UxCreateTextField( "tf_alpha16", form29 ); |
| 1455 |
label81 = UxCreateLabel( "label81", form29 ); |
| 1456 |
tf_alpha17 = UxCreateTextField( "tf_alpha17", form29 ); |
| 1457 |
tf_alpha18 = UxCreateTextField( "tf_alpha18", form29 ); |
| 1458 |
tf_alpha19 = UxCreateTextField( "tf_alpha19", form29 ); |
| 1459 |
label82 = UxCreateLabel( "label82", form29 ); |
| 1460 |
pb_main_search17 = UxCreatePushButton( "pb_main_search17", form29 ); |
| 1461 |
pb_main_search18 = UxCreatePushButton( "pb_main_search18", form29 ); |
| 1462 |
label83 = UxCreateLabel( "label83", form29 ); |
| 1463 |
label84 = UxCreateLabel( "label84", form29 ); |
| 1464 |
tf_alpha20 = UxCreateTextField( "tf_alpha20", form29 ); |
| 1465 |
tf_alpha21 = UxCreateTextField( "tf_alpha21", form29 ); |
| 1466 |
label85 = UxCreateLabel( "label85", form29 ); |
| 1467 |
label86 = UxCreateLabel( "label86", form29 ); |
| 1468 |
label87 = UxCreateLabel( "label87", form29 ); |
| 1469 |
pb_search_plot11 = UxCreatePushButton( "pb_search_plot11", form29 ); |
| 1470 |
pb_search_plot15 = UxCreatePushButton( "pb_search_plot15", form29 ); |
| 1471 |
pb_search_plot16 = UxCreatePushButton( "pb_search_plot16", form29 ); |
| 1472 |
pb_main_search8 = UxCreatePushButton( "pb_main_search8", form29 ); |
| 1473 |
|
| 1474 |
_Uxinit_BackgroundShell(); |
| 1475 |
|
| 1476 |
/* Create the X widgets */ |
| 1477 |
|
| 1478 |
UxCreateWidget( BackgroundShell ); |
| 1479 |
UxCreateWidget( form29 ); |
| 1480 |
UxCreateWidget( form30 ); |
| 1481 |
UxCreateWidget( pushButton4 ); |
| 1482 |
UxCreateWidget( pb_search_plot1 ); |
| 1483 |
UxCreateWidget( pb_search_search6 ); |
| 1484 |
UxCreateWidget( pb_search_plot9 ); |
| 1485 |
UxCreateWidget( pb_search_plot10 ); |
| 1486 |
UxCreateWidget( pb_search_plot12 ); |
| 1487 |
UxCreateWidget( shelp_search4 ); |
| 1488 |
UxCreateWidget( separator24 ); |
| 1489 |
UxCreateWidget( separator25 ); |
| 1490 |
UxCreateWidget( label69 ); |
| 1491 |
UxCreateWidget( tf_alpha8 ); |
| 1492 |
UxCreateWidget( tf_alpha9 ); |
| 1493 |
UxCreateWidget( label70 ); |
| 1494 |
UxCreateWidget( tf_alpha10 ); |
| 1495 |
UxCreateWidget( tf_alpha12 ); |
| 1496 |
UxCreateWidget( tf_alpha13 ); |
| 1497 |
UxCreateWidget( label71 ); |
| 1498 |
UxCreateWidget( label72 ); |
| 1499 |
UxCreateWidget( tf_alpha14 ); |
| 1500 |
UxCreateWidget( label74 ); |
| 1501 |
UxCreateWidget( label75 ); |
| 1502 |
UxCreateWidget( label77 ); |
| 1503 |
UxCreateWidget( label78 ); |
| 1504 |
UxCreateWidget( toggleButton17 ); |
| 1505 |
UxCreateWidget( rowColumn1 ); |
| 1506 |
UxCreateWidget( rb_seamtd_gaus1 ); |
| 1507 |
UxCreateWidget( rb_seamtd_grav1 ); |
| 1508 |
UxCreateWidget( rb_seamtd_maxi1 ); |
| 1509 |
UxCreateWidget( label79 ); |
| 1510 |
UxCreateWidget( label80 ); |
| 1511 |
UxCreateWidget( tf_alpha15 ); |
| 1512 |
UxCreateWidget( tf_alpha16 ); |
| 1513 |
UxCreateWidget( label81 ); |
| 1514 |
UxCreateWidget( tf_alpha17 ); |
| 1515 |
UxCreateWidget( tf_alpha18 ); |
| 1516 |
UxCreateWidget( tf_alpha19 ); |
| 1517 |
UxCreateWidget( label82 ); |
| 1518 |
UxCreateWidget( pb_main_search17 ); |
| 1519 |
UxCreateWidget( pb_main_search18 ); |
| 1520 |
UxCreateWidget( label83 ); |
| 1521 |
UxCreateWidget( label84 ); |
| 1522 |
UxCreateWidget( tf_alpha20 ); |
| 1523 |
UxCreateWidget( tf_alpha21 ); |
| 1524 |
UxCreateWidget( label85 ); |
| 1525 |
UxCreateWidget( label86 ); |
| 1526 |
UxCreateWidget( label87 ); |
| 1527 |
UxCreateWidget( pb_search_plot11 ); |
| 1528 |
UxCreateWidget( pb_search_plot15 ); |
| 1529 |
UxCreateWidget( pb_search_plot16 ); |
| 1530 |
UxCreateWidget( pb_main_search8 ); |
| 1531 |
|
| 1532 |
UxAddCallback( pushButton4, XmNactivateCallback, |
| 1533 |
activateCB_pushButton4, |
| 1534 |
(XtPointer) UxBackgroundShellContext ); |
| 1535 |
|
| 1536 |
UxAddCallback( pb_search_plot1, XmNactivateCallback, |
| 1537 |
activateCB_pb_search_plot1, |
| 1538 |
(XtPointer) UxBackgroundShellContext ); |
| 1539 |
|
| 1540 |
UxAddCallback( pb_search_search6, XmNactivateCallback, |
| 1541 |
activateCB_pb_search_search6, |
| 1542 |
(XtPointer) UxBackgroundShellContext ); |
| 1543 |
|
| 1544 |
UxAddCallback( pb_search_plot9, XmNactivateCallback, |
| 1545 |
activateCB_pb_search_plot9, |
| 1546 |
(XtPointer) UxBackgroundShellContext ); |
| 1547 |
|
| 1548 |
UxAddCallback( pb_search_plot10, XmNactivateCallback, |
| 1549 |
activateCB_pb_search_plot10, |
| 1550 |
(XtPointer) UxBackgroundShellContext ); |
| 1551 |
|
| 1552 |
UxAddCallback( pb_search_plot12, XmNactivateCallback, |
| 1553 |
activateCB_pb_search_plot12, |
| 1554 |
(XtPointer) UxBackgroundShellContext ); |
| 1555 |
|
| 1556 |
UxAddCallback( tf_alpha8, XmNlosingFocusCallback, |
| 1557 |
losingFocusCB_tf_alpha8, |
| 1558 |
(XtPointer) UxBackgroundShellContext ); |
| 1559 |
|
| 1560 |
UxAddCallback( tf_alpha9, XmNlosingFocusCallback, |
| 1561 |
losingFocusCB_tf_alpha9, |
| 1562 |
(XtPointer) UxBackgroundShellContext ); |
| 1563 |
|
| 1564 |
UxAddCallback( tf_alpha10, XmNlosingFocusCallback, |
| 1565 |
losingFocusCB_tf_alpha10, |
| 1566 |
(XtPointer) UxBackgroundShellContext ); |
| 1567 |
|
| 1568 |
UxAddCallback( tf_alpha12, XmNlosingFocusCallback, |
| 1569 |
losingFocusCB_tf_alpha12, |
| 1570 |
(XtPointer) UxBackgroundShellContext ); |
| 1571 |
|
| 1572 |
UxAddCallback( tf_alpha13, XmNlosingFocusCallback, |
| 1573 |
losingFocusCB_tf_alpha13, |
| 1574 |
(XtPointer) UxBackgroundShellContext ); |
| 1575 |
|
| 1576 |
UxAddCallback( tf_alpha14, XmNlosingFocusCallback, |
| 1577 |
losingFocusCB_tf_alpha14, |
| 1578 |
(XtPointer) UxBackgroundShellContext ); |
| 1579 |
|
| 1580 |
UxAddCallback( toggleButton17, XmNarmCallback, |
| 1581 |
armCB_toggleButton17, |
| 1582 |
(XtPointer) UxBackgroundShellContext ); |
| 1583 |
UxAddCallback( toggleButton17, XmNvalueChangedCallback, |
| 1584 |
valueChangedCB_toggleButton17, |
| 1585 |
(XtPointer) UxBackgroundShellContext ); |
| 1586 |
|
| 1587 |
UxAddCallback( rb_seamtd_gaus1, XmNarmCallback, |
| 1588 |
armCB_rb_seamtd_gaus1, |
| 1589 |
(XtPointer) UxBackgroundShellContext ); |
| 1590 |
UxAddCallback( rb_seamtd_gaus1, XmNvalueChangedCallback, |
| 1591 |
valueChangedCB_rb_seamtd_gaus1, |
| 1592 |
(XtPointer) UxBackgroundShellContext ); |
| 1593 |
|
| 1594 |
UxAddCallback( rb_seamtd_grav1, XmNarmCallback, |
| 1595 |
armCB_rb_seamtd_grav1, |
| 1596 |
(XtPointer) UxBackgroundShellContext ); |
| 1597 |
UxAddCallback( rb_seamtd_grav1, XmNvalueChangedCallback, |
| 1598 |
valueChangedCB_rb_seamtd_grav1, |
| 1599 |
(XtPointer) UxBackgroundShellContext ); |
| 1600 |
|
| 1601 |
UxAddCallback( rb_seamtd_maxi1, XmNarmCallback, |
| 1602 |
armCB_rb_seamtd_maxi1, |
| 1603 |
(XtPointer) UxBackgroundShellContext ); |
| 1604 |
UxAddCallback( rb_seamtd_maxi1, XmNvalueChangedCallback, |
| 1605 |
valueChangedCB_rb_seamtd_maxi1, |
| 1606 |
(XtPointer) UxBackgroundShellContext ); |
| 1607 |
|
| 1608 |
UxAddCallback( tf_alpha15, XmNlosingFocusCallback, |
| 1609 |
losingFocusCB_tf_alpha15, |
| 1610 |
(XtPointer) UxBackgroundShellContext ); |
| 1611 |
|
| 1612 |
UxAddCallback( tf_alpha16, XmNlosingFocusCallback, |
| 1613 |
losingFocusCB_tf_alpha16, |
| 1614 |
(XtPointer) UxBackgroundShellContext ); |
| 1615 |
|
| 1616 |
UxAddCallback( tf_alpha17, XmNlosingFocusCallback, |
| 1617 |
losingFocusCB_tf_alpha17, |
| 1618 |
(XtPointer) UxBackgroundShellContext ); |
| 1619 |
|
| 1620 |
UxAddCallback( tf_alpha18, XmNlosingFocusCallback, |
| 1621 |
losingFocusCB_tf_alpha18, |
| 1622 |
(XtPointer) UxBackgroundShellContext ); |
| 1623 |
|
| 1624 |
UxAddCallback( tf_alpha19, XmNlosingFocusCallback, |
| 1625 |
losingFocusCB_tf_alpha19, |
| 1626 |
(XtPointer) UxBackgroundShellContext ); |
| 1627 |
|
| 1628 |
UxAddCallback( pb_main_search17, XmNactivateCallback, |
| 1629 |
activateCB_pb_main_search17, |
| 1630 |
(XtPointer) UxBackgroundShellContext ); |
| 1631 |
|
| 1632 |
UxAddCallback( pb_main_search18, XmNactivateCallback, |
| 1633 |
activateCB_pb_main_search18, |
| 1634 |
(XtPointer) UxBackgroundShellContext ); |
| 1635 |
|
| 1636 |
UxAddCallback( tf_alpha20, XmNlosingFocusCallback, |
| 1637 |
losingFocusCB_tf_alpha20, |
| 1638 |
(XtPointer) UxBackgroundShellContext ); |
| 1639 |
|
| 1640 |
UxAddCallback( tf_alpha21, XmNlosingFocusCallback, |
| 1641 |
losingFocusCB_tf_alpha21, |
| 1642 |
(XtPointer) UxBackgroundShellContext ); |
| 1643 |
|
| 1644 |
UxAddCallback( pb_search_plot11, XmNactivateCallback, |
| 1645 |
activateCB_pb_search_plot11, |
| 1646 |
(XtPointer) UxBackgroundShellContext ); |
| 1647 |
|
| 1648 |
UxAddCallback( pb_search_plot15, XmNactivateCallback, |
| 1649 |
activateCB_pb_search_plot15, |
| 1650 |
(XtPointer) UxBackgroundShellContext ); |
| 1651 |
|
| 1652 |
UxAddCallback( pb_search_plot16, XmNactivateCallback, |
| 1653 |
activateCB_pb_search_plot16, |
| 1654 |
(XtPointer) UxBackgroundShellContext ); |
| 1655 |
|
| 1656 |
UxAddCallback( pb_main_search8, XmNactivateCallback, |
| 1657 |
activateCB_pb_main_search8, |
| 1658 |
(XtPointer) UxBackgroundShellContext ); |
| 1659 |
|
| 1660 |
|
| 1661 |
/* Finally, call UxRealizeInterface to create the X windows |
| 1662 |
for the widgets created above. */ |
| 1663 |
|
| 1664 |
UxRealizeInterface( BackgroundShell ); |
| 1665 |
|
| 1666 |
return ( BackgroundShell ); |
| 1667 |
} |
| 1668 |
|
| 1669 |
/******************************************************************************* |
| 1670 |
The following function includes the code that was entered |
| 1671 |
in the 'Initial Code' and 'Final Code' sections of the |
| 1672 |
Declarations Editor. This function is called from the |
| 1673 |
'Interface function' below. |
| 1674 |
*******************************************************************************/ |
| 1675 |
|
| 1676 |
static swidget _Ux_create_BackgroundShell() |
| 1677 |
{ |
| 1678 |
swidget rtrn; |
| 1679 |
_UxCBackgroundShell *UxContext; |
| 1680 |
|
| 1681 |
UxBackgroundShellContext = UxContext = |
| 1682 |
(_UxCBackgroundShell *) UxMalloc( sizeof(_UxCBackgroundShell) ); |
| 1683 |
|
| 1684 |
rtrn = _Uxbuild_BackgroundShell(); |
| 1685 |
|
| 1686 |
return(rtrn); |
| 1687 |
} |
| 1688 |
|
| 1689 |
/******************************************************************************* |
| 1690 |
The following is the 'Interface function' which is the |
| 1691 |
external entry point for creating this interface. |
| 1692 |
This function should be called from your application or from |
| 1693 |
a callback function. |
| 1694 |
*******************************************************************************/ |
| 1695 |
|
| 1696 |
swidget create_BackgroundShell() |
| 1697 |
{ |
| 1698 |
swidget _Uxrtrn; |
| 1699 |
static int _Uxinit = 0; |
| 1700 |
|
| 1701 |
if ( ! _Uxinit ) |
| 1702 |
{ |
| 1703 |
static XtActionsRec _Uxactions[] = { |
| 1704 |
{ "UpdateDirectory", action_UpdateDirectory }, |
| 1705 |
{ "ClearShort", action_ClearShort }, |
| 1706 |
{ "HelpShort", action_HelpShort }, |
| 1707 |
{ "FileSelectACT", action_FileSelectACT } |
| 1708 |
}; |
| 1709 |
|
| 1710 |
XtAppAddActions( UxAppContext, |
| 1711 |
_Uxactions, |
| 1712 |
XtNumber(_Uxactions) ); |
| 1713 |
|
| 1714 |
_Uxinit = 1; |
| 1715 |
} |
| 1716 |
|
| 1717 |
_Uxrtrn = _Ux_create_BackgroundShell(); |
| 1718 |
|
| 1719 |
return ( _Uxrtrn ); |
| 1720 |
} |
| 1721 |
|
| 1722 |
/******************************************************************************* |
| 1723 |
END OF FILE |
| 1724 |
*******************************************************************************/ |
| 1725 |
|