| 1 |
|
| 2 |
/******************************************************************************* |
| 3 |
transientShell3.c |
| 4 |
|
| 5 |
.VERSION |
| 6 |
090825 last modif |
| 7 |
|
| 8 |
*******************************************************************************/ |
| 9 |
|
| 10 |
#include <stdio.h> |
| 11 |
#include "UxLib.h" |
| 12 |
#include "UxSep.h" |
| 13 |
#include "UxTogBG.h" |
| 14 |
#include "UxRowCol.h" |
| 15 |
#include "UxTogB.h" |
| 16 |
#include "UxLabel.h" |
| 17 |
#include "UxPushB.h" |
| 18 |
#include "UxText.h" |
| 19 |
#include "UxForm.h" |
| 20 |
#include "UxTranSh.h" |
| 21 |
|
| 22 |
/******************************************************************************* |
| 23 |
Includes, Defines, and Global variables from the Declarations Editor: |
| 24 |
*******************************************************************************/ |
| 25 |
|
| 26 |
#include <ExternResources.h> |
| 27 |
#include <midas_def.h> |
| 28 |
char *instr[] = {"EMMI","SUSI"}; |
| 29 |
|
| 30 |
extern char print_com[], mid_mail[]; |
| 31 |
extern swidget scrolledList1; |
| 32 |
|
| 33 |
/******************************************************************************* |
| 34 |
The definition of the context structure: |
| 35 |
If you create multiple instances of your interface, the context |
| 36 |
structure ensures that your callbacks use the variables for the |
| 37 |
correct instance. |
| 38 |
|
| 39 |
For each swidget in the interface, each argument to the Interface |
| 40 |
function, and each variable in the Instance Specific section of the |
| 41 |
Declarations Editor, there is an entry in the context structure. |
| 42 |
and a #define. The #define makes the variable name refer to the |
| 43 |
corresponding entry in the context structure. |
| 44 |
*******************************************************************************/ |
| 45 |
|
| 46 |
typedef struct |
| 47 |
{ |
| 48 |
swidget UxtransientShell3; |
| 49 |
swidget UxworkArea3; |
| 50 |
swidget UxSHelp3; |
| 51 |
swidget UxNewsButton3; |
| 52 |
swidget UxPrintButton3; |
| 53 |
swidget Uxlabel4; |
| 54 |
swidget Uxlabel3; |
| 55 |
swidget Uxlabel1; |
| 56 |
swidget Uxlabel2; |
| 57 |
swidget Uxost_t1; |
| 58 |
swidget Uxost_t2; |
| 59 |
swidget UxpushButton4; |
| 60 |
swidget UxpushButton5; |
| 61 |
swidget Uxost_t3; |
| 62 |
swidget Uxost_to1; |
| 63 |
swidget Uxlabel6; |
| 64 |
swidget Uxost_to2; |
| 65 |
swidget UxrowColumn1; |
| 66 |
swidget UxtoggleButtonGadget1; |
| 67 |
swidget UxtoggleButtonGadget2; |
| 68 |
swidget UxtoggleButtonGadget3; |
| 69 |
swidget Uxseparator1; |
| 70 |
swidget Uxseparator2; |
| 71 |
swidget Uxseparator3; |
| 72 |
swidget Uxseparator4; |
| 73 |
} _UxCtransientShell3; |
| 74 |
|
| 75 |
#define transientShell3 UxTransientShell3Context->UxtransientShell3 |
| 76 |
#define workArea3 UxTransientShell3Context->UxworkArea3 |
| 77 |
#define SHelp3 UxTransientShell3Context->UxSHelp3 |
| 78 |
#define NewsButton3 UxTransientShell3Context->UxNewsButton3 |
| 79 |
#define PrintButton3 UxTransientShell3Context->UxPrintButton3 |
| 80 |
#define label4 UxTransientShell3Context->Uxlabel4 |
| 81 |
#define label3 UxTransientShell3Context->Uxlabel3 |
| 82 |
#define label1 UxTransientShell3Context->Uxlabel1 |
| 83 |
#define label2 UxTransientShell3Context->Uxlabel2 |
| 84 |
#define ost_t1 UxTransientShell3Context->Uxost_t1 |
| 85 |
#define ost_t2 UxTransientShell3Context->Uxost_t2 |
| 86 |
#define pushButton4 UxTransientShell3Context->UxpushButton4 |
| 87 |
#define pushButton5 UxTransientShell3Context->UxpushButton5 |
| 88 |
#define ost_t3 UxTransientShell3Context->Uxost_t3 |
| 89 |
#define ost_to1 UxTransientShell3Context->Uxost_to1 |
| 90 |
#define label6 UxTransientShell3Context->Uxlabel6 |
| 91 |
#define ost_to2 UxTransientShell3Context->Uxost_to2 |
| 92 |
#define rowColumn1 UxTransientShell3Context->UxrowColumn1 |
| 93 |
#define toggleButtonGadget1 UxTransientShell3Context->UxtoggleButtonGadget1 |
| 94 |
#define toggleButtonGadget2 UxTransientShell3Context->UxtoggleButtonGadget2 |
| 95 |
#define toggleButtonGadget3 UxTransientShell3Context->UxtoggleButtonGadget3 |
| 96 |
#define separator1 UxTransientShell3Context->Uxseparator1 |
| 97 |
#define separator2 UxTransientShell3Context->Uxseparator2 |
| 98 |
#define separator3 UxTransientShell3Context->Uxseparator3 |
| 99 |
#define separator4 UxTransientShell3Context->Uxseparator4 |
| 100 |
|
| 101 |
static _UxCtransientShell3 *UxTransientShell3Context; |
| 102 |
|
| 103 |
|
| 104 |
extern int ostcrea(), read_ost_table(); |
| 105 |
|
| 106 |
extern void display_ident_table(); |
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
/******************************************************************************* |
| 111 |
The following are translation tables. |
| 112 |
*******************************************************************************/ |
| 113 |
|
| 114 |
|
| 115 |
/******************************************************************************* |
| 116 |
Forward declarations of functions that are defined later in this file. |
| 117 |
*******************************************************************************/ |
| 118 |
|
| 119 |
swidget create_transientShell3(); |
| 120 |
|
| 121 |
/******************************************************************************* |
| 122 |
The following are Action functions. |
| 123 |
*******************************************************************************/ |
| 124 |
|
| 125 |
static void action_HInit( UxWidget, UxEvent, UxParams, p_UxNumParams ) |
| 126 |
Widget UxWidget; |
| 127 |
XEvent *UxEvent; |
| 128 |
String *UxParams; |
| 129 |
Cardinal *p_UxNumParams; |
| 130 |
{ |
| 131 |
_UxCtransientShell3 *UxSaveCtx, *UxContext; |
| 132 |
swidget UxThisWidget; |
| 133 |
|
| 134 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 135 |
UxSaveCtx = UxTransientShell3Context; |
| 136 |
UxTransientShell3Context = UxContext = |
| 137 |
(_UxCtransientShell3 *) UxGetContext( UxThisWidget ); |
| 138 |
{ |
| 139 |
|
| 140 |
} |
| 141 |
UxTransientShell3Context = UxSaveCtx; |
| 142 |
} |
| 143 |
|
| 144 |
static void action_ClearHelp( UxWidget, UxEvent, UxParams, p_UxNumParams ) |
| 145 |
Widget UxWidget; |
| 146 |
XEvent *UxEvent; |
| 147 |
String *UxParams; |
| 148 |
Cardinal *p_UxNumParams; |
| 149 |
{ |
| 150 |
_UxCtransientShell3 *UxSaveCtx, *UxContext; |
| 151 |
swidget UxThisWidget; |
| 152 |
|
| 153 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 154 |
UxSaveCtx = UxTransientShell3Context; |
| 155 |
UxTransientShell3Context = UxContext = |
| 156 |
(_UxCtransientShell3 *) UxGetContext( UxThisWidget ); |
| 157 |
{ |
| 158 |
UxPutText(UxFindSwidget("SHelp"),""); |
| 159 |
} |
| 160 |
UxTransientShell3Context = UxSaveCtx; |
| 161 |
} |
| 162 |
|
| 163 |
static void action_WriteHelp( UxWidget, UxEvent, UxParams, p_UxNumParams ) |
| 164 |
Widget UxWidget; |
| 165 |
XEvent *UxEvent; |
| 166 |
String *UxParams; |
| 167 |
Cardinal *p_UxNumParams; |
| 168 |
{ |
| 169 |
_UxCtransientShell3 *UxSaveCtx, *UxContext; |
| 170 |
swidget UxThisWidget; |
| 171 |
|
| 172 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 173 |
UxSaveCtx = UxTransientShell3Context; |
| 174 |
UxTransientShell3Context = UxContext = |
| 175 |
(_UxCtransientShell3 *) UxGetContext( UxThisWidget ); |
| 176 |
{ |
| 177 |
char s[100]; |
| 178 |
Widget sw = UxWidget; |
| 179 |
|
| 180 |
strcpy(s,""); |
| 181 |
/*sprintf(comm,"WRITE/OUT here"); |
| 182 |
AppendDialogText(comm);*/ |
| 183 |
|
| 184 |
if (sw == UxGetWidget(UxFindSwidget("ColButton"))) { |
| 185 |
strcpy(s,"Select the OST columns to be displayed into the scrolled window"); |
| 186 |
UxPutText(UxFindSwidget("SHelp") ,s); |
| 187 |
} |
| 188 |
else if (sw == UxGetWidget(UxFindSwidget("ClassiButton"))) { |
| 189 |
strcpy(s,"Activate interface for defining classification rules "); |
| 190 |
UxPutText(UxFindSwidget("SHelp") ,s); |
| 191 |
} |
| 192 |
else if (sw == UxGetWidget(UxFindSwidget("AssoButton"))) { |
| 193 |
strcpy(s,"Activate interface for classifying images"); |
| 194 |
UxPutText(UxFindSwidget("SHelp") ,s); |
| 195 |
} |
| 196 |
else if (sw == UxGetWidget(UxFindSwidget("AssoButton1"))) { |
| 197 |
strcpy(s,"Activate interface for associating calibration exposures to scientific frames"); |
| 198 |
UxPutText(UxFindSwidget("SHelp") ,s); |
| 199 |
} |
| 200 |
else if (sw == UxGetWidget(UxFindSwidget("NewsButton3"))) { |
| 201 |
strcpy(s,"Create the OST table"); |
| 202 |
UxPutText(UxFindSwidget("SHelp3") ,s); |
| 203 |
} |
| 204 |
else if (sw == UxGetWidget(UxFindSwidget("PrintButton3"))) { |
| 205 |
strcpy(s,"Popdown this interface"); |
| 206 |
UxPutText(UxFindSwidget("SHelp3") ,s); |
| 207 |
} |
| 208 |
else if (sw == UxGetWidget(UxFindSwidget("ost_t1"))){ |
| 209 |
strcpy(s,"Name of the Observation Summary Table to be created "); |
| 210 |
UxPutText(UxFindSwidget("SHelp3") ,s); |
| 211 |
} |
| 212 |
else if (sw == UxGetWidget(UxFindSwidget("ost_t2"))){ |
| 213 |
strcpy(s,"List of frames to be processed "); |
| 214 |
UxPutText(UxFindSwidget("SHelp3") ,s); |
| 215 |
} |
| 216 |
else if (sw == UxGetWidget(UxFindSwidget("ost_t3"))){ |
| 217 |
strcpy(s,"Name of the table containing the list of relevant Midas descriptors"); |
| 218 |
UxPutText(UxFindSwidget("SHelp3") ,s); |
| 219 |
} |
| 220 |
else if (sw == UxGetWidget(UxFindSwidget("pushButton4"))){ |
| 221 |
strcpy(s,"Push button to popup the File Selection Box"); |
| 222 |
UxPutText(UxFindSwidget("SHelp3") ,s); |
| 223 |
} |
| 224 |
else if (sw == UxGetWidget(UxFindSwidget("pushButton5"))){ |
| 225 |
strcpy(s,"Push button to popup the File Selection Box"); |
| 226 |
UxPutText(UxFindSwidget("SHelp3") ,s); |
| 227 |
} |
| 228 |
} |
| 229 |
UxTransientShell3Context = UxSaveCtx; |
| 230 |
} |
| 231 |
|
| 232 |
/******************************************************************************* |
| 233 |
The following are callback functions. |
| 234 |
*******************************************************************************/ |
| 235 |
|
| 236 |
static void popupCB_transientShell3( UxWidget, UxClientData, UxCallbackArg ) |
| 237 |
Widget UxWidget; |
| 238 |
XtPointer UxClientData, UxCallbackArg; |
| 239 |
{ |
| 240 |
_UxCtransientShell3 *UxSaveCtx, *UxContext; |
| 241 |
swidget UxThisWidget; |
| 242 |
|
| 243 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 244 |
UxSaveCtx = UxTransientShell3Context; |
| 245 |
UxTransientShell3Context = UxContext = |
| 246 |
(_UxCtransientShell3 *) UxGetContext( UxThisWidget ); |
| 247 |
{ |
| 248 |
|
| 249 |
} |
| 250 |
UxTransientShell3Context = UxSaveCtx; |
| 251 |
} |
| 252 |
|
| 253 |
static void mapCB_workArea3( UxWidget, UxClientData, UxCallbackArg ) |
| 254 |
Widget UxWidget; |
| 255 |
XtPointer UxClientData, UxCallbackArg; |
| 256 |
{ |
| 257 |
_UxCtransientShell3 *UxSaveCtx, *UxContext; |
| 258 |
swidget UxThisWidget; |
| 259 |
|
| 260 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 261 |
UxSaveCtx = UxTransientShell3Context; |
| 262 |
UxTransientShell3Context = UxContext = |
| 263 |
(_UxCtransientShell3 *) UxGetContext( UxThisWidget ); |
| 264 |
{ |
| 265 |
|
| 266 |
} |
| 267 |
UxTransientShell3Context = UxSaveCtx; |
| 268 |
} |
| 269 |
|
| 270 |
static void createCB_workArea3( UxWidget, UxClientData, UxCallbackArg ) |
| 271 |
Widget UxWidget; |
| 272 |
XtPointer UxClientData, UxCallbackArg; |
| 273 |
{ |
| 274 |
_UxCtransientShell3 *UxSaveCtx, *UxContext; |
| 275 |
swidget UxThisWidget; |
| 276 |
|
| 277 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 278 |
UxSaveCtx = UxTransientShell3Context; |
| 279 |
UxTransientShell3Context = UxContext = |
| 280 |
(_UxCtransientShell3 *) UxGetContext( UxThisWidget ); |
| 281 |
{ |
| 282 |
|
| 283 |
} |
| 284 |
UxTransientShell3Context = UxSaveCtx; |
| 285 |
} |
| 286 |
|
| 287 |
static void activateCB_SHelp3( UxWidget, UxClientData, UxCallbackArg ) |
| 288 |
Widget UxWidget; |
| 289 |
XtPointer UxClientData, UxCallbackArg; |
| 290 |
{ |
| 291 |
_UxCtransientShell3 *UxSaveCtx, *UxContext; |
| 292 |
swidget UxThisWidget; |
| 293 |
|
| 294 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 295 |
UxSaveCtx = UxTransientShell3Context; |
| 296 |
UxTransientShell3Context = UxContext = |
| 297 |
(_UxCtransientShell3 *) UxGetContext( UxThisWidget ); |
| 298 |
{ |
| 299 |
|
| 300 |
} |
| 301 |
UxTransientShell3Context = UxSaveCtx; |
| 302 |
} |
| 303 |
|
| 304 |
static void activateCB_NewsButton3( UxWidget, UxClientData, UxCallbackArg ) |
| 305 |
Widget UxWidget; |
| 306 |
XtPointer UxClientData, UxCallbackArg; |
| 307 |
{ |
| 308 |
_UxCtransientShell3 *UxSaveCtx, *UxContext; |
| 309 |
swidget UxThisWidget; |
| 310 |
|
| 311 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 312 |
UxSaveCtx = UxTransientShell3Context; |
| 313 |
UxTransientShell3Context = UxContext = |
| 314 |
(_UxCtransientShell3 *) UxGetContext( UxThisWidget ); |
| 315 |
{ |
| 316 |
char command[160],iframe[60],dtable[60],fflag[8],sflag[8],flag[4],pfix[5]; |
| 317 |
extern char ostchoice[60]; |
| 318 |
extern int tidost,tidcomm; |
| 319 |
|
| 320 |
strcpy(ostchoice ,osfsupply(UxGetText(UxFindSwidget("ost_t1")),".tbl")); |
| 321 |
strncpy(iframe,UxGetText(UxFindSwidget("ost_t2")),60); |
| 322 |
/*printf("ostchoice: %s\n",iframe);*/ |
| 323 |
if (iframe[0] == '\0') iframe[0] = '?'; |
| 324 |
strncpy(dtable,UxGetText(UxFindSwidget("ost_t3")),60); |
| 325 |
strcpy(fflag ,UxGetSet(UxFindSwidget("ost_to1"))); |
| 326 |
strcpy(sflag,UxGetSet(UxFindSwidget("ost_to2"))); |
| 327 |
|
| 328 |
if (fflag[0] == 't') flag[0] = 'F'; |
| 329 |
else flag[0] = 'M'; |
| 330 |
if (sflag[0] == 't') flag[2] = 'F'; |
| 331 |
else flag[2] = 'N'; |
| 332 |
flag[1] = 'C'; |
| 333 |
flag[3] = '\0'; |
| 334 |
if (tidost != -1) { |
| 335 |
TCTCLO(tidost); |
| 336 |
tidost = -1; |
| 337 |
} |
| 338 |
TCTOPN( "TAB_COMM",F_IO_MODE,&tidcomm); |
| 339 |
TCEWRC(tidcomm,1,2,ostchoice); |
| 340 |
TCEWRC(tidcomm,1,3,dtable); |
| 341 |
/*SCDWRC(tidost ,"table_descr",1,dtable,1,60,&unit);*/ |
| 342 |
TCTCLO(tidcomm); |
| 343 |
tidcomm = -1; |
| 344 |
strcpy(pfix,"+"); |
| 345 |
ostcrea(iframe,pfix,dtable,ostchoice,flag); |
| 346 |
|
| 347 |
sprintf(command,"CREATE/OST %s ? %s %s %s",iframe,dtable,ostchoice,flag); |
| 348 |
/*AppendDialogText(command);*/ |
| 349 |
|
| 350 |
if (read_ost_table()) { |
| 351 |
|
| 352 |
display_ident_table(UxGetWidget(UxFindSwidget("identlist"))); |
| 353 |
} |
| 354 |
/*SCDWRC(tidost ,"table_descr",1,dtable,1,60,&unit);*/ |
| 355 |
} |
| 356 |
UxTransientShell3Context = UxSaveCtx; |
| 357 |
} |
| 358 |
|
| 359 |
static void activateCB_PrintButton3( UxWidget, UxClientData, UxCallbackArg ) |
| 360 |
Widget UxWidget; |
| 361 |
XtPointer UxClientData, UxCallbackArg; |
| 362 |
{ |
| 363 |
_UxCtransientShell3 *UxSaveCtx, *UxContext; |
| 364 |
swidget UxThisWidget; |
| 365 |
|
| 366 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 367 |
UxSaveCtx = UxTransientShell3Context; |
| 368 |
UxTransientShell3Context = UxContext = |
| 369 |
(_UxCtransientShell3 *) UxGetContext( UxThisWidget ); |
| 370 |
{ |
| 371 |
extern swidget crea; |
| 372 |
|
| 373 |
UxPopdownInterface(crea); |
| 374 |
|
| 375 |
} |
| 376 |
UxTransientShell3Context = UxSaveCtx; |
| 377 |
} |
| 378 |
|
| 379 |
static void activateCB_pushButton4( UxWidget, UxClientData, UxCallbackArg ) |
| 380 |
Widget UxWidget; |
| 381 |
XtPointer UxClientData, UxCallbackArg; |
| 382 |
{ |
| 383 |
_UxCtransientShell3 *UxSaveCtx, *UxContext; |
| 384 |
swidget UxThisWidget; |
| 385 |
|
| 386 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 387 |
UxSaveCtx = UxTransientShell3Context; |
| 388 |
UxTransientShell3Context = UxContext = |
| 389 |
(_UxCtransientShell3 *) UxGetContext( UxThisWidget ); |
| 390 |
{ |
| 391 |
extern swidget flist; |
| 392 |
|
| 393 |
UxPopupInterface(flist,no_grab); |
| 394 |
|
| 395 |
} |
| 396 |
UxTransientShell3Context = UxSaveCtx; |
| 397 |
} |
| 398 |
|
| 399 |
static void activateCB_pushButton5( UxWidget, UxClientData, UxCallbackArg ) |
| 400 |
Widget UxWidget; |
| 401 |
XtPointer UxClientData, UxCallbackArg; |
| 402 |
{ |
| 403 |
_UxCtransientShell3 *UxSaveCtx, *UxContext; |
| 404 |
swidget UxThisWidget; |
| 405 |
|
| 406 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 407 |
UxSaveCtx = UxTransientShell3Context; |
| 408 |
UxTransientShell3Context = UxContext = |
| 409 |
(_UxCtransientShell3 *) UxGetContext( UxThisWidget ); |
| 410 |
{ |
| 411 |
extern swidget ilist,dlist; |
| 412 |
extern int doI; |
| 413 |
char cbuf1[8],cbuf2[8]; |
| 414 |
XmString *str; |
| 415 |
int item_no,i; |
| 416 |
|
| 417 |
strcpy(cbuf1,UxGetSet(UxFindSwidget("toggleButtonGadget1"))); |
| 418 |
strcpy(cbuf2,UxGetSet(UxFindSwidget("toggleButtonGadget2"))); |
| 419 |
if (cbuf1[0] == 't') { |
| 420 |
doI = 0; |
| 421 |
item_no = 2; |
| 422 |
str = (XmString *)XtMalloc(item_no * sizeof(XmString)); |
| 423 |
for (i=0; i<item_no; i++) |
| 424 |
str[i] = XmStringCreateSimple(instr[i]); |
| 425 |
XtVaSetValues(UxGetWidget(UxFindSwidget("SelectInstrument")), |
| 426 |
XmNlistItems,str, |
| 427 |
XmNlistItemCount,item_no, |
| 428 |
NULL); |
| 429 |
|
| 430 |
UxPutListLabelString( UxFindSwidget("SelectInstrument"),"Instrument"); |
| 431 |
UxPutDialogTitle(UxFindSwidget("SelectInstrument"),"Select Instrument"); |
| 432 |
UxPopupInterface(ilist,no_grab); |
| 433 |
} |
| 434 |
else if (cbuf2[0] == 't') { |
| 435 |
/* XtVaSetValues(UxGetWidget(dlist),XmNtitle, |
| 436 |
"Select Descriptor Table",NULL);*/ |
| 437 |
UxPutDialogTitle(UxFindSwidget("SelectDescrTable"),"Select Descriptor Table"); |
| 438 |
UxPopupInterface(dlist,no_grab); |
| 439 |
} |
| 440 |
else { |
| 441 |
UxPutDialogTitle(UxFindSwidget("SelectDescrTable"),"Select FITS File"); |
| 442 |
UxPopupInterface(dlist,no_grab); |
| 443 |
} |
| 444 |
} |
| 445 |
UxTransientShell3Context = UxSaveCtx; |
| 446 |
} |
| 447 |
|
| 448 |
static void valueChangedCB_ost_to1( UxWidget, UxClientData, UxCallbackArg ) |
| 449 |
Widget UxWidget; |
| 450 |
XtPointer UxClientData, UxCallbackArg; |
| 451 |
{ |
| 452 |
_UxCtransientShell3 *UxSaveCtx, *UxContext; |
| 453 |
swidget UxThisWidget; |
| 454 |
|
| 455 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 456 |
UxSaveCtx = UxTransientShell3Context; |
| 457 |
UxTransientShell3Context = UxContext = |
| 458 |
(_UxCtransientShell3 *) UxGetContext( UxThisWidget ); |
| 459 |
{ |
| 460 |
char cbuf[8]; |
| 461 |
strcpy(cbuf,UxGetSet(UxThisWidget)); |
| 462 |
if (cbuf[0] == 't') |
| 463 |
UxPutLabelString(UxThisWidget,"Fits"); |
| 464 |
else |
| 465 |
UxPutLabelString(UxThisWidget,"Midas"); |
| 466 |
} |
| 467 |
UxTransientShell3Context = UxSaveCtx; |
| 468 |
} |
| 469 |
|
| 470 |
static void valueChangedCB_ost_to2( UxWidget, UxClientData, UxCallbackArg ) |
| 471 |
Widget UxWidget; |
| 472 |
XtPointer UxClientData, UxCallbackArg; |
| 473 |
{ |
| 474 |
_UxCtransientShell3 *UxSaveCtx, *UxContext; |
| 475 |
swidget UxThisWidget; |
| 476 |
|
| 477 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 478 |
UxSaveCtx = UxTransientShell3Context; |
| 479 |
UxTransientShell3Context = UxContext = |
| 480 |
(_UxCtransientShell3 *) UxGetContext( UxThisWidget ); |
| 481 |
{ |
| 482 |
char cbuf[8]; |
| 483 |
strcpy(cbuf,UxGetSet(UxThisWidget)); |
| 484 |
if (cbuf[0] == 't') |
| 485 |
UxPutLabelString(UxThisWidget,"Yes"); |
| 486 |
else |
| 487 |
UxPutLabelString(UxThisWidget,"No"); |
| 488 |
|
| 489 |
} |
| 490 |
UxTransientShell3Context = UxSaveCtx; |
| 491 |
} |
| 492 |
|
| 493 |
/******************************************************************************* |
| 494 |
The 'init_' function sets the private properties for all the |
| 495 |
swidgets to the values specified in the Property Table. |
| 496 |
Some properties need to be set after the X widgets have been |
| 497 |
created and the setting of these properties is done in the |
| 498 |
'build_' function after the UxCreateWidget call. |
| 499 |
*******************************************************************************/ |
| 500 |
|
| 501 |
static void _Uxinit_transientShell3() |
| 502 |
{ |
| 503 |
UxPutTranslations( transientShell3, "" ); |
| 504 |
UxPutTitle( transientShell3, "Creation of The OST" ); |
| 505 |
UxPutHeight( transientShell3, 400 ); |
| 506 |
UxPutWidth( transientShell3, 480 ); |
| 507 |
UxPutY( transientShell3, 431 ); |
| 508 |
UxPutX( transientShell3, 264 ); |
| 509 |
|
| 510 |
UxPutResizePolicy( workArea3, "resize_none" ); |
| 511 |
UxPutNoResize( workArea3, "true" ); |
| 512 |
UxPutUnitType( workArea3, "pixels" ); |
| 513 |
UxPutBackground( workArea3, WindowBackground ); |
| 514 |
UxPutBorderWidth( workArea3, 0 ); |
| 515 |
UxPutHeight( workArea3, 400 ); |
| 516 |
UxPutWidth( workArea3, 480 ); |
| 517 |
UxPutY( workArea3, 0 ); |
| 518 |
UxPutX( workArea3, 0 ); |
| 519 |
|
| 520 |
UxPutText( SHelp3, " " ); |
| 521 |
UxPutEditable( SHelp3, "true" ); |
| 522 |
UxPutAccelerators( SHelp3, "" ); |
| 523 |
UxPutWordWrap( SHelp3, "false" ); |
| 524 |
UxPutHighlightOnEnter( SHelp3, "true" ); |
| 525 |
UxPutEditMode( SHelp3, "single_line_edit" ); |
| 526 |
UxPutBlinkRate( SHelp3, 500 ); |
| 527 |
UxPutPendingDelete( SHelp3, "true" ); |
| 528 |
UxPutTranslations( SHelp3, "" ); |
| 529 |
UxPutCursorPositionVisible( SHelp3, "true" ); |
| 530 |
UxPutFontList( SHelp3, TextFont ); |
| 531 |
UxPutHighlightColor( SHelp3, ApplicBackground ); |
| 532 |
UxPutForeground( SHelp3, TextForeground ); |
| 533 |
UxPutBackground( SHelp3, SHelpBackground ); |
| 534 |
UxPutHeight( SHelp3, 40 ); |
| 535 |
UxPutWidth( SHelp3, 325 ); |
| 536 |
UxPutY( SHelp3, 380 ); |
| 537 |
UxPutX( SHelp3, 30 ); |
| 538 |
|
| 539 |
UxPutHighlightColor( NewsButton3, "Black" ); |
| 540 |
UxPutRecomputeSize( NewsButton3, "false" ); |
| 541 |
UxPutFontList( NewsButton3, BoldTextFont ); |
| 542 |
UxPutForeground( NewsButton3, ButtonForeground ); |
| 543 |
UxPutLabelString( NewsButton3, "Apply" ); |
| 544 |
UxPutBackground( NewsButton3, ButtonBackground ); |
| 545 |
UxPutHeight( NewsButton3, 30 ); |
| 546 |
UxPutWidth( NewsButton3, 95 ); |
| 547 |
UxPutY( NewsButton3, 630 ); |
| 548 |
UxPutX( NewsButton3, 20 ); |
| 549 |
|
| 550 |
UxPutHighlightColor( PrintButton3, "Black" ); |
| 551 |
UxPutRecomputeSize( PrintButton3, "false" ); |
| 552 |
UxPutFontList( PrintButton3, BoldTextFont ); |
| 553 |
UxPutForeground( PrintButton3, ButtonForeground ); |
| 554 |
UxPutLabelString( PrintButton3, "Cancel" ); |
| 555 |
UxPutBackground( PrintButton3, ButtonBackground ); |
| 556 |
UxPutHeight( PrintButton3, 30 ); |
| 557 |
UxPutWidth( PrintButton3, 95 ); |
| 558 |
UxPutY( PrintButton3, 330 ); |
| 559 |
UxPutX( PrintButton3, 280 ); |
| 560 |
|
| 561 |
UxPutLabelString( label4, "OST" ); |
| 562 |
UxPutForeground( label4, TextForeground ); |
| 563 |
UxPutFontList( label4, BoldTextFont ); |
| 564 |
UxPutBackground( label4, LabelBackground ); |
| 565 |
UxPutHeight( label4, 20 ); |
| 566 |
UxPutWidth( label4, 130 ); |
| 567 |
UxPutY( label4, 50 ); |
| 568 |
UxPutX( label4, 10 ); |
| 569 |
|
| 570 |
UxPutLabelString( label3, "Input Frames" ); |
| 571 |
UxPutForeground( label3, TextForeground ); |
| 572 |
UxPutFontList( label3, BoldTextFont ); |
| 573 |
UxPutBackground( label3, LabelBackground ); |
| 574 |
UxPutHeight( label3, 20 ); |
| 575 |
UxPutWidth( label3, 130 ); |
| 576 |
UxPutY( label3, 60 ); |
| 577 |
UxPutX( label3, 5 ); |
| 578 |
|
| 579 |
UxPutLabelString( label1, "Descriptor Table" ); |
| 580 |
UxPutForeground( label1, TextForeground ); |
| 581 |
UxPutFontList( label1, BoldTextFont ); |
| 582 |
UxPutBackground( label1, LabelBackground ); |
| 583 |
UxPutHeight( label1, 20 ); |
| 584 |
UxPutWidth( label1, 130 ); |
| 585 |
UxPutY( label1, 110 ); |
| 586 |
UxPutX( label1, 0 ); |
| 587 |
|
| 588 |
UxPutLabelString( label2, "Type" ); |
| 589 |
UxPutForeground( label2, TextForeground ); |
| 590 |
UxPutFontList( label2, BoldTextFont ); |
| 591 |
UxPutBackground( label2, LabelBackground ); |
| 592 |
UxPutHeight( label2, 20 ); |
| 593 |
UxPutWidth( label2, 70 ); |
| 594 |
UxPutY( label2, 160 ); |
| 595 |
UxPutX( label2, 10 ); |
| 596 |
|
| 597 |
UxPutCursorPosition( ost_t1, 0 ); |
| 598 |
UxPutTopShadowColor( ost_t1, "Gray80" ); |
| 599 |
UxPutBackground( ost_t1, TextBackground ); |
| 600 |
UxPutForeground( ost_t1, TextForeground ); |
| 601 |
UxPutFontList( ost_t1, TextFont ); |
| 602 |
UxPutHeight( ost_t1, 40 ); |
| 603 |
UxPutWidth( ost_t1, 160 ); |
| 604 |
UxPutY( ost_t1, 30 ); |
| 605 |
UxPutX( ost_t1, 200 ); |
| 606 |
|
| 607 |
UxPutText( ost_t2, "" ); |
| 608 |
UxPutBackground( ost_t2, TextBackground ); |
| 609 |
UxPutForeground( ost_t2, TextForeground ); |
| 610 |
UxPutFontList( ost_t2, TextFont ); |
| 611 |
UxPutHeight( ost_t2, 40 ); |
| 612 |
UxPutWidth( ost_t2, 160 ); |
| 613 |
UxPutY( ost_t2, 50 ); |
| 614 |
UxPutX( ost_t2, 200 ); |
| 615 |
|
| 616 |
UxPutLabelString( pushButton4, "..." ); |
| 617 |
UxPutBackground( pushButton4, ButtonBackground ); |
| 618 |
UxPutForeground( pushButton4, ButtonForeground ); |
| 619 |
UxPutFontList( pushButton4, BoldTextFont ); |
| 620 |
UxPutHeight( pushButton4, 40 ); |
| 621 |
UxPutWidth( pushButton4, 40 ); |
| 622 |
UxPutY( pushButton4, 60 ); |
| 623 |
UxPutX( pushButton4, 400 ); |
| 624 |
|
| 625 |
UxPutLabelString( pushButton5, "..." ); |
| 626 |
UxPutBackground( pushButton5, ButtonBackground ); |
| 627 |
UxPutForeground( pushButton5, ButtonForeground ); |
| 628 |
UxPutFontList( pushButton5, BoldTextFont ); |
| 629 |
UxPutHeight( pushButton5, 40 ); |
| 630 |
UxPutWidth( pushButton5, 40 ); |
| 631 |
UxPutY( pushButton5, 100 ); |
| 632 |
UxPutX( pushButton5, 400 ); |
| 633 |
|
| 634 |
UxPutBackground( ost_t3, TextBackground ); |
| 635 |
UxPutForeground( ost_t3, TextForeground ); |
| 636 |
UxPutFontList( ost_t3, TextFont ); |
| 637 |
UxPutHeight( ost_t3, 40 ); |
| 638 |
UxPutWidth( ost_t3, 160 ); |
| 639 |
UxPutY( ost_t3, 100 ); |
| 640 |
UxPutX( ost_t3, 170 ); |
| 641 |
|
| 642 |
UxPutSet( ost_to1, "true" ); |
| 643 |
UxPutIndicatorType( ost_to1, "one_of_many" ); |
| 644 |
UxPutLabelString( ost_to1, "Fits" ); |
| 645 |
UxPutSelectColor( ost_to1, "PaleGreen" ); |
| 646 |
UxPutForeground( ost_to1, TextForeground ); |
| 647 |
UxPutFontList( ost_to1, BoldTextFont ); |
| 648 |
UxPutBackground( ost_to1, TextBackground ); |
| 649 |
UxPutHeight( ost_to1, 30 ); |
| 650 |
UxPutWidth( ost_to1, 80 ); |
| 651 |
UxPutY( ost_to1, 160 ); |
| 652 |
UxPutX( ost_to1, 140 ); |
| 653 |
|
| 654 |
UxPutLabelString( label6, "Statistics" ); |
| 655 |
UxPutForeground( label6, TextForeground ); |
| 656 |
UxPutFontList( label6, BoldTextFont ); |
| 657 |
UxPutBackground( label6, LabelBackground ); |
| 658 |
UxPutHeight( label6, 20 ); |
| 659 |
UxPutWidth( label6, 70 ); |
| 660 |
UxPutY( label6, 182 ); |
| 661 |
UxPutX( label6, 40 ); |
| 662 |
|
| 663 |
UxPutSet( ost_to2, "true" ); |
| 664 |
UxPutIndicatorType( ost_to2, "one_of_many" ); |
| 665 |
UxPutLabelString( ost_to2, "Yes" ); |
| 666 |
UxPutSelectColor( ost_to2, "PaleGreen" ); |
| 667 |
UxPutForeground( ost_to2, TextForeground ); |
| 668 |
UxPutFontList( ost_to2, BoldTextFont ); |
| 669 |
UxPutBackground( ost_to2, TextBackground ); |
| 670 |
UxPutHeight( ost_to2, 30 ); |
| 671 |
UxPutWidth( ost_to2, 80 ); |
| 672 |
UxPutY( ost_to2, 178 ); |
| 673 |
UxPutX( ost_to2, 130 ); |
| 674 |
|
| 675 |
UxPutRadioBehavior( rowColumn1, "true" ); |
| 676 |
UxPutBackground( rowColumn1, WindowBackground ); |
| 677 |
UxPutHeight( rowColumn1, 110 ); |
| 678 |
UxPutWidth( rowColumn1, 140 ); |
| 679 |
UxPutY( rowColumn1, 130 ); |
| 680 |
UxPutX( rowColumn1, 10 ); |
| 681 |
|
| 682 |
UxPutSelectColor( toggleButtonGadget1, "PaleGreen" ); |
| 683 |
UxPutFontList( toggleButtonGadget1, TextFont ); |
| 684 |
UxPutLabelString( toggleButtonGadget1, "Get Standard Table" ); |
| 685 |
UxPutIndicatorType( toggleButtonGadget1, "one_of_many" ); |
| 686 |
UxPutHeight( toggleButtonGadget1, 20 ); |
| 687 |
UxPutWidth( toggleButtonGadget1, 120 ); |
| 688 |
UxPutY( toggleButtonGadget1, 10 ); |
| 689 |
UxPutX( toggleButtonGadget1, 10 ); |
| 690 |
|
| 691 |
UxPutSet( toggleButtonGadget2, "true" ); |
| 692 |
UxPutSelectColor( toggleButtonGadget2, "PaleGreen" ); |
| 693 |
UxPutFontList( toggleButtonGadget2, TextFont ); |
| 694 |
UxPutLabelString( toggleButtonGadget2, "Select Own Table" ); |
| 695 |
UxPutIndicatorType( toggleButtonGadget2, "one_of_many" ); |
| 696 |
UxPutHeight( toggleButtonGadget2, 20 ); |
| 697 |
UxPutWidth( toggleButtonGadget2, 120 ); |
| 698 |
UxPutY( toggleButtonGadget2, 13 ); |
| 699 |
UxPutX( toggleButtonGadget2, 13 ); |
| 700 |
|
| 701 |
UxPutSelectColor( toggleButtonGadget3, "PaleGreen" ); |
| 702 |
UxPutFontList( toggleButtonGadget3, TextFont ); |
| 703 |
UxPutLabelString( toggleButtonGadget3, "Create from Fits File" ); |
| 704 |
UxPutIndicatorType( toggleButtonGadget3, "one_of_many" ); |
| 705 |
UxPutHeight( toggleButtonGadget3, 20 ); |
| 706 |
UxPutWidth( toggleButtonGadget3, 120 ); |
| 707 |
UxPutY( toggleButtonGadget3, 44 ); |
| 708 |
UxPutX( toggleButtonGadget3, 13 ); |
| 709 |
|
| 710 |
UxPutBackground( separator1, WindowBackground ); |
| 711 |
UxPutOrientation( separator1, "vertical" ); |
| 712 |
UxPutHeight( separator1, 106 ); |
| 713 |
UxPutWidth( separator1, 10 ); |
| 714 |
UxPutY( separator1, 140 ); |
| 715 |
UxPutX( separator1, 180 ); |
| 716 |
|
| 717 |
UxPutBackground( separator2, WindowBackground ); |
| 718 |
UxPutOrientation( separator2, "vertical" ); |
| 719 |
UxPutHeight( separator2, 106 ); |
| 720 |
UxPutWidth( separator2, 10 ); |
| 721 |
UxPutY( separator2, 145 ); |
| 722 |
UxPutX( separator2, 190 ); |
| 723 |
|
| 724 |
UxPutBackground( separator3, WindowBackground ); |
| 725 |
UxPutHeight( separator3, 10 ); |
| 726 |
UxPutWidth( separator3, 170 ); |
| 727 |
UxPutY( separator3, 230 ); |
| 728 |
UxPutX( separator3, 10 ); |
| 729 |
|
| 730 |
UxPutBackground( separator4, WindowBackground ); |
| 731 |
UxPutHeight( separator4, 10 ); |
| 732 |
UxPutWidth( separator4, 170 ); |
| 733 |
UxPutY( separator4, 130 ); |
| 734 |
UxPutX( separator4, 10 ); |
| 735 |
|
| 736 |
} |
| 737 |
|
| 738 |
/******************************************************************************* |
| 739 |
The 'build_' function creates all the swidgets and X widgets, |
| 740 |
and sets their properties to the values specified in the |
| 741 |
Property Editor. |
| 742 |
*******************************************************************************/ |
| 743 |
|
| 744 |
static swidget _Uxbuild_transientShell3() |
| 745 |
{ |
| 746 |
/* Create the swidgets */ |
| 747 |
|
| 748 |
transientShell3 = UxCreateTransientShell( "transientShell3", NO_PARENT ); |
| 749 |
UxPutContext( transientShell3, UxTransientShell3Context ); |
| 750 |
|
| 751 |
workArea3 = UxCreateForm( "workArea3", transientShell3 ); |
| 752 |
SHelp3 = UxCreateText( "SHelp3", workArea3 ); |
| 753 |
NewsButton3 = UxCreatePushButton( "NewsButton3", workArea3 ); |
| 754 |
PrintButton3 = UxCreatePushButton( "PrintButton3", workArea3 ); |
| 755 |
label4 = UxCreateLabel( "label4", workArea3 ); |
| 756 |
label3 = UxCreateLabel( "label3", workArea3 ); |
| 757 |
label1 = UxCreateLabel( "label1", workArea3 ); |
| 758 |
label2 = UxCreateLabel( "label2", workArea3 ); |
| 759 |
ost_t1 = UxCreateText( "ost_t1", workArea3 ); |
| 760 |
ost_t2 = UxCreateText( "ost_t2", workArea3 ); |
| 761 |
pushButton4 = UxCreatePushButton( "pushButton4", workArea3 ); |
| 762 |
pushButton5 = UxCreatePushButton( "pushButton5", workArea3 ); |
| 763 |
ost_t3 = UxCreateText( "ost_t3", workArea3 ); |
| 764 |
ost_to1 = UxCreateToggleButton( "ost_to1", workArea3 ); |
| 765 |
label6 = UxCreateLabel( "label6", workArea3 ); |
| 766 |
ost_to2 = UxCreateToggleButton( "ost_to2", workArea3 ); |
| 767 |
rowColumn1 = UxCreateRowColumn( "rowColumn1", workArea3 ); |
| 768 |
toggleButtonGadget1 = UxCreateToggleButtonGadget( "toggleButtonGadget1", rowColumn1 ); |
| 769 |
toggleButtonGadget2 = UxCreateToggleButtonGadget( "toggleButtonGadget2", rowColumn1 ); |
| 770 |
toggleButtonGadget3 = UxCreateToggleButtonGadget( "toggleButtonGadget3", rowColumn1 ); |
| 771 |
separator1 = UxCreateSeparator( "separator1", workArea3 ); |
| 772 |
separator2 = UxCreateSeparator( "separator2", workArea3 ); |
| 773 |
separator3 = UxCreateSeparator( "separator3", workArea3 ); |
| 774 |
separator4 = UxCreateSeparator( "separator4", workArea3 ); |
| 775 |
|
| 776 |
_Uxinit_transientShell3(); |
| 777 |
|
| 778 |
/* Create the X widgets */ |
| 779 |
|
| 780 |
UxCreateWidget( transientShell3 ); |
| 781 |
UxCreateWidget( workArea3 ); |
| 782 |
createCB_workArea3( UxGetWidget( workArea3 ), |
| 783 |
(XtPointer) UxTransientShell3Context, (XtPointer) NULL ); |
| 784 |
|
| 785 |
UxPutBottomOffset( SHelp3, 50 ); |
| 786 |
UxPutBottomAttachment( SHelp3, "attach_form" ); |
| 787 |
UxPutRightOffset( SHelp3, 5 ); |
| 788 |
UxPutRightAttachment( SHelp3, "attach_form" ); |
| 789 |
UxPutLeftOffset( SHelp3, 5 ); |
| 790 |
UxPutLeftAttachment( SHelp3, "attach_form" ); |
| 791 |
UxCreateWidget( SHelp3 ); |
| 792 |
|
| 793 |
UxPutLeftOffset( NewsButton3, 50 ); |
| 794 |
UxPutLeftAttachment( NewsButton3, "attach_form" ); |
| 795 |
UxPutTopWidget( NewsButton3, "SHelp3" ); |
| 796 |
UxPutTopOffset( NewsButton3, 10 ); |
| 797 |
UxPutTopAttachment( NewsButton3, "attach_widget" ); |
| 798 |
UxCreateWidget( NewsButton3 ); |
| 799 |
|
| 800 |
UxPutRightOffset( PrintButton3, 50 ); |
| 801 |
UxPutRightAttachment( PrintButton3, "attach_form" ); |
| 802 |
UxPutLeftWidget( PrintButton3, "NewsButton3" ); |
| 803 |
UxPutLeftOffset( PrintButton3, 40 ); |
| 804 |
UxPutLeftAttachment( PrintButton3, "attach_none" ); |
| 805 |
UxPutTopWidget( PrintButton3, "SHelp3" ); |
| 806 |
UxPutTopOffset( PrintButton3, 10 ); |
| 807 |
UxPutTopAttachment( PrintButton3, "attach_widget" ); |
| 808 |
UxCreateWidget( PrintButton3 ); |
| 809 |
|
| 810 |
UxPutTopAttachment( label4, "attach_form" ); |
| 811 |
UxPutTopOffset( label4, 20 ); |
| 812 |
UxPutLeftOffset( label4, 35 ); |
| 813 |
UxPutLeftAttachment( label4, "attach_form" ); |
| 814 |
UxCreateWidget( label4 ); |
| 815 |
|
| 816 |
UxPutLeftOffset( label3, 35 ); |
| 817 |
UxPutLeftAttachment( label3, "attach_form" ); |
| 818 |
UxPutTopOffset( label3, 65 ); |
| 819 |
UxPutTopAttachment( label3, "attach_form" ); |
| 820 |
UxCreateWidget( label3 ); |
| 821 |
|
| 822 |
UxPutTopOffset( label1, 110 ); |
| 823 |
UxPutTopAttachment( label1, "attach_form" ); |
| 824 |
UxPutLeftOffset( label1, 35 ); |
| 825 |
UxPutLeftAttachment( label1, "attach_form" ); |
| 826 |
UxCreateWidget( label1 ); |
| 827 |
|
| 828 |
UxPutTopOffset( label2, 250 ); |
| 829 |
UxPutLeftOffset( label2, 30 ); |
| 830 |
UxPutTopAttachment( label2, "attach_form" ); |
| 831 |
UxPutLeftAttachment( label2, "attach_form" ); |
| 832 |
UxCreateWidget( label2 ); |
| 833 |
|
| 834 |
UxPutLeftOffset( ost_t1, 220 ); |
| 835 |
UxPutLeftAttachment( ost_t1, "attach_form" ); |
| 836 |
UxPutRightOffset( ost_t1, 20 ); |
| 837 |
UxPutRightAttachment( ost_t1, "attach_none" ); |
| 838 |
UxPutTopOffset( ost_t1, 10 ); |
| 839 |
UxPutTopAttachment( ost_t1, "attach_form" ); |
| 840 |
UxCreateWidget( ost_t1 ); |
| 841 |
|
| 842 |
UxPutLeftOffset( ost_t2, 220 ); |
| 843 |
UxPutLeftAttachment( ost_t2, "attach_form" ); |
| 844 |
UxPutRightOffset( ost_t2, 20 ); |
| 845 |
UxPutRightAttachment( ost_t2, "attach_none" ); |
| 846 |
UxPutTopOffset( ost_t2, 58 ); |
| 847 |
UxPutTopAttachment( ost_t2, "attach_form" ); |
| 848 |
UxCreateWidget( ost_t2 ); |
| 849 |
|
| 850 |
UxPutRightOffset( pushButton4, 40 ); |
| 851 |
UxPutRightAttachment( pushButton4, "attach_form" ); |
| 852 |
UxPutTopOffset( pushButton4, 58 ); |
| 853 |
UxPutTopAttachment( pushButton4, "attach_form" ); |
| 854 |
UxCreateWidget( pushButton4 ); |
| 855 |
|
| 856 |
UxPutTopOffset( pushButton5, 158 ); |
| 857 |
UxPutTopAttachment( pushButton5, "attach_form" ); |
| 858 |
UxPutRightOffset( pushButton5, 40 ); |
| 859 |
UxPutRightAttachment( pushButton5, "attach_form" ); |
| 860 |
UxCreateWidget( pushButton5 ); |
| 861 |
|
| 862 |
UxPutLeftOffset( ost_t3, 220 ); |
| 863 |
UxPutLeftAttachment( ost_t3, "attach_form" ); |
| 864 |
UxPutTopOffset( ost_t3, 158 ); |
| 865 |
UxPutTopAttachment( ost_t3, "attach_form" ); |
| 866 |
UxCreateWidget( ost_t3 ); |
| 867 |
|
| 868 |
UxPutLeftOffset( ost_to1, 120 ); |
| 869 |
UxPutLeftAttachment( ost_to1, "attach_form" ); |
| 870 |
UxPutTopOffset( ost_to1, 245 ); |
| 871 |
UxPutTopAttachment( ost_to1, "attach_form" ); |
| 872 |
UxCreateWidget( ost_to1 ); |
| 873 |
|
| 874 |
UxPutTopOffset( label6, 250 ); |
| 875 |
UxPutTopAttachment( label6, "attach_form" ); |
| 876 |
UxPutLeftOffset( label6, 250 ); |
| 877 |
UxPutLeftAttachment( label6, "attach_form" ); |
| 878 |
UxCreateWidget( label6 ); |
| 879 |
|
| 880 |
UxPutRightOffset( ost_to2, 30 ); |
| 881 |
UxPutRightAttachment( ost_to2, "attach_form" ); |
| 882 |
UxPutTopOffset( ost_to2, 245 ); |
| 883 |
UxPutTopAttachment( ost_to2, "attach_form" ); |
| 884 |
UxPutLeftOffset( ost_to2, 30 ); |
| 885 |
UxPutLeftAttachment( ost_to2, "attach_none" ); |
| 886 |
UxCreateWidget( ost_to2 ); |
| 887 |
|
| 888 |
UxPutLeftOffset( rowColumn1, 20 ); |
| 889 |
UxPutLeftAttachment( rowColumn1, "attach_form" ); |
| 890 |
UxCreateWidget( rowColumn1 ); |
| 891 |
|
| 892 |
UxCreateWidget( toggleButtonGadget1 ); |
| 893 |
UxCreateWidget( toggleButtonGadget2 ); |
| 894 |
UxCreateWidget( toggleButtonGadget3 ); |
| 895 |
UxPutTopOffset( separator1, 120 ); |
| 896 |
UxPutTopAttachment( separator1, "attach_form" ); |
| 897 |
UxPutLeftOffset( separator1, 180 ); |
| 898 |
UxPutLeftAttachment( separator1, "attach_form" ); |
| 899 |
UxCreateWidget( separator1 ); |
| 900 |
|
| 901 |
UxPutLeftOffset( separator2, 10 ); |
| 902 |
UxPutLeftAttachment( separator2, "attach_form" ); |
| 903 |
UxPutTopOffset( separator2, 120 ); |
| 904 |
UxPutTopAttachment( separator2, "attach_form" ); |
| 905 |
UxCreateWidget( separator2 ); |
| 906 |
|
| 907 |
UxPutTopOffset( separator3, 222 ); |
| 908 |
UxPutTopAttachment( separator3, "attach_form" ); |
| 909 |
UxPutLeftOffset( separator3, 15 ); |
| 910 |
UxPutLeftAttachment( separator3, "attach_form" ); |
| 911 |
UxCreateWidget( separator3 ); |
| 912 |
|
| 913 |
UxPutLeftOffset( separator4, 15 ); |
| 914 |
UxPutLeftAttachment( separator4, "attach_form" ); |
| 915 |
UxPutTopOffset( separator4, 115 ); |
| 916 |
UxPutTopAttachment( separator4, "attach_form" ); |
| 917 |
UxCreateWidget( separator4 ); |
| 918 |
|
| 919 |
|
| 920 |
UxAddCallback( transientShell3, XmNpopupCallback, |
| 921 |
popupCB_transientShell3, |
| 922 |
(XtPointer) UxTransientShell3Context ); |
| 923 |
|
| 924 |
UxAddCallback( workArea3, XmNmapCallback, |
| 925 |
mapCB_workArea3, |
| 926 |
(XtPointer) UxTransientShell3Context ); |
| 927 |
|
| 928 |
UxAddCallback( SHelp3, XmNactivateCallback, |
| 929 |
activateCB_SHelp3, |
| 930 |
(XtPointer) UxTransientShell3Context ); |
| 931 |
|
| 932 |
UxAddCallback( NewsButton3, XmNactivateCallback, |
| 933 |
activateCB_NewsButton3, |
| 934 |
(XtPointer) UxTransientShell3Context ); |
| 935 |
|
| 936 |
UxAddCallback( PrintButton3, XmNactivateCallback, |
| 937 |
activateCB_PrintButton3, |
| 938 |
(XtPointer) UxTransientShell3Context ); |
| 939 |
|
| 940 |
UxAddCallback( pushButton4, XmNactivateCallback, |
| 941 |
activateCB_pushButton4, |
| 942 |
(XtPointer) UxTransientShell3Context ); |
| 943 |
|
| 944 |
UxAddCallback( pushButton5, XmNactivateCallback, |
| 945 |
activateCB_pushButton5, |
| 946 |
(XtPointer) UxTransientShell3Context ); |
| 947 |
|
| 948 |
UxAddCallback( ost_to1, XmNvalueChangedCallback, |
| 949 |
valueChangedCB_ost_to1, |
| 950 |
(XtPointer) UxTransientShell3Context ); |
| 951 |
|
| 952 |
UxAddCallback( ost_to2, XmNvalueChangedCallback, |
| 953 |
valueChangedCB_ost_to2, |
| 954 |
(XtPointer) UxTransientShell3Context ); |
| 955 |
|
| 956 |
|
| 957 |
/* Finally, call UxRealizeInterface to create the X windows |
| 958 |
for the widgets created above. */ |
| 959 |
|
| 960 |
UxRealizeInterface( transientShell3 ); |
| 961 |
|
| 962 |
return ( transientShell3 ); |
| 963 |
} |
| 964 |
|
| 965 |
/******************************************************************************* |
| 966 |
The following function includes the code that was entered |
| 967 |
in the 'Initial Code' and 'Final Code' sections of the |
| 968 |
Declarations Editor. This function is called from the |
| 969 |
'Interface function' below. |
| 970 |
*******************************************************************************/ |
| 971 |
|
| 972 |
static swidget _Ux_create_transientShell3() |
| 973 |
{ |
| 974 |
swidget rtrn; |
| 975 |
_UxCtransientShell3 *UxContext; |
| 976 |
|
| 977 |
UxTransientShell3Context = UxContext = |
| 978 |
(_UxCtransientShell3 *) UxMalloc( sizeof(_UxCtransientShell3) ); |
| 979 |
|
| 980 |
rtrn = _Uxbuild_transientShell3(); |
| 981 |
|
| 982 |
return(rtrn); |
| 983 |
} |
| 984 |
|
| 985 |
/******************************************************************************* |
| 986 |
The following is the 'Interface function' which is the |
| 987 |
external entry point for creating this interface. |
| 988 |
This function should be called from your application or from |
| 989 |
a callback function. |
| 990 |
*******************************************************************************/ |
| 991 |
|
| 992 |
swidget create_transientShell3() |
| 993 |
{ |
| 994 |
swidget _Uxrtrn; |
| 995 |
static int _Uxinit = 0; |
| 996 |
|
| 997 |
if ( ! _Uxinit ) |
| 998 |
{ |
| 999 |
static XtActionsRec _Uxactions[] = { |
| 1000 |
{ "HInit", action_HInit }, |
| 1001 |
{ "ClearHelp", action_ClearHelp }, |
| 1002 |
{ "WriteHelp", action_WriteHelp } |
| 1003 |
}; |
| 1004 |
|
| 1005 |
XtAppAddActions( UxAppContext, |
| 1006 |
_Uxactions, |
| 1007 |
XtNumber(_Uxactions) ); |
| 1008 |
|
| 1009 |
_Uxinit = 1; |
| 1010 |
} |
| 1011 |
|
| 1012 |
_Uxrtrn = _Ux_create_transientShell3(); |
| 1013 |
|
| 1014 |
return ( _Uxrtrn ); |
| 1015 |
} |
| 1016 |
|
| 1017 |
/******************************************************************************* |
| 1018 |
END OF FILE |
| 1019 |
*******************************************************************************/ |
| 1020 |
|