| 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 |
RotateShell.c |
| 31 |
|
| 32 |
.VERSION |
| 33 |
090825 last modif |
| 34 |
|
| 35 |
*******************************************************************************/ |
| 36 |
|
| 37 |
#include <stdio.h> |
| 38 |
#include "UxLib.h" |
| 39 |
#include "UxTogB.h" |
| 40 |
#include "UxTextF.h" |
| 41 |
#include "UxLabel.h" |
| 42 |
#include "UxPushBG.h" |
| 43 |
#include "UxRowCol.h" |
| 44 |
#include "UxSep.h" |
| 45 |
#include "UxText.h" |
| 46 |
#include "UxPushB.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 UxRotateShell; |
| 72 |
swidget Uxform25; |
| 73 |
swidget Uxform26; |
| 74 |
swidget Uxpb_search_search2; |
| 75 |
swidget UxpushButton2; |
| 76 |
swidget Uxpb_search_plot2; |
| 77 |
swidget Uxshelp_search2; |
| 78 |
swidget Uxseparator20; |
| 79 |
swidget Uxseparator21; |
| 80 |
swidget Uxmenu2_p2; |
| 81 |
swidget Uxmn_tol_angstroms2; |
| 82 |
swidget Uxmn_tol_pixels2; |
| 83 |
swidget Uxmenu2_p2_b3; |
| 84 |
swidget Uxmenu2_p2_b4; |
| 85 |
swidget Uxmn_tol2; |
| 86 |
swidget Uxmenu2_p3; |
| 87 |
swidget Uxmn_tol_angstroms3; |
| 88 |
swidget Uxmn_tol_pixels3; |
| 89 |
swidget Uxmenu2_p3_b4; |
| 90 |
swidget Uxmenu2_p3_b3; |
| 91 |
swidget Uxmn_tol3; |
| 92 |
swidget Uxmenu2_p5; |
| 93 |
swidget Uxmn_tol_angstroms5; |
| 94 |
swidget Uxmn_tol_pixels5; |
| 95 |
swidget Uxmenu2_p5_b3; |
| 96 |
swidget Uxmenu2_p5_b4; |
| 97 |
swidget Uxmn_tol5; |
| 98 |
swidget Uxlabel40; |
| 99 |
swidget Uxtf_alpha2; |
| 100 |
swidget Uxlabel41; |
| 101 |
swidget Uxtf_alpha4; |
| 102 |
swidget Uxtf_alpha5; |
| 103 |
swidget Uxtf_alpha6; |
| 104 |
swidget Uxlabel54; |
| 105 |
swidget UxrowColumn23; |
| 106 |
swidget UxtoggleButton14; |
| 107 |
swidget UxtoggleButton15; |
| 108 |
swidget Uxlabel44; |
| 109 |
swidget Uxlabel55; |
| 110 |
swidget Uxlabel56; |
| 111 |
swidget Uxlabel57; |
| 112 |
swidget Uxlabel58; |
| 113 |
swidget Uxlabel59; |
| 114 |
swidget Uxlabel60; |
| 115 |
swidget Uxseparator34; |
| 116 |
swidget Uxlabel49; |
| 117 |
swidget Uxlabel50; |
| 118 |
swidget Uxseparator35; |
| 119 |
swidget Uxlabel51; |
| 120 |
swidget Uxpb_main_search32; |
| 121 |
swidget Uxlabel52; |
| 122 |
swidget Uxtf_alpha1; |
| 123 |
swidget Uxtf_alpha3; |
| 124 |
swidget Uxtf_alpha7; |
| 125 |
swidget Uxtf_alpha44; |
| 126 |
} _UxCRotateShell; |
| 127 |
|
| 128 |
#define RotateShell UxRotateShellContext->UxRotateShell |
| 129 |
#define form25 UxRotateShellContext->Uxform25 |
| 130 |
#define form26 UxRotateShellContext->Uxform26 |
| 131 |
#define pb_search_search2 UxRotateShellContext->Uxpb_search_search2 |
| 132 |
#define pushButton2 UxRotateShellContext->UxpushButton2 |
| 133 |
#define pb_search_plot2 UxRotateShellContext->Uxpb_search_plot2 |
| 134 |
#define shelp_search2 UxRotateShellContext->Uxshelp_search2 |
| 135 |
#define separator20 UxRotateShellContext->Uxseparator20 |
| 136 |
#define separator21 UxRotateShellContext->Uxseparator21 |
| 137 |
#define menu2_p2 UxRotateShellContext->Uxmenu2_p2 |
| 138 |
#define mn_tol_angstroms2 UxRotateShellContext->Uxmn_tol_angstroms2 |
| 139 |
#define mn_tol_pixels2 UxRotateShellContext->Uxmn_tol_pixels2 |
| 140 |
#define menu2_p2_b3 UxRotateShellContext->Uxmenu2_p2_b3 |
| 141 |
#define menu2_p2_b4 UxRotateShellContext->Uxmenu2_p2_b4 |
| 142 |
#define mn_tol2 UxRotateShellContext->Uxmn_tol2 |
| 143 |
#define menu2_p3 UxRotateShellContext->Uxmenu2_p3 |
| 144 |
#define mn_tol_angstroms3 UxRotateShellContext->Uxmn_tol_angstroms3 |
| 145 |
#define mn_tol_pixels3 UxRotateShellContext->Uxmn_tol_pixels3 |
| 146 |
#define menu2_p3_b4 UxRotateShellContext->Uxmenu2_p3_b4 |
| 147 |
#define menu2_p3_b3 UxRotateShellContext->Uxmenu2_p3_b3 |
| 148 |
#define mn_tol3 UxRotateShellContext->Uxmn_tol3 |
| 149 |
#define menu2_p5 UxRotateShellContext->Uxmenu2_p5 |
| 150 |
#define mn_tol_angstroms5 UxRotateShellContext->Uxmn_tol_angstroms5 |
| 151 |
#define mn_tol_pixels5 UxRotateShellContext->Uxmn_tol_pixels5 |
| 152 |
#define menu2_p5_b3 UxRotateShellContext->Uxmenu2_p5_b3 |
| 153 |
#define menu2_p5_b4 UxRotateShellContext->Uxmenu2_p5_b4 |
| 154 |
#define mn_tol5 UxRotateShellContext->Uxmn_tol5 |
| 155 |
#define label40 UxRotateShellContext->Uxlabel40 |
| 156 |
#define tf_alpha2 UxRotateShellContext->Uxtf_alpha2 |
| 157 |
#define label41 UxRotateShellContext->Uxlabel41 |
| 158 |
#define tf_alpha4 UxRotateShellContext->Uxtf_alpha4 |
| 159 |
#define tf_alpha5 UxRotateShellContext->Uxtf_alpha5 |
| 160 |
#define tf_alpha6 UxRotateShellContext->Uxtf_alpha6 |
| 161 |
#define label54 UxRotateShellContext->Uxlabel54 |
| 162 |
#define rowColumn23 UxRotateShellContext->UxrowColumn23 |
| 163 |
#define toggleButton14 UxRotateShellContext->UxtoggleButton14 |
| 164 |
#define toggleButton15 UxRotateShellContext->UxtoggleButton15 |
| 165 |
#define label44 UxRotateShellContext->Uxlabel44 |
| 166 |
#define label55 UxRotateShellContext->Uxlabel55 |
| 167 |
#define label56 UxRotateShellContext->Uxlabel56 |
| 168 |
#define label57 UxRotateShellContext->Uxlabel57 |
| 169 |
#define label58 UxRotateShellContext->Uxlabel58 |
| 170 |
#define label59 UxRotateShellContext->Uxlabel59 |
| 171 |
#define label60 UxRotateShellContext->Uxlabel60 |
| 172 |
#define separator34 UxRotateShellContext->Uxseparator34 |
| 173 |
#define label49 UxRotateShellContext->Uxlabel49 |
| 174 |
#define label50 UxRotateShellContext->Uxlabel50 |
| 175 |
#define separator35 UxRotateShellContext->Uxseparator35 |
| 176 |
#define label51 UxRotateShellContext->Uxlabel51 |
| 177 |
#define pb_main_search32 UxRotateShellContext->Uxpb_main_search32 |
| 178 |
#define label52 UxRotateShellContext->Uxlabel52 |
| 179 |
#define tf_alpha1 UxRotateShellContext->Uxtf_alpha1 |
| 180 |
#define tf_alpha3 UxRotateShellContext->Uxtf_alpha3 |
| 181 |
#define tf_alpha7 UxRotateShellContext->Uxtf_alpha7 |
| 182 |
#define tf_alpha44 UxRotateShellContext->Uxtf_alpha44 |
| 183 |
|
| 184 |
static _UxCRotateShell *UxRotateShellContext; |
| 185 |
|
| 186 |
extern void DisplayShortHelp(), DisplayExtendedHelp(), SetFileList(); |
| 187 |
extern void MidasCommand(), PopupLong(), InitAllFields(); |
| 188 |
extern void WidgetLeave(), WidgetEnter(); |
| 189 |
extern void WriteKeyword(), GetExtendedHelp(), SelectList(); |
| 190 |
|
| 191 |
|
| 192 |
extern int RadioSet(), PopupList(), AppendDialogText(); |
| 193 |
|
| 194 |
|
| 195 |
/******************************************************************************* |
| 196 |
The following are translation tables. |
| 197 |
*******************************************************************************/ |
| 198 |
|
| 199 |
static char *transTable8 = "#override\n\ |
| 200 |
<Btn3Down>:ExtendedHelp()\n\ |
| 201 |
<EnterWindow>:HelpShort()\n\ |
| 202 |
<LeaveWindow>:ClearShort()\n"; |
| 203 |
|
| 204 |
/******************************************************************************* |
| 205 |
Forward declarations of functions that are defined later in this file. |
| 206 |
*******************************************************************************/ |
| 207 |
|
| 208 |
swidget create_RotateShell(); |
| 209 |
|
| 210 |
/******************************************************************************* |
| 211 |
The following are Action functions. |
| 212 |
*******************************************************************************/ |
| 213 |
|
| 214 |
static void action_ClearShort( UxWidget, UxEvent, UxParams, p_UxNumParams ) |
| 215 |
Widget UxWidget; |
| 216 |
XEvent *UxEvent; |
| 217 |
String *UxParams; |
| 218 |
Cardinal *p_UxNumParams; |
| 219 |
{ |
| 220 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 221 |
swidget UxThisWidget; |
| 222 |
|
| 223 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 224 |
UxSaveCtx = UxRotateShellContext; |
| 225 |
UxRotateShellContext = UxContext = |
| 226 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 227 |
{WidgetLeave(UxWidget);} |
| 228 |
UxRotateShellContext = UxSaveCtx; |
| 229 |
} |
| 230 |
|
| 231 |
static void action_HelpShort( UxWidget, UxEvent, UxParams, p_UxNumParams ) |
| 232 |
Widget UxWidget; |
| 233 |
XEvent *UxEvent; |
| 234 |
String *UxParams; |
| 235 |
Cardinal *p_UxNumParams; |
| 236 |
{ |
| 237 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 238 |
swidget UxThisWidget; |
| 239 |
|
| 240 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 241 |
UxSaveCtx = UxRotateShellContext; |
| 242 |
UxRotateShellContext = UxContext = |
| 243 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 244 |
{WidgetEnter(UxWidget);} |
| 245 |
UxRotateShellContext = UxSaveCtx; |
| 246 |
} |
| 247 |
|
| 248 |
static void action_ExtendedHelp( UxWidget, UxEvent, UxParams, p_UxNumParams ) |
| 249 |
Widget UxWidget; |
| 250 |
XEvent *UxEvent; |
| 251 |
String *UxParams; |
| 252 |
Cardinal *p_UxNumParams; |
| 253 |
{ |
| 254 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 255 |
swidget UxThisWidget; |
| 256 |
|
| 257 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 258 |
UxSaveCtx = UxRotateShellContext; |
| 259 |
UxRotateShellContext = UxContext = |
| 260 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 261 |
{ |
| 262 |
DisplayExtendedHelp(UxWidget); |
| 263 |
} |
| 264 |
UxRotateShellContext = UxSaveCtx; |
| 265 |
} |
| 266 |
|
| 267 |
static void action_FileSelectACT( UxWidget, UxEvent, UxParams, p_UxNumParams ) |
| 268 |
Widget UxWidget; |
| 269 |
XEvent *UxEvent; |
| 270 |
String *UxParams; |
| 271 |
Cardinal *p_UxNumParams; |
| 272 |
{ |
| 273 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 274 |
swidget UxThisWidget; |
| 275 |
|
| 276 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 277 |
UxSaveCtx = UxRotateShellContext; |
| 278 |
UxRotateShellContext = UxContext = |
| 279 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 280 |
{ |
| 281 |
#include <xm_defs.h> |
| 282 |
#include <spec_comm.h> |
| 283 |
|
| 284 |
extern swidget FileListInterface, TextFieldSwidget; |
| 285 |
extern Widget FileListWidget; |
| 286 |
extern char DirSpecs[]; |
| 287 |
extern int ListType; |
| 288 |
|
| 289 |
int strip = 1; /* strip off */ |
| 290 |
|
| 291 |
TextFieldSwidget = UxThisWidget; |
| 292 |
|
| 293 |
if ( UxWidget == UxGetWidget(UxFindSwidget("tf_lincat")) ) { |
| 294 |
SET_LIST_TITLE("Enter line catalog"); |
| 295 |
ListType = LIST_LINCAT; |
| 296 |
} |
| 297 |
else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_guess")) ) { |
| 298 |
SET_LIST_TITLE("Enter guess table"); |
| 299 |
ListType = LIST_GUESS; |
| 300 |
} |
| 301 |
else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_flux_tbl")) ) { |
| 302 |
SET_LIST_TITLE("Enter flux table"); |
| 303 |
ListType = LIST_FLUX_TBL; |
| 304 |
} |
| 305 |
else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_extin_tbl")) ) { |
| 306 |
SET_LIST_TITLE("Enter extinction table"); |
| 307 |
ListType = LIST_EXTIN_TBL; |
| 308 |
} |
| 309 |
|
| 310 |
strcpy(DirSpecs, "*.tbl"); |
| 311 |
SetFileList(FileListWidget, strip, DirSpecs); |
| 312 |
UxPopupInterface(FileListInterface, exclusive_grab); |
| 313 |
|
| 314 |
} |
| 315 |
UxRotateShellContext = UxSaveCtx; |
| 316 |
} |
| 317 |
|
| 318 |
/******************************************************************************* |
| 319 |
The following are callback functions. |
| 320 |
*******************************************************************************/ |
| 321 |
|
| 322 |
static void activateCB_pb_search_search2( UxWidget, UxClientData, UxCallbackArg ) |
| 323 |
Widget UxWidget; |
| 324 |
XtPointer UxClientData, UxCallbackArg; |
| 325 |
{ |
| 326 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 327 |
swidget UxThisWidget; |
| 328 |
|
| 329 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 330 |
UxSaveCtx = UxRotateShellContext; |
| 331 |
UxRotateShellContext = UxContext = |
| 332 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 333 |
{ |
| 334 |
MidasCommand(UxWidget); |
| 335 |
|
| 336 |
} |
| 337 |
UxRotateShellContext = UxSaveCtx; |
| 338 |
} |
| 339 |
|
| 340 |
static void activateCB_pushButton2( UxWidget, UxClientData, UxCallbackArg ) |
| 341 |
Widget UxWidget; |
| 342 |
XtPointer UxClientData, UxCallbackArg; |
| 343 |
{ |
| 344 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 345 |
swidget UxThisWidget; |
| 346 |
|
| 347 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 348 |
UxSaveCtx = UxRotateShellContext; |
| 349 |
UxRotateShellContext = UxContext = |
| 350 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 351 |
{ |
| 352 |
UxPopdownInterface(UxFindSwidget("RotateShell")); |
| 353 |
} |
| 354 |
UxRotateShellContext = UxSaveCtx; |
| 355 |
} |
| 356 |
|
| 357 |
static void activateCB_pb_search_plot2( UxWidget, UxClientData, UxCallbackArg ) |
| 358 |
Widget UxWidget; |
| 359 |
XtPointer UxClientData, UxCallbackArg; |
| 360 |
{ |
| 361 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 362 |
swidget UxThisWidget; |
| 363 |
|
| 364 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 365 |
UxSaveCtx = UxRotateShellContext; |
| 366 |
UxRotateShellContext = UxContext = |
| 367 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 368 |
{ |
| 369 |
GetExtendedHelp(UxWidget); |
| 370 |
} |
| 371 |
UxRotateShellContext = UxSaveCtx; |
| 372 |
} |
| 373 |
|
| 374 |
static void activateCB_mn_tol_angstroms2( UxWidget, UxClientData, UxCallbackArg ) |
| 375 |
Widget UxWidget; |
| 376 |
XtPointer UxClientData, UxCallbackArg; |
| 377 |
{ |
| 378 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 379 |
swidget UxThisWidget; |
| 380 |
|
| 381 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 382 |
UxSaveCtx = UxRotateShellContext; |
| 383 |
UxRotateShellContext = UxContext = |
| 384 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 385 |
{RadioSet(UxWidget);} |
| 386 |
UxRotateShellContext = UxSaveCtx; |
| 387 |
} |
| 388 |
|
| 389 |
static void activateCB_mn_tol_pixels2( UxWidget, UxClientData, UxCallbackArg ) |
| 390 |
Widget UxWidget; |
| 391 |
XtPointer UxClientData, UxCallbackArg; |
| 392 |
{ |
| 393 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 394 |
swidget UxThisWidget; |
| 395 |
|
| 396 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 397 |
UxSaveCtx = UxRotateShellContext; |
| 398 |
UxRotateShellContext = UxContext = |
| 399 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 400 |
{RadioSet(UxWidget);} |
| 401 |
UxRotateShellContext = UxSaveCtx; |
| 402 |
} |
| 403 |
|
| 404 |
static void activateCB_menu2_p2_b3( UxWidget, UxClientData, UxCallbackArg ) |
| 405 |
Widget UxWidget; |
| 406 |
XtPointer UxClientData, UxCallbackArg; |
| 407 |
{ |
| 408 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 409 |
swidget UxThisWidget; |
| 410 |
|
| 411 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 412 |
UxSaveCtx = UxRotateShellContext; |
| 413 |
UxRotateShellContext = UxContext = |
| 414 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 415 |
{RadioSet(UxWidget);} |
| 416 |
UxRotateShellContext = UxSaveCtx; |
| 417 |
} |
| 418 |
|
| 419 |
static void activateCB_menu2_p2_b4( UxWidget, UxClientData, UxCallbackArg ) |
| 420 |
Widget UxWidget; |
| 421 |
XtPointer UxClientData, UxCallbackArg; |
| 422 |
{ |
| 423 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 424 |
swidget UxThisWidget; |
| 425 |
|
| 426 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 427 |
UxSaveCtx = UxRotateShellContext; |
| 428 |
UxRotateShellContext = UxContext = |
| 429 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 430 |
{RadioSet(UxWidget);} |
| 431 |
UxRotateShellContext = UxSaveCtx; |
| 432 |
} |
| 433 |
|
| 434 |
static void activateCB_mn_tol_angstroms3( UxWidget, UxClientData, UxCallbackArg ) |
| 435 |
Widget UxWidget; |
| 436 |
XtPointer UxClientData, UxCallbackArg; |
| 437 |
{ |
| 438 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 439 |
swidget UxThisWidget; |
| 440 |
|
| 441 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 442 |
UxSaveCtx = UxRotateShellContext; |
| 443 |
UxRotateShellContext = UxContext = |
| 444 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 445 |
{RadioSet ( UxWidget ) ; } |
| 446 |
UxRotateShellContext = UxSaveCtx; |
| 447 |
} |
| 448 |
|
| 449 |
static void activateCB_mn_tol_pixels3( UxWidget, UxClientData, UxCallbackArg ) |
| 450 |
Widget UxWidget; |
| 451 |
XtPointer UxClientData, UxCallbackArg; |
| 452 |
{ |
| 453 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 454 |
swidget UxThisWidget; |
| 455 |
|
| 456 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 457 |
UxSaveCtx = UxRotateShellContext; |
| 458 |
UxRotateShellContext = UxContext = |
| 459 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 460 |
{RadioSet ( UxWidget ) ; } |
| 461 |
UxRotateShellContext = UxSaveCtx; |
| 462 |
} |
| 463 |
|
| 464 |
static void activateCB_menu2_p3_b4( UxWidget, UxClientData, UxCallbackArg ) |
| 465 |
Widget UxWidget; |
| 466 |
XtPointer UxClientData, UxCallbackArg; |
| 467 |
{ |
| 468 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 469 |
swidget UxThisWidget; |
| 470 |
|
| 471 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 472 |
UxSaveCtx = UxRotateShellContext; |
| 473 |
UxRotateShellContext = UxContext = |
| 474 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 475 |
{RadioSet ( UxWidget ) ; } |
| 476 |
UxRotateShellContext = UxSaveCtx; |
| 477 |
} |
| 478 |
|
| 479 |
static void activateCB_menu2_p3_b3( UxWidget, UxClientData, UxCallbackArg ) |
| 480 |
Widget UxWidget; |
| 481 |
XtPointer UxClientData, UxCallbackArg; |
| 482 |
{ |
| 483 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 484 |
swidget UxThisWidget; |
| 485 |
|
| 486 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 487 |
UxSaveCtx = UxRotateShellContext; |
| 488 |
UxRotateShellContext = UxContext = |
| 489 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 490 |
{RadioSet ( UxWidget ) ; } |
| 491 |
UxRotateShellContext = UxSaveCtx; |
| 492 |
} |
| 493 |
|
| 494 |
static void activateCB_mn_tol_angstroms5( UxWidget, UxClientData, UxCallbackArg ) |
| 495 |
Widget UxWidget; |
| 496 |
XtPointer UxClientData, UxCallbackArg; |
| 497 |
{ |
| 498 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 499 |
swidget UxThisWidget; |
| 500 |
|
| 501 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 502 |
UxSaveCtx = UxRotateShellContext; |
| 503 |
UxRotateShellContext = UxContext = |
| 504 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 505 |
{RadioSet ( UxWidget ) ; } |
| 506 |
UxRotateShellContext = UxSaveCtx; |
| 507 |
} |
| 508 |
|
| 509 |
static void activateCB_mn_tol_pixels5( UxWidget, UxClientData, UxCallbackArg ) |
| 510 |
Widget UxWidget; |
| 511 |
XtPointer UxClientData, UxCallbackArg; |
| 512 |
{ |
| 513 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 514 |
swidget UxThisWidget; |
| 515 |
|
| 516 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 517 |
UxSaveCtx = UxRotateShellContext; |
| 518 |
UxRotateShellContext = UxContext = |
| 519 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 520 |
{RadioSet ( UxWidget ) ; } |
| 521 |
UxRotateShellContext = UxSaveCtx; |
| 522 |
} |
| 523 |
|
| 524 |
static void activateCB_menu2_p5_b3( UxWidget, UxClientData, UxCallbackArg ) |
| 525 |
Widget UxWidget; |
| 526 |
XtPointer UxClientData, UxCallbackArg; |
| 527 |
{ |
| 528 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 529 |
swidget UxThisWidget; |
| 530 |
|
| 531 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 532 |
UxSaveCtx = UxRotateShellContext; |
| 533 |
UxRotateShellContext = UxContext = |
| 534 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 535 |
{RadioSet ( UxWidget ) ; } |
| 536 |
UxRotateShellContext = UxSaveCtx; |
| 537 |
} |
| 538 |
|
| 539 |
static void activateCB_menu2_p5_b4( UxWidget, UxClientData, UxCallbackArg ) |
| 540 |
Widget UxWidget; |
| 541 |
XtPointer UxClientData, UxCallbackArg; |
| 542 |
{ |
| 543 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 544 |
swidget UxThisWidget; |
| 545 |
|
| 546 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 547 |
UxSaveCtx = UxRotateShellContext; |
| 548 |
UxRotateShellContext = UxContext = |
| 549 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 550 |
{RadioSet ( UxWidget ) ; } |
| 551 |
UxRotateShellContext = UxSaveCtx; |
| 552 |
} |
| 553 |
|
| 554 |
static void losingFocusCB_tf_alpha2( UxWidget, UxClientData, UxCallbackArg ) |
| 555 |
Widget UxWidget; |
| 556 |
XtPointer UxClientData, UxCallbackArg; |
| 557 |
{ |
| 558 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 559 |
swidget UxThisWidget; |
| 560 |
|
| 561 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 562 |
UxSaveCtx = UxRotateShellContext; |
| 563 |
UxRotateShellContext = UxContext = |
| 564 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 565 |
{ |
| 566 |
|
| 567 |
} |
| 568 |
UxRotateShellContext = UxSaveCtx; |
| 569 |
} |
| 570 |
|
| 571 |
static void losingFocusCB_tf_alpha4( UxWidget, UxClientData, UxCallbackArg ) |
| 572 |
Widget UxWidget; |
| 573 |
XtPointer UxClientData, UxCallbackArg; |
| 574 |
{ |
| 575 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 576 |
swidget UxThisWidget; |
| 577 |
|
| 578 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 579 |
UxSaveCtx = UxRotateShellContext; |
| 580 |
UxRotateShellContext = UxContext = |
| 581 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 582 |
{ |
| 583 |
|
| 584 |
} |
| 585 |
UxRotateShellContext = UxSaveCtx; |
| 586 |
} |
| 587 |
|
| 588 |
static void losingFocusCB_tf_alpha5( UxWidget, UxClientData, UxCallbackArg ) |
| 589 |
Widget UxWidget; |
| 590 |
XtPointer UxClientData, UxCallbackArg; |
| 591 |
{ |
| 592 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 593 |
swidget UxThisWidget; |
| 594 |
|
| 595 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 596 |
UxSaveCtx = UxRotateShellContext; |
| 597 |
UxRotateShellContext = UxContext = |
| 598 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 599 |
{ |
| 600 |
|
| 601 |
} |
| 602 |
UxRotateShellContext = UxSaveCtx; |
| 603 |
} |
| 604 |
|
| 605 |
static void losingFocusCB_tf_alpha6( UxWidget, UxClientData, UxCallbackArg ) |
| 606 |
Widget UxWidget; |
| 607 |
XtPointer UxClientData, UxCallbackArg; |
| 608 |
{ |
| 609 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 610 |
swidget UxThisWidget; |
| 611 |
|
| 612 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 613 |
UxSaveCtx = UxRotateShellContext; |
| 614 |
UxRotateShellContext = UxContext = |
| 615 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 616 |
{ |
| 617 |
|
| 618 |
} |
| 619 |
UxRotateShellContext = UxSaveCtx; |
| 620 |
} |
| 621 |
|
| 622 |
static void armCB_toggleButton14( UxWidget, UxClientData, UxCallbackArg ) |
| 623 |
Widget UxWidget; |
| 624 |
XtPointer UxClientData, UxCallbackArg; |
| 625 |
{ |
| 626 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 627 |
swidget UxThisWidget; |
| 628 |
|
| 629 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 630 |
UxSaveCtx = UxRotateShellContext; |
| 631 |
UxRotateShellContext = UxContext = |
| 632 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 633 |
{ |
| 634 |
RadioSet(UxWidget); |
| 635 |
} |
| 636 |
UxRotateShellContext = UxSaveCtx; |
| 637 |
} |
| 638 |
|
| 639 |
static void valueChangedCB_toggleButton14( UxWidget, UxClientData, UxCallbackArg ) |
| 640 |
Widget UxWidget; |
| 641 |
XtPointer UxClientData, UxCallbackArg; |
| 642 |
{ |
| 643 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 644 |
swidget UxThisWidget; |
| 645 |
|
| 646 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 647 |
UxSaveCtx = UxRotateShellContext; |
| 648 |
UxRotateShellContext = UxContext = |
| 649 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 650 |
{ |
| 651 |
|
| 652 |
} |
| 653 |
UxRotateShellContext = UxSaveCtx; |
| 654 |
} |
| 655 |
|
| 656 |
static void armCB_toggleButton15( UxWidget, UxClientData, UxCallbackArg ) |
| 657 |
Widget UxWidget; |
| 658 |
XtPointer UxClientData, UxCallbackArg; |
| 659 |
{ |
| 660 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 661 |
swidget UxThisWidget; |
| 662 |
|
| 663 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 664 |
UxSaveCtx = UxRotateShellContext; |
| 665 |
UxRotateShellContext = UxContext = |
| 666 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 667 |
{ |
| 668 |
RadioSet(UxWidget); |
| 669 |
} |
| 670 |
UxRotateShellContext = UxSaveCtx; |
| 671 |
} |
| 672 |
|
| 673 |
static void valueChangedCB_toggleButton15( UxWidget, UxClientData, UxCallbackArg ) |
| 674 |
Widget UxWidget; |
| 675 |
XtPointer UxClientData, UxCallbackArg; |
| 676 |
{ |
| 677 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 678 |
swidget UxThisWidget; |
| 679 |
|
| 680 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 681 |
UxSaveCtx = UxRotateShellContext; |
| 682 |
UxRotateShellContext = UxContext = |
| 683 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 684 |
{ |
| 685 |
|
| 686 |
} |
| 687 |
UxRotateShellContext = UxSaveCtx; |
| 688 |
} |
| 689 |
|
| 690 |
static void activateCB_pb_main_search32( UxWidget, UxClientData, UxCallbackArg ) |
| 691 |
Widget UxWidget; |
| 692 |
XtPointer UxClientData, UxCallbackArg; |
| 693 |
{ |
| 694 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 695 |
swidget UxThisWidget; |
| 696 |
|
| 697 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 698 |
UxSaveCtx = UxRotateShellContext; |
| 699 |
UxRotateShellContext = UxContext = |
| 700 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 701 |
{ |
| 702 |
SelectList(UxWidget); |
| 703 |
|
| 704 |
} |
| 705 |
UxRotateShellContext = UxSaveCtx; |
| 706 |
} |
| 707 |
|
| 708 |
static void losingFocusCB_tf_alpha1( UxWidget, UxClientData, UxCallbackArg ) |
| 709 |
Widget UxWidget; |
| 710 |
XtPointer UxClientData, UxCallbackArg; |
| 711 |
{ |
| 712 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 713 |
swidget UxThisWidget; |
| 714 |
|
| 715 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 716 |
UxSaveCtx = UxRotateShellContext; |
| 717 |
UxRotateShellContext = UxContext = |
| 718 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 719 |
{ |
| 720 |
|
| 721 |
} |
| 722 |
UxRotateShellContext = UxSaveCtx; |
| 723 |
} |
| 724 |
|
| 725 |
static void losingFocusCB_tf_alpha3( UxWidget, UxClientData, UxCallbackArg ) |
| 726 |
Widget UxWidget; |
| 727 |
XtPointer UxClientData, UxCallbackArg; |
| 728 |
{ |
| 729 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 730 |
swidget UxThisWidget; |
| 731 |
|
| 732 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 733 |
UxSaveCtx = UxRotateShellContext; |
| 734 |
UxRotateShellContext = UxContext = |
| 735 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 736 |
{ |
| 737 |
|
| 738 |
} |
| 739 |
UxRotateShellContext = UxSaveCtx; |
| 740 |
} |
| 741 |
|
| 742 |
static void losingFocusCB_tf_alpha7( UxWidget, UxClientData, UxCallbackArg ) |
| 743 |
Widget UxWidget; |
| 744 |
XtPointer UxClientData, UxCallbackArg; |
| 745 |
{ |
| 746 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 747 |
swidget UxThisWidget; |
| 748 |
|
| 749 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 750 |
UxSaveCtx = UxRotateShellContext; |
| 751 |
UxRotateShellContext = UxContext = |
| 752 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 753 |
{ |
| 754 |
|
| 755 |
} |
| 756 |
UxRotateShellContext = UxSaveCtx; |
| 757 |
} |
| 758 |
|
| 759 |
static void losingFocusCB_tf_alpha44( UxWidget, UxClientData, UxCallbackArg ) |
| 760 |
Widget UxWidget; |
| 761 |
XtPointer UxClientData, UxCallbackArg; |
| 762 |
{ |
| 763 |
_UxCRotateShell *UxSaveCtx, *UxContext; |
| 764 |
swidget UxThisWidget; |
| 765 |
|
| 766 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 767 |
UxSaveCtx = UxRotateShellContext; |
| 768 |
UxRotateShellContext = UxContext = |
| 769 |
(_UxCRotateShell *) UxGetContext( UxThisWidget ); |
| 770 |
{ |
| 771 |
|
| 772 |
} |
| 773 |
UxRotateShellContext = UxSaveCtx; |
| 774 |
} |
| 775 |
|
| 776 |
/******************************************************************************* |
| 777 |
The 'init_' function sets the private properties for all the |
| 778 |
swidgets to the values specified in the Property Table. |
| 779 |
Some properties need to be set after the X widgets have been |
| 780 |
created and the setting of these properties is done in the |
| 781 |
'build_' function after the UxCreateWidget call. |
| 782 |
*******************************************************************************/ |
| 783 |
|
| 784 |
static void _Uxinit_RotateShell() |
| 785 |
{ |
| 786 |
UxPutGeometry( RotateShell, "+10+60" ); |
| 787 |
UxPutTitle( RotateShell, "XEchelle: Rotation and Geometry" ); |
| 788 |
UxPutHeight( RotateShell, 540 ); |
| 789 |
UxPutWidth( RotateShell, 500 ); |
| 790 |
UxPutY( RotateShell, 372 ); |
| 791 |
UxPutX( RotateShell, 722 ); |
| 792 |
|
| 793 |
UxPutBackground( form25, WindowBackground ); |
| 794 |
UxPutHeight( form25, 348 ); |
| 795 |
UxPutWidth( form25, 408 ); |
| 796 |
UxPutY( form25, -2 ); |
| 797 |
UxPutX( form25, 0 ); |
| 798 |
UxPutUnitType( form25, "pixels" ); |
| 799 |
UxPutResizePolicy( form25, "resize_none" ); |
| 800 |
|
| 801 |
UxPutBackground( form26, ButtonBackground ); |
| 802 |
UxPutHeight( form26, 40 ); |
| 803 |
UxPutWidth( form26, 480 ); |
| 804 |
UxPutY( form26, 490 ); |
| 805 |
UxPutX( form26, 6 ); |
| 806 |
UxPutResizePolicy( form26, "resize_none" ); |
| 807 |
|
| 808 |
UxPutTranslations( pb_search_search2, "" ); |
| 809 |
UxPutLabelString( pb_search_search2, "Scan" ); |
| 810 |
UxPutForeground( pb_search_search2, ApplyForeground ); |
| 811 |
UxPutFontList( pb_search_search2, BoldTextFont ); |
| 812 |
UxPutBackground( pb_search_search2, ButtonBackground ); |
| 813 |
UxPutHeight( pb_search_search2, 30 ); |
| 814 |
UxPutWidth( pb_search_search2, 86 ); |
| 815 |
UxPutY( pb_search_search2, 4 ); |
| 816 |
UxPutX( pb_search_search2, 8 ); |
| 817 |
|
| 818 |
UxPutTranslations( pushButton2, "" ); |
| 819 |
UxPutLabelString( pushButton2, "Cancel" ); |
| 820 |
UxPutForeground( pushButton2, CancelForeground ); |
| 821 |
UxPutFontList( pushButton2, BoldTextFont ); |
| 822 |
UxPutBackground( pushButton2, ButtonBackground ); |
| 823 |
UxPutHeight( pushButton2, 30 ); |
| 824 |
UxPutWidth( pushButton2, 86 ); |
| 825 |
UxPutY( pushButton2, 4 ); |
| 826 |
UxPutX( pushButton2, 196 ); |
| 827 |
|
| 828 |
UxPutTranslations( pb_search_plot2, "" ); |
| 829 |
UxPutLabelString( pb_search_plot2, "Help..." ); |
| 830 |
UxPutForeground( pb_search_plot2, ButtonForeground ); |
| 831 |
UxPutFontList( pb_search_plot2, BoldTextFont ); |
| 832 |
UxPutBackground( pb_search_plot2, ButtonBackground ); |
| 833 |
UxPutHeight( pb_search_plot2, 30 ); |
| 834 |
UxPutWidth( pb_search_plot2, 86 ); |
| 835 |
UxPutY( pb_search_plot2, 4 ); |
| 836 |
UxPutX( pb_search_plot2, 102 ); |
| 837 |
|
| 838 |
UxPutFontList( shelp_search2, TextFont ); |
| 839 |
UxPutEditable( shelp_search2, "false" ); |
| 840 |
UxPutCursorPositionVisible( shelp_search2, "false" ); |
| 841 |
UxPutBackground( shelp_search2, SHelpBackground ); |
| 842 |
UxPutHeight( shelp_search2, 50 ); |
| 843 |
UxPutWidth( shelp_search2, 484 ); |
| 844 |
UxPutY( shelp_search2, 428 ); |
| 845 |
UxPutX( shelp_search2, 8 ); |
| 846 |
|
| 847 |
UxPutBackground( separator20, WindowBackground ); |
| 848 |
UxPutHeight( separator20, 10 ); |
| 849 |
UxPutWidth( separator20, 492 ); |
| 850 |
UxPutY( separator20, 280 ); |
| 851 |
UxPutX( separator20, 4 ); |
| 852 |
|
| 853 |
UxPutBackground( separator21, WindowBackground ); |
| 854 |
UxPutHeight( separator21, 10 ); |
| 855 |
UxPutWidth( separator21, 492 ); |
| 856 |
UxPutY( separator21, 478 ); |
| 857 |
UxPutX( separator21, 2 ); |
| 858 |
|
| 859 |
UxPutTranslations( menu2_p2, "" ); |
| 860 |
UxPutForeground( menu2_p2, TextForeground ); |
| 861 |
UxPutBackground( menu2_p2, WindowBackground ); |
| 862 |
UxPutRowColumnType( menu2_p2, "menu_pulldown" ); |
| 863 |
|
| 864 |
UxPutFontList( mn_tol_angstroms2, BoldTextFont ); |
| 865 |
UxPutLabelString( mn_tol_angstroms2, " Emmi " ); |
| 866 |
|
| 867 |
UxPutFontList( mn_tol_pixels2, BoldTextFont ); |
| 868 |
UxPutLabelString( mn_tol_pixels2, " Caspec " ); |
| 869 |
|
| 870 |
UxPutFontList( menu2_p2_b3, BoldTextFont ); |
| 871 |
UxPutLabelString( menu2_p2_b3, " Efosc " ); |
| 872 |
|
| 873 |
UxPutFontList( menu2_p2_b4, BoldTextFont ); |
| 874 |
UxPutLabelString( menu2_p2_b4, " Echelec " ); |
| 875 |
|
| 876 |
UxPutTranslations( mn_tol2, transTable8 ); |
| 877 |
UxPutLabelString( mn_tol2, " " ); |
| 878 |
UxPutSpacing( mn_tol2, 0 ); |
| 879 |
UxPutMarginWidth( mn_tol2, 0 ); |
| 880 |
UxPutForeground( mn_tol2, TextForeground ); |
| 881 |
UxPutBackground( mn_tol2, WindowBackground ); |
| 882 |
UxPutY( mn_tol2, 38 ); |
| 883 |
UxPutX( mn_tol2, 206 ); |
| 884 |
UxPutRowColumnType( mn_tol2, "menu_option" ); |
| 885 |
|
| 886 |
UxPutForeground( menu2_p3, TextForeground ); |
| 887 |
UxPutBackground( menu2_p3, WindowBackground ); |
| 888 |
UxPutRowColumnType( menu2_p3, "menu_pulldown" ); |
| 889 |
|
| 890 |
UxPutFontList( mn_tol_angstroms3, BoldTextFont ); |
| 891 |
UxPutLabelString( mn_tol_angstroms3, " No Flip " ); |
| 892 |
|
| 893 |
UxPutFontList( mn_tol_pixels3, BoldTextFont ); |
| 894 |
UxPutLabelString( mn_tol_pixels3, " Flip X " ); |
| 895 |
|
| 896 |
UxPutFontList( menu2_p3_b4, BoldTextFont ); |
| 897 |
UxPutLabelString( menu2_p3_b4, " Flip Y " ); |
| 898 |
|
| 899 |
UxPutFontList( menu2_p3_b3, BoldTextFont ); |
| 900 |
UxPutLabelString( menu2_p3_b3, " Flip XY " ); |
| 901 |
|
| 902 |
UxPutTranslations( mn_tol3, transTable8 ); |
| 903 |
UxPutLabelString( mn_tol3, " " ); |
| 904 |
UxPutSpacing( mn_tol3, 0 ); |
| 905 |
UxPutMarginWidth( mn_tol3, 0 ); |
| 906 |
UxPutForeground( mn_tol3, TextForeground ); |
| 907 |
UxPutBackground( mn_tol3, WindowBackground ); |
| 908 |
UxPutY( mn_tol3, 72 ); |
| 909 |
UxPutX( mn_tol3, 206 ); |
| 910 |
UxPutRowColumnType( mn_tol3, "menu_option" ); |
| 911 |
|
| 912 |
UxPutForeground( menu2_p5, TextForeground ); |
| 913 |
UxPutBackground( menu2_p5, WindowBackground ); |
| 914 |
UxPutRowColumnType( menu2_p5, "menu_pulldown" ); |
| 915 |
|
| 916 |
UxPutFontList( mn_tol_angstroms5, BoldTextFont ); |
| 917 |
UxPutLabelString( mn_tol_angstroms5, " No Rotation " ); |
| 918 |
|
| 919 |
UxPutFontList( mn_tol_pixels5, BoldTextFont ); |
| 920 |
UxPutLabelString( mn_tol_pixels5, " Rotate 90 " ); |
| 921 |
|
| 922 |
UxPutFontList( menu2_p5_b3, BoldTextFont ); |
| 923 |
UxPutLabelString( menu2_p5_b3, " Rotate 180 " ); |
| 924 |
|
| 925 |
UxPutFontList( menu2_p5_b4, BoldTextFont ); |
| 926 |
UxPutLabelString( menu2_p5_b4, " Rotate 270 " ); |
| 927 |
|
| 928 |
UxPutTranslations( mn_tol5, transTable8 ); |
| 929 |
UxPutLabelString( mn_tol5, " " ); |
| 930 |
UxPutSpacing( mn_tol5, 0 ); |
| 931 |
UxPutMarginWidth( mn_tol5, 0 ); |
| 932 |
UxPutForeground( mn_tol5, TextForeground ); |
| 933 |
UxPutBackground( mn_tol5, WindowBackground ); |
| 934 |
UxPutY( mn_tol5, 72 ); |
| 935 |
UxPutX( mn_tol5, 324 ); |
| 936 |
UxPutRowColumnType( mn_tol5, "menu_option" ); |
| 937 |
|
| 938 |
UxPutForeground( label40, TextForeground ); |
| 939 |
UxPutAlignment( label40, "alignment_beginning" ); |
| 940 |
UxPutLabelString( label40, "Binning Factor :" ); |
| 941 |
UxPutFontList( label40, TextFont ); |
| 942 |
UxPutBackground( label40, LabelBackground ); |
| 943 |
UxPutHeight( label40, 30 ); |
| 944 |
UxPutWidth( label40, 150 ); |
| 945 |
UxPutY( label40, 236 ); |
| 946 |
UxPutX( label40, 20 ); |
| 947 |
|
| 948 |
UxPutTranslations( tf_alpha2, "" ); |
| 949 |
UxPutForeground( tf_alpha2, TextForeground ); |
| 950 |
UxPutHighlightOnEnter( tf_alpha2, "true" ); |
| 951 |
UxPutFontList( tf_alpha2, TextFont ); |
| 952 |
UxPutBackground( tf_alpha2, TextBackground ); |
| 953 |
UxPutHeight( tf_alpha2, 32 ); |
| 954 |
UxPutWidth( tf_alpha2, 96 ); |
| 955 |
UxPutY( tf_alpha2, 376 ); |
| 956 |
UxPutX( tf_alpha2, 218 ); |
| 957 |
|
| 958 |
UxPutForeground( label41, TextForeground ); |
| 959 |
UxPutAlignment( label41, "alignment_beginning" ); |
| 960 |
UxPutLabelString( label41, "Scan Limits (pixels) :" ); |
| 961 |
UxPutFontList( label41, TextFont ); |
| 962 |
UxPutBackground( label41, LabelBackground ); |
| 963 |
UxPutHeight( label41, 30 ); |
| 964 |
UxPutWidth( label41, 150 ); |
| 965 |
UxPutY( label41, 378 ); |
| 966 |
UxPutX( label41, 14 ); |
| 967 |
|
| 968 |
UxPutTranslations( tf_alpha4, "" ); |
| 969 |
UxPutForeground( tf_alpha4, TextForeground ); |
| 970 |
UxPutHighlightOnEnter( tf_alpha4, "true" ); |
| 971 |
UxPutFontList( tf_alpha4, TextFont ); |
| 972 |
UxPutBackground( tf_alpha4, TextBackground ); |
| 973 |
UxPutHeight( tf_alpha4, 32 ); |
| 974 |
UxPutWidth( tf_alpha4, 96 ); |
| 975 |
UxPutY( tf_alpha4, 376 ); |
| 976 |
UxPutX( tf_alpha4, 374 ); |
| 977 |
|
| 978 |
UxPutTranslations( tf_alpha5, "" ); |
| 979 |
UxPutForeground( tf_alpha5, TextForeground ); |
| 980 |
UxPutHighlightOnEnter( tf_alpha5, "true" ); |
| 981 |
UxPutFontList( tf_alpha5, TextFont ); |
| 982 |
UxPutBackground( tf_alpha5, TextBackground ); |
| 983 |
UxPutHeight( tf_alpha5, 32 ); |
| 984 |
UxPutWidth( tf_alpha5, 96 ); |
| 985 |
UxPutY( tf_alpha5, 232 ); |
| 986 |
UxPutX( tf_alpha5, 372 ); |
| 987 |
|
| 988 |
UxPutTranslations( tf_alpha6, "" ); |
| 989 |
UxPutText( tf_alpha6, "1." ); |
| 990 |
UxPutForeground( tf_alpha6, TextForeground ); |
| 991 |
UxPutHighlightOnEnter( tf_alpha6, "true" ); |
| 992 |
UxPutFontList( tf_alpha6, TextFont ); |
| 993 |
UxPutBackground( tf_alpha6, TextBackground ); |
| 994 |
UxPutHeight( tf_alpha6, 32 ); |
| 995 |
UxPutWidth( tf_alpha6, 97 ); |
| 996 |
UxPutY( tf_alpha6, 108 ); |
| 997 |
UxPutX( tf_alpha6, 216 ); |
| 998 |
|
| 999 |
UxPutForeground( label54, TextForeground ); |
| 1000 |
UxPutAlignment( label54, "alignment_beginning" ); |
| 1001 |
UxPutLabelString( label54, "Default Exposure Time (s):" ); |
| 1002 |
UxPutFontList( label54, TextFont ); |
| 1003 |
UxPutBackground( label54, LabelBackground ); |
| 1004 |
UxPutHeight( label54, 30 ); |
| 1005 |
UxPutWidth( label54, 204 ); |
| 1006 |
UxPutY( label54, 110 ); |
| 1007 |
UxPutX( label54, 12 ); |
| 1008 |
|
| 1009 |
UxPutResizeWidth( rowColumn23, "false" ); |
| 1010 |
UxPutRadioBehavior( rowColumn23, "true" ); |
| 1011 |
UxPutBackground( rowColumn23, WindowBackground ); |
| 1012 |
UxPutHeight( rowColumn23, 67 ); |
| 1013 |
UxPutWidth( rowColumn23, 200 ); |
| 1014 |
UxPutY( rowColumn23, 42 ); |
| 1015 |
UxPutX( rowColumn23, 8 ); |
| 1016 |
|
| 1017 |
UxPutSelectColor( toggleButton14, "Yellow" ); |
| 1018 |
UxPutLabelString( toggleButton14, "Standard Orientation for:" ); |
| 1019 |
UxPutForeground( toggleButton14, TextForeground ); |
| 1020 |
UxPutFontList( toggleButton14, TextFont ); |
| 1021 |
UxPutBackground( toggleButton14, WindowBackground ); |
| 1022 |
UxPutRecomputeSize( toggleButton14, "false" ); |
| 1023 |
UxPutHeight( toggleButton14, 29 ); |
| 1024 |
UxPutWidth( toggleButton14, 150 ); |
| 1025 |
UxPutY( toggleButton14, 3 ); |
| 1026 |
UxPutX( toggleButton14, 3 ); |
| 1027 |
|
| 1028 |
UxPutSet( toggleButton15, "true" ); |
| 1029 |
UxPutSelectColor( toggleButton15, "Yellow" ); |
| 1030 |
UxPutLabelString( toggleButton15, "Rotation Parameters:" ); |
| 1031 |
UxPutForeground( toggleButton15, TextForeground ); |
| 1032 |
UxPutFontList( toggleButton15, TextFont ); |
| 1033 |
UxPutBackground( toggleButton15, WindowBackground ); |
| 1034 |
UxPutRecomputeSize( toggleButton15, "false" ); |
| 1035 |
UxPutHeight( toggleButton15, 29 ); |
| 1036 |
UxPutWidth( toggleButton15, 234 ); |
| 1037 |
UxPutY( toggleButton15, 14 ); |
| 1038 |
UxPutX( toggleButton15, 12 ); |
| 1039 |
|
| 1040 |
UxPutForeground( label44, TextForeground ); |
| 1041 |
UxPutAlignment( label44, "alignment_beginning" ); |
| 1042 |
UxPutLabelString( label44, "Image size (pixels):" ); |
| 1043 |
UxPutFontList( label44, TextFont ); |
| 1044 |
UxPutBackground( label44, LabelBackground ); |
| 1045 |
UxPutHeight( label44, 30 ); |
| 1046 |
UxPutWidth( label44, 150 ); |
| 1047 |
UxPutY( label44, 192 ); |
| 1048 |
UxPutX( label44, 20 ); |
| 1049 |
|
| 1050 |
UxPutForeground( label55, TextForeground ); |
| 1051 |
UxPutAlignment( label55, "alignment_beginning" ); |
| 1052 |
UxPutLabelString( label55, "Ymin=" ); |
| 1053 |
UxPutFontList( label55, TextFont ); |
| 1054 |
UxPutBackground( label55, LabelBackground ); |
| 1055 |
UxPutHeight( label55, 30 ); |
| 1056 |
UxPutWidth( label55, 40 ); |
| 1057 |
UxPutY( label55, 378 ); |
| 1058 |
UxPutX( label55, 172 ); |
| 1059 |
|
| 1060 |
UxPutForeground( label56, TextForeground ); |
| 1061 |
UxPutAlignment( label56, "alignment_beginning" ); |
| 1062 |
UxPutLabelString( label56, "X=" ); |
| 1063 |
UxPutFontList( label56, TextFont ); |
| 1064 |
UxPutBackground( label56, LabelBackground ); |
| 1065 |
UxPutHeight( label56, 30 ); |
| 1066 |
UxPutWidth( label56, 40 ); |
| 1067 |
UxPutY( label56, 232 ); |
| 1068 |
UxPutX( label56, 198 ); |
| 1069 |
|
| 1070 |
UxPutForeground( label57, TextForeground ); |
| 1071 |
UxPutAlignment( label57, "alignment_beginning" ); |
| 1072 |
UxPutLabelString( label57, "Y=" ); |
| 1073 |
UxPutFontList( label57, TextFont ); |
| 1074 |
UxPutBackground( label57, LabelBackground ); |
| 1075 |
UxPutHeight( label57, 30 ); |
| 1076 |
UxPutWidth( label57, 20 ); |
| 1077 |
UxPutY( label57, 186 ); |
| 1078 |
UxPutX( label57, 352 ); |
| 1079 |
|
| 1080 |
UxPutForeground( label58, TextForeground ); |
| 1081 |
UxPutAlignment( label58, "alignment_center" ); |
| 1082 |
UxPutLabelString( label58, "Scan" ); |
| 1083 |
UxPutFontList( label58, BoldTextFont ); |
| 1084 |
UxPutBackground( label58, LabelBackground ); |
| 1085 |
UxPutHeight( label58, 30 ); |
| 1086 |
UxPutWidth( label58, 90 ); |
| 1087 |
UxPutY( label58, 294 ); |
| 1088 |
UxPutX( label58, 210 ); |
| 1089 |
|
| 1090 |
UxPutForeground( label59, TextForeground ); |
| 1091 |
UxPutAlignment( label59, "alignment_beginning" ); |
| 1092 |
UxPutLabelString( label59, "Y=" ); |
| 1093 |
UxPutFontList( label59, TextFont ); |
| 1094 |
UxPutBackground( label59, LabelBackground ); |
| 1095 |
UxPutHeight( label59, 30 ); |
| 1096 |
UxPutWidth( label59, 20 ); |
| 1097 |
UxPutY( label59, 222 ); |
| 1098 |
UxPutX( label59, 354 ); |
| 1099 |
|
| 1100 |
UxPutForeground( label60, TextForeground ); |
| 1101 |
UxPutAlignment( label60, "alignment_beginning" ); |
| 1102 |
UxPutLabelString( label60, "X=" ); |
| 1103 |
UxPutFontList( label60, TextFont ); |
| 1104 |
UxPutBackground( label60, LabelBackground ); |
| 1105 |
UxPutHeight( label60, 30 ); |
| 1106 |
UxPutWidth( label60, 40 ); |
| 1107 |
UxPutY( label60, 188 ); |
| 1108 |
UxPutX( label60, 202 ); |
| 1109 |
|
| 1110 |
UxPutBackground( separator34, WindowBackground ); |
| 1111 |
UxPutHeight( separator34, 10 ); |
| 1112 |
UxPutWidth( separator34, 492 ); |
| 1113 |
UxPutY( separator34, 420 ); |
| 1114 |
UxPutX( separator34, 4 ); |
| 1115 |
|
| 1116 |
UxPutForeground( label49, TextForeground ); |
| 1117 |
UxPutAlignment( label49, "alignment_beginning" ); |
| 1118 |
UxPutLabelString( label49, "Ymax=" ); |
| 1119 |
UxPutFontList( label49, TextFont ); |
| 1120 |
UxPutBackground( label49, LabelBackground ); |
| 1121 |
UxPutHeight( label49, 30 ); |
| 1122 |
UxPutWidth( label49, 50 ); |
| 1123 |
UxPutY( label49, 376 ); |
| 1124 |
UxPutX( label49, 322 ); |
| 1125 |
|
| 1126 |
UxPutForeground( label50, TextForeground ); |
| 1127 |
UxPutAlignment( label50, "alignment_center" ); |
| 1128 |
UxPutLabelString( label50, "Rotation" ); |
| 1129 |
UxPutFontList( label50, BoldTextFont ); |
| 1130 |
UxPutBackground( label50, LabelBackground ); |
| 1131 |
UxPutHeight( label50, 30 ); |
| 1132 |
UxPutWidth( label50, 90 ); |
| 1133 |
UxPutY( label50, 2 ); |
| 1134 |
UxPutX( label50, 206 ); |
| 1135 |
|
| 1136 |
UxPutBackground( separator35, WindowBackground ); |
| 1137 |
UxPutHeight( separator35, 10 ); |
| 1138 |
UxPutWidth( separator35, 492 ); |
| 1139 |
UxPutY( separator35, 142 ); |
| 1140 |
UxPutX( separator35, 2 ); |
| 1141 |
|
| 1142 |
UxPutForeground( label51, TextForeground ); |
| 1143 |
UxPutAlignment( label51, "alignment_center" ); |
| 1144 |
UxPutLabelString( label51, "Geometry" ); |
| 1145 |
UxPutFontList( label51, BoldTextFont ); |
| 1146 |
UxPutBackground( label51, LabelBackground ); |
| 1147 |
UxPutHeight( label51, 30 ); |
| 1148 |
UxPutWidth( label51, 90 ); |
| 1149 |
UxPutY( label51, 154 ); |
| 1150 |
UxPutX( label51, 206 ); |
| 1151 |
|
| 1152 |
UxPutTranslations( pb_main_search32, "" ); |
| 1153 |
UxPutWidth( pb_main_search32, 46 ); |
| 1154 |
UxPutRecomputeSize( pb_main_search32, "true" ); |
| 1155 |
UxPutLabelString( pb_main_search32, "..." ); |
| 1156 |
UxPutForeground( pb_main_search32, ButtonForeground ); |
| 1157 |
UxPutFontList( pb_main_search32, BoldTextFont ); |
| 1158 |
UxPutBackground( pb_main_search32, ButtonBackground ); |
| 1159 |
UxPutHeight( pb_main_search32, 28 ); |
| 1160 |
UxPutY( pb_main_search32, 332 ); |
| 1161 |
UxPutX( pb_main_search32, 424 ); |
| 1162 |
|
| 1163 |
UxPutForeground( label52, TextForeground ); |
| 1164 |
UxPutAlignment( label52, "alignment_beginning" ); |
| 1165 |
UxPutLabelString( label52, "Reference Image:" ); |
| 1166 |
UxPutFontList( label52, TextFont ); |
| 1167 |
UxPutBackground( label52, LabelBackground ); |
| 1168 |
UxPutHeight( label52, 30 ); |
| 1169 |
UxPutWidth( label52, 116 ); |
| 1170 |
UxPutY( label52, 330 ); |
| 1171 |
UxPutX( label52, 14 ); |
| 1172 |
|
| 1173 |
UxPutTranslations( tf_alpha1, "" ); |
| 1174 |
UxPutForeground( tf_alpha1, TextForeground ); |
| 1175 |
UxPutHighlightOnEnter( tf_alpha1, "true" ); |
| 1176 |
UxPutFontList( tf_alpha1, TextFont ); |
| 1177 |
UxPutBackground( tf_alpha1, TextBackground ); |
| 1178 |
UxPutHeight( tf_alpha1, 32 ); |
| 1179 |
UxPutWidth( tf_alpha1, 96 ); |
| 1180 |
UxPutY( tf_alpha1, 184 ); |
| 1181 |
UxPutX( tf_alpha1, 248 ); |
| 1182 |
|
| 1183 |
UxPutTranslations( tf_alpha3, "" ); |
| 1184 |
UxPutForeground( tf_alpha3, TextForeground ); |
| 1185 |
UxPutHighlightOnEnter( tf_alpha3, "true" ); |
| 1186 |
UxPutFontList( tf_alpha3, TextFont ); |
| 1187 |
UxPutBackground( tf_alpha3, TextBackground ); |
| 1188 |
UxPutHeight( tf_alpha3, 32 ); |
| 1189 |
UxPutWidth( tf_alpha3, 96 ); |
| 1190 |
UxPutY( tf_alpha3, 230 ); |
| 1191 |
UxPutX( tf_alpha3, 248 ); |
| 1192 |
|
| 1193 |
UxPutTranslations( tf_alpha7, "" ); |
| 1194 |
UxPutForeground( tf_alpha7, TextForeground ); |
| 1195 |
UxPutHighlightOnEnter( tf_alpha7, "true" ); |
| 1196 |
UxPutFontList( tf_alpha7, TextFont ); |
| 1197 |
UxPutBackground( tf_alpha7, TextBackground ); |
| 1198 |
UxPutHeight( tf_alpha7, 32 ); |
| 1199 |
UxPutWidth( tf_alpha7, 242 ); |
| 1200 |
UxPutY( tf_alpha7, 328 ); |
| 1201 |
UxPutX( tf_alpha7, 164 ); |
| 1202 |
|
| 1203 |
UxPutTranslations( tf_alpha44, "" ); |
| 1204 |
UxPutForeground( tf_alpha44, TextForeground ); |
| 1205 |
UxPutHighlightOnEnter( tf_alpha44, "true" ); |
| 1206 |
UxPutFontList( tf_alpha44, TextFont ); |
| 1207 |
UxPutBackground( tf_alpha44, TextBackground ); |
| 1208 |
UxPutHeight( tf_alpha44, 32 ); |
| 1209 |
UxPutWidth( tf_alpha44, 96 ); |
| 1210 |
UxPutY( tf_alpha44, 186 ); |
| 1211 |
UxPutX( tf_alpha44, 374 ); |
| 1212 |
|
| 1213 |
} |
| 1214 |
|
| 1215 |
/******************************************************************************* |
| 1216 |
The 'build_' function creates all the swidgets and X widgets, |
| 1217 |
and sets their properties to the values specified in the |
| 1218 |
Property Editor. |
| 1219 |
*******************************************************************************/ |
| 1220 |
|
| 1221 |
static swidget _Uxbuild_RotateShell() |
| 1222 |
{ |
| 1223 |
/* Create the swidgets */ |
| 1224 |
|
| 1225 |
RotateShell = UxCreateTransientShell( "RotateShell", NO_PARENT ); |
| 1226 |
UxPutContext( RotateShell, UxRotateShellContext ); |
| 1227 |
|
| 1228 |
form25 = UxCreateForm( "form25", RotateShell ); |
| 1229 |
form26 = UxCreateForm( "form26", form25 ); |
| 1230 |
pb_search_search2 = UxCreatePushButton( "pb_search_search2", form26 ); |
| 1231 |
pushButton2 = UxCreatePushButton( "pushButton2", form26 ); |
| 1232 |
pb_search_plot2 = UxCreatePushButton( "pb_search_plot2", form26 ); |
| 1233 |
shelp_search2 = UxCreateText( "shelp_search2", form25 ); |
| 1234 |
separator20 = UxCreateSeparator( "separator20", form25 ); |
| 1235 |
separator21 = UxCreateSeparator( "separator21", form25 ); |
| 1236 |
menu2_p2 = UxCreateRowColumn( "menu2_p2", form25 ); |
| 1237 |
mn_tol_angstroms2 = UxCreatePushButtonGadget( "mn_tol_angstroms2", menu2_p2 ); |
| 1238 |
mn_tol_pixels2 = UxCreatePushButtonGadget( "mn_tol_pixels2", menu2_p2 ); |
| 1239 |
menu2_p2_b3 = UxCreatePushButtonGadget( "menu2_p2_b3", menu2_p2 ); |
| 1240 |
menu2_p2_b4 = UxCreatePushButtonGadget( "menu2_p2_b4", menu2_p2 ); |
| 1241 |
mn_tol2 = UxCreateRowColumn( "mn_tol2", form25 ); |
| 1242 |
menu2_p3 = UxCreateRowColumn( "menu2_p3", form25 ); |
| 1243 |
mn_tol_angstroms3 = UxCreatePushButtonGadget( "mn_tol_angstroms3", menu2_p3 ); |
| 1244 |
mn_tol_pixels3 = UxCreatePushButtonGadget( "mn_tol_pixels3", menu2_p3 ); |
| 1245 |
menu2_p3_b4 = UxCreatePushButtonGadget( "menu2_p3_b4", menu2_p3 ); |
| 1246 |
menu2_p3_b3 = UxCreatePushButtonGadget( "menu2_p3_b3", menu2_p3 ); |
| 1247 |
mn_tol3 = UxCreateRowColumn( "mn_tol3", form25 ); |
| 1248 |
menu2_p5 = UxCreateRowColumn( "menu2_p5", form25 ); |
| 1249 |
mn_tol_angstroms5 = UxCreatePushButtonGadget( "mn_tol_angstroms5", menu2_p5 ); |
| 1250 |
mn_tol_pixels5 = UxCreatePushButtonGadget( "mn_tol_pixels5", menu2_p5 ); |
| 1251 |
menu2_p5_b3 = UxCreatePushButtonGadget( "menu2_p5_b3", menu2_p5 ); |
| 1252 |
menu2_p5_b4 = UxCreatePushButtonGadget( "menu2_p5_b4", menu2_p5 ); |
| 1253 |
mn_tol5 = UxCreateRowColumn( "mn_tol5", form25 ); |
| 1254 |
label40 = UxCreateLabel( "label40", form25 ); |
| 1255 |
tf_alpha2 = UxCreateTextField( "tf_alpha2", form25 ); |
| 1256 |
label41 = UxCreateLabel( "label41", form25 ); |
| 1257 |
tf_alpha4 = UxCreateTextField( "tf_alpha4", form25 ); |
| 1258 |
tf_alpha5 = UxCreateTextField( "tf_alpha5", form25 ); |
| 1259 |
tf_alpha6 = UxCreateTextField( "tf_alpha6", form25 ); |
| 1260 |
label54 = UxCreateLabel( "label54", form25 ); |
| 1261 |
rowColumn23 = UxCreateRowColumn( "rowColumn23", form25 ); |
| 1262 |
toggleButton14 = UxCreateToggleButton( "toggleButton14", rowColumn23 ); |
| 1263 |
toggleButton15 = UxCreateToggleButton( "toggleButton15", rowColumn23 ); |
| 1264 |
label44 = UxCreateLabel( "label44", form25 ); |
| 1265 |
label55 = UxCreateLabel( "label55", form25 ); |
| 1266 |
label56 = UxCreateLabel( "label56", form25 ); |
| 1267 |
label57 = UxCreateLabel( "label57", form25 ); |
| 1268 |
label58 = UxCreateLabel( "label58", form25 ); |
| 1269 |
label59 = UxCreateLabel( "label59", form25 ); |
| 1270 |
label60 = UxCreateLabel( "label60", form25 ); |
| 1271 |
separator34 = UxCreateSeparator( "separator34", form25 ); |
| 1272 |
label49 = UxCreateLabel( "label49", form25 ); |
| 1273 |
label50 = UxCreateLabel( "label50", form25 ); |
| 1274 |
separator35 = UxCreateSeparator( "separator35", form25 ); |
| 1275 |
label51 = UxCreateLabel( "label51", form25 ); |
| 1276 |
pb_main_search32 = UxCreatePushButton( "pb_main_search32", form25 ); |
| 1277 |
label52 = UxCreateLabel( "label52", form25 ); |
| 1278 |
tf_alpha1 = UxCreateTextField( "tf_alpha1", form25 ); |
| 1279 |
tf_alpha3 = UxCreateTextField( "tf_alpha3", form25 ); |
| 1280 |
tf_alpha7 = UxCreateTextField( "tf_alpha7", form25 ); |
| 1281 |
tf_alpha44 = UxCreateTextField( "tf_alpha44", form25 ); |
| 1282 |
|
| 1283 |
_Uxinit_RotateShell(); |
| 1284 |
|
| 1285 |
/* Create the X widgets */ |
| 1286 |
|
| 1287 |
UxCreateWidget( RotateShell ); |
| 1288 |
UxCreateWidget( form25 ); |
| 1289 |
UxCreateWidget( form26 ); |
| 1290 |
UxCreateWidget( pb_search_search2 ); |
| 1291 |
UxCreateWidget( pushButton2 ); |
| 1292 |
UxCreateWidget( pb_search_plot2 ); |
| 1293 |
UxCreateWidget( shelp_search2 ); |
| 1294 |
UxCreateWidget( separator20 ); |
| 1295 |
UxCreateWidget( separator21 ); |
| 1296 |
UxCreateWidget( menu2_p2 ); |
| 1297 |
UxCreateWidget( mn_tol_angstroms2 ); |
| 1298 |
UxCreateWidget( mn_tol_pixels2 ); |
| 1299 |
UxCreateWidget( menu2_p2_b3 ); |
| 1300 |
UxCreateWidget( menu2_p2_b4 ); |
| 1301 |
UxPutSubMenuId( mn_tol2, "menu2_p2" ); |
| 1302 |
UxCreateWidget( mn_tol2 ); |
| 1303 |
|
| 1304 |
UxCreateWidget( menu2_p3 ); |
| 1305 |
UxCreateWidget( mn_tol_angstroms3 ); |
| 1306 |
UxCreateWidget( mn_tol_pixels3 ); |
| 1307 |
UxCreateWidget( menu2_p3_b4 ); |
| 1308 |
UxCreateWidget( menu2_p3_b3 ); |
| 1309 |
UxPutSubMenuId( mn_tol3, "menu2_p3" ); |
| 1310 |
UxCreateWidget( mn_tol3 ); |
| 1311 |
|
| 1312 |
UxCreateWidget( menu2_p5 ); |
| 1313 |
UxCreateWidget( mn_tol_angstroms5 ); |
| 1314 |
UxCreateWidget( mn_tol_pixels5 ); |
| 1315 |
UxCreateWidget( menu2_p5_b3 ); |
| 1316 |
UxCreateWidget( menu2_p5_b4 ); |
| 1317 |
UxPutSubMenuId( mn_tol5, "menu2_p5" ); |
| 1318 |
UxCreateWidget( mn_tol5 ); |
| 1319 |
|
| 1320 |
UxCreateWidget( label40 ); |
| 1321 |
UxCreateWidget( tf_alpha2 ); |
| 1322 |
UxCreateWidget( label41 ); |
| 1323 |
UxCreateWidget( tf_alpha4 ); |
| 1324 |
UxCreateWidget( tf_alpha5 ); |
| 1325 |
UxCreateWidget( tf_alpha6 ); |
| 1326 |
UxCreateWidget( label54 ); |
| 1327 |
UxCreateWidget( rowColumn23 ); |
| 1328 |
UxCreateWidget( toggleButton14 ); |
| 1329 |
UxCreateWidget( toggleButton15 ); |
| 1330 |
UxCreateWidget( label44 ); |
| 1331 |
UxCreateWidget( label55 ); |
| 1332 |
UxCreateWidget( label56 ); |
| 1333 |
UxCreateWidget( label57 ); |
| 1334 |
UxCreateWidget( label58 ); |
| 1335 |
UxCreateWidget( label59 ); |
| 1336 |
UxCreateWidget( label60 ); |
| 1337 |
UxCreateWidget( separator34 ); |
| 1338 |
UxCreateWidget( label49 ); |
| 1339 |
UxCreateWidget( label50 ); |
| 1340 |
UxCreateWidget( separator35 ); |
| 1341 |
UxCreateWidget( label51 ); |
| 1342 |
UxCreateWidget( pb_main_search32 ); |
| 1343 |
UxCreateWidget( label52 ); |
| 1344 |
UxCreateWidget( tf_alpha1 ); |
| 1345 |
UxCreateWidget( tf_alpha3 ); |
| 1346 |
UxCreateWidget( tf_alpha7 ); |
| 1347 |
UxCreateWidget( tf_alpha44 ); |
| 1348 |
|
| 1349 |
UxAddCallback( pb_search_search2, XmNactivateCallback, |
| 1350 |
activateCB_pb_search_search2, |
| 1351 |
(XtPointer) UxRotateShellContext ); |
| 1352 |
|
| 1353 |
UxAddCallback( pushButton2, XmNactivateCallback, |
| 1354 |
activateCB_pushButton2, |
| 1355 |
(XtPointer) UxRotateShellContext ); |
| 1356 |
|
| 1357 |
UxAddCallback( pb_search_plot2, XmNactivateCallback, |
| 1358 |
activateCB_pb_search_plot2, |
| 1359 |
(XtPointer) UxRotateShellContext ); |
| 1360 |
|
| 1361 |
UxAddCallback( mn_tol_angstroms2, XmNactivateCallback, |
| 1362 |
activateCB_mn_tol_angstroms2, |
| 1363 |
(XtPointer) UxRotateShellContext ); |
| 1364 |
|
| 1365 |
UxAddCallback( mn_tol_pixels2, XmNactivateCallback, |
| 1366 |
activateCB_mn_tol_pixels2, |
| 1367 |
(XtPointer) UxRotateShellContext ); |
| 1368 |
|
| 1369 |
UxAddCallback( menu2_p2_b3, XmNactivateCallback, |
| 1370 |
activateCB_menu2_p2_b3, |
| 1371 |
(XtPointer) UxRotateShellContext ); |
| 1372 |
|
| 1373 |
UxAddCallback( menu2_p2_b4, XmNactivateCallback, |
| 1374 |
activateCB_menu2_p2_b4, |
| 1375 |
(XtPointer) UxRotateShellContext ); |
| 1376 |
|
| 1377 |
UxAddCallback( mn_tol_angstroms3, XmNactivateCallback, |
| 1378 |
activateCB_mn_tol_angstroms3, |
| 1379 |
(XtPointer) UxRotateShellContext ); |
| 1380 |
|
| 1381 |
UxAddCallback( mn_tol_pixels3, XmNactivateCallback, |
| 1382 |
activateCB_mn_tol_pixels3, |
| 1383 |
(XtPointer) UxRotateShellContext ); |
| 1384 |
|
| 1385 |
UxAddCallback( menu2_p3_b4, XmNactivateCallback, |
| 1386 |
activateCB_menu2_p3_b4, |
| 1387 |
(XtPointer) UxRotateShellContext ); |
| 1388 |
|
| 1389 |
UxAddCallback( menu2_p3_b3, XmNactivateCallback, |
| 1390 |
activateCB_menu2_p3_b3, |
| 1391 |
(XtPointer) UxRotateShellContext ); |
| 1392 |
|
| 1393 |
UxAddCallback( mn_tol_angstroms5, XmNactivateCallback, |
| 1394 |
activateCB_mn_tol_angstroms5, |
| 1395 |
(XtPointer) UxRotateShellContext ); |
| 1396 |
|
| 1397 |
UxAddCallback( mn_tol_pixels5, XmNactivateCallback, |
| 1398 |
activateCB_mn_tol_pixels5, |
| 1399 |
(XtPointer) UxRotateShellContext ); |
| 1400 |
|
| 1401 |
UxAddCallback( menu2_p5_b3, XmNactivateCallback, |
| 1402 |
activateCB_menu2_p5_b3, |
| 1403 |
(XtPointer) UxRotateShellContext ); |
| 1404 |
|
| 1405 |
UxAddCallback( menu2_p5_b4, XmNactivateCallback, |
| 1406 |
activateCB_menu2_p5_b4, |
| 1407 |
(XtPointer) UxRotateShellContext ); |
| 1408 |
|
| 1409 |
UxAddCallback( tf_alpha2, XmNlosingFocusCallback, |
| 1410 |
losingFocusCB_tf_alpha2, |
| 1411 |
(XtPointer) UxRotateShellContext ); |
| 1412 |
|
| 1413 |
UxAddCallback( tf_alpha4, XmNlosingFocusCallback, |
| 1414 |
losingFocusCB_tf_alpha4, |
| 1415 |
(XtPointer) UxRotateShellContext ); |
| 1416 |
|
| 1417 |
UxAddCallback( tf_alpha5, XmNlosingFocusCallback, |
| 1418 |
losingFocusCB_tf_alpha5, |
| 1419 |
(XtPointer) UxRotateShellContext ); |
| 1420 |
|
| 1421 |
UxAddCallback( tf_alpha6, XmNlosingFocusCallback, |
| 1422 |
losingFocusCB_tf_alpha6, |
| 1423 |
(XtPointer) UxRotateShellContext ); |
| 1424 |
|
| 1425 |
UxAddCallback( toggleButton14, XmNarmCallback, |
| 1426 |
armCB_toggleButton14, |
| 1427 |
(XtPointer) UxRotateShellContext ); |
| 1428 |
UxAddCallback( toggleButton14, XmNvalueChangedCallback, |
| 1429 |
valueChangedCB_toggleButton14, |
| 1430 |
(XtPointer) UxRotateShellContext ); |
| 1431 |
|
| 1432 |
UxAddCallback( toggleButton15, XmNarmCallback, |
| 1433 |
armCB_toggleButton15, |
| 1434 |
(XtPointer) UxRotateShellContext ); |
| 1435 |
UxAddCallback( toggleButton15, XmNvalueChangedCallback, |
| 1436 |
valueChangedCB_toggleButton15, |
| 1437 |
(XtPointer) UxRotateShellContext ); |
| 1438 |
|
| 1439 |
UxAddCallback( pb_main_search32, XmNactivateCallback, |
| 1440 |
activateCB_pb_main_search32, |
| 1441 |
(XtPointer) UxRotateShellContext ); |
| 1442 |
|
| 1443 |
UxAddCallback( tf_alpha1, XmNlosingFocusCallback, |
| 1444 |
losingFocusCB_tf_alpha1, |
| 1445 |
(XtPointer) UxRotateShellContext ); |
| 1446 |
|
| 1447 |
UxAddCallback( tf_alpha3, XmNlosingFocusCallback, |
| 1448 |
losingFocusCB_tf_alpha3, |
| 1449 |
(XtPointer) UxRotateShellContext ); |
| 1450 |
|
| 1451 |
UxAddCallback( tf_alpha7, XmNlosingFocusCallback, |
| 1452 |
losingFocusCB_tf_alpha7, |
| 1453 |
(XtPointer) UxRotateShellContext ); |
| 1454 |
|
| 1455 |
UxAddCallback( tf_alpha44, XmNlosingFocusCallback, |
| 1456 |
losingFocusCB_tf_alpha44, |
| 1457 |
(XtPointer) UxRotateShellContext ); |
| 1458 |
|
| 1459 |
|
| 1460 |
/* Finally, call UxRealizeInterface to create the X windows |
| 1461 |
for the widgets created above. */ |
| 1462 |
|
| 1463 |
UxRealizeInterface( RotateShell ); |
| 1464 |
|
| 1465 |
return ( RotateShell ); |
| 1466 |
} |
| 1467 |
|
| 1468 |
/******************************************************************************* |
| 1469 |
The following function includes the code that was entered |
| 1470 |
in the 'Initial Code' and 'Final Code' sections of the |
| 1471 |
Declarations Editor. This function is called from the |
| 1472 |
'Interface function' below. |
| 1473 |
*******************************************************************************/ |
| 1474 |
|
| 1475 |
static swidget _Ux_create_RotateShell() |
| 1476 |
{ |
| 1477 |
swidget rtrn; |
| 1478 |
_UxCRotateShell *UxContext; |
| 1479 |
|
| 1480 |
UxRotateShellContext = UxContext = |
| 1481 |
(_UxCRotateShell *) UxMalloc( sizeof(_UxCRotateShell) ); |
| 1482 |
|
| 1483 |
rtrn = _Uxbuild_RotateShell(); |
| 1484 |
|
| 1485 |
return(rtrn); |
| 1486 |
} |
| 1487 |
|
| 1488 |
/******************************************************************************* |
| 1489 |
The following is the 'Interface function' which is the |
| 1490 |
external entry point for creating this interface. |
| 1491 |
This function should be called from your application or from |
| 1492 |
a callback function. |
| 1493 |
*******************************************************************************/ |
| 1494 |
|
| 1495 |
swidget create_RotateShell() |
| 1496 |
{ |
| 1497 |
swidget _Uxrtrn; |
| 1498 |
static int _Uxinit = 0; |
| 1499 |
|
| 1500 |
if ( ! _Uxinit ) |
| 1501 |
{ |
| 1502 |
static XtActionsRec _Uxactions[] = { |
| 1503 |
{ "ClearShort", action_ClearShort }, |
| 1504 |
{ "HelpShort", action_HelpShort }, |
| 1505 |
{ "ExtendedHelp", action_ExtendedHelp }, |
| 1506 |
{ "FileSelectACT", action_FileSelectACT } |
| 1507 |
}; |
| 1508 |
|
| 1509 |
XtAppAddActions( UxAppContext, |
| 1510 |
_Uxactions, |
| 1511 |
XtNumber(_Uxactions) ); |
| 1512 |
|
| 1513 |
_Uxinit = 1; |
| 1514 |
} |
| 1515 |
|
| 1516 |
_Uxrtrn = _Ux_create_RotateShell(); |
| 1517 |
|
| 1518 |
return ( _Uxrtrn ); |
| 1519 |
} |
| 1520 |
|
| 1521 |
/******************************************************************************* |
| 1522 |
END OF FILE |
| 1523 |
*******************************************************************************/ |
| 1524 |
|