| 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 |
ApplicWindow.c |
| 31 |
|
| 32 |
.VERSION |
| 33 |
090819 last modif |
| 34 |
|
| 35 |
|
| 36 |
*******************************************************************************/ |
| 37 |
|
| 38 |
#include <stdlib.h> |
| 39 |
#include <stdio.h> |
| 40 |
#include "UxLib.h" |
| 41 |
#include "UxPushB.h" |
| 42 |
#include "UxTextF.h" |
| 43 |
#include "UxTogB.h" |
| 44 |
#include "UxLabel.h" |
| 45 |
#include "UxText.h" |
| 46 |
#include "UxForm.h" |
| 47 |
#include "UxCascB.h" |
| 48 |
#include "UxSep.h" |
| 49 |
#include "UxPushBG.h" |
| 50 |
#include "UxRowCol.h" |
| 51 |
#include "UxMainW.h" |
| 52 |
#include "UxApplSh.h" |
| 53 |
|
| 54 |
/******************************************************************************* |
| 55 |
Includes, Defines, and Global variables from the Declarations Editor: |
| 56 |
*******************************************************************************/ |
| 57 |
|
| 58 |
#include <ExternResources.h> |
| 59 |
|
| 60 |
/******************************************************************************* |
| 61 |
The definition of the context structure: |
| 62 |
If you create multiple instances of your interface, the context |
| 63 |
structure ensures that your callbacks use the variables for the |
| 64 |
correct instance. |
| 65 |
|
| 66 |
For each swidget in the interface, each argument to the Interface |
| 67 |
function, and each variable in the Instance Specific section of the |
| 68 |
Declarations Editor, there is an entry in the context structure. |
| 69 |
and a #define. The #define makes the variable name refer to the |
| 70 |
corresponding entry in the context structure. |
| 71 |
*******************************************************************************/ |
| 72 |
|
| 73 |
typedef struct |
| 74 |
{ |
| 75 |
swidget UxApplicWindow; |
| 76 |
swidget UxMainWindow; |
| 77 |
swidget Uxmenu1; |
| 78 |
swidget Uxmenu1_p1; |
| 79 |
swidget Uxmenu1_p1_b1; |
| 80 |
swidget Uxmenu1_p1_b2; |
| 81 |
swidget Uxmenu1_p1_b3; |
| 82 |
swidget Uxmenu1_p1_b4; |
| 83 |
swidget Uxmenu1_p1_b5; |
| 84 |
swidget Uxmenu1_top_b1; |
| 85 |
swidget Uxmenu1_p4; |
| 86 |
swidget Uxmenu_help_window; |
| 87 |
swidget Uxmenu1_top_b4; |
| 88 |
swidget Uxform6; |
| 89 |
swidget Uxseparator1; |
| 90 |
swidget Uxshort_help; |
| 91 |
swidget Uxseparator2; |
| 92 |
swidget Uxlabel2; |
| 93 |
swidget Uxlabel3; |
| 94 |
swidget Uxtg_biasopt; |
| 95 |
swidget Uxtg_darkopt; |
| 96 |
swidget Uxtg_flatopt; |
| 97 |
swidget Uxtg_rebopt; |
| 98 |
swidget Uxlabel8; |
| 99 |
swidget UxrowColumn1; |
| 100 |
swidget Uxtg_linear; |
| 101 |
swidget Uxtg_quadratic; |
| 102 |
swidget Uxtg_spline; |
| 103 |
swidget Uxtg_respopt; |
| 104 |
swidget Uxtg_extopt; |
| 105 |
swidget Uxlabel9; |
| 106 |
swidget Uxlabel10; |
| 107 |
swidget Uxlabel11; |
| 108 |
swidget Uxlabel12; |
| 109 |
swidget Uxlabel13; |
| 110 |
swidget Uxtg_rotopt; |
| 111 |
swidget Uxtg_trimopt; |
| 112 |
swidget Uxtf_inputf; |
| 113 |
swidget Uxtf_inpnumb; |
| 114 |
swidget Uxtf_bias; |
| 115 |
swidget Uxtf_dark; |
| 116 |
swidget Uxtf_flat; |
| 117 |
swidget Uxtf_trim4; |
| 118 |
swidget Uxtf_longsess; |
| 119 |
swidget Uxtf_redextab; |
| 120 |
swidget Uxtf_redresp; |
| 121 |
swidget Uxtf_rotstart; |
| 122 |
swidget Uxtf_outputf; |
| 123 |
swidget Uxtf_outnumb; |
| 124 |
swidget Uxlabel5; |
| 125 |
swidget Uxtf_trim1; |
| 126 |
swidget Uxtf_trim2; |
| 127 |
swidget Uxtf_trim3; |
| 128 |
swidget Uxlabel6; |
| 129 |
swidget Uxlabel7; |
| 130 |
swidget Uxlabel1; |
| 131 |
swidget Uxform2; |
| 132 |
swidget Uxpb_execute; |
| 133 |
swidget Uxpb_airmass; |
| 134 |
swidget Uxtf_rotstep; |
| 135 |
} _UxCApplicWindow; |
| 136 |
|
| 137 |
#define ApplicWindow UxApplicWindowContext->UxApplicWindow |
| 138 |
#define MainWindow UxApplicWindowContext->UxMainWindow |
| 139 |
#define menu1 UxApplicWindowContext->Uxmenu1 |
| 140 |
#define menu1_p1 UxApplicWindowContext->Uxmenu1_p1 |
| 141 |
#define menu1_p1_b1 UxApplicWindowContext->Uxmenu1_p1_b1 |
| 142 |
#define menu1_p1_b2 UxApplicWindowContext->Uxmenu1_p1_b2 |
| 143 |
#define menu1_p1_b3 UxApplicWindowContext->Uxmenu1_p1_b3 |
| 144 |
#define menu1_p1_b4 UxApplicWindowContext->Uxmenu1_p1_b4 |
| 145 |
#define menu1_p1_b5 UxApplicWindowContext->Uxmenu1_p1_b5 |
| 146 |
#define menu1_top_b1 UxApplicWindowContext->Uxmenu1_top_b1 |
| 147 |
#define menu1_p4 UxApplicWindowContext->Uxmenu1_p4 |
| 148 |
#define menu_help_window UxApplicWindowContext->Uxmenu_help_window |
| 149 |
#define menu1_top_b4 UxApplicWindowContext->Uxmenu1_top_b4 |
| 150 |
#define form6 UxApplicWindowContext->Uxform6 |
| 151 |
#define separator1 UxApplicWindowContext->Uxseparator1 |
| 152 |
#define short_help UxApplicWindowContext->Uxshort_help |
| 153 |
#define separator2 UxApplicWindowContext->Uxseparator2 |
| 154 |
#define label2 UxApplicWindowContext->Uxlabel2 |
| 155 |
#define label3 UxApplicWindowContext->Uxlabel3 |
| 156 |
#define tg_biasopt UxApplicWindowContext->Uxtg_biasopt |
| 157 |
#define tg_darkopt UxApplicWindowContext->Uxtg_darkopt |
| 158 |
#define tg_flatopt UxApplicWindowContext->Uxtg_flatopt |
| 159 |
#define tg_rebopt UxApplicWindowContext->Uxtg_rebopt |
| 160 |
#define label8 UxApplicWindowContext->Uxlabel8 |
| 161 |
#define rowColumn1 UxApplicWindowContext->UxrowColumn1 |
| 162 |
#define tg_linear UxApplicWindowContext->Uxtg_linear |
| 163 |
#define tg_quadratic UxApplicWindowContext->Uxtg_quadratic |
| 164 |
#define tg_spline UxApplicWindowContext->Uxtg_spline |
| 165 |
#define tg_respopt UxApplicWindowContext->Uxtg_respopt |
| 166 |
#define tg_extopt UxApplicWindowContext->Uxtg_extopt |
| 167 |
#define label9 UxApplicWindowContext->Uxlabel9 |
| 168 |
#define label10 UxApplicWindowContext->Uxlabel10 |
| 169 |
#define label11 UxApplicWindowContext->Uxlabel11 |
| 170 |
#define label12 UxApplicWindowContext->Uxlabel12 |
| 171 |
#define label13 UxApplicWindowContext->Uxlabel13 |
| 172 |
#define tg_rotopt UxApplicWindowContext->Uxtg_rotopt |
| 173 |
#define tg_trimopt UxApplicWindowContext->Uxtg_trimopt |
| 174 |
#define tf_inputf UxApplicWindowContext->Uxtf_inputf |
| 175 |
#define tf_inpnumb UxApplicWindowContext->Uxtf_inpnumb |
| 176 |
#define tf_bias UxApplicWindowContext->Uxtf_bias |
| 177 |
#define tf_dark UxApplicWindowContext->Uxtf_dark |
| 178 |
#define tf_flat UxApplicWindowContext->Uxtf_flat |
| 179 |
#define tf_trim4 UxApplicWindowContext->Uxtf_trim4 |
| 180 |
#define tf_longsess UxApplicWindowContext->Uxtf_longsess |
| 181 |
#define tf_redextab UxApplicWindowContext->Uxtf_redextab |
| 182 |
#define tf_redresp UxApplicWindowContext->Uxtf_redresp |
| 183 |
#define tf_rotstart UxApplicWindowContext->Uxtf_rotstart |
| 184 |
#define tf_outputf UxApplicWindowContext->Uxtf_outputf |
| 185 |
#define tf_outnumb UxApplicWindowContext->Uxtf_outnumb |
| 186 |
#define label5 UxApplicWindowContext->Uxlabel5 |
| 187 |
#define tf_trim1 UxApplicWindowContext->Uxtf_trim1 |
| 188 |
#define tf_trim2 UxApplicWindowContext->Uxtf_trim2 |
| 189 |
#define tf_trim3 UxApplicWindowContext->Uxtf_trim3 |
| 190 |
#define label6 UxApplicWindowContext->Uxlabel6 |
| 191 |
#define label7 UxApplicWindowContext->Uxlabel7 |
| 192 |
#define label1 UxApplicWindowContext->Uxlabel1 |
| 193 |
#define form2 UxApplicWindowContext->Uxform2 |
| 194 |
#define pb_execute UxApplicWindowContext->Uxpb_execute |
| 195 |
#define pb_airmass UxApplicWindowContext->Uxpb_airmass |
| 196 |
#define tf_rotstep UxApplicWindowContext->Uxtf_rotstep |
| 197 |
|
| 198 |
static _UxCApplicWindow *UxApplicWindowContext; |
| 199 |
|
| 200 |
extern void DisplayExtendedHelp(), DisplayShortHelp(), ExecuteReduce(); |
| 201 |
extern void WriteKeyword(), CreateInputCatalog(); |
| 202 |
|
| 203 |
extern int PopupList(), AppendDialogText(), MissingAirmassInCatalog(); |
| 204 |
extern int FillAirmassForm(); |
| 205 |
|
| 206 |
extern int SCSEPI(); |
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
/******************************************************************************* |
| 211 |
The following are translation tables. |
| 212 |
*******************************************************************************/ |
| 213 |
|
| 214 |
static char *FileSelectMain = "#override\n\ |
| 215 |
<Btn3Down>:FileSelectACT()\n"; |
| 216 |
|
| 217 |
/******************************************************************************* |
| 218 |
Forward declarations of functions that are defined later in this file. |
| 219 |
*******************************************************************************/ |
| 220 |
|
| 221 |
swidget create_ApplicWindow(); |
| 222 |
|
| 223 |
/******************************************************************************* |
| 224 |
The following are Action functions. |
| 225 |
*******************************************************************************/ |
| 226 |
|
| 227 |
static void action_ClearHelp( UxWidget, UxEvent, UxParams, p_UxNumParams ) |
| 228 |
Widget UxWidget; |
| 229 |
XEvent *UxEvent; |
| 230 |
String *UxParams; |
| 231 |
Cardinal *p_UxNumParams; |
| 232 |
{ |
| 233 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 234 |
swidget UxThisWidget; |
| 235 |
|
| 236 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 237 |
UxSaveCtx = UxApplicWindowContext; |
| 238 |
UxApplicWindowContext = UxContext = |
| 239 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 240 |
{ |
| 241 |
UxPutText(UxFindSwidget("short_help"), ""); |
| 242 |
} |
| 243 |
UxApplicWindowContext = UxSaveCtx; |
| 244 |
} |
| 245 |
|
| 246 |
static void action_ExtendedHelp( UxWidget, UxEvent, UxParams, p_UxNumParams ) |
| 247 |
Widget UxWidget; |
| 248 |
XEvent *UxEvent; |
| 249 |
String *UxParams; |
| 250 |
Cardinal *p_UxNumParams; |
| 251 |
{ |
| 252 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 253 |
swidget UxThisWidget; |
| 254 |
|
| 255 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 256 |
UxSaveCtx = UxApplicWindowContext; |
| 257 |
UxApplicWindowContext = UxContext = |
| 258 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 259 |
{ |
| 260 |
DisplayExtendedHelp(UxWidget); |
| 261 |
} |
| 262 |
UxApplicWindowContext = UxSaveCtx; |
| 263 |
} |
| 264 |
|
| 265 |
static void action_WriteHelp( UxWidget, UxEvent, UxParams, p_UxNumParams ) |
| 266 |
Widget UxWidget; |
| 267 |
XEvent *UxEvent; |
| 268 |
String *UxParams; |
| 269 |
Cardinal *p_UxNumParams; |
| 270 |
{ |
| 271 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 272 |
swidget UxThisWidget; |
| 273 |
|
| 274 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 275 |
UxSaveCtx = UxApplicWindowContext; |
| 276 |
UxApplicWindowContext = UxContext = |
| 277 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 278 |
{ |
| 279 |
DisplayShortHelp(UxWidget); |
| 280 |
} |
| 281 |
UxApplicWindowContext = UxSaveCtx; |
| 282 |
} |
| 283 |
|
| 284 |
static void action_FileSelectACT( UxWidget, UxEvent, UxParams, p_UxNumParams ) |
| 285 |
Widget UxWidget; |
| 286 |
XEvent *UxEvent; |
| 287 |
String *UxParams; |
| 288 |
Cardinal *p_UxNumParams; |
| 289 |
{ |
| 290 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 291 |
swidget UxThisWidget; |
| 292 |
|
| 293 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 294 |
UxSaveCtx = UxApplicWindowContext; |
| 295 |
UxApplicWindowContext = UxContext = |
| 296 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 297 |
{ |
| 298 |
#include <spec_comm.h> |
| 299 |
|
| 300 |
extern swidget TextFieldSwidget; |
| 301 |
|
| 302 |
TextFieldSwidget = UxThisWidget; |
| 303 |
|
| 304 |
if ( UxWidget == UxGetWidget(UxFindSwidget("tf_inputf")) ) |
| 305 |
PopupList(LIST_INPUTF); |
| 306 |
else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_bias")) ) |
| 307 |
PopupList(LIST_BIAS); |
| 308 |
else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_dark")) ) |
| 309 |
PopupList(LIST_DARK); |
| 310 |
else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_flat")) ) |
| 311 |
PopupList(LIST_FLAT); |
| 312 |
else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_longsess")) ) |
| 313 |
PopupList(LIST_LONGSESS); |
| 314 |
else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_redextab")) ) |
| 315 |
PopupList(LIST_REDEXTAB); |
| 316 |
else if ( UxWidget == UxGetWidget(UxFindSwidget("tf_redresp")) ) |
| 317 |
PopupList(LIST_REDRESP); |
| 318 |
} |
| 319 |
UxApplicWindowContext = UxSaveCtx; |
| 320 |
} |
| 321 |
|
| 322 |
/******************************************************************************* |
| 323 |
The following are callback functions. |
| 324 |
*******************************************************************************/ |
| 325 |
|
| 326 |
static void activateCB_menu1_p1_b1( UxWidget, UxClientData, UxCallbackArg ) |
| 327 |
Widget UxWidget; |
| 328 |
XtPointer UxClientData, UxCallbackArg; |
| 329 |
{ |
| 330 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 331 |
swidget UxThisWidget; |
| 332 |
|
| 333 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 334 |
UxSaveCtx = UxApplicWindowContext; |
| 335 |
UxApplicWindowContext = UxContext = |
| 336 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 337 |
{ |
| 338 |
#include <spec_comm.h> |
| 339 |
|
| 340 |
PopupList(LIST_REDSESS); |
| 341 |
} |
| 342 |
UxApplicWindowContext = UxSaveCtx; |
| 343 |
} |
| 344 |
|
| 345 |
static void activateCB_menu1_p1_b2( UxWidget, UxClientData, UxCallbackArg ) |
| 346 |
Widget UxWidget; |
| 347 |
XtPointer UxClientData, UxCallbackArg; |
| 348 |
{ |
| 349 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 350 |
swidget UxThisWidget; |
| 351 |
|
| 352 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 353 |
UxSaveCtx = UxApplicWindowContext; |
| 354 |
UxApplicWindowContext = UxContext = |
| 355 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 356 |
{ |
| 357 |
#include <spec_comm.h> |
| 358 |
|
| 359 |
extern char Redsess[]; |
| 360 |
char command[256]; |
| 361 |
|
| 362 |
sprintf(command, "%s%s", C_REDSAVE, Redsess); |
| 363 |
AppendDialogText(command); |
| 364 |
} |
| 365 |
UxApplicWindowContext = UxSaveCtx; |
| 366 |
} |
| 367 |
|
| 368 |
static void activateCB_menu1_p1_b3( UxWidget, UxClientData, UxCallbackArg ) |
| 369 |
Widget UxWidget; |
| 370 |
XtPointer UxClientData, UxCallbackArg; |
| 371 |
{ |
| 372 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 373 |
swidget UxThisWidget; |
| 374 |
|
| 375 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 376 |
UxSaveCtx = UxApplicWindowContext; |
| 377 |
UxApplicWindowContext = UxContext = |
| 378 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 379 |
{ |
| 380 |
#include <xm_defs.h> |
| 381 |
#include <spec_comm.h> |
| 382 |
|
| 383 |
extern int DialogType; |
| 384 |
extern char Redsess[]; |
| 385 |
|
| 386 |
SET_DIALOG_PROMPT("Output parameters table :"); |
| 387 |
|
| 388 |
XmTextSetString(UxGetWidget(UxFindSwidget("tf_file_dialog")), Redsess); |
| 389 |
DialogType = DIALOG_REDSESS; |
| 390 |
UxPopupInterface(UxFindSwidget("file_dialog"), exclusive_grab); |
| 391 |
} |
| 392 |
UxApplicWindowContext = UxSaveCtx; |
| 393 |
} |
| 394 |
|
| 395 |
static void activateCB_menu1_p1_b5( UxWidget, UxClientData, UxCallbackArg ) |
| 396 |
Widget UxWidget; |
| 397 |
XtPointer UxClientData, UxCallbackArg; |
| 398 |
{ |
| 399 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 400 |
swidget UxThisWidget; |
| 401 |
|
| 402 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 403 |
UxSaveCtx = UxApplicWindowContext; |
| 404 |
UxApplicWindowContext = UxContext = |
| 405 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 406 |
{ |
| 407 |
SCSEPI(); |
| 408 |
exit(0); |
| 409 |
} |
| 410 |
UxApplicWindowContext = UxSaveCtx; |
| 411 |
} |
| 412 |
|
| 413 |
static void activateCB_menu_help_window( UxWidget, UxClientData, UxCallbackArg ) |
| 414 |
Widget UxWidget; |
| 415 |
XtPointer UxClientData, UxCallbackArg; |
| 416 |
{ |
| 417 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 418 |
swidget UxThisWidget; |
| 419 |
|
| 420 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 421 |
UxSaveCtx = UxApplicWindowContext; |
| 422 |
UxApplicWindowContext = UxContext = |
| 423 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 424 |
DisplayExtendedHelp(UxWidget); |
| 425 |
UxApplicWindowContext = UxSaveCtx; |
| 426 |
} |
| 427 |
|
| 428 |
static void valueChangedCB_tg_biasopt( UxWidget, UxClientData, UxCallbackArg ) |
| 429 |
Widget UxWidget; |
| 430 |
XtPointer UxClientData, UxCallbackArg; |
| 431 |
{ |
| 432 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 433 |
swidget UxThisWidget; |
| 434 |
|
| 435 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 436 |
UxSaveCtx = UxApplicWindowContext; |
| 437 |
UxApplicWindowContext = UxContext = |
| 438 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 439 |
{ |
| 440 |
#include <spec_comm.h> |
| 441 |
|
| 442 |
if ( XmToggleButtonGetState(UxWidget) ) |
| 443 |
WriteKeyword("YES", K_BIASOPT); |
| 444 |
else |
| 445 |
WriteKeyword("NO ", K_BIASOPT); |
| 446 |
|
| 447 |
} |
| 448 |
UxApplicWindowContext = UxSaveCtx; |
| 449 |
} |
| 450 |
|
| 451 |
static void valueChangedCB_tg_darkopt( UxWidget, UxClientData, UxCallbackArg ) |
| 452 |
Widget UxWidget; |
| 453 |
XtPointer UxClientData, UxCallbackArg; |
| 454 |
{ |
| 455 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 456 |
swidget UxThisWidget; |
| 457 |
|
| 458 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 459 |
UxSaveCtx = UxApplicWindowContext; |
| 460 |
UxApplicWindowContext = UxContext = |
| 461 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 462 |
{ |
| 463 |
#include <spec_comm.h> |
| 464 |
|
| 465 |
if ( XmToggleButtonGetState(UxWidget) ) |
| 466 |
WriteKeyword("YES", K_DARKOPT); |
| 467 |
else |
| 468 |
WriteKeyword("NO ", K_DARKOPT); |
| 469 |
|
| 470 |
} |
| 471 |
UxApplicWindowContext = UxSaveCtx; |
| 472 |
} |
| 473 |
|
| 474 |
static void valueChangedCB_tg_flatopt( UxWidget, UxClientData, UxCallbackArg ) |
| 475 |
Widget UxWidget; |
| 476 |
XtPointer UxClientData, UxCallbackArg; |
| 477 |
{ |
| 478 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 479 |
swidget UxThisWidget; |
| 480 |
|
| 481 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 482 |
UxSaveCtx = UxApplicWindowContext; |
| 483 |
UxApplicWindowContext = UxContext = |
| 484 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 485 |
{ |
| 486 |
#include <spec_comm.h> |
| 487 |
|
| 488 |
if ( XmToggleButtonGetState(UxWidget) ) |
| 489 |
WriteKeyword("YES", K_FLATOPT); |
| 490 |
else |
| 491 |
WriteKeyword("NO ", K_FLATOPT); |
| 492 |
|
| 493 |
} |
| 494 |
UxApplicWindowContext = UxSaveCtx; |
| 495 |
} |
| 496 |
|
| 497 |
static void valueChangedCB_tg_rebopt( UxWidget, UxClientData, UxCallbackArg ) |
| 498 |
Widget UxWidget; |
| 499 |
XtPointer UxClientData, UxCallbackArg; |
| 500 |
{ |
| 501 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 502 |
swidget UxThisWidget; |
| 503 |
|
| 504 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 505 |
UxSaveCtx = UxApplicWindowContext; |
| 506 |
UxApplicWindowContext = UxContext = |
| 507 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 508 |
{ |
| 509 |
#include <spec_comm.h> |
| 510 |
|
| 511 |
if ( XmToggleButtonGetState(UxWidget) ) |
| 512 |
WriteKeyword("YES", K_REBOPT); |
| 513 |
else |
| 514 |
WriteKeyword("NO ", K_REBOPT); |
| 515 |
|
| 516 |
} |
| 517 |
UxApplicWindowContext = UxSaveCtx; |
| 518 |
} |
| 519 |
|
| 520 |
static void valueChangedCB_tg_linear( UxWidget, UxClientData, UxCallbackArg ) |
| 521 |
Widget UxWidget; |
| 522 |
XtPointer UxClientData, UxCallbackArg; |
| 523 |
{ |
| 524 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 525 |
swidget UxThisWidget; |
| 526 |
|
| 527 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 528 |
UxSaveCtx = UxApplicWindowContext; |
| 529 |
UxApplicWindowContext = UxContext = |
| 530 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 531 |
{ |
| 532 |
#include <spec_comm.h> |
| 533 |
|
| 534 |
if ( XmToggleButtonGetState(UxWidget) ) |
| 535 |
WriteKeyword("LINEAR", K_REDRBMTD); |
| 536 |
|
| 537 |
} |
| 538 |
UxApplicWindowContext = UxSaveCtx; |
| 539 |
} |
| 540 |
|
| 541 |
static void valueChangedCB_tg_quadratic( UxWidget, UxClientData, UxCallbackArg ) |
| 542 |
Widget UxWidget; |
| 543 |
XtPointer UxClientData, UxCallbackArg; |
| 544 |
{ |
| 545 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 546 |
swidget UxThisWidget; |
| 547 |
|
| 548 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 549 |
UxSaveCtx = UxApplicWindowContext; |
| 550 |
UxApplicWindowContext = UxContext = |
| 551 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 552 |
{ |
| 553 |
#include <spec_comm.h> |
| 554 |
|
| 555 |
if ( XmToggleButtonGetState(UxWidget) ) |
| 556 |
WriteKeyword("QUADRATIC", K_REDRBMTD); |
| 557 |
|
| 558 |
} |
| 559 |
UxApplicWindowContext = UxSaveCtx; |
| 560 |
} |
| 561 |
|
| 562 |
static void valueChangedCB_tg_spline( UxWidget, UxClientData, UxCallbackArg ) |
| 563 |
Widget UxWidget; |
| 564 |
XtPointer UxClientData, UxCallbackArg; |
| 565 |
{ |
| 566 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 567 |
swidget UxThisWidget; |
| 568 |
|
| 569 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 570 |
UxSaveCtx = UxApplicWindowContext; |
| 571 |
UxApplicWindowContext = UxContext = |
| 572 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 573 |
{ |
| 574 |
#include <spec_comm.h> |
| 575 |
|
| 576 |
if ( XmToggleButtonGetState(UxWidget) ) |
| 577 |
WriteKeyword("SPLINE", K_REDRBMTD); |
| 578 |
|
| 579 |
} |
| 580 |
UxApplicWindowContext = UxSaveCtx; |
| 581 |
} |
| 582 |
|
| 583 |
static void valueChangedCB_tg_respopt( UxWidget, UxClientData, UxCallbackArg ) |
| 584 |
Widget UxWidget; |
| 585 |
XtPointer UxClientData, UxCallbackArg; |
| 586 |
{ |
| 587 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 588 |
swidget UxThisWidget; |
| 589 |
|
| 590 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 591 |
UxSaveCtx = UxApplicWindowContext; |
| 592 |
UxApplicWindowContext = UxContext = |
| 593 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 594 |
{ |
| 595 |
#include <spec_comm.h> |
| 596 |
|
| 597 |
if ( XmToggleButtonGetState(UxWidget) ) |
| 598 |
WriteKeyword("YES", K_RESPOPT); |
| 599 |
else |
| 600 |
WriteKeyword("NO ", K_RESPOPT); |
| 601 |
|
| 602 |
} |
| 603 |
UxApplicWindowContext = UxSaveCtx; |
| 604 |
} |
| 605 |
|
| 606 |
static void valueChangedCB_tg_extopt( UxWidget, UxClientData, UxCallbackArg ) |
| 607 |
Widget UxWidget; |
| 608 |
XtPointer UxClientData, UxCallbackArg; |
| 609 |
{ |
| 610 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 611 |
swidget UxThisWidget; |
| 612 |
|
| 613 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 614 |
UxSaveCtx = UxApplicWindowContext; |
| 615 |
UxApplicWindowContext = UxContext = |
| 616 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 617 |
{ |
| 618 |
#include <spec_comm.h> |
| 619 |
|
| 620 |
if ( XmToggleButtonGetState(UxWidget) ) |
| 621 |
WriteKeyword("YES", K_EXTOPT); |
| 622 |
else |
| 623 |
WriteKeyword("NO ", K_EXTOPT); |
| 624 |
|
| 625 |
} |
| 626 |
UxApplicWindowContext = UxSaveCtx; |
| 627 |
} |
| 628 |
|
| 629 |
static void valueChangedCB_tg_rotopt( UxWidget, UxClientData, UxCallbackArg ) |
| 630 |
Widget UxWidget; |
| 631 |
XtPointer UxClientData, UxCallbackArg; |
| 632 |
{ |
| 633 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 634 |
swidget UxThisWidget; |
| 635 |
|
| 636 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 637 |
UxSaveCtx = UxApplicWindowContext; |
| 638 |
UxApplicWindowContext = UxContext = |
| 639 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 640 |
{ |
| 641 |
#include <spec_comm.h> |
| 642 |
|
| 643 |
if ( XmToggleButtonGetState(UxWidget) ) |
| 644 |
WriteKeyword("YES", K_ROTOPT); |
| 645 |
else |
| 646 |
WriteKeyword("NO ", K_ROTOPT); |
| 647 |
|
| 648 |
} |
| 649 |
UxApplicWindowContext = UxSaveCtx; |
| 650 |
} |
| 651 |
|
| 652 |
static void valueChangedCB_tg_trimopt( UxWidget, UxClientData, UxCallbackArg ) |
| 653 |
Widget UxWidget; |
| 654 |
XtPointer UxClientData, UxCallbackArg; |
| 655 |
{ |
| 656 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 657 |
swidget UxThisWidget; |
| 658 |
|
| 659 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 660 |
UxSaveCtx = UxApplicWindowContext; |
| 661 |
UxApplicWindowContext = UxContext = |
| 662 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 663 |
{ |
| 664 |
#include <spec_comm.h> |
| 665 |
|
| 666 |
if ( XmToggleButtonGetState(UxWidget) ) |
| 667 |
WriteKeyword("YES", K_TRIMOPT); |
| 668 |
else |
| 669 |
WriteKeyword("NO ", K_TRIMOPT); |
| 670 |
|
| 671 |
} |
| 672 |
UxApplicWindowContext = UxSaveCtx; |
| 673 |
} |
| 674 |
|
| 675 |
static void losingFocusCB_tf_inputf( UxWidget, UxClientData, UxCallbackArg ) |
| 676 |
Widget UxWidget; |
| 677 |
XtPointer UxClientData, UxCallbackArg; |
| 678 |
{ |
| 679 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 680 |
swidget UxThisWidget; |
| 681 |
|
| 682 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 683 |
UxSaveCtx = UxApplicWindowContext; |
| 684 |
UxApplicWindowContext = UxContext = |
| 685 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 686 |
{ |
| 687 |
#include <spec_comm.h> |
| 688 |
|
| 689 |
char *text; |
| 690 |
extern char Inputf[]; |
| 691 |
|
| 692 |
text = XmTextGetString(UxWidget); |
| 693 |
|
| 694 |
if ( strcmp(text, Inputf) ) { |
| 695 |
strcpy(Inputf, text); |
| 696 |
WriteKeyword(text, K_INPUTF); |
| 697 |
} |
| 698 |
|
| 699 |
XtFree(text); |
| 700 |
} |
| 701 |
UxApplicWindowContext = UxSaveCtx; |
| 702 |
} |
| 703 |
|
| 704 |
static void losingFocusCB_tf_inpnumb( UxWidget, UxClientData, UxCallbackArg ) |
| 705 |
Widget UxWidget; |
| 706 |
XtPointer UxClientData, UxCallbackArg; |
| 707 |
{ |
| 708 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 709 |
swidget UxThisWidget; |
| 710 |
|
| 711 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 712 |
UxSaveCtx = UxApplicWindowContext; |
| 713 |
UxApplicWindowContext = UxContext = |
| 714 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 715 |
{ |
| 716 |
#include <spec_comm.h> |
| 717 |
|
| 718 |
char *text, valok[256]; |
| 719 |
int i, j = 0; |
| 720 |
extern char Inpnumb[]; |
| 721 |
|
| 722 |
text = XmTextGetString(UxWidget); |
| 723 |
|
| 724 |
for ( i = 0; text[i] != '\0'; i++ ) |
| 725 |
if ( text[i] != ' ' && (text[i] == ',' || text[i] == '-' || |
| 726 |
(text[i] <= '9' && text[i] >= '0')) ) |
| 727 |
valok[j++] = text[i]; |
| 728 |
valok[j] = '\0'; |
| 729 |
|
| 730 |
if ( strcmp(valok, Inpnumb) ) { |
| 731 |
strcpy(Inpnumb, valok); |
| 732 |
WriteKeyword(valok, K_INPNUMB); |
| 733 |
UxPutText(UxThisWidget, valok); |
| 734 |
} |
| 735 |
|
| 736 |
XtFree(text); |
| 737 |
} |
| 738 |
UxApplicWindowContext = UxSaveCtx; |
| 739 |
} |
| 740 |
|
| 741 |
static void losingFocusCB_tf_bias( UxWidget, UxClientData, UxCallbackArg ) |
| 742 |
Widget UxWidget; |
| 743 |
XtPointer UxClientData, UxCallbackArg; |
| 744 |
{ |
| 745 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 746 |
swidget UxThisWidget; |
| 747 |
|
| 748 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 749 |
UxSaveCtx = UxApplicWindowContext; |
| 750 |
UxApplicWindowContext = UxContext = |
| 751 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 752 |
{ |
| 753 |
#include <spec_comm.h> |
| 754 |
|
| 755 |
char *text; |
| 756 |
extern char Bias[]; |
| 757 |
|
| 758 |
text = XmTextGetString(UxWidget); |
| 759 |
|
| 760 |
if ( strcmp(text, Bias) ) { |
| 761 |
strcpy(Bias, text); |
| 762 |
WriteKeyword(text, K_BIAS); |
| 763 |
} |
| 764 |
|
| 765 |
XtFree(text); |
| 766 |
} |
| 767 |
UxApplicWindowContext = UxSaveCtx; |
| 768 |
} |
| 769 |
|
| 770 |
static void losingFocusCB_tf_dark( UxWidget, UxClientData, UxCallbackArg ) |
| 771 |
Widget UxWidget; |
| 772 |
XtPointer UxClientData, UxCallbackArg; |
| 773 |
{ |
| 774 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 775 |
swidget UxThisWidget; |
| 776 |
|
| 777 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 778 |
UxSaveCtx = UxApplicWindowContext; |
| 779 |
UxApplicWindowContext = UxContext = |
| 780 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 781 |
{ |
| 782 |
#include <spec_comm.h> |
| 783 |
|
| 784 |
char *text; |
| 785 |
extern char Dark[]; |
| 786 |
|
| 787 |
text = XmTextGetString(UxWidget); |
| 788 |
|
| 789 |
if ( strcmp(text, Dark) ) { |
| 790 |
strcpy(Dark, text); |
| 791 |
WriteKeyword(text, K_DARK); |
| 792 |
} |
| 793 |
|
| 794 |
XtFree(text); |
| 795 |
} |
| 796 |
UxApplicWindowContext = UxSaveCtx; |
| 797 |
} |
| 798 |
|
| 799 |
static void losingFocusCB_tf_flat( UxWidget, UxClientData, UxCallbackArg ) |
| 800 |
Widget UxWidget; |
| 801 |
XtPointer UxClientData, UxCallbackArg; |
| 802 |
{ |
| 803 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 804 |
swidget UxThisWidget; |
| 805 |
|
| 806 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 807 |
UxSaveCtx = UxApplicWindowContext; |
| 808 |
UxApplicWindowContext = UxContext = |
| 809 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 810 |
{ |
| 811 |
#include <spec_comm.h> |
| 812 |
|
| 813 |
char *text; |
| 814 |
extern char Flat[]; |
| 815 |
|
| 816 |
text = XmTextGetString(UxWidget); |
| 817 |
|
| 818 |
if ( strcmp(text, Flat) ) { |
| 819 |
strcpy(Flat, text); |
| 820 |
WriteKeyword(text, K_FLAT); |
| 821 |
} |
| 822 |
|
| 823 |
XtFree(text); |
| 824 |
} |
| 825 |
UxApplicWindowContext = UxSaveCtx; |
| 826 |
} |
| 827 |
|
| 828 |
static void losingFocusCB_tf_trim4( UxWidget, UxClientData, UxCallbackArg ) |
| 829 |
Widget UxWidget; |
| 830 |
XtPointer UxClientData, UxCallbackArg; |
| 831 |
{ |
| 832 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 833 |
swidget UxThisWidget; |
| 834 |
|
| 835 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 836 |
UxSaveCtx = UxApplicWindowContext; |
| 837 |
UxApplicWindowContext = UxContext = |
| 838 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 839 |
{ |
| 840 |
#include <spec_comm.h> |
| 841 |
|
| 842 |
char *text; |
| 843 |
int val; |
| 844 |
extern int Trim[]; |
| 845 |
|
| 846 |
text = XmTextGetString(UxWidget); |
| 847 |
sscanf(text, "%d", &val); |
| 848 |
|
| 849 |
if ( val != Trim[3] ) { |
| 850 |
Trim[3] = val; |
| 851 |
WriteKeyword(text, K_TRIM4); |
| 852 |
} |
| 853 |
|
| 854 |
XtFree(text); |
| 855 |
} |
| 856 |
UxApplicWindowContext = UxSaveCtx; |
| 857 |
} |
| 858 |
|
| 859 |
static void losingFocusCB_tf_longsess( UxWidget, UxClientData, UxCallbackArg ) |
| 860 |
Widget UxWidget; |
| 861 |
XtPointer UxClientData, UxCallbackArg; |
| 862 |
{ |
| 863 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 864 |
swidget UxThisWidget; |
| 865 |
|
| 866 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 867 |
UxSaveCtx = UxApplicWindowContext; |
| 868 |
UxApplicWindowContext = UxContext = |
| 869 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 870 |
{ |
| 871 |
#include <spec_comm.h> |
| 872 |
|
| 873 |
char *text; |
| 874 |
extern char Longsess[]; |
| 875 |
|
| 876 |
text = XmTextGetString(UxWidget); |
| 877 |
|
| 878 |
if ( strcmp(text, Longsess) ) { |
| 879 |
strcpy(Longsess, text); |
| 880 |
WriteKeyword(text, K_LONGSESS); |
| 881 |
} |
| 882 |
|
| 883 |
XtFree(text); |
| 884 |
} |
| 885 |
UxApplicWindowContext = UxSaveCtx; |
| 886 |
} |
| 887 |
|
| 888 |
static void losingFocusCB_tf_redextab( UxWidget, UxClientData, UxCallbackArg ) |
| 889 |
Widget UxWidget; |
| 890 |
XtPointer UxClientData, UxCallbackArg; |
| 891 |
{ |
| 892 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 893 |
swidget UxThisWidget; |
| 894 |
|
| 895 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 896 |
UxSaveCtx = UxApplicWindowContext; |
| 897 |
UxApplicWindowContext = UxContext = |
| 898 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 899 |
{ |
| 900 |
#include <spec_comm.h> |
| 901 |
|
| 902 |
char *text; |
| 903 |
extern char Redextab[]; |
| 904 |
|
| 905 |
text = XmTextGetString(UxWidget); |
| 906 |
|
| 907 |
if ( strcmp(text, Redextab) ) { |
| 908 |
strcpy(Redextab, text); |
| 909 |
WriteKeyword(text, K_REDEXTAB); |
| 910 |
} |
| 911 |
|
| 912 |
XtFree(text); |
| 913 |
} |
| 914 |
UxApplicWindowContext = UxSaveCtx; |
| 915 |
} |
| 916 |
|
| 917 |
static void losingFocusCB_tf_redresp( UxWidget, UxClientData, UxCallbackArg ) |
| 918 |
Widget UxWidget; |
| 919 |
XtPointer UxClientData, UxCallbackArg; |
| 920 |
{ |
| 921 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 922 |
swidget UxThisWidget; |
| 923 |
|
| 924 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 925 |
UxSaveCtx = UxApplicWindowContext; |
| 926 |
UxApplicWindowContext = UxContext = |
| 927 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 928 |
{ |
| 929 |
#include <spec_comm.h> |
| 930 |
|
| 931 |
char *text; |
| 932 |
extern char Redresp[]; |
| 933 |
|
| 934 |
text = XmTextGetString(UxWidget); |
| 935 |
|
| 936 |
if ( strcmp(text, Redresp) ) { |
| 937 |
strcpy(Redresp, text); |
| 938 |
WriteKeyword(text, K_REDRESP); |
| 939 |
} |
| 940 |
|
| 941 |
XtFree(text); |
| 942 |
} |
| 943 |
UxApplicWindowContext = UxSaveCtx; |
| 944 |
} |
| 945 |
|
| 946 |
static void losingFocusCB_tf_rotstart( UxWidget, UxClientData, UxCallbackArg ) |
| 947 |
Widget UxWidget; |
| 948 |
XtPointer UxClientData, UxCallbackArg; |
| 949 |
{ |
| 950 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 951 |
swidget UxThisWidget; |
| 952 |
|
| 953 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 954 |
UxSaveCtx = UxApplicWindowContext; |
| 955 |
UxApplicWindowContext = UxContext = |
| 956 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 957 |
{ |
| 958 |
#include <spec_comm.h> |
| 959 |
|
| 960 |
char *text; |
| 961 |
double val; |
| 962 |
extern double Rotstart; |
| 963 |
|
| 964 |
text = XmTextGetString(UxWidget); |
| 965 |
sscanf(text, "%lf", &val); |
| 966 |
|
| 967 |
if ( val != Rotstart ) { |
| 968 |
Rotstart = val; |
| 969 |
WriteKeyword(text, K_ROTSTART); |
| 970 |
} |
| 971 |
|
| 972 |
XtFree(text); |
| 973 |
} |
| 974 |
UxApplicWindowContext = UxSaveCtx; |
| 975 |
} |
| 976 |
|
| 977 |
static void losingFocusCB_tf_outputf( UxWidget, UxClientData, UxCallbackArg ) |
| 978 |
Widget UxWidget; |
| 979 |
XtPointer UxClientData, UxCallbackArg; |
| 980 |
{ |
| 981 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 982 |
swidget UxThisWidget; |
| 983 |
|
| 984 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 985 |
UxSaveCtx = UxApplicWindowContext; |
| 986 |
UxApplicWindowContext = UxContext = |
| 987 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 988 |
{ |
| 989 |
#include <spec_comm.h> |
| 990 |
|
| 991 |
char *text; |
| 992 |
extern char Outputf[]; |
| 993 |
|
| 994 |
text = XmTextGetString(UxWidget); |
| 995 |
|
| 996 |
if ( strcmp(text, Outputf) ) { |
| 997 |
strcpy(Outputf, text); |
| 998 |
WriteKeyword(text, K_OUTPUTF); |
| 999 |
} |
| 1000 |
|
| 1001 |
XtFree(text); |
| 1002 |
} |
| 1003 |
UxApplicWindowContext = UxSaveCtx; |
| 1004 |
} |
| 1005 |
|
| 1006 |
static void losingFocusCB_tf_outnumb( UxWidget, UxClientData, UxCallbackArg ) |
| 1007 |
Widget UxWidget; |
| 1008 |
XtPointer UxClientData, UxCallbackArg; |
| 1009 |
{ |
| 1010 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 1011 |
swidget UxThisWidget; |
| 1012 |
|
| 1013 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 1014 |
UxSaveCtx = UxApplicWindowContext; |
| 1015 |
UxApplicWindowContext = UxContext = |
| 1016 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 1017 |
{ |
| 1018 |
#include <spec_comm.h> |
| 1019 |
|
| 1020 |
char *text; |
| 1021 |
int val; |
| 1022 |
extern int Outnumb; |
| 1023 |
|
| 1024 |
text = XmTextGetString(UxWidget); |
| 1025 |
sscanf(text, "%d", &val); |
| 1026 |
|
| 1027 |
if ( val != Outnumb ) { |
| 1028 |
Outnumb = val; |
| 1029 |
WriteKeyword(text, K_OUTNUMB); |
| 1030 |
} |
| 1031 |
|
| 1032 |
XtFree(text); |
| 1033 |
} |
| 1034 |
UxApplicWindowContext = UxSaveCtx; |
| 1035 |
} |
| 1036 |
|
| 1037 |
static void losingFocusCB_tf_trim1( UxWidget, UxClientData, UxCallbackArg ) |
| 1038 |
Widget UxWidget; |
| 1039 |
XtPointer UxClientData, UxCallbackArg; |
| 1040 |
{ |
| 1041 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 1042 |
swidget UxThisWidget; |
| 1043 |
|
| 1044 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 1045 |
UxSaveCtx = UxApplicWindowContext; |
| 1046 |
UxApplicWindowContext = UxContext = |
| 1047 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 1048 |
{ |
| 1049 |
#include <spec_comm.h> |
| 1050 |
|
| 1051 |
char *text; |
| 1052 |
int val; |
| 1053 |
extern int Trim[]; |
| 1054 |
|
| 1055 |
text = XmTextGetString(UxWidget); |
| 1056 |
sscanf(text, "%d", &val); |
| 1057 |
|
| 1058 |
if ( val != Trim[0] ) { |
| 1059 |
Trim[0] = val; |
| 1060 |
WriteKeyword(text, K_TRIM1); |
| 1061 |
} |
| 1062 |
|
| 1063 |
XtFree(text); |
| 1064 |
} |
| 1065 |
UxApplicWindowContext = UxSaveCtx; |
| 1066 |
} |
| 1067 |
|
| 1068 |
static void losingFocusCB_tf_trim2( UxWidget, UxClientData, UxCallbackArg ) |
| 1069 |
Widget UxWidget; |
| 1070 |
XtPointer UxClientData, UxCallbackArg; |
| 1071 |
{ |
| 1072 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 1073 |
swidget UxThisWidget; |
| 1074 |
|
| 1075 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 1076 |
UxSaveCtx = UxApplicWindowContext; |
| 1077 |
UxApplicWindowContext = UxContext = |
| 1078 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 1079 |
{ |
| 1080 |
#include <spec_comm.h> |
| 1081 |
|
| 1082 |
char *text; |
| 1083 |
int val; |
| 1084 |
extern int Trim[]; |
| 1085 |
|
| 1086 |
text = XmTextGetString(UxWidget); |
| 1087 |
sscanf(text, "%d", &val); |
| 1088 |
|
| 1089 |
if ( val != Trim[1] ) { |
| 1090 |
Trim[1] = val; |
| 1091 |
WriteKeyword(text, K_TRIM2); |
| 1092 |
} |
| 1093 |
|
| 1094 |
XtFree(text); |
| 1095 |
} |
| 1096 |
UxApplicWindowContext = UxSaveCtx; |
| 1097 |
} |
| 1098 |
|
| 1099 |
static void losingFocusCB_tf_trim3( UxWidget, UxClientData, UxCallbackArg ) |
| 1100 |
Widget UxWidget; |
| 1101 |
XtPointer UxClientData, UxCallbackArg; |
| 1102 |
{ |
| 1103 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 1104 |
swidget UxThisWidget; |
| 1105 |
|
| 1106 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 1107 |
UxSaveCtx = UxApplicWindowContext; |
| 1108 |
UxApplicWindowContext = UxContext = |
| 1109 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 1110 |
{ |
| 1111 |
#include <spec_comm.h> |
| 1112 |
|
| 1113 |
char *text; |
| 1114 |
int val; |
| 1115 |
extern int Trim[]; |
| 1116 |
|
| 1117 |
text = XmTextGetString(UxWidget); |
| 1118 |
sscanf(text, "%d", &val); |
| 1119 |
|
| 1120 |
if ( val != Trim[2] ) { |
| 1121 |
Trim[2] = val; |
| 1122 |
WriteKeyword(text, K_TRIM3); |
| 1123 |
} |
| 1124 |
|
| 1125 |
XtFree(text); |
| 1126 |
} |
| 1127 |
UxApplicWindowContext = UxSaveCtx; |
| 1128 |
} |
| 1129 |
|
| 1130 |
static void activateCB_pb_execute( UxWidget, UxClientData, UxCallbackArg ) |
| 1131 |
Widget UxWidget; |
| 1132 |
XtPointer UxClientData, UxCallbackArg; |
| 1133 |
{ |
| 1134 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 1135 |
swidget UxThisWidget; |
| 1136 |
|
| 1137 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 1138 |
UxSaveCtx = UxApplicWindowContext; |
| 1139 |
UxApplicWindowContext = UxContext = |
| 1140 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 1141 |
{ |
| 1142 |
char *prefix, *numbers; |
| 1143 |
extern int ExecuteCaller; |
| 1144 |
|
| 1145 |
prefix = XmTextFieldGetString(UxGetWidget(tf_inputf)); |
| 1146 |
numbers = XmTextFieldGetString(UxGetWidget(tf_inpnumb)); |
| 1147 |
CreateInputCatalog(prefix, numbers); |
| 1148 |
|
| 1149 |
if ( MissingAirmassInCatalog() ) { |
| 1150 |
if ( FillAirmassForm(UxGetWidget(UxFindSwidget("t_airmass_name")), |
| 1151 |
UxGetWidget(UxFindSwidget("t_airmass_value")))) { |
| 1152 |
UxPopupInterface(UxFindSwidget("AirmassShell"), exclusive_grab); |
| 1153 |
ExecuteCaller = TRUE; |
| 1154 |
} |
| 1155 |
} |
| 1156 |
else |
| 1157 |
ExecuteReduce(); |
| 1158 |
|
| 1159 |
XtFree(prefix); |
| 1160 |
XtFree(numbers); |
| 1161 |
|
| 1162 |
} |
| 1163 |
UxApplicWindowContext = UxSaveCtx; |
| 1164 |
} |
| 1165 |
|
| 1166 |
static void activateCB_pb_airmass( UxWidget, UxClientData, UxCallbackArg ) |
| 1167 |
Widget UxWidget; |
| 1168 |
XtPointer UxClientData, UxCallbackArg; |
| 1169 |
{ |
| 1170 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 1171 |
swidget UxThisWidget; |
| 1172 |
|
| 1173 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 1174 |
UxSaveCtx = UxApplicWindowContext; |
| 1175 |
UxApplicWindowContext = UxContext = |
| 1176 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 1177 |
{ |
| 1178 |
char *prefix, *numbers; |
| 1179 |
extern int ExecuteCaller; |
| 1180 |
|
| 1181 |
prefix = XmTextFieldGetString(UxGetWidget(tf_inputf)); |
| 1182 |
numbers = XmTextFieldGetString(UxGetWidget(tf_inpnumb)); |
| 1183 |
CreateInputCatalog(prefix, numbers); |
| 1184 |
|
| 1185 |
if ( FillAirmassForm(UxGetWidget(UxFindSwidget("t_airmass_name")), |
| 1186 |
UxGetWidget(UxFindSwidget("t_airmass_value")))) { |
| 1187 |
ExecuteCaller = FALSE; |
| 1188 |
UxPopupInterface(UxFindSwidget("AirmassShell"), exclusive_grab); |
| 1189 |
} |
| 1190 |
|
| 1191 |
XtFree(prefix); |
| 1192 |
XtFree(numbers); |
| 1193 |
|
| 1194 |
} |
| 1195 |
UxApplicWindowContext = UxSaveCtx; |
| 1196 |
} |
| 1197 |
|
| 1198 |
static void losingFocusCB_tf_rotstep( UxWidget, UxClientData, UxCallbackArg ) |
| 1199 |
Widget UxWidget; |
| 1200 |
XtPointer UxClientData, UxCallbackArg; |
| 1201 |
{ |
| 1202 |
_UxCApplicWindow *UxSaveCtx, *UxContext; |
| 1203 |
swidget UxThisWidget; |
| 1204 |
|
| 1205 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 1206 |
UxSaveCtx = UxApplicWindowContext; |
| 1207 |
UxApplicWindowContext = UxContext = |
| 1208 |
(_UxCApplicWindow *) UxGetContext( UxThisWidget ); |
| 1209 |
{ |
| 1210 |
#include <spec_comm.h> |
| 1211 |
|
| 1212 |
char *text; |
| 1213 |
double val; |
| 1214 |
extern double Rotstep; |
| 1215 |
|
| 1216 |
text = XmTextGetString(UxWidget); |
| 1217 |
sscanf(text, "%lf", &val); |
| 1218 |
|
| 1219 |
if ( val != Rotstep ) { |
| 1220 |
Rotstep = val; |
| 1221 |
WriteKeyword(text, K_ROTSTEP); |
| 1222 |
} |
| 1223 |
|
| 1224 |
XtFree(text); |
| 1225 |
} |
| 1226 |
UxApplicWindowContext = UxSaveCtx; |
| 1227 |
} |
| 1228 |
|
| 1229 |
/******************************************************************************* |
| 1230 |
The 'init_' function sets the private properties for all the |
| 1231 |
swidgets to the values specified in the Property Table. |
| 1232 |
Some properties need to be set after the X widgets have been |
| 1233 |
created and the setting of these properties is done in the |
| 1234 |
'build_' function after the UxCreateWidget call. |
| 1235 |
*******************************************************************************/ |
| 1236 |
|
| 1237 |
static void _Uxinit_ApplicWindow() |
| 1238 |
{ |
| 1239 |
UxPutGeometry( ApplicWindow, "+0+0" ); |
| 1240 |
UxPutTitle( ApplicWindow, "Batch reduction" ); |
| 1241 |
UxPutKeyboardFocusPolicy( ApplicWindow, "pointer" ); |
| 1242 |
UxPutIconName( ApplicWindow, "Batch reduction" ); |
| 1243 |
UxPutHeight( ApplicWindow, 643 ); |
| 1244 |
UxPutWidth( ApplicWindow, 447 ); |
| 1245 |
UxPutY( ApplicWindow, 21 ); |
| 1246 |
UxPutX( ApplicWindow, 2 ); |
| 1247 |
|
| 1248 |
UxPutBackground( MainWindow, WindowBackground ); |
| 1249 |
UxPutHeight( MainWindow, 460 ); |
| 1250 |
UxPutWidth( MainWindow, 440 ); |
| 1251 |
UxPutY( MainWindow, 0 ); |
| 1252 |
UxPutX( MainWindow, 10 ); |
| 1253 |
UxPutUnitType( MainWindow, "pixels" ); |
| 1254 |
|
| 1255 |
UxPutBackground( menu1, MenuBackground ); |
| 1256 |
UxPutMenuAccelerator( menu1, "<KeyUp>F10" ); |
| 1257 |
UxPutRowColumnType( menu1, "menu_bar" ); |
| 1258 |
|
| 1259 |
UxPutForeground( menu1_p1, MenuForeground ); |
| 1260 |
UxPutBackground( menu1_p1, MenuBackground ); |
| 1261 |
UxPutRowColumnType( menu1_p1, "menu_pulldown" ); |
| 1262 |
|
| 1263 |
UxPutFontList( menu1_p1_b1, BoldTextFont ); |
| 1264 |
UxPutMnemonic( menu1_p1_b1, "O" ); |
| 1265 |
UxPutLabelString( menu1_p1_b1, "Open" ); |
| 1266 |
|
| 1267 |
UxPutFontList( menu1_p1_b2, BoldTextFont ); |
| 1268 |
UxPutMnemonic( menu1_p1_b2, "S" ); |
| 1269 |
UxPutLabelString( menu1_p1_b2, "Save" ); |
| 1270 |
|
| 1271 |
UxPutFontList( menu1_p1_b3, BoldTextFont ); |
| 1272 |
UxPutMnemonic( menu1_p1_b3, "S" ); |
| 1273 |
UxPutLabelString( menu1_p1_b3, "Save As ..." ); |
| 1274 |
|
| 1275 |
UxPutFontList( menu1_p1_b5, BoldTextFont ); |
| 1276 |
UxPutAccelerator( menu1_p1_b5, "E" ); |
| 1277 |
UxPutLabelString( menu1_p1_b5, "Exit" ); |
| 1278 |
|
| 1279 |
UxPutForeground( menu1_top_b1, MenuForeground ); |
| 1280 |
UxPutFontList( menu1_top_b1, BoldTextFont ); |
| 1281 |
UxPutBackground( menu1_top_b1, MenuBackground ); |
| 1282 |
UxPutMnemonic( menu1_top_b1, "F" ); |
| 1283 |
UxPutLabelString( menu1_top_b1, "File" ); |
| 1284 |
|
| 1285 |
UxPutForeground( menu1_p4, MenuForeground ); |
| 1286 |
UxPutBackground( menu1_p4, MenuBackground ); |
| 1287 |
UxPutRowColumnType( menu1_p4, "menu_pulldown" ); |
| 1288 |
|
| 1289 |
UxPutFontList( menu_help_window, BoldTextFont ); |
| 1290 |
UxPutMnemonic( menu_help_window, "W" ); |
| 1291 |
UxPutLabelString( menu_help_window, "On Window ..." ); |
| 1292 |
|
| 1293 |
UxPutForeground( menu1_top_b4, MenuForeground ); |
| 1294 |
UxPutFontList( menu1_top_b4, BoldTextFont ); |
| 1295 |
UxPutBackground( menu1_top_b4, MenuBackground ); |
| 1296 |
UxPutMnemonic( menu1_top_b4, "H" ); |
| 1297 |
UxPutLabelString( menu1_top_b4, "Help" ); |
| 1298 |
|
| 1299 |
UxPutBackground( form6, WindowBackground ); |
| 1300 |
|
| 1301 |
UxPutBackground( separator1, LabelBackground ); |
| 1302 |
UxPutHeight( separator1, 6 ); |
| 1303 |
UxPutWidth( separator1, 450 ); |
| 1304 |
UxPutY( separator1, 496 ); |
| 1305 |
UxPutX( separator1, -4 ); |
| 1306 |
|
| 1307 |
UxPutFontList( short_help, TextFont ); |
| 1308 |
UxPutEditable( short_help, "false" ); |
| 1309 |
UxPutCursorPositionVisible( short_help, "false" ); |
| 1310 |
UxPutBackground( short_help, SHelpBackground ); |
| 1311 |
UxPutHeight( short_help, 50 ); |
| 1312 |
UxPutWidth( short_help, 448 ); |
| 1313 |
UxPutY( short_help, 502 ); |
| 1314 |
UxPutX( short_help, -2 ); |
| 1315 |
|
| 1316 |
UxPutBackground( separator2, LabelBackground ); |
| 1317 |
UxPutHeight( separator2, 6 ); |
| 1318 |
UxPutWidth( separator2, 450 ); |
| 1319 |
UxPutY( separator2, 552 ); |
| 1320 |
UxPutX( separator2, -4 ); |
| 1321 |
|
| 1322 |
UxPutForeground( label2, TextForeground ); |
| 1323 |
UxPutFontList( label2, TextFont ); |
| 1324 |
UxPutBackground( label2, ApplicBackground ); |
| 1325 |
UxPutLabelString( label2, "Prefix /" ); |
| 1326 |
UxPutHeight( label2, 20 ); |
| 1327 |
UxPutWidth( label2, 54 ); |
| 1328 |
UxPutY( label2, 38 ); |
| 1329 |
UxPutX( label2, 10 ); |
| 1330 |
|
| 1331 |
UxPutForeground( label3, TextForeground ); |
| 1332 |
UxPutFontList( label3, TextFont ); |
| 1333 |
UxPutBackground( label3, ApplicBackground ); |
| 1334 |
UxPutLabelString( label3, "Numbers :" ); |
| 1335 |
UxPutHeight( label3, 25 ); |
| 1336 |
UxPutWidth( label3, 70 ); |
| 1337 |
UxPutY( label3, 36 ); |
| 1338 |
UxPutX( label3, 238 ); |
| 1339 |
|
| 1340 |
UxPutForeground( tg_biasopt, TextForeground ); |
| 1341 |
UxPutHighlightOnEnter( tg_biasopt, "true" ); |
| 1342 |
UxPutIndicatorSize( tg_biasopt, 18 ); |
| 1343 |
UxPutSelectColor( tg_biasopt, "green" ); |
| 1344 |
UxPutHighlightColor( tg_biasopt, "black" ); |
| 1345 |
UxPutSet( tg_biasopt, "false" ); |
| 1346 |
UxPutFontList( tg_biasopt, TextFont ); |
| 1347 |
UxPutAlignment( tg_biasopt, "alignment_beginning" ); |
| 1348 |
UxPutBackground( tg_biasopt, ApplicBackground ); |
| 1349 |
UxPutLabelString( tg_biasopt, "Bias" ); |
| 1350 |
UxPutHeight( tg_biasopt, 30 ); |
| 1351 |
UxPutWidth( tg_biasopt, 68 ); |
| 1352 |
UxPutY( tg_biasopt, 72 ); |
| 1353 |
UxPutX( tg_biasopt, 16 ); |
| 1354 |
|
| 1355 |
UxPutForeground( tg_darkopt, TextForeground ); |
| 1356 |
UxPutHighlightOnEnter( tg_darkopt, "true" ); |
| 1357 |
UxPutIndicatorSize( tg_darkopt, 18 ); |
| 1358 |
UxPutSelectColor( tg_darkopt, "green" ); |
| 1359 |
UxPutHighlightColor( tg_darkopt, "black" ); |
| 1360 |
UxPutSet( tg_darkopt, "false" ); |
| 1361 |
UxPutFontList( tg_darkopt, TextFont ); |
| 1362 |
UxPutAlignment( tg_darkopt, "alignment_beginning" ); |
| 1363 |
UxPutBackground( tg_darkopt, ApplicBackground ); |
| 1364 |
UxPutLabelString( tg_darkopt, "Dark" ); |
| 1365 |
UxPutHeight( tg_darkopt, 30 ); |
| 1366 |
UxPutWidth( tg_darkopt, 68 ); |
| 1367 |
UxPutY( tg_darkopt, 112 ); |
| 1368 |
UxPutX( tg_darkopt, 16 ); |
| 1369 |
|
| 1370 |
UxPutForeground( tg_flatopt, TextForeground ); |
| 1371 |
UxPutHighlightOnEnter( tg_flatopt, "true" ); |
| 1372 |
UxPutIndicatorSize( tg_flatopt, 18 ); |
| 1373 |
UxPutSelectColor( tg_flatopt, "green" ); |
| 1374 |
UxPutHighlightColor( tg_flatopt, "black" ); |
| 1375 |
UxPutSet( tg_flatopt, "false" ); |
| 1376 |
UxPutFontList( tg_flatopt, TextFont ); |
| 1377 |
UxPutAlignment( tg_flatopt, "alignment_beginning" ); |
| 1378 |
UxPutBackground( tg_flatopt, ApplicBackground ); |
| 1379 |
UxPutLabelString( tg_flatopt, "Flat field" ); |
| 1380 |
UxPutHeight( tg_flatopt, 30 ); |
| 1381 |
UxPutWidth( tg_flatopt, 86 ); |
| 1382 |
UxPutY( tg_flatopt, 152 ); |
| 1383 |
UxPutX( tg_flatopt, 16 ); |
| 1384 |
|
| 1385 |
UxPutForeground( tg_rebopt, TextForeground ); |
| 1386 |
UxPutHighlightOnEnter( tg_rebopt, "true" ); |
| 1387 |
UxPutIndicatorSize( tg_rebopt, 18 ); |
| 1388 |
UxPutSelectColor( tg_rebopt, "green" ); |
| 1389 |
UxPutHighlightColor( tg_rebopt, "black" ); |
| 1390 |
UxPutFontList( tg_rebopt, TextFont ); |
| 1391 |
UxPutAlignment( tg_rebopt, "alignment_beginning" ); |
| 1392 |
UxPutBackground( tg_rebopt, ApplicBackground ); |
| 1393 |
UxPutLabelString( tg_rebopt, "Rebin" ); |
| 1394 |
UxPutSet( tg_rebopt, "false" ); |
| 1395 |
UxPutHeight( tg_rebopt, 30 ); |
| 1396 |
UxPutWidth( tg_rebopt, 70 ); |
| 1397 |
UxPutY( tg_rebopt, 287 ); |
| 1398 |
UxPutX( tg_rebopt, 16 ); |
| 1399 |
|
| 1400 |
UxPutForeground( label8, TextForeground ); |
| 1401 |
UxPutFontList( label8, TextFont ); |
| 1402 |
UxPutBackground( label8, ApplicBackground ); |
| 1403 |
UxPutLabelString( label8, "Parameters table :" ); |
| 1404 |
UxPutHeight( label8, 25 ); |
| 1405 |
UxPutWidth( label8, 128 ); |
| 1406 |
UxPutY( label8, 280 ); |
| 1407 |
UxPutX( label8, 104 ); |
| 1408 |
|
| 1409 |
UxPutPacking( rowColumn1, "pack_tight" ); |
| 1410 |
UxPutBackground( rowColumn1, ApplicBackground ); |
| 1411 |
UxPutRadioBehavior( rowColumn1, "true" ); |
| 1412 |
UxPutOrientation( rowColumn1, "horizontal" ); |
| 1413 |
UxPutHeight( rowColumn1, 34 ); |
| 1414 |
UxPutWidth( rowColumn1, 318 ); |
| 1415 |
UxPutY( rowColumn1, 310 ); |
| 1416 |
UxPutX( rowColumn1, 106 ); |
| 1417 |
|
| 1418 |
UxPutForeground( tg_linear, TextForeground ); |
| 1419 |
UxPutHighlightOnEnter( tg_linear, "true" ); |
| 1420 |
UxPutSelectColor( tg_linear, "green" ); |
| 1421 |
UxPutFontList( tg_linear, TextFont ); |
| 1422 |
UxPutBackground( tg_linear, ApplicBackground ); |
| 1423 |
UxPutSet( tg_linear, "true" ); |
| 1424 |
UxPutLabelString( tg_linear, "LINEAR" ); |
| 1425 |
UxPutIndicatorType( tg_linear, "one_of_many" ); |
| 1426 |
UxPutHeight( tg_linear, 21 ); |
| 1427 |
UxPutWidth( tg_linear, 67 ); |
| 1428 |
UxPutY( tg_linear, 3 ); |
| 1429 |
UxPutX( tg_linear, 3 ); |
| 1430 |
|
| 1431 |
UxPutForeground( tg_quadratic, TextForeground ); |
| 1432 |
UxPutHighlightOnEnter( tg_quadratic, "true" ); |
| 1433 |
UxPutSelectColor( tg_quadratic, "green" ); |
| 1434 |
UxPutFontList( tg_quadratic, TextFont ); |
| 1435 |
UxPutBackground( tg_quadratic, ApplicBackground ); |
| 1436 |
UxPutLabelString( tg_quadratic, "CUADRATIC" ); |
| 1437 |
UxPutIndicatorType( tg_quadratic, "one_of_many" ); |
| 1438 |
UxPutHeight( tg_quadratic, 25 ); |
| 1439 |
UxPutWidth( tg_quadratic, 89 ); |
| 1440 |
UxPutY( tg_quadratic, 0 ); |
| 1441 |
UxPutX( tg_quadratic, 75 ); |
| 1442 |
|
| 1443 |
UxPutForeground( tg_spline, TextForeground ); |
| 1444 |
UxPutHighlightOnEnter( tg_spline, "true" ); |
| 1445 |
UxPutSelectColor( tg_spline, "green" ); |
| 1446 |
UxPutFontList( tg_spline, TextFont ); |
| 1447 |
UxPutBackground( tg_spline, ApplicBackground ); |
| 1448 |
UxPutLabelString( tg_spline, "SPLINE" ); |
| 1449 |
UxPutIndicatorType( tg_spline, "one_of_many" ); |
| 1450 |
UxPutHeight( tg_spline, 28 ); |
| 1451 |
UxPutWidth( tg_spline, 89 ); |
| 1452 |
UxPutY( tg_spline, 3 ); |
| 1453 |
UxPutX( tg_spline, 235 ); |
| 1454 |
|
| 1455 |
UxPutForeground( tg_respopt, TextForeground ); |
| 1456 |
UxPutHighlightOnEnter( tg_respopt, "true" ); |
| 1457 |
UxPutIndicatorSize( tg_respopt, 18 ); |
| 1458 |
UxPutSelectColor( tg_respopt, "green" ); |
| 1459 |
UxPutHighlightColor( tg_respopt, "black" ); |
| 1460 |
UxPutSet( tg_respopt, "false" ); |
| 1461 |
UxPutFontList( tg_respopt, TextFont ); |
| 1462 |
UxPutAlignment( tg_respopt, "alignment_beginning" ); |
| 1463 |
UxPutBackground( tg_respopt, ApplicBackground ); |
| 1464 |
UxPutLabelString( tg_respopt, "Flux" ); |
| 1465 |
UxPutHeight( tg_respopt, 28 ); |
| 1466 |
UxPutWidth( tg_respopt, 65 ); |
| 1467 |
UxPutY( tg_respopt, 391 ); |
| 1468 |
UxPutX( tg_respopt, 16 ); |
| 1469 |
|
| 1470 |
UxPutForeground( tg_extopt, TextForeground ); |
| 1471 |
UxPutHighlightOnEnter( tg_extopt, "true" ); |
| 1472 |
UxPutIndicatorSize( tg_extopt, 18 ); |
| 1473 |
UxPutSelectColor( tg_extopt, "green" ); |
| 1474 |
UxPutHighlightColor( tg_extopt, "black" ); |
| 1475 |
UxPutSet( tg_extopt, "false" ); |
| 1476 |
UxPutFontList( tg_extopt, TextFont ); |
| 1477 |
UxPutAlignment( tg_extopt, "alignment_beginning" ); |
| 1478 |
UxPutBackground( tg_extopt, ApplicBackground ); |
| 1479 |
UxPutLabelString( tg_extopt, "Extinct" ); |
| 1480 |
UxPutHeight( tg_extopt, 31 ); |
| 1481 |
UxPutWidth( tg_extopt, 85 ); |
| 1482 |
UxPutY( tg_extopt, 350 ); |
| 1483 |
UxPutX( tg_extopt, 16 ); |
| 1484 |
|
| 1485 |
UxPutForeground( label9, TextForeground ); |
| 1486 |
UxPutFontList( label9, TextFont ); |
| 1487 |
UxPutBackground( label9, ApplicBackground ); |
| 1488 |
UxPutLabelString( label9, "Response curve :" ); |
| 1489 |
UxPutHeight( label9, 20 ); |
| 1490 |
UxPutWidth( label9, 115 ); |
| 1491 |
UxPutY( label9, 397 ); |
| 1492 |
UxPutX( label9, 108 ); |
| 1493 |
|
| 1494 |
UxPutForeground( label10, TextForeground ); |
| 1495 |
UxPutFontList( label10, TextFont ); |
| 1496 |
UxPutBackground( label10, ApplicBackground ); |
| 1497 |
UxPutLabelString( label10, "Extinct table :" ); |
| 1498 |
UxPutHeight( label10, 20 ); |
| 1499 |
UxPutWidth( label10, 98 ); |
| 1500 |
UxPutY( label10, 356 ); |
| 1501 |
UxPutX( label10, 104 ); |
| 1502 |
|
| 1503 |
UxPutForeground( label11, TextForeground ); |
| 1504 |
UxPutFontList( label11, TextFont ); |
| 1505 |
UxPutBackground( label11, ApplicBackground ); |
| 1506 |
UxPutLabelString( label11, "OUTPUT FILES" ); |
| 1507 |
UxPutHeight( label11, 20 ); |
| 1508 |
UxPutWidth( label11, 123 ); |
| 1509 |
UxPutY( label11, 430 ); |
| 1510 |
UxPutX( label11, 0 ); |
| 1511 |
|
| 1512 |
UxPutForeground( label12, TextForeground ); |
| 1513 |
UxPutFontList( label12, TextFont ); |
| 1514 |
UxPutBackground( label12, ApplicBackground ); |
| 1515 |
UxPutLabelString( label12, "Prefix :" ); |
| 1516 |
UxPutHeight( label12, 20 ); |
| 1517 |
UxPutWidth( label12, 59 ); |
| 1518 |
UxPutY( label12, 460 ); |
| 1519 |
UxPutX( label12, 10 ); |
| 1520 |
|
| 1521 |
UxPutForeground( label13, TextForeground ); |
| 1522 |
UxPutFontList( label13, TextFont ); |
| 1523 |
UxPutBackground( label13, ApplicBackground ); |
| 1524 |
UxPutLabelString( label13, "Initial file # :" ); |
| 1525 |
UxPutHeight( label13, 20 ); |
| 1526 |
UxPutWidth( label13, 81 ); |
| 1527 |
UxPutY( label13, 460 ); |
| 1528 |
UxPutX( label13, 191 ); |
| 1529 |
|
| 1530 |
UxPutForeground( tg_rotopt, TextForeground ); |
| 1531 |
UxPutHighlightOnEnter( tg_rotopt, "true" ); |
| 1532 |
UxPutIndicatorSize( tg_rotopt, 18 ); |
| 1533 |
UxPutSelectColor( tg_rotopt, "green" ); |
| 1534 |
UxPutHighlightColor( tg_rotopt, "black" ); |
| 1535 |
UxPutSet( tg_rotopt, "false" ); |
| 1536 |
UxPutFontList( tg_rotopt, TextFont ); |
| 1537 |
UxPutAlignment( tg_rotopt, "alignment_beginning" ); |
| 1538 |
UxPutBackground( tg_rotopt, ApplicBackground ); |
| 1539 |
UxPutLabelString( tg_rotopt, "Rotate" ); |
| 1540 |
UxPutHeight( tg_rotopt, 30 ); |
| 1541 |
UxPutWidth( tg_rotopt, 72 ); |
| 1542 |
UxPutY( tg_rotopt, 194 ); |
| 1543 |
UxPutX( tg_rotopt, 16 ); |
| 1544 |
|
| 1545 |
UxPutForeground( tg_trimopt, TextForeground ); |
| 1546 |
UxPutHighlightOnEnter( tg_trimopt, "true" ); |
| 1547 |
UxPutIndicatorSize( tg_trimopt, 18 ); |
| 1548 |
UxPutSelectColor( tg_trimopt, "green" ); |
| 1549 |
UxPutHighlightColor( tg_trimopt, "black" ); |
| 1550 |
UxPutSet( tg_trimopt, "false" ); |
| 1551 |
UxPutFontList( tg_trimopt, TextFont ); |
| 1552 |
UxPutAlignment( tg_trimopt, "alignment_beginning" ); |
| 1553 |
UxPutBackground( tg_trimopt, ApplicBackground ); |
| 1554 |
UxPutLabelString( tg_trimopt, "Trim" ); |
| 1555 |
UxPutHeight( tg_trimopt, 26 ); |
| 1556 |
UxPutWidth( tg_trimopt, 62 ); |
| 1557 |
UxPutY( tg_trimopt, 234 ); |
| 1558 |
UxPutX( tg_trimopt, 16 ); |
| 1559 |
|
| 1560 |
UxPutForeground( tf_inputf, TextForeground ); |
| 1561 |
UxPutHighlightOnEnter( tf_inputf, "true" ); |
| 1562 |
UxPutColumns( tf_inputf, 128 ); |
| 1563 |
UxPutMaxLength( tf_inputf, 15 ); |
| 1564 |
UxPutTranslations( tf_inputf, FileSelectMain ); |
| 1565 |
UxPutFontList( tf_inputf, TextFont ); |
| 1566 |
UxPutBackground( tf_inputf, TextBackground ); |
| 1567 |
UxPutHeight( tf_inputf, 34 ); |
| 1568 |
UxPutWidth( tf_inputf, 104 ); |
| 1569 |
UxPutY( tf_inputf, 32 ); |
| 1570 |
UxPutX( tf_inputf, 134 ); |
| 1571 |
|
| 1572 |
UxPutForeground( tf_inpnumb, TextForeground ); |
| 1573 |
UxPutHighlightOnEnter( tf_inpnumb, "true" ); |
| 1574 |
UxPutColumns( tf_inpnumb, 128 ); |
| 1575 |
UxPutMaxLength( tf_inpnumb, 18 ); |
| 1576 |
UxPutFontList( tf_inpnumb, TextFont ); |
| 1577 |
UxPutBackground( tf_inpnumb, TextBackground ); |
| 1578 |
UxPutHeight( tf_inpnumb, 34 ); |
| 1579 |
UxPutWidth( tf_inpnumb, 128 ); |
| 1580 |
UxPutY( tf_inpnumb, 32 ); |
| 1581 |
UxPutX( tf_inpnumb, 308 ); |
| 1582 |
|
| 1583 |
UxPutColumns( tf_bias, 128 ); |
| 1584 |
UxPutForeground( tf_bias, TextForeground ); |
| 1585 |
UxPutHighlightOnEnter( tf_bias, "true" ); |
| 1586 |
UxPutMaxLength( tf_bias, 20 ); |
| 1587 |
UxPutTranslations( tf_bias, FileSelectMain ); |
| 1588 |
UxPutFontList( tf_bias, TextFont ); |
| 1589 |
UxPutBackground( tf_bias, TextBackground ); |
| 1590 |
UxPutHeight( tf_bias, 34 ); |
| 1591 |
UxPutWidth( tf_bias, 178 ); |
| 1592 |
UxPutY( tf_bias, 74 ); |
| 1593 |
UxPutX( tf_bias, 104 ); |
| 1594 |
|
| 1595 |
UxPutColumns( tf_dark, 128 ); |
| 1596 |
UxPutForeground( tf_dark, TextForeground ); |
| 1597 |
UxPutHighlightOnEnter( tf_dark, "true" ); |
| 1598 |
UxPutMaxLength( tf_dark, 20 ); |
| 1599 |
UxPutTranslations( tf_dark, FileSelectMain ); |
| 1600 |
UxPutFontList( tf_dark, TextFont ); |
| 1601 |
UxPutBackground( tf_dark, TextBackground ); |
| 1602 |
UxPutHeight( tf_dark, 34 ); |
| 1603 |
UxPutWidth( tf_dark, 178 ); |
| 1604 |
UxPutY( tf_dark, 110 ); |
| 1605 |
UxPutX( tf_dark, 104 ); |
| 1606 |
|
| 1607 |
UxPutColumns( tf_flat, 128 ); |
| 1608 |
UxPutForeground( tf_flat, TextForeground ); |
| 1609 |
UxPutHighlightOnEnter( tf_flat, "true" ); |
| 1610 |
UxPutMaxLength( tf_flat, 20 ); |
| 1611 |
UxPutTranslations( tf_flat, FileSelectMain ); |
| 1612 |
UxPutFontList( tf_flat, TextFont ); |
| 1613 |
UxPutBackground( tf_flat, TextBackground ); |
| 1614 |
UxPutHeight( tf_flat, 34 ); |
| 1615 |
UxPutWidth( tf_flat, 178 ); |
| 1616 |
UxPutY( tf_flat, 148 ); |
| 1617 |
UxPutX( tf_flat, 104 ); |
| 1618 |
|
| 1619 |
UxPutForeground( tf_trim4, TextForeground ); |
| 1620 |
UxPutHighlightOnEnter( tf_trim4, "true" ); |
| 1621 |
UxPutMaxLength( tf_trim4, 20 ); |
| 1622 |
UxPutFontList( tf_trim4, TextFont ); |
| 1623 |
UxPutBackground( tf_trim4, TextBackground ); |
| 1624 |
UxPutHeight( tf_trim4, 34 ); |
| 1625 |
UxPutWidth( tf_trim4, 60 ); |
| 1626 |
UxPutY( tf_trim4, 230 ); |
| 1627 |
UxPutX( tf_trim4, 374 ); |
| 1628 |
|
| 1629 |
UxPutColumns( tf_longsess, 128 ); |
| 1630 |
UxPutForeground( tf_longsess, TextForeground ); |
| 1631 |
UxPutHighlightOnEnter( tf_longsess, "true" ); |
| 1632 |
UxPutMaxLength( tf_longsess, 20 ); |
| 1633 |
UxPutTranslations( tf_longsess, FileSelectMain ); |
| 1634 |
UxPutFontList( tf_longsess, TextFont ); |
| 1635 |
UxPutBackground( tf_longsess, TextBackground ); |
| 1636 |
UxPutHeight( tf_longsess, 34 ); |
| 1637 |
UxPutWidth( tf_longsess, 178 ); |
| 1638 |
UxPutY( tf_longsess, 276 ); |
| 1639 |
UxPutX( tf_longsess, 232 ); |
| 1640 |
|
| 1641 |
UxPutColumns( tf_redextab, 128 ); |
| 1642 |
UxPutForeground( tf_redextab, TextForeground ); |
| 1643 |
UxPutHighlightOnEnter( tf_redextab, "true" ); |
| 1644 |
UxPutMaxLength( tf_redextab, 20 ); |
| 1645 |
UxPutText( tf_redextab, "" ); |
| 1646 |
UxPutTranslations( tf_redextab, FileSelectMain ); |
| 1647 |
UxPutFontList( tf_redextab, TextFont ); |
| 1648 |
UxPutBackground( tf_redextab, TextBackground ); |
| 1649 |
UxPutHeight( tf_redextab, 34 ); |
| 1650 |
UxPutWidth( tf_redextab, 178 ); |
| 1651 |
UxPutY( tf_redextab, 350 ); |
| 1652 |
UxPutX( tf_redextab, 232 ); |
| 1653 |
|
| 1654 |
UxPutColumns( tf_redresp, 128 ); |
| 1655 |
UxPutForeground( tf_redresp, TextForeground ); |
| 1656 |
UxPutHighlightOnEnter( tf_redresp, "true" ); |
| 1657 |
UxPutMaxLength( tf_redresp, 20 ); |
| 1658 |
UxPutTranslations( tf_redresp, FileSelectMain ); |
| 1659 |
UxPutFontList( tf_redresp, TextFont ); |
| 1660 |
UxPutBackground( tf_redresp, TextBackground ); |
| 1661 |
UxPutHeight( tf_redresp, 34 ); |
| 1662 |
UxPutWidth( tf_redresp, 178 ); |
| 1663 |
UxPutY( tf_redresp, 390 ); |
| 1664 |
UxPutX( tf_redresp, 232 ); |
| 1665 |
|
| 1666 |
UxPutForeground( tf_rotstart, TextForeground ); |
| 1667 |
UxPutHighlightOnEnter( tf_rotstart, "true" ); |
| 1668 |
UxPutMaxLength( tf_rotstart, 15 ); |
| 1669 |
UxPutColumns( tf_rotstart, 15 ); |
| 1670 |
UxPutFontList( tf_rotstart, TextFont ); |
| 1671 |
UxPutBackground( tf_rotstart, TextBackground ); |
| 1672 |
UxPutHeight( tf_rotstart, 34 ); |
| 1673 |
UxPutWidth( tf_rotstart, 72 ); |
| 1674 |
UxPutY( tf_rotstart, 190 ); |
| 1675 |
UxPutX( tf_rotstart, 218 ); |
| 1676 |
|
| 1677 |
UxPutForeground( tf_outputf, TextForeground ); |
| 1678 |
UxPutHighlightOnEnter( tf_outputf, "true" ); |
| 1679 |
UxPutMaxLength( tf_outputf, 10 ); |
| 1680 |
UxPutColumns( tf_outputf, 128 ); |
| 1681 |
UxPutFontList( tf_outputf, TextFont ); |
| 1682 |
UxPutBackground( tf_outputf, TextBackground ); |
| 1683 |
UxPutHeight( tf_outputf, 34 ); |
| 1684 |
UxPutWidth( tf_outputf, 100 ); |
| 1685 |
UxPutY( tf_outputf, 452 ); |
| 1686 |
UxPutX( tf_outputf, 74 ); |
| 1687 |
|
| 1688 |
UxPutForeground( tf_outnumb, TextForeground ); |
| 1689 |
UxPutHighlightOnEnter( tf_outnumb, "true" ); |
| 1690 |
UxPutMaxLength( tf_outnumb, 6 ); |
| 1691 |
UxPutColumns( tf_outnumb, 6 ); |
| 1692 |
UxPutText( tf_outnumb, "" ); |
| 1693 |
UxPutFontList( tf_outnumb, TextFont ); |
| 1694 |
UxPutBackground( tf_outnumb, TextBackground ); |
| 1695 |
UxPutHeight( tf_outnumb, 34 ); |
| 1696 |
UxPutWidth( tf_outnumb, 67 ); |
| 1697 |
UxPutY( tf_outnumb, 452 ); |
| 1698 |
UxPutX( tf_outnumb, 276 ); |
| 1699 |
|
| 1700 |
UxPutForeground( label5, TextForeground ); |
| 1701 |
UxPutLabelString( label5, "Catalog :" ); |
| 1702 |
UxPutFontList( label5, TextFont ); |
| 1703 |
UxPutBackground( label5, ApplicBackground ); |
| 1704 |
UxPutHeight( label5, 20 ); |
| 1705 |
UxPutWidth( label5, 68 ); |
| 1706 |
UxPutY( label5, 38 ); |
| 1707 |
UxPutX( label5, 64 ); |
| 1708 |
|
| 1709 |
UxPutForeground( tf_trim1, TextForeground ); |
| 1710 |
UxPutHighlightOnEnter( tf_trim1, "true" ); |
| 1711 |
UxPutMaxLength( tf_trim1, 20 ); |
| 1712 |
UxPutFontList( tf_trim1, TextFont ); |
| 1713 |
UxPutBackground( tf_trim1, TextBackground ); |
| 1714 |
UxPutHeight( tf_trim1, 34 ); |
| 1715 |
UxPutWidth( tf_trim1, 60 ); |
| 1716 |
UxPutY( tf_trim1, 230 ); |
| 1717 |
UxPutX( tf_trim1, 194 ); |
| 1718 |
|
| 1719 |
UxPutForeground( tf_trim2, TextForeground ); |
| 1720 |
UxPutHighlightOnEnter( tf_trim2, "true" ); |
| 1721 |
UxPutMaxLength( tf_trim2, 20 ); |
| 1722 |
UxPutFontList( tf_trim2, TextFont ); |
| 1723 |
UxPutBackground( tf_trim2, TextBackground ); |
| 1724 |
UxPutHeight( tf_trim2, 34 ); |
| 1725 |
UxPutWidth( tf_trim2, 60 ); |
| 1726 |
UxPutY( tf_trim2, 230 ); |
| 1727 |
UxPutX( tf_trim2, 254 ); |
| 1728 |
|
| 1729 |
UxPutForeground( tf_trim3, TextForeground ); |
| 1730 |
UxPutHighlightOnEnter( tf_trim3, "true" ); |
| 1731 |
UxPutMaxLength( tf_trim3, 20 ); |
| 1732 |
UxPutFontList( tf_trim3, TextFont ); |
| 1733 |
UxPutBackground( tf_trim3, TextBackground ); |
| 1734 |
UxPutHeight( tf_trim3, 34 ); |
| 1735 |
UxPutWidth( tf_trim3, 60 ); |
| 1736 |
UxPutY( tf_trim3, 230 ); |
| 1737 |
UxPutX( tf_trim3, 314 ); |
| 1738 |
|
| 1739 |
UxPutForeground( label6, TextForeground ); |
| 1740 |
UxPutFontList( label6, TextFont ); |
| 1741 |
UxPutBackground( label6, ApplicBackground ); |
| 1742 |
UxPutLabelString( label6, "x1,y1,x2,y2 :" ); |
| 1743 |
UxPutHeight( label6, 25 ); |
| 1744 |
UxPutWidth( label6, 84 ); |
| 1745 |
UxPutY( label6, 236 ); |
| 1746 |
UxPutX( label6, 106 ); |
| 1747 |
|
| 1748 |
UxPutForeground( label7, TextForeground ); |
| 1749 |
UxPutFontList( label7, TextFont ); |
| 1750 |
UxPutBackground( label7, ApplicBackground ); |
| 1751 |
UxPutLabelString( label7, "start-y,step-y :" ); |
| 1752 |
UxPutHeight( label7, 25 ); |
| 1753 |
UxPutWidth( label7, 109 ); |
| 1754 |
UxPutY( label7, 198 ); |
| 1755 |
UxPutX( label7, 104 ); |
| 1756 |
|
| 1757 |
UxPutForeground( label1, TextForeground ); |
| 1758 |
UxPutFontList( label1, TextFont ); |
| 1759 |
UxPutBackground( label1, ApplicBackground ); |
| 1760 |
UxPutLabelString( label1, "INPUT FILES" ); |
| 1761 |
UxPutHeight( label1, 20 ); |
| 1762 |
UxPutWidth( label1, 105 ); |
| 1763 |
UxPutY( label1, 10 ); |
| 1764 |
UxPutX( label1, 0 ); |
| 1765 |
|
| 1766 |
UxPutBackground( form2, ButtonBackground ); |
| 1767 |
UxPutHeight( form2, 48 ); |
| 1768 |
UxPutWidth( form2, 448 ); |
| 1769 |
UxPutY( form2, 559 ); |
| 1770 |
UxPutX( form2, 0 ); |
| 1771 |
UxPutResizePolicy( form2, "resize_none" ); |
| 1772 |
|
| 1773 |
UxPutHighlightColor( pb_execute, ButtonForeground ); |
| 1774 |
UxPutHighlightOnEnter( pb_execute, "true" ); |
| 1775 |
UxPutLabelString( pb_execute, "Apply" ); |
| 1776 |
UxPutBackground( pb_execute, ButtonBackground ); |
| 1777 |
UxPutForeground( pb_execute, ApplyForeground ); |
| 1778 |
UxPutFontList( pb_execute, BoldTextFont ); |
| 1779 |
UxPutHeight( pb_execute, 35 ); |
| 1780 |
UxPutWidth( pb_execute, 85 ); |
| 1781 |
UxPutY( pb_execute, 6 ); |
| 1782 |
UxPutX( pb_execute, 107 ); |
| 1783 |
|
| 1784 |
UxPutHighlightColor( pb_airmass, ButtonForeground ); |
| 1785 |
UxPutHighlightOnEnter( pb_airmass, "true" ); |
| 1786 |
UxPutLabelString( pb_airmass, "Airmass ..." ); |
| 1787 |
UxPutBackground( pb_airmass, ButtonBackground ); |
| 1788 |
UxPutForeground( pb_airmass, ButtonForeground ); |
| 1789 |
UxPutFontList( pb_airmass, BoldTextFont ); |
| 1790 |
UxPutHeight( pb_airmass, 35 ); |
| 1791 |
UxPutWidth( pb_airmass, 85 ); |
| 1792 |
UxPutY( pb_airmass, 6 ); |
| 1793 |
UxPutX( pb_airmass, 8 ); |
| 1794 |
|
| 1795 |
UxPutForeground( tf_rotstep, TextForeground ); |
| 1796 |
UxPutHighlightOnEnter( tf_rotstep, "true" ); |
| 1797 |
UxPutMaxLength( tf_rotstep, 15 ); |
| 1798 |
UxPutColumns( tf_rotstep, 15 ); |
| 1799 |
UxPutFontList( tf_rotstep, TextFont ); |
| 1800 |
UxPutBackground( tf_rotstep, TextBackground ); |
| 1801 |
UxPutHeight( tf_rotstep, 34 ); |
| 1802 |
UxPutWidth( tf_rotstep, 72 ); |
| 1803 |
UxPutY( tf_rotstep, 190 ); |
| 1804 |
UxPutX( tf_rotstep, 290 ); |
| 1805 |
|
| 1806 |
} |
| 1807 |
|
| 1808 |
/******************************************************************************* |
| 1809 |
The 'build_' function creates all the swidgets and X widgets, |
| 1810 |
and sets their properties to the values specified in the |
| 1811 |
Property Editor. |
| 1812 |
*******************************************************************************/ |
| 1813 |
|
| 1814 |
static swidget _Uxbuild_ApplicWindow() |
| 1815 |
{ |
| 1816 |
/* Create the swidgets */ |
| 1817 |
|
| 1818 |
ApplicWindow = UxCreateApplicationShell( "ApplicWindow", NO_PARENT ); |
| 1819 |
UxPutContext( ApplicWindow, UxApplicWindowContext ); |
| 1820 |
|
| 1821 |
MainWindow = UxCreateMainWindow( "MainWindow", ApplicWindow ); |
| 1822 |
menu1 = UxCreateRowColumn( "menu1", MainWindow ); |
| 1823 |
menu1_p1 = UxCreateRowColumn( "menu1_p1", menu1 ); |
| 1824 |
menu1_p1_b1 = UxCreatePushButtonGadget( "menu1_p1_b1", menu1_p1 ); |
| 1825 |
menu1_p1_b2 = UxCreatePushButtonGadget( "menu1_p1_b2", menu1_p1 ); |
| 1826 |
menu1_p1_b3 = UxCreatePushButtonGadget( "menu1_p1_b3", menu1_p1 ); |
| 1827 |
menu1_p1_b4 = UxCreateSeparator( "menu1_p1_b4", menu1_p1 ); |
| 1828 |
menu1_p1_b5 = UxCreatePushButtonGadget( "menu1_p1_b5", menu1_p1 ); |
| 1829 |
menu1_top_b1 = UxCreateCascadeButton( "menu1_top_b1", menu1 ); |
| 1830 |
menu1_p4 = UxCreateRowColumn( "menu1_p4", menu1 ); |
| 1831 |
menu_help_window = UxCreatePushButtonGadget( "menu_help_window", menu1_p4 ); |
| 1832 |
menu1_top_b4 = UxCreateCascadeButton( "menu1_top_b4", menu1 ); |
| 1833 |
form6 = UxCreateForm( "form6", MainWindow ); |
| 1834 |
separator1 = UxCreateSeparator( "separator1", form6 ); |
| 1835 |
short_help = UxCreateText( "short_help", form6 ); |
| 1836 |
separator2 = UxCreateSeparator( "separator2", form6 ); |
| 1837 |
label2 = UxCreateLabel( "label2", form6 ); |
| 1838 |
label3 = UxCreateLabel( "label3", form6 ); |
| 1839 |
tg_biasopt = UxCreateToggleButton( "tg_biasopt", form6 ); |
| 1840 |
tg_darkopt = UxCreateToggleButton( "tg_darkopt", form6 ); |
| 1841 |
tg_flatopt = UxCreateToggleButton( "tg_flatopt", form6 ); |
| 1842 |
tg_rebopt = UxCreateToggleButton( "tg_rebopt", form6 ); |
| 1843 |
label8 = UxCreateLabel( "label8", form6 ); |
| 1844 |
rowColumn1 = UxCreateRowColumn( "rowColumn1", form6 ); |
| 1845 |
tg_linear = UxCreateToggleButton( "tg_linear", rowColumn1 ); |
| 1846 |
tg_quadratic = UxCreateToggleButton( "tg_quadratic", rowColumn1 ); |
| 1847 |
tg_spline = UxCreateToggleButton( "tg_spline", rowColumn1 ); |
| 1848 |
tg_respopt = UxCreateToggleButton( "tg_respopt", form6 ); |
| 1849 |
tg_extopt = UxCreateToggleButton( "tg_extopt", form6 ); |
| 1850 |
label9 = UxCreateLabel( "label9", form6 ); |
| 1851 |
label10 = UxCreateLabel( "label10", form6 ); |
| 1852 |
label11 = UxCreateLabel( "label11", form6 ); |
| 1853 |
label12 = UxCreateLabel( "label12", form6 ); |
| 1854 |
label13 = UxCreateLabel( "label13", form6 ); |
| 1855 |
tg_rotopt = UxCreateToggleButton( "tg_rotopt", form6 ); |
| 1856 |
tg_trimopt = UxCreateToggleButton( "tg_trimopt", form6 ); |
| 1857 |
tf_inputf = UxCreateTextField( "tf_inputf", form6 ); |
| 1858 |
tf_inpnumb = UxCreateTextField( "tf_inpnumb", form6 ); |
| 1859 |
tf_bias = UxCreateTextField( "tf_bias", form6 ); |
| 1860 |
tf_dark = UxCreateTextField( "tf_dark", form6 ); |
| 1861 |
tf_flat = UxCreateTextField( "tf_flat", form6 ); |
| 1862 |
tf_trim4 = UxCreateTextField( "tf_trim4", form6 ); |
| 1863 |
tf_longsess = UxCreateTextField( "tf_longsess", form6 ); |
| 1864 |
tf_redextab = UxCreateTextField( "tf_redextab", form6 ); |
| 1865 |
tf_redresp = UxCreateTextField( "tf_redresp", form6 ); |
| 1866 |
tf_rotstart = UxCreateTextField( "tf_rotstart", form6 ); |
| 1867 |
tf_outputf = UxCreateTextField( "tf_outputf", form6 ); |
| 1868 |
tf_outnumb = UxCreateTextField( "tf_outnumb", form6 ); |
| 1869 |
label5 = UxCreateLabel( "label5", form6 ); |
| 1870 |
tf_trim1 = UxCreateTextField( "tf_trim1", form6 ); |
| 1871 |
tf_trim2 = UxCreateTextField( "tf_trim2", form6 ); |
| 1872 |
tf_trim3 = UxCreateTextField( "tf_trim3", form6 ); |
| 1873 |
label6 = UxCreateLabel( "label6", form6 ); |
| 1874 |
label7 = UxCreateLabel( "label7", form6 ); |
| 1875 |
label1 = UxCreateLabel( "label1", form6 ); |
| 1876 |
form2 = UxCreateForm( "form2", form6 ); |
| 1877 |
pb_execute = UxCreatePushButton( "pb_execute", form2 ); |
| 1878 |
pb_airmass = UxCreatePushButton( "pb_airmass", form2 ); |
| 1879 |
tf_rotstep = UxCreateTextField( "tf_rotstep", form6 ); |
| 1880 |
|
| 1881 |
_Uxinit_ApplicWindow(); |
| 1882 |
|
| 1883 |
/* Create the X widgets */ |
| 1884 |
|
| 1885 |
UxCreateWidget( ApplicWindow ); |
| 1886 |
UxCreateWidget( MainWindow ); |
| 1887 |
UxCreateWidget( menu1 ); |
| 1888 |
UxCreateWidget( menu1_p1 ); |
| 1889 |
UxCreateWidget( menu1_p1_b1 ); |
| 1890 |
UxCreateWidget( menu1_p1_b2 ); |
| 1891 |
UxCreateWidget( menu1_p1_b3 ); |
| 1892 |
UxCreateWidget( menu1_p1_b4 ); |
| 1893 |
UxCreateWidget( menu1_p1_b5 ); |
| 1894 |
UxPutSubMenuId( menu1_top_b1, "menu1_p1" ); |
| 1895 |
UxCreateWidget( menu1_top_b1 ); |
| 1896 |
|
| 1897 |
UxCreateWidget( menu1_p4 ); |
| 1898 |
UxCreateWidget( menu_help_window ); |
| 1899 |
UxPutSubMenuId( menu1_top_b4, "menu1_p4" ); |
| 1900 |
UxCreateWidget( menu1_top_b4 ); |
| 1901 |
|
| 1902 |
UxCreateWidget( form6 ); |
| 1903 |
UxCreateWidget( separator1 ); |
| 1904 |
UxCreateWidget( short_help ); |
| 1905 |
UxCreateWidget( separator2 ); |
| 1906 |
UxCreateWidget( label2 ); |
| 1907 |
UxCreateWidget( label3 ); |
| 1908 |
UxCreateWidget( tg_biasopt ); |
| 1909 |
UxCreateWidget( tg_darkopt ); |
| 1910 |
UxCreateWidget( tg_flatopt ); |
| 1911 |
UxCreateWidget( tg_rebopt ); |
| 1912 |
UxCreateWidget( label8 ); |
| 1913 |
UxCreateWidget( rowColumn1 ); |
| 1914 |
UxCreateWidget( tg_linear ); |
| 1915 |
UxCreateWidget( tg_quadratic ); |
| 1916 |
UxCreateWidget( tg_spline ); |
| 1917 |
UxCreateWidget( tg_respopt ); |
| 1918 |
UxCreateWidget( tg_extopt ); |
| 1919 |
UxCreateWidget( label9 ); |
| 1920 |
UxCreateWidget( label10 ); |
| 1921 |
UxCreateWidget( label11 ); |
| 1922 |
UxCreateWidget( label12 ); |
| 1923 |
UxCreateWidget( label13 ); |
| 1924 |
UxCreateWidget( tg_rotopt ); |
| 1925 |
UxCreateWidget( tg_trimopt ); |
| 1926 |
UxCreateWidget( tf_inputf ); |
| 1927 |
UxCreateWidget( tf_inpnumb ); |
| 1928 |
UxCreateWidget( tf_bias ); |
| 1929 |
UxCreateWidget( tf_dark ); |
| 1930 |
UxCreateWidget( tf_flat ); |
| 1931 |
UxCreateWidget( tf_trim4 ); |
| 1932 |
UxCreateWidget( tf_longsess ); |
| 1933 |
UxCreateWidget( tf_redextab ); |
| 1934 |
UxCreateWidget( tf_redresp ); |
| 1935 |
UxCreateWidget( tf_rotstart ); |
| 1936 |
UxCreateWidget( tf_outputf ); |
| 1937 |
UxCreateWidget( tf_outnumb ); |
| 1938 |
UxCreateWidget( label5 ); |
| 1939 |
UxCreateWidget( tf_trim1 ); |
| 1940 |
UxCreateWidget( tf_trim2 ); |
| 1941 |
UxCreateWidget( tf_trim3 ); |
| 1942 |
UxCreateWidget( label6 ); |
| 1943 |
UxCreateWidget( label7 ); |
| 1944 |
UxCreateWidget( label1 ); |
| 1945 |
UxCreateWidget( form2 ); |
| 1946 |
UxCreateWidget( pb_execute ); |
| 1947 |
UxCreateWidget( pb_airmass ); |
| 1948 |
UxCreateWidget( tf_rotstep ); |
| 1949 |
|
| 1950 |
UxPutMenuHelpWidget( menu1, "menu1_top_b4" ); |
| 1951 |
|
| 1952 |
UxAddCallback( menu1_p1_b1, XmNactivateCallback, |
| 1953 |
activateCB_menu1_p1_b1, |
| 1954 |
(XtPointer) UxApplicWindowContext ); |
| 1955 |
|
| 1956 |
UxAddCallback( menu1_p1_b2, XmNactivateCallback, |
| 1957 |
activateCB_menu1_p1_b2, |
| 1958 |
(XtPointer) UxApplicWindowContext ); |
| 1959 |
|
| 1960 |
UxAddCallback( menu1_p1_b3, XmNactivateCallback, |
| 1961 |
activateCB_menu1_p1_b3, |
| 1962 |
(XtPointer) UxApplicWindowContext ); |
| 1963 |
|
| 1964 |
UxAddCallback( menu1_p1_b5, XmNactivateCallback, |
| 1965 |
activateCB_menu1_p1_b5, |
| 1966 |
(XtPointer) UxApplicWindowContext ); |
| 1967 |
|
| 1968 |
UxAddCallback( menu_help_window, XmNactivateCallback, |
| 1969 |
activateCB_menu_help_window, |
| 1970 |
(XtPointer) UxApplicWindowContext ); |
| 1971 |
|
| 1972 |
UxAddCallback( tg_biasopt, XmNvalueChangedCallback, |
| 1973 |
valueChangedCB_tg_biasopt, |
| 1974 |
(XtPointer) UxApplicWindowContext ); |
| 1975 |
|
| 1976 |
UxAddCallback( tg_darkopt, XmNvalueChangedCallback, |
| 1977 |
valueChangedCB_tg_darkopt, |
| 1978 |
(XtPointer) UxApplicWindowContext ); |
| 1979 |
|
| 1980 |
UxAddCallback( tg_flatopt, XmNvalueChangedCallback, |
| 1981 |
valueChangedCB_tg_flatopt, |
| 1982 |
(XtPointer) UxApplicWindowContext ); |
| 1983 |
|
| 1984 |
UxAddCallback( tg_rebopt, XmNvalueChangedCallback, |
| 1985 |
valueChangedCB_tg_rebopt, |
| 1986 |
(XtPointer) UxApplicWindowContext ); |
| 1987 |
|
| 1988 |
UxAddCallback( tg_linear, XmNvalueChangedCallback, |
| 1989 |
valueChangedCB_tg_linear, |
| 1990 |
(XtPointer) UxApplicWindowContext ); |
| 1991 |
|
| 1992 |
UxAddCallback( tg_quadratic, XmNvalueChangedCallback, |
| 1993 |
valueChangedCB_tg_quadratic, |
| 1994 |
(XtPointer) UxApplicWindowContext ); |
| 1995 |
|
| 1996 |
UxAddCallback( tg_spline, XmNvalueChangedCallback, |
| 1997 |
valueChangedCB_tg_spline, |
| 1998 |
(XtPointer) UxApplicWindowContext ); |
| 1999 |
|
| 2000 |
UxAddCallback( tg_respopt, XmNvalueChangedCallback, |
| 2001 |
valueChangedCB_tg_respopt, |
| 2002 |
(XtPointer) UxApplicWindowContext ); |
| 2003 |
|
| 2004 |
UxAddCallback( tg_extopt, XmNvalueChangedCallback, |
| 2005 |
valueChangedCB_tg_extopt, |
| 2006 |
(XtPointer) UxApplicWindowContext ); |
| 2007 |
|
| 2008 |
UxAddCallback( tg_rotopt, XmNvalueChangedCallback, |
| 2009 |
valueChangedCB_tg_rotopt, |
| 2010 |
(XtPointer) UxApplicWindowContext ); |
| 2011 |
|
| 2012 |
UxAddCallback( tg_trimopt, XmNvalueChangedCallback, |
| 2013 |
valueChangedCB_tg_trimopt, |
| 2014 |
(XtPointer) UxApplicWindowContext ); |
| 2015 |
|
| 2016 |
UxAddCallback( tf_inputf, XmNlosingFocusCallback, |
| 2017 |
losingFocusCB_tf_inputf, |
| 2018 |
(XtPointer) UxApplicWindowContext ); |
| 2019 |
|
| 2020 |
UxAddCallback( tf_inpnumb, XmNlosingFocusCallback, |
| 2021 |
losingFocusCB_tf_inpnumb, |
| 2022 |
(XtPointer) UxApplicWindowContext ); |
| 2023 |
|
| 2024 |
UxAddCallback( tf_bias, XmNlosingFocusCallback, |
| 2025 |
losingFocusCB_tf_bias, |
| 2026 |
(XtPointer) UxApplicWindowContext ); |
| 2027 |
|
| 2028 |
UxAddCallback( tf_dark, XmNlosingFocusCallback, |
| 2029 |
losingFocusCB_tf_dark, |
| 2030 |
(XtPointer) UxApplicWindowContext ); |
| 2031 |
|
| 2032 |
UxAddCallback( tf_flat, XmNlosingFocusCallback, |
| 2033 |
losingFocusCB_tf_flat, |
| 2034 |
(XtPointer) UxApplicWindowContext ); |
| 2035 |
|
| 2036 |
UxAddCallback( tf_trim4, XmNlosingFocusCallback, |
| 2037 |
losingFocusCB_tf_trim4, |
| 2038 |
(XtPointer) UxApplicWindowContext ); |
| 2039 |
|
| 2040 |
UxAddCallback( tf_longsess, XmNlosingFocusCallback, |
| 2041 |
losingFocusCB_tf_longsess, |
| 2042 |
(XtPointer) UxApplicWindowContext ); |
| 2043 |
|
| 2044 |
UxAddCallback( tf_redextab, XmNlosingFocusCallback, |
| 2045 |
losingFocusCB_tf_redextab, |
| 2046 |
(XtPointer) UxApplicWindowContext ); |
| 2047 |
|
| 2048 |
UxAddCallback( tf_redresp, XmNlosingFocusCallback, |
| 2049 |
losingFocusCB_tf_redresp, |
| 2050 |
(XtPointer) UxApplicWindowContext ); |
| 2051 |
|
| 2052 |
UxAddCallback( tf_rotstart, XmNlosingFocusCallback, |
| 2053 |
losingFocusCB_tf_rotstart, |
| 2054 |
(XtPointer) UxApplicWindowContext ); |
| 2055 |
|
| 2056 |
UxAddCallback( tf_outputf, XmNlosingFocusCallback, |
| 2057 |
losingFocusCB_tf_outputf, |
| 2058 |
(XtPointer) UxApplicWindowContext ); |
| 2059 |
|
| 2060 |
UxAddCallback( tf_outnumb, XmNlosingFocusCallback, |
| 2061 |
losingFocusCB_tf_outnumb, |
| 2062 |
(XtPointer) UxApplicWindowContext ); |
| 2063 |
|
| 2064 |
UxAddCallback( tf_trim1, XmNlosingFocusCallback, |
| 2065 |
losingFocusCB_tf_trim1, |
| 2066 |
(XtPointer) UxApplicWindowContext ); |
| 2067 |
|
| 2068 |
UxAddCallback( tf_trim2, XmNlosingFocusCallback, |
| 2069 |
losingFocusCB_tf_trim2, |
| 2070 |
(XtPointer) UxApplicWindowContext ); |
| 2071 |
|
| 2072 |
UxAddCallback( tf_trim3, XmNlosingFocusCallback, |
| 2073 |
losingFocusCB_tf_trim3, |
| 2074 |
(XtPointer) UxApplicWindowContext ); |
| 2075 |
|
| 2076 |
UxAddCallback( pb_execute, XmNactivateCallback, |
| 2077 |
activateCB_pb_execute, |
| 2078 |
(XtPointer) UxApplicWindowContext ); |
| 2079 |
|
| 2080 |
UxAddCallback( pb_airmass, XmNactivateCallback, |
| 2081 |
activateCB_pb_airmass, |
| 2082 |
(XtPointer) UxApplicWindowContext ); |
| 2083 |
|
| 2084 |
UxAddCallback( tf_rotstep, XmNlosingFocusCallback, |
| 2085 |
losingFocusCB_tf_rotstep, |
| 2086 |
(XtPointer) UxApplicWindowContext ); |
| 2087 |
|
| 2088 |
|
| 2089 |
/* Finally, call UxRealizeInterface to create the X windows |
| 2090 |
for the widgets created above. */ |
| 2091 |
|
| 2092 |
UxRealizeInterface( ApplicWindow ); |
| 2093 |
|
| 2094 |
UxMainWindowSetAreas( MainWindow, menu1, NULL_SWIDGET, |
| 2095 |
NULL_SWIDGET, NULL_SWIDGET, form6 ); |
| 2096 |
return ( ApplicWindow ); |
| 2097 |
} |
| 2098 |
|
| 2099 |
/******************************************************************************* |
| 2100 |
The following function includes the code that was entered |
| 2101 |
in the 'Initial Code' and 'Final Code' sections of the |
| 2102 |
Declarations Editor. This function is called from the |
| 2103 |
'Interface function' below. |
| 2104 |
*******************************************************************************/ |
| 2105 |
|
| 2106 |
static swidget _Ux_create_ApplicWindow() |
| 2107 |
{ |
| 2108 |
swidget rtrn; |
| 2109 |
_UxCApplicWindow *UxContext; |
| 2110 |
|
| 2111 |
UxApplicWindowContext = UxContext = |
| 2112 |
(_UxCApplicWindow *) UxMalloc( sizeof(_UxCApplicWindow) ); |
| 2113 |
|
| 2114 |
{ |
| 2115 |
extern swidget create_file_dialog(); |
| 2116 |
extern swidget create_AirmassShell(); |
| 2117 |
extern swidget create_HelpShell(); |
| 2118 |
rtrn = _Uxbuild_ApplicWindow(); |
| 2119 |
|
| 2120 |
create_file_dialog(); |
| 2121 |
create_HelpShell(); |
| 2122 |
create_AirmassShell(); |
| 2123 |
|
| 2124 |
return(rtrn); |
| 2125 |
} |
| 2126 |
} |
| 2127 |
|
| 2128 |
/******************************************************************************* |
| 2129 |
The following is the 'Interface function' which is the |
| 2130 |
external entry point for creating this interface. |
| 2131 |
This function should be called from your application or from |
| 2132 |
a callback function. |
| 2133 |
*******************************************************************************/ |
| 2134 |
|
| 2135 |
swidget create_ApplicWindow() |
| 2136 |
{ |
| 2137 |
swidget _Uxrtrn; |
| 2138 |
static int _Uxinit = 0; |
| 2139 |
|
| 2140 |
if ( ! _Uxinit ) |
| 2141 |
{ |
| 2142 |
static XtActionsRec _Uxactions[] = { |
| 2143 |
{ "ClearHelp", action_ClearHelp }, |
| 2144 |
{ "ExtendedHelp", action_ExtendedHelp }, |
| 2145 |
{ "WriteHelp", action_WriteHelp }, |
| 2146 |
{ "FileSelectACT", action_FileSelectACT } |
| 2147 |
}; |
| 2148 |
|
| 2149 |
XtAppAddActions( UxAppContext, |
| 2150 |
_Uxactions, |
| 2151 |
XtNumber(_Uxactions) ); |
| 2152 |
|
| 2153 |
_Uxinit = 1; |
| 2154 |
} |
| 2155 |
|
| 2156 |
_Uxrtrn = _Ux_create_ApplicWindow(); |
| 2157 |
|
| 2158 |
return ( _Uxrtrn ); |
| 2159 |
} |
| 2160 |
|
| 2161 |
/******************************************************************************* |
| 2162 |
END OF FILE |
| 2163 |
*******************************************************************************/ |
| 2164 |
|