| 1 |
|
| 2 |
/******************************************************************************* |
| 3 |
Association.c |
| 4 |
|
| 5 |
.VERSION |
| 6 |
090825 last modif |
| 7 |
|
| 8 |
*******************************************************************************/ |
| 9 |
|
| 10 |
#include <stdio.h> |
| 11 |
#include "UxLib.h" |
| 12 |
#include "UxLabel.h" |
| 13 |
#include "UxPushB.h" |
| 14 |
#include "UxText.h" |
| 15 |
#include "UxTogB.h" |
| 16 |
#include "UxRowCol.h" |
| 17 |
#include "UxScrW.h" |
| 18 |
#include "UxForm.h" |
| 19 |
#include "UxTranSh.h" |
| 20 |
|
| 21 |
/******************************************************************************* |
| 22 |
Includes, Defines, and Global variables from the Declarations Editor: |
| 23 |
*******************************************************************************/ |
| 24 |
|
| 25 |
#include <ExternResources.h> |
| 26 |
|
| 27 |
/******************************************************************************* |
| 28 |
The definition of the context structure: |
| 29 |
If you create multiple instances of your interface, the context |
| 30 |
structure ensures that your callbacks use the variables for the |
| 31 |
correct instance. |
| 32 |
|
| 33 |
For each swidget in the interface, each argument to the Interface |
| 34 |
function, and each variable in the Instance Specific section of the |
| 35 |
Declarations Editor, there is an entry in the context structure. |
| 36 |
and a #define. The #define makes the variable name refer to the |
| 37 |
corresponding entry in the context structure. |
| 38 |
*******************************************************************************/ |
| 39 |
|
| 40 |
typedef struct |
| 41 |
{ |
| 42 |
swidget UxAssociation; |
| 43 |
swidget Uxform5; |
| 44 |
swidget UxscrolledWindow5; |
| 45 |
swidget UxrowColumn2; |
| 46 |
swidget Uxt_1; |
| 47 |
swidget Uxt1_1; |
| 48 |
swidget Uxt2_1; |
| 49 |
swidget Uxt_2; |
| 50 |
swidget Uxt_3; |
| 51 |
swidget Uxt_4; |
| 52 |
swidget Uxt_5; |
| 53 |
swidget Uxt_6; |
| 54 |
swidget Uxt1_2; |
| 55 |
swidget Uxt1_3; |
| 56 |
swidget Uxt1_4; |
| 57 |
swidget Uxt1_5; |
| 58 |
swidget Uxt1_6; |
| 59 |
swidget Uxt2_2; |
| 60 |
swidget Uxt2_3; |
| 61 |
swidget Uxt2_4; |
| 62 |
swidget Uxt2_5; |
| 63 |
swidget Uxt3_1; |
| 64 |
swidget Uxp_1; |
| 65 |
swidget Uxp_2; |
| 66 |
swidget Uxt2_6; |
| 67 |
swidget Uxt3_2; |
| 68 |
swidget Uxt3_3; |
| 69 |
swidget Uxt3_4; |
| 70 |
swidget Uxt3_5; |
| 71 |
swidget Uxt3_6; |
| 72 |
swidget Uxp_3; |
| 73 |
swidget Uxp_4; |
| 74 |
swidget Uxp_5; |
| 75 |
swidget Uxp_6; |
| 76 |
swidget Uxlabel18; |
| 77 |
swidget Uxtext4; |
| 78 |
swidget Uxtext5; |
| 79 |
swidget UxpushButton1; |
| 80 |
swidget UxpushButton7; |
| 81 |
swidget Uxlabel20; |
| 82 |
} _UxCAssociation; |
| 83 |
|
| 84 |
#define Association UxAssociationContext->UxAssociation |
| 85 |
#define form5 UxAssociationContext->Uxform5 |
| 86 |
#define scrolledWindow5 UxAssociationContext->UxscrolledWindow5 |
| 87 |
#define rowColumn2 UxAssociationContext->UxrowColumn2 |
| 88 |
#define t_1 UxAssociationContext->Uxt_1 |
| 89 |
#define t1_1 UxAssociationContext->Uxt1_1 |
| 90 |
#define t2_1 UxAssociationContext->Uxt2_1 |
| 91 |
#define t_2 UxAssociationContext->Uxt_2 |
| 92 |
#define t_3 UxAssociationContext->Uxt_3 |
| 93 |
#define t_4 UxAssociationContext->Uxt_4 |
| 94 |
#define t_5 UxAssociationContext->Uxt_5 |
| 95 |
#define t_6 UxAssociationContext->Uxt_6 |
| 96 |
#define t1_2 UxAssociationContext->Uxt1_2 |
| 97 |
#define t1_3 UxAssociationContext->Uxt1_3 |
| 98 |
#define t1_4 UxAssociationContext->Uxt1_4 |
| 99 |
#define t1_5 UxAssociationContext->Uxt1_5 |
| 100 |
#define t1_6 UxAssociationContext->Uxt1_6 |
| 101 |
#define t2_2 UxAssociationContext->Uxt2_2 |
| 102 |
#define t2_3 UxAssociationContext->Uxt2_3 |
| 103 |
#define t2_4 UxAssociationContext->Uxt2_4 |
| 104 |
#define t2_5 UxAssociationContext->Uxt2_5 |
| 105 |
#define t3_1 UxAssociationContext->Uxt3_1 |
| 106 |
#define p_1 UxAssociationContext->Uxp_1 |
| 107 |
#define p_2 UxAssociationContext->Uxp_2 |
| 108 |
#define t2_6 UxAssociationContext->Uxt2_6 |
| 109 |
#define t3_2 UxAssociationContext->Uxt3_2 |
| 110 |
#define t3_3 UxAssociationContext->Uxt3_3 |
| 111 |
#define t3_4 UxAssociationContext->Uxt3_4 |
| 112 |
#define t3_5 UxAssociationContext->Uxt3_5 |
| 113 |
#define t3_6 UxAssociationContext->Uxt3_6 |
| 114 |
#define p_3 UxAssociationContext->Uxp_3 |
| 115 |
#define p_4 UxAssociationContext->Uxp_4 |
| 116 |
#define p_5 UxAssociationContext->Uxp_5 |
| 117 |
#define p_6 UxAssociationContext->Uxp_6 |
| 118 |
#define label18 UxAssociationContext->Uxlabel18 |
| 119 |
#define text4 UxAssociationContext->Uxtext4 |
| 120 |
#define text5 UxAssociationContext->Uxtext5 |
| 121 |
#define pushButton1 UxAssociationContext->UxpushButton1 |
| 122 |
#define pushButton7 UxAssociationContext->UxpushButton7 |
| 123 |
#define label20 UxAssociationContext->Uxlabel20 |
| 124 |
|
| 125 |
static _UxCAssociation *UxAssociationContext; |
| 126 |
|
| 127 |
extern int AppendDialogText(); |
| 128 |
|
| 129 |
|
| 130 |
/******************************************************************************* |
| 131 |
Forward declarations of functions that are defined later in this file. |
| 132 |
*******************************************************************************/ |
| 133 |
|
| 134 |
swidget create_Association(); |
| 135 |
|
| 136 |
/******************************************************************************* |
| 137 |
The following are callback functions. |
| 138 |
*******************************************************************************/ |
| 139 |
|
| 140 |
static void activateCB_p_1( UxWidget, UxClientData, UxCallbackArg ) |
| 141 |
Widget UxWidget; |
| 142 |
XtPointer UxClientData, UxCallbackArg; |
| 143 |
{ |
| 144 |
_UxCAssociation *UxSaveCtx, *UxContext; |
| 145 |
swidget UxThisWidget; |
| 146 |
|
| 147 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 148 |
UxSaveCtx = UxAssociationContext; |
| 149 |
UxAssociationContext = UxContext = |
| 150 |
(_UxCAssociation *) UxGetContext( UxThisWidget ); |
| 151 |
{ |
| 152 |
extern swidget asso; |
| 153 |
|
| 154 |
extern Widget arow1[20],arow2[20],arow3[20],arow4[20]; |
| 155 |
char mytext[8]; |
| 156 |
int rows = 5; |
| 157 |
int i; |
| 158 |
extern int arowno; |
| 159 |
XtVaSetValues(UxGetWidget(UxFindSwidget("rowasso")),XmNnumColumns,rows,NULL); |
| 160 |
|
| 161 |
if (!arow1[0]) { |
| 162 |
arowno = 5; |
| 163 |
for (i=0; i<rows; i++) |
| 164 |
{ |
| 165 |
sprintf(mytext,"a1_%d",i); |
| 166 |
arow1[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),XmNwidth,210,NULL); |
| 167 |
sprintf(mytext,"a2_%d",i); |
| 168 |
arow2[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),NULL); |
| 169 |
sprintf(mytext,"a3_%d",i); |
| 170 |
arow3[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),NULL); |
| 171 |
sprintf(mytext,"a4_%d",i); |
| 172 |
arow4[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),NULL); |
| 173 |
} |
| 174 |
|
| 175 |
} |
| 176 |
|
| 177 |
UxPutText(UxFindSwidget("arule_name"),"bias_assorule"); |
| 178 |
UxPopupInterface(asso,no_grab); |
| 179 |
} |
| 180 |
UxAssociationContext = UxSaveCtx; |
| 181 |
} |
| 182 |
|
| 183 |
static void activateCB_p_2( UxWidget, UxClientData, UxCallbackArg ) |
| 184 |
Widget UxWidget; |
| 185 |
XtPointer UxClientData, UxCallbackArg; |
| 186 |
{ |
| 187 |
_UxCAssociation *UxSaveCtx, *UxContext; |
| 188 |
swidget UxThisWidget; |
| 189 |
|
| 190 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 191 |
UxSaveCtx = UxAssociationContext; |
| 192 |
UxAssociationContext = UxContext = |
| 193 |
(_UxCAssociation *) UxGetContext( UxThisWidget ); |
| 194 |
{ |
| 195 |
|
| 196 |
|
| 197 |
extern swidget asso; |
| 198 |
|
| 199 |
extern Widget arow1[20],arow2[20],arow3[20],arow4[20]; |
| 200 |
char mytext[8]; |
| 201 |
int rows = 5; |
| 202 |
int i; |
| 203 |
extern int arowno; |
| 204 |
XtVaSetValues(UxGetWidget(UxFindSwidget("rowasso")),XmNnumColumns,rows,NULL); |
| 205 |
|
| 206 |
if (!arow1[0]) { |
| 207 |
arowno = 5; |
| 208 |
for (i=0; i<rows; i++) |
| 209 |
{ |
| 210 |
sprintf(mytext,"a1_%d",i); |
| 211 |
arow1[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),XmNwidth,210,NULL); |
| 212 |
sprintf(mytext,"a2_%d",i); |
| 213 |
arow2[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),NULL); |
| 214 |
sprintf(mytext,"a3_%d",i); |
| 215 |
arow3[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),NULL); |
| 216 |
sprintf(mytext,"a4_%d",i); |
| 217 |
arow4[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),NULL); |
| 218 |
} |
| 219 |
|
| 220 |
} |
| 221 |
|
| 222 |
|
| 223 |
UxPutText(UxFindSwidget("arule_name"),"dark_assorule"); |
| 224 |
UxPopupInterface(asso,no_grab); |
| 225 |
} |
| 226 |
UxAssociationContext = UxSaveCtx; |
| 227 |
} |
| 228 |
|
| 229 |
static void activateCB_p_3( UxWidget, UxClientData, UxCallbackArg ) |
| 230 |
Widget UxWidget; |
| 231 |
XtPointer UxClientData, UxCallbackArg; |
| 232 |
{ |
| 233 |
_UxCAssociation *UxSaveCtx, *UxContext; |
| 234 |
swidget UxThisWidget; |
| 235 |
|
| 236 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 237 |
UxSaveCtx = UxAssociationContext; |
| 238 |
UxAssociationContext = UxContext = |
| 239 |
(_UxCAssociation *) UxGetContext( UxThisWidget ); |
| 240 |
{ |
| 241 |
extern swidget asso; |
| 242 |
|
| 243 |
|
| 244 |
extern Widget arow1[20],arow2[20],arow3[20],arow4[20]; |
| 245 |
char mytext[8]; |
| 246 |
int rows = 5; |
| 247 |
int i; |
| 248 |
extern int arowno; |
| 249 |
XtVaSetValues(UxGetWidget(UxFindSwidget("rowasso")),XmNnumColumns,rows,NULL); |
| 250 |
|
| 251 |
if (!arow1[0]) { |
| 252 |
arowno = 5; |
| 253 |
for (i=0; i<rows; i++) |
| 254 |
{ |
| 255 |
sprintf(mytext,"a1_%d",i); |
| 256 |
arow1[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),XmNwidth,210,NULL); |
| 257 |
sprintf(mytext,"a2_%d",i); |
| 258 |
arow2[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),NULL); |
| 259 |
sprintf(mytext,"a3_%d",i); |
| 260 |
arow3[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),NULL); |
| 261 |
sprintf(mytext,"a4_%d",i); |
| 262 |
arow4[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),NULL); |
| 263 |
} |
| 264 |
|
| 265 |
} |
| 266 |
|
| 267 |
UxPutText(UxFindSwidget("arule_name"),"ff_assorule"); |
| 268 |
UxPopupInterface(asso,no_grab); |
| 269 |
} |
| 270 |
UxAssociationContext = UxSaveCtx; |
| 271 |
} |
| 272 |
|
| 273 |
static void activateCB_p_4( UxWidget, UxClientData, UxCallbackArg ) |
| 274 |
Widget UxWidget; |
| 275 |
XtPointer UxClientData, UxCallbackArg; |
| 276 |
{ |
| 277 |
_UxCAssociation *UxSaveCtx, *UxContext; |
| 278 |
swidget UxThisWidget; |
| 279 |
|
| 280 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 281 |
UxSaveCtx = UxAssociationContext; |
| 282 |
UxAssociationContext = UxContext = |
| 283 |
(_UxCAssociation *) UxGetContext( UxThisWidget ); |
| 284 |
{ |
| 285 |
extern swidget asso; |
| 286 |
extern Widget arow1[20],arow2[20],arow3[20],arow4[20]; |
| 287 |
char mytext[8]; |
| 288 |
int rows = 5; |
| 289 |
int i; |
| 290 |
extern int arowno; |
| 291 |
XtVaSetValues(UxGetWidget(UxFindSwidget("rowasso")),XmNnumColumns,rows,NULL); |
| 292 |
|
| 293 |
if (!arow1[0]) { |
| 294 |
arowno = 5; |
| 295 |
for (i=0; i<rows; i++) |
| 296 |
{ |
| 297 |
sprintf(mytext,"a1_%d",i); |
| 298 |
arow1[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),XmNwidth,210,NULL); |
| 299 |
sprintf(mytext,"a2_%d",i); |
| 300 |
arow2[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),NULL); |
| 301 |
sprintf(mytext,"a3_%d",i); |
| 302 |
arow3[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),NULL); |
| 303 |
sprintf(mytext,"a4_%d",i); |
| 304 |
arow4[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),NULL); |
| 305 |
} |
| 306 |
|
| 307 |
} |
| 308 |
|
| 309 |
UxPutText(UxFindSwidget("arule_name"),"wcal_assorule"); |
| 310 |
UxPopupInterface(asso,no_grab); |
| 311 |
} |
| 312 |
UxAssociationContext = UxSaveCtx; |
| 313 |
} |
| 314 |
|
| 315 |
static void activateCB_p_5( UxWidget, UxClientData, UxCallbackArg ) |
| 316 |
Widget UxWidget; |
| 317 |
XtPointer UxClientData, UxCallbackArg; |
| 318 |
{ |
| 319 |
_UxCAssociation *UxSaveCtx, *UxContext; |
| 320 |
swidget UxThisWidget; |
| 321 |
|
| 322 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 323 |
UxSaveCtx = UxAssociationContext; |
| 324 |
UxAssociationContext = UxContext = |
| 325 |
(_UxCAssociation *) UxGetContext( UxThisWidget ); |
| 326 |
{ |
| 327 |
extern swidget asso;extern Widget arow1[20],arow2[20],arow3[20],arow4[20]; |
| 328 |
char mytext[8]; |
| 329 |
int rows = 5; |
| 330 |
int i; |
| 331 |
extern int arowno; |
| 332 |
XtVaSetValues(UxGetWidget(UxFindSwidget("rowasso")),XmNnumColumns,rows,NULL); |
| 333 |
|
| 334 |
if (!arow1[0]) { |
| 335 |
arowno = 5; |
| 336 |
for (i=0; i<rows; i++) |
| 337 |
{ |
| 338 |
sprintf(mytext,"a1_%d",i); |
| 339 |
arow1[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),XmNwidth,210,NULL); |
| 340 |
sprintf(mytext,"a2_%d",i); |
| 341 |
arow2[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),NULL); |
| 342 |
sprintf(mytext,"a3_%d",i); |
| 343 |
arow3[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),NULL); |
| 344 |
sprintf(mytext,"a4_%d",i); |
| 345 |
arow4[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),NULL); |
| 346 |
} |
| 347 |
|
| 348 |
} |
| 349 |
|
| 350 |
|
| 351 |
UxPopupInterface(asso,no_grab); |
| 352 |
} |
| 353 |
UxAssociationContext = UxSaveCtx; |
| 354 |
} |
| 355 |
|
| 356 |
static void activateCB_p_6( UxWidget, UxClientData, UxCallbackArg ) |
| 357 |
Widget UxWidget; |
| 358 |
XtPointer UxClientData, UxCallbackArg; |
| 359 |
{ |
| 360 |
_UxCAssociation *UxSaveCtx, *UxContext; |
| 361 |
swidget UxThisWidget; |
| 362 |
|
| 363 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 364 |
UxSaveCtx = UxAssociationContext; |
| 365 |
UxAssociationContext = UxContext = |
| 366 |
(_UxCAssociation *) UxGetContext( UxThisWidget ); |
| 367 |
{ |
| 368 |
extern swidget asso;extern Widget arow1[20],arow2[20],arow3[20],arow4[20]; |
| 369 |
char mytext[8]; |
| 370 |
int rows = 5; |
| 371 |
int i; |
| 372 |
extern int arowno; |
| 373 |
XtVaSetValues(UxGetWidget(UxFindSwidget("rowasso")),XmNnumColumns,rows,NULL); |
| 374 |
|
| 375 |
if (!arow1[0]) { |
| 376 |
arowno = 5; |
| 377 |
for (i=0; i<rows; i++) |
| 378 |
{ |
| 379 |
sprintf(mytext,"a1_%d",i); |
| 380 |
arow1[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),XmNwidth,210,NULL); |
| 381 |
sprintf(mytext,"a2_%d",i); |
| 382 |
arow2[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),NULL); |
| 383 |
sprintf(mytext,"a3_%d",i); |
| 384 |
arow3[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),NULL); |
| 385 |
sprintf(mytext,"a4_%d",i); |
| 386 |
arow4[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowasso")),NULL); |
| 387 |
} |
| 388 |
|
| 389 |
} |
| 390 |
|
| 391 |
|
| 392 |
UxPopupInterface(asso,no_grab); |
| 393 |
} |
| 394 |
UxAssociationContext = UxSaveCtx; |
| 395 |
} |
| 396 |
|
| 397 |
static void activateCB_pushButton1( UxWidget, UxClientData, UxCallbackArg ) |
| 398 |
Widget UxWidget; |
| 399 |
XtPointer UxClientData, UxCallbackArg; |
| 400 |
{ |
| 401 |
_UxCAssociation *UxSaveCtx, *UxContext; |
| 402 |
swidget UxThisWidget; |
| 403 |
|
| 404 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 405 |
UxSaveCtx = UxAssociationContext; |
| 406 |
UxAssociationContext = UxContext = |
| 407 |
(_UxCAssociation *) UxGetContext( UxThisWidget ); |
| 408 |
{ |
| 409 |
|
| 410 |
extern char ostchoice[60]; |
| 411 |
extern int tidost; |
| 412 |
extern swidget myerror; |
| 413 |
char command[160]; |
| 414 |
char myw[4],cbuf[8],expo[8],nexpo[8],mt1[5],filename[60],oname[60]; |
| 415 |
int i,status,loop; |
| 416 |
loop = 0; |
| 417 |
if (tidost == -1 ) { |
| 418 |
UxPutMessageString(UxFindSwidget("errorDialog1"),"NO OST opened"); |
| 419 |
UxPopupInterface(myerror,no_grab); |
| 420 |
return; |
| 421 |
} |
| 422 |
|
| 423 |
for (i=0; i<6;i++) { |
| 424 |
sprintf(myw,"t_%d",i+1); |
| 425 |
strcpy(cbuf,UxGetSet(UxFindSwidget(myw))); |
| 426 |
strcpy(command,"ASSOCIATE/IMAGE "); |
| 427 |
strcpy(oname,UxGetText(UxFindSwidget("text4"))); |
| 428 |
if (oname[0] == '\0') { |
| 429 |
UxPutMessageString(UxFindSwidget("errorDialog1"),"No Output Table Name provided"); |
| 430 |
UxPopupInterface(myerror,no_grab); |
| 431 |
return; |
| 432 |
} |
| 433 |
if (cbuf[0] == 't') { |
| 434 |
sprintf(mt1,"t3_%d",i+1); |
| 435 |
strcpy(filename,UxGetText(UxFindSwidget(mt1))); |
| 436 |
sprintf(mt1,"t1_%d",i+1); |
| 437 |
strcpy(expo,UxGetText(UxFindSwidget(mt1))); |
| 438 |
sprintf(mt1,"t2_%d",i+1); |
| 439 |
strcpy(nexpo,UxGetText(UxFindSwidget(mt1))); |
| 440 |
if (nexpo[0] == '\0') strcpy(nexpo,"1"); |
| 441 |
if (loop == 0) |
| 442 |
sprintf(command,"ASSOCIATE/IMAGE %s %s %s %s C %s",ostchoice,expo,filename,oname,nexpo); |
| 443 |
else |
| 444 |
sprintf(command,"ASSOCIATE/IMAGE %s %s %s %s A %s",ostchoice,expo,filename,oname,nexpo); |
| 445 |
loop++; |
| 446 |
status = AppendDialogText(command); |
| 447 |
} |
| 448 |
} |
| 449 |
} |
| 450 |
UxAssociationContext = UxSaveCtx; |
| 451 |
} |
| 452 |
|
| 453 |
static void activateCB_pushButton7( UxWidget, UxClientData, UxCallbackArg ) |
| 454 |
Widget UxWidget; |
| 455 |
XtPointer UxClientData, UxCallbackArg; |
| 456 |
{ |
| 457 |
_UxCAssociation *UxSaveCtx, *UxContext; |
| 458 |
swidget UxThisWidget; |
| 459 |
|
| 460 |
UxThisWidget = UxWidgetToSwidget( UxWidget ); |
| 461 |
UxSaveCtx = UxAssociationContext; |
| 462 |
UxAssociationContext = UxContext = |
| 463 |
(_UxCAssociation *) UxGetContext( UxThisWidget ); |
| 464 |
{ |
| 465 |
extern swidget assohaupt; |
| 466 |
UxPopdownInterface(assohaupt); |
| 467 |
} |
| 468 |
UxAssociationContext = UxSaveCtx; |
| 469 |
} |
| 470 |
|
| 471 |
/******************************************************************************* |
| 472 |
The 'init_' function sets the private properties for all the |
| 473 |
swidgets to the values specified in the Property Table. |
| 474 |
Some properties need to be set after the X widgets have been |
| 475 |
created and the setting of these properties is done in the |
| 476 |
'build_' function after the UxCreateWidget call. |
| 477 |
*******************************************************************************/ |
| 478 |
|
| 479 |
static void _Uxinit_Association() |
| 480 |
{ |
| 481 |
UxPutTitle( Association, "Association of Images" ); |
| 482 |
UxPutHeight( Association, 540 ); |
| 483 |
UxPutWidth( Association, 610 ); |
| 484 |
UxPutY( Association, 170 ); |
| 485 |
UxPutX( Association, 630 ); |
| 486 |
|
| 487 |
UxPutBackground( form5, WindowBackground ); |
| 488 |
UxPutHeight( form5, 540 ); |
| 489 |
UxPutWidth( form5, 610 ); |
| 490 |
UxPutY( form5, 0 ); |
| 491 |
UxPutX( form5, 0 ); |
| 492 |
UxPutUnitType( form5, "pixels" ); |
| 493 |
UxPutResizePolicy( form5, "resize_none" ); |
| 494 |
|
| 495 |
UxPutBackground( scrolledWindow5, WindowBackground ); |
| 496 |
UxPutScrollBarPlacement( scrolledWindow5, "bottom_left" ); |
| 497 |
UxPutHeight( scrolledWindow5, 215 ); |
| 498 |
UxPutWidth( scrolledWindow5, 550 ); |
| 499 |
UxPutY( scrolledWindow5, 20 ); |
| 500 |
UxPutX( scrolledWindow5, 280 ); |
| 501 |
UxPutScrollingPolicy( scrolledWindow5, "automatic" ); |
| 502 |
|
| 503 |
UxPutTraversalOn( rowColumn2, "false" ); |
| 504 |
UxPutPopupEnabled( rowColumn2, "true" ); |
| 505 |
UxPutRadioAlwaysOne( rowColumn2, "true" ); |
| 506 |
UxPutResizeWidth( rowColumn2, "false" ); |
| 507 |
UxPutSensitive( rowColumn2, "true" ); |
| 508 |
UxPutBackground( rowColumn2, WindowBackground ); |
| 509 |
UxPutPacking( rowColumn2, "pack_none" ); |
| 510 |
UxPutOrientation( rowColumn2, "horizontal" ); |
| 511 |
UxPutHeight( rowColumn2, 220 ); |
| 512 |
UxPutWidth( rowColumn2, 520 ); |
| 513 |
UxPutY( rowColumn2, -2 ); |
| 514 |
UxPutX( rowColumn2, 8 ); |
| 515 |
|
| 516 |
UxPutSelectColor( t_1, "PaleGreen" ); |
| 517 |
UxPutIndicatorType( t_1, "one_of_many" ); |
| 518 |
UxPutBackground( t_1, WindowBackground ); |
| 519 |
UxPutLabelString( t_1, "" ); |
| 520 |
UxPutHeight( t_1, 30 ); |
| 521 |
UxPutWidth( t_1, 40 ); |
| 522 |
UxPutY( t_1, 15 ); |
| 523 |
UxPutX( t_1, 0 ); |
| 524 |
|
| 525 |
UxPutText( t1_1, "BIAS" ); |
| 526 |
UxPutFontList( t1_1, BoldTextFont ); |
| 527 |
UxPutBackground( t1_1, TextBackground ); |
| 528 |
UxPutHeight( t1_1, 30 ); |
| 529 |
UxPutWidth( t1_1, 80 ); |
| 530 |
UxPutY( t1_1, 10 ); |
| 531 |
UxPutX( t1_1, 40 ); |
| 532 |
|
| 533 |
UxPutFontList( t2_1, TextFont ); |
| 534 |
UxPutBackground( t2_1, TextBackground ); |
| 535 |
UxPutHeight( t2_1, 30 ); |
| 536 |
UxPutWidth( t2_1, 80 ); |
| 537 |
UxPutY( t2_1, 10 ); |
| 538 |
UxPutX( t2_1, 150 ); |
| 539 |
|
| 540 |
UxPutSelectColor( t_2, "PaleGreen" ); |
| 541 |
UxPutIndicatorType( t_2, "one_of_many" ); |
| 542 |
UxPutBackground( t_2, WindowBackground ); |
| 543 |
UxPutLabelString( t_2, "" ); |
| 544 |
UxPutHeight( t_2, 30 ); |
| 545 |
UxPutWidth( t_2, 40 ); |
| 546 |
UxPutY( t_2, 60 ); |
| 547 |
UxPutX( t_2, 0 ); |
| 548 |
|
| 549 |
UxPutSelectColor( t_3, "PaleGreen" ); |
| 550 |
UxPutIndicatorType( t_3, "one_of_many" ); |
| 551 |
UxPutBackground( t_3, WindowBackground ); |
| 552 |
UxPutLabelString( t_3, "" ); |
| 553 |
UxPutHeight( t_3, 30 ); |
| 554 |
UxPutWidth( t_3, 40 ); |
| 555 |
UxPutY( t_3, 105 ); |
| 556 |
UxPutX( t_3, 0 ); |
| 557 |
|
| 558 |
UxPutSelectColor( t_4, "PaleGreen" ); |
| 559 |
UxPutIndicatorType( t_4, "one_of_many" ); |
| 560 |
UxPutBackground( t_4, WindowBackground ); |
| 561 |
UxPutLabelString( t_4, "" ); |
| 562 |
UxPutHeight( t_4, 30 ); |
| 563 |
UxPutWidth( t_4, 40 ); |
| 564 |
UxPutY( t_4, 150 ); |
| 565 |
UxPutX( t_4, 0 ); |
| 566 |
|
| 567 |
UxPutSelectColor( t_5, "PaleGreen" ); |
| 568 |
UxPutIndicatorType( t_5, "one_of_many" ); |
| 569 |
UxPutBackground( t_5, WindowBackground ); |
| 570 |
UxPutLabelString( t_5, "" ); |
| 571 |
UxPutHeight( t_5, 30 ); |
| 572 |
UxPutWidth( t_5, 40 ); |
| 573 |
UxPutY( t_5, 195 ); |
| 574 |
UxPutX( t_5, 0 ); |
| 575 |
|
| 576 |
UxPutSelectColor( t_6, "PaleGreen" ); |
| 577 |
UxPutIndicatorType( t_6, "one_of_many" ); |
| 578 |
UxPutBackground( t_6, WindowBackground ); |
| 579 |
UxPutLabelString( t_6, "" ); |
| 580 |
UxPutHeight( t_6, 30 ); |
| 581 |
UxPutWidth( t_6, 40 ); |
| 582 |
UxPutY( t_6, 240 ); |
| 583 |
UxPutX( t_6, 0 ); |
| 584 |
|
| 585 |
UxPutText( t1_2, "DARK" ); |
| 586 |
UxPutFontList( t1_2, BoldTextFont ); |
| 587 |
UxPutBackground( t1_2, TextBackground ); |
| 588 |
UxPutHeight( t1_2, 20 ); |
| 589 |
UxPutWidth( t1_2, 80 ); |
| 590 |
UxPutY( t1_2, 55 ); |
| 591 |
UxPutX( t1_2, 40 ); |
| 592 |
|
| 593 |
UxPutText( t1_3, "FF" ); |
| 594 |
UxPutFontList( t1_3, BoldTextFont ); |
| 595 |
UxPutBackground( t1_3, TextBackground ); |
| 596 |
UxPutHeight( t1_3, 20 ); |
| 597 |
UxPutWidth( t1_3, 80 ); |
| 598 |
UxPutY( t1_3, 100 ); |
| 599 |
UxPutX( t1_3, 40 ); |
| 600 |
|
| 601 |
UxPutText( t1_4, "WCAL" ); |
| 602 |
UxPutFontList( t1_4, BoldTextFont ); |
| 603 |
UxPutBackground( t1_4, TextBackground ); |
| 604 |
UxPutHeight( t1_4, 20 ); |
| 605 |
UxPutWidth( t1_4, 80 ); |
| 606 |
UxPutY( t1_4, 145 ); |
| 607 |
UxPutX( t1_4, 40 ); |
| 608 |
|
| 609 |
UxPutFontList( t1_5, BoldTextFont ); |
| 610 |
UxPutBackground( t1_5, TextBackground ); |
| 611 |
UxPutHeight( t1_5, 20 ); |
| 612 |
UxPutWidth( t1_5, 80 ); |
| 613 |
UxPutY( t1_5, 190 ); |
| 614 |
UxPutX( t1_5, 40 ); |
| 615 |
|
| 616 |
UxPutFontList( t1_6, BoldTextFont ); |
| 617 |
UxPutBackground( t1_6, TextBackground ); |
| 618 |
UxPutHeight( t1_6, 20 ); |
| 619 |
UxPutWidth( t1_6, 80 ); |
| 620 |
UxPutY( t1_6, 235 ); |
| 621 |
UxPutX( t1_6, 40 ); |
| 622 |
|
| 623 |
UxPutFontList( t2_2, TextFont ); |
| 624 |
UxPutBackground( t2_2, TextBackground ); |
| 625 |
UxPutHeight( t2_2, 30 ); |
| 626 |
UxPutWidth( t2_2, 80 ); |
| 627 |
UxPutY( t2_2, 55 ); |
| 628 |
UxPutX( t2_2, 150 ); |
| 629 |
|
| 630 |
UxPutFontList( t2_3, TextFont ); |
| 631 |
UxPutBackground( t2_3, TextBackground ); |
| 632 |
UxPutHeight( t2_3, 30 ); |
| 633 |
UxPutWidth( t2_3, 80 ); |
| 634 |
UxPutY( t2_3, 100 ); |
| 635 |
UxPutX( t2_3, 150 ); |
| 636 |
|
| 637 |
UxPutFontList( t2_4, TextFont ); |
| 638 |
UxPutBackground( t2_4, TextBackground ); |
| 639 |
UxPutHeight( t2_4, 30 ); |
| 640 |
UxPutWidth( t2_4, 80 ); |
| 641 |
UxPutY( t2_4, 145 ); |
| 642 |
UxPutX( t2_4, 150 ); |
| 643 |
|
| 644 |
UxPutFontList( t2_5, TextFont ); |
| 645 |
UxPutBackground( t2_5, TextBackground ); |
| 646 |
UxPutHeight( t2_5, 30 ); |
| 647 |
UxPutWidth( t2_5, 80 ); |
| 648 |
UxPutY( t2_5, 190 ); |
| 649 |
UxPutX( t2_5, 150 ); |
| 650 |
|
| 651 |
UxPutFontList( t3_1, TextFont ); |
| 652 |
UxPutBackground( t3_1, TextBackground ); |
| 653 |
UxPutHeight( t3_1, 30 ); |
| 654 |
UxPutWidth( t3_1, 180 ); |
| 655 |
UxPutY( t3_1, 10 ); |
| 656 |
UxPutX( t3_1, 250 ); |
| 657 |
|
| 658 |
UxPutLabelString( p_1, " ... " ); |
| 659 |
UxPutBackground( p_1, ButtonBackground ); |
| 660 |
UxPutFillOnArm( p_1, "true" ); |
| 661 |
UxPutRecomputeSize( p_1, "true" ); |
| 662 |
UxPutHeight( p_1, 30 ); |
| 663 |
UxPutWidth( p_1, 90 ); |
| 664 |
UxPutY( p_1, 5 ); |
| 665 |
UxPutX( p_1, 460 ); |
| 666 |
|
| 667 |
UxPutLabelString( p_2, " ... " ); |
| 668 |
UxPutBackground( p_2, ButtonBackground ); |
| 669 |
UxPutFillOnArm( p_2, "true" ); |
| 670 |
UxPutRecomputeSize( p_2, "true" ); |
| 671 |
UxPutHeight( p_2, 30 ); |
| 672 |
UxPutWidth( p_2, 90 ); |
| 673 |
UxPutY( p_2, 50 ); |
| 674 |
UxPutX( p_2, 460 ); |
| 675 |
|
| 676 |
UxPutFontList( t2_6, TextFont ); |
| 677 |
UxPutBackground( t2_6, TextBackground ); |
| 678 |
UxPutHeight( t2_6, 30 ); |
| 679 |
UxPutWidth( t2_6, 80 ); |
| 680 |
UxPutY( t2_6, 235 ); |
| 681 |
UxPutX( t2_6, 150 ); |
| 682 |
|
| 683 |
UxPutFontList( t3_2, TextFont ); |
| 684 |
UxPutBackground( t3_2, TextBackground ); |
| 685 |
UxPutHeight( t3_2, 30 ); |
| 686 |
UxPutWidth( t3_2, 180 ); |
| 687 |
UxPutY( t3_2, 55 ); |
| 688 |
UxPutX( t3_2, 250 ); |
| 689 |
|
| 690 |
UxPutFontList( t3_3, TextFont ); |
| 691 |
UxPutBackground( t3_3, TextBackground ); |
| 692 |
UxPutHeight( t3_3, 30 ); |
| 693 |
UxPutWidth( t3_3, 180 ); |
| 694 |
UxPutY( t3_3, 100 ); |
| 695 |
UxPutX( t3_3, 250 ); |
| 696 |
|
| 697 |
UxPutFontList( t3_4, TextFont ); |
| 698 |
UxPutBackground( t3_4, TextBackground ); |
| 699 |
UxPutHeight( t3_4, 30 ); |
| 700 |
UxPutWidth( t3_4, 180 ); |
| 701 |
UxPutY( t3_4, 145 ); |
| 702 |
UxPutX( t3_4, 250 ); |
| 703 |
|
| 704 |
UxPutFontList( t3_5, TextFont ); |
| 705 |
UxPutBackground( t3_5, TextBackground ); |
| 706 |
UxPutHeight( t3_5, 30 ); |
| 707 |
UxPutWidth( t3_5, 180 ); |
| 708 |
UxPutY( t3_5, 190 ); |
| 709 |
UxPutX( t3_5, 250 ); |
| 710 |
|
| 711 |
UxPutFontList( t3_6, TextFont ); |
| 712 |
UxPutBackground( t3_6, TextBackground ); |
| 713 |
UxPutHeight( t3_6, 30 ); |
| 714 |
UxPutWidth( t3_6, 180 ); |
| 715 |
UxPutY( t3_6, 235 ); |
| 716 |
UxPutX( t3_6, 250 ); |
| 717 |
|
| 718 |
UxPutLabelString( p_3, " ... " ); |
| 719 |
UxPutBackground( p_3, ButtonBackground ); |
| 720 |
UxPutFillOnArm( p_3, "true" ); |
| 721 |
UxPutRecomputeSize( p_3, "true" ); |
| 722 |
UxPutHeight( p_3, 30 ); |
| 723 |
UxPutWidth( p_3, 90 ); |
| 724 |
UxPutY( p_3, 95 ); |
| 725 |
UxPutX( p_3, 460 ); |
| 726 |
|
| 727 |
UxPutLabelString( p_4, " ... " ); |
| 728 |
UxPutBackground( p_4, ButtonBackground ); |
| 729 |
UxPutFillOnArm( p_4, "true" ); |
| 730 |
UxPutRecomputeSize( p_4, "true" ); |
| 731 |
UxPutHeight( p_4, 30 ); |
| 732 |
UxPutWidth( p_4, 90 ); |
| 733 |
UxPutY( p_4, 140 ); |
| 734 |
UxPutX( p_4, 460 ); |
| 735 |
|
| 736 |
UxPutLabelString( p_5, " ... " ); |
| 737 |
UxPutBackground( p_5, ButtonBackground ); |
| 738 |
UxPutFillOnArm( p_5, "true" ); |
| 739 |
UxPutRecomputeSize( p_5, "true" ); |
| 740 |
UxPutHeight( p_5, 30 ); |
| 741 |
UxPutWidth( p_5, 90 ); |
| 742 |
UxPutY( p_5, 185 ); |
| 743 |
UxPutX( p_5, 460 ); |
| 744 |
|
| 745 |
UxPutLabelString( p_6, " ... " ); |
| 746 |
UxPutBackground( p_6, ButtonBackground ); |
| 747 |
UxPutFillOnArm( p_6, "true" ); |
| 748 |
UxPutRecomputeSize( p_6, "true" ); |
| 749 |
UxPutHeight( p_6, 30 ); |
| 750 |
UxPutWidth( p_6, 90 ); |
| 751 |
UxPutY( p_6, 230 ); |
| 752 |
UxPutX( p_6, 460 ); |
| 753 |
|
| 754 |
UxPutLabelString( label18, "Output Table" ); |
| 755 |
UxPutFontList( label18, BoldTextFont ); |
| 756 |
UxPutBackground( label18, WindowBackground ); |
| 757 |
UxPutHeight( label18, 50 ); |
| 758 |
UxPutWidth( label18, 200 ); |
| 759 |
UxPutY( label18, 300 ); |
| 760 |
UxPutX( label18, 170 ); |
| 761 |
|
| 762 |
UxPutBackground( text4, TextBackground ); |
| 763 |
UxPutHeight( text4, 40 ); |
| 764 |
UxPutWidth( text4, 210 ); |
| 765 |
UxPutY( text4, 320 ); |
| 766 |
UxPutX( text4, 230 ); |
| 767 |
|
| 768 |
UxPutBackground( text5, SHelpBackground ); |
| 769 |
UxPutHeight( text5, 40 ); |
| 770 |
UxPutWidth( text5, 570 ); |
| 771 |
UxPutY( text5, 450 ); |
| 772 |
UxPutX( text5, 10 ); |
| 773 |
|
| 774 |
UxPutLabelString( pushButton1, "Apply" ); |
| 775 |
UxPutForeground( pushButton1, ButtonForeground ); |
| 776 |
UxPutFontList( pushButton1, BoldTextFont ); |
| 777 |
UxPutBackground( pushButton1, ButtonBackground ); |
| 778 |
UxPutHeight( pushButton1, 40 ); |
| 779 |
UxPutWidth( pushButton1, 90 ); |
| 780 |
UxPutY( pushButton1, 460 ); |
| 781 |
UxPutX( pushButton1, 170 ); |
| 782 |
|
| 783 |
UxPutLabelString( pushButton7, "Cancel" ); |
| 784 |
UxPutForeground( pushButton7, ButtonForeground ); |
| 785 |
UxPutFontList( pushButton7, BoldTextFont ); |
| 786 |
UxPutBackground( pushButton7, ButtonBackground ); |
| 787 |
UxPutHeight( pushButton7, 40 ); |
| 788 |
UxPutWidth( pushButton7, 90 ); |
| 789 |
UxPutY( pushButton7, 470 ); |
| 790 |
UxPutX( pushButton7, 180 ); |
| 791 |
|
| 792 |
UxPutAlignment( label20, "alignment_beginning" ); |
| 793 |
UxPutLabelType( label20, "string" ); |
| 794 |
UxPutLabelString( label20, "Exposure Type No of Exposures Rule Table" ); |
| 795 |
UxPutFontList( label20, BoldTextFont ); |
| 796 |
UxPutBackground( label20, WindowBackground ); |
| 797 |
UxPutHeight( label20, 50 ); |
| 798 |
UxPutWidth( label20, 550 ); |
| 799 |
UxPutY( label20, 350 ); |
| 800 |
UxPutX( label20, 40 ); |
| 801 |
|
| 802 |
} |
| 803 |
|
| 804 |
/******************************************************************************* |
| 805 |
The 'build_' function creates all the swidgets and X widgets, |
| 806 |
and sets their properties to the values specified in the |
| 807 |
Property Editor. |
| 808 |
*******************************************************************************/ |
| 809 |
|
| 810 |
static swidget _Uxbuild_Association() |
| 811 |
{ |
| 812 |
/* Create the swidgets */ |
| 813 |
|
| 814 |
Association = UxCreateTransientShell( "Association", NO_PARENT ); |
| 815 |
UxPutContext( Association, UxAssociationContext ); |
| 816 |
|
| 817 |
form5 = UxCreateForm( "form5", Association ); |
| 818 |
scrolledWindow5 = UxCreateScrolledWindow( "scrolledWindow5", form5 ); |
| 819 |
rowColumn2 = UxCreateRowColumn( "rowColumn2", scrolledWindow5 ); |
| 820 |
t_1 = UxCreateToggleButton( "t_1", rowColumn2 ); |
| 821 |
t1_1 = UxCreateText( "t1_1", rowColumn2 ); |
| 822 |
t2_1 = UxCreateText( "t2_1", rowColumn2 ); |
| 823 |
t_2 = UxCreateToggleButton( "t_2", rowColumn2 ); |
| 824 |
t_3 = UxCreateToggleButton( "t_3", rowColumn2 ); |
| 825 |
t_4 = UxCreateToggleButton( "t_4", rowColumn2 ); |
| 826 |
t_5 = UxCreateToggleButton( "t_5", rowColumn2 ); |
| 827 |
t_6 = UxCreateToggleButton( "t_6", rowColumn2 ); |
| 828 |
t1_2 = UxCreateText( "t1_2", rowColumn2 ); |
| 829 |
t1_3 = UxCreateText( "t1_3", rowColumn2 ); |
| 830 |
t1_4 = UxCreateText( "t1_4", rowColumn2 ); |
| 831 |
t1_5 = UxCreateText( "t1_5", rowColumn2 ); |
| 832 |
t1_6 = UxCreateText( "t1_6", rowColumn2 ); |
| 833 |
t2_2 = UxCreateText( "t2_2", rowColumn2 ); |
| 834 |
t2_3 = UxCreateText( "t2_3", rowColumn2 ); |
| 835 |
t2_4 = UxCreateText( "t2_4", rowColumn2 ); |
| 836 |
t2_5 = UxCreateText( "t2_5", rowColumn2 ); |
| 837 |
t3_1 = UxCreateText( "t3_1", rowColumn2 ); |
| 838 |
p_1 = UxCreatePushButton( "p_1", rowColumn2 ); |
| 839 |
p_2 = UxCreatePushButton( "p_2", rowColumn2 ); |
| 840 |
t2_6 = UxCreateText( "t2_6", rowColumn2 ); |
| 841 |
t3_2 = UxCreateText( "t3_2", rowColumn2 ); |
| 842 |
t3_3 = UxCreateText( "t3_3", rowColumn2 ); |
| 843 |
t3_4 = UxCreateText( "t3_4", rowColumn2 ); |
| 844 |
t3_5 = UxCreateText( "t3_5", rowColumn2 ); |
| 845 |
t3_6 = UxCreateText( "t3_6", rowColumn2 ); |
| 846 |
p_3 = UxCreatePushButton( "p_3", rowColumn2 ); |
| 847 |
p_4 = UxCreatePushButton( "p_4", rowColumn2 ); |
| 848 |
p_5 = UxCreatePushButton( "p_5", rowColumn2 ); |
| 849 |
p_6 = UxCreatePushButton( "p_6", rowColumn2 ); |
| 850 |
label18 = UxCreateLabel( "label18", form5 ); |
| 851 |
text4 = UxCreateText( "text4", form5 ); |
| 852 |
text5 = UxCreateText( "text5", form5 ); |
| 853 |
pushButton1 = UxCreatePushButton( "pushButton1", form5 ); |
| 854 |
pushButton7 = UxCreatePushButton( "pushButton7", form5 ); |
| 855 |
label20 = UxCreateLabel( "label20", form5 ); |
| 856 |
|
| 857 |
_Uxinit_Association(); |
| 858 |
|
| 859 |
/* Create the X widgets */ |
| 860 |
|
| 861 |
UxCreateWidget( Association ); |
| 862 |
UxCreateWidget( form5 ); |
| 863 |
UxPutRightOffset( scrolledWindow5, 35 ); |
| 864 |
UxPutRightAttachment( scrolledWindow5, "attach_form" ); |
| 865 |
UxPutLeftOffset( scrolledWindow5, 35 ); |
| 866 |
UxPutLeftAttachment( scrolledWindow5, "attach_form" ); |
| 867 |
UxPutTopOffset( scrolledWindow5, 80 ); |
| 868 |
UxPutTopAttachment( scrolledWindow5, "attach_form" ); |
| 869 |
UxCreateWidget( scrolledWindow5 ); |
| 870 |
|
| 871 |
UxCreateWidget( rowColumn2 ); |
| 872 |
UxCreateWidget( t_1 ); |
| 873 |
UxCreateWidget( t1_1 ); |
| 874 |
UxCreateWidget( t2_1 ); |
| 875 |
UxCreateWidget( t_2 ); |
| 876 |
UxCreateWidget( t_3 ); |
| 877 |
UxCreateWidget( t_4 ); |
| 878 |
UxCreateWidget( t_5 ); |
| 879 |
UxCreateWidget( t_6 ); |
| 880 |
UxCreateWidget( t1_2 ); |
| 881 |
UxCreateWidget( t1_3 ); |
| 882 |
UxCreateWidget( t1_4 ); |
| 883 |
UxCreateWidget( t1_5 ); |
| 884 |
UxCreateWidget( t1_6 ); |
| 885 |
UxCreateWidget( t2_2 ); |
| 886 |
UxCreateWidget( t2_3 ); |
| 887 |
UxCreateWidget( t2_4 ); |
| 888 |
UxCreateWidget( t2_5 ); |
| 889 |
UxCreateWidget( t3_1 ); |
| 890 |
UxCreateWidget( p_1 ); |
| 891 |
UxCreateWidget( p_2 ); |
| 892 |
UxCreateWidget( t2_6 ); |
| 893 |
UxCreateWidget( t3_2 ); |
| 894 |
UxCreateWidget( t3_3 ); |
| 895 |
UxCreateWidget( t3_4 ); |
| 896 |
UxCreateWidget( t3_5 ); |
| 897 |
UxCreateWidget( t3_6 ); |
| 898 |
UxCreateWidget( p_3 ); |
| 899 |
UxCreateWidget( p_4 ); |
| 900 |
UxCreateWidget( p_5 ); |
| 901 |
UxCreateWidget( p_6 ); |
| 902 |
UxPutLeftAttachment( label18, "attach_form" ); |
| 903 |
UxPutLeftOffset( label18, 30 ); |
| 904 |
UxPutTopOffset( label18, 340 ); |
| 905 |
UxPutTopAttachment( label18, "attach_form" ); |
| 906 |
UxCreateWidget( label18 ); |
| 907 |
|
| 908 |
UxPutLeftOffset( text4, 260 ); |
| 909 |
UxPutTopOffset( text4, 345 ); |
| 910 |
UxPutTopAttachment( text4, "attach_form" ); |
| 911 |
UxCreateWidget( text4 ); |
| 912 |
|
| 913 |
UxPutTopOffset( text5, 400 ); |
| 914 |
UxPutTopAttachment( text5, "attach_form" ); |
| 915 |
UxPutLeftAttachment( text5, "attach_form" ); |
| 916 |
UxPutLeftOffset( text5, 5 ); |
| 917 |
UxPutRightOffset( text5, 5 ); |
| 918 |
UxPutRightAttachment( text5, "attach_form" ); |
| 919 |
UxCreateWidget( text5 ); |
| 920 |
|
| 921 |
UxPutLeftOffset( pushButton1, 100 ); |
| 922 |
UxPutLeftAttachment( pushButton1, "attach_form" ); |
| 923 |
UxPutBottomOffset( pushButton1, 30 ); |
| 924 |
UxPutBottomAttachment( pushButton1, "attach_form" ); |
| 925 |
UxCreateWidget( pushButton1 ); |
| 926 |
|
| 927 |
UxPutRightAttachment( pushButton7, "attach_form" ); |
| 928 |
UxPutRightOffset( pushButton7, 100 ); |
| 929 |
UxPutBottomOffset( pushButton7, 30 ); |
| 930 |
UxPutBottomAttachment( pushButton7, "attach_form" ); |
| 931 |
UxCreateWidget( pushButton7 ); |
| 932 |
|
| 933 |
UxPutLeftOffset( label20, 60 ); |
| 934 |
UxPutLeftAttachment( label20, "attach_form" ); |
| 935 |
UxPutTopOffset( label20, 20 ); |
| 936 |
UxPutTopAttachment( label20, "attach_form" ); |
| 937 |
UxCreateWidget( label20 ); |
| 938 |
|
| 939 |
|
| 940 |
UxAddCallback( p_1, XmNactivateCallback, |
| 941 |
activateCB_p_1, |
| 942 |
(XtPointer) UxAssociationContext ); |
| 943 |
|
| 944 |
UxAddCallback( p_2, XmNactivateCallback, |
| 945 |
activateCB_p_2, |
| 946 |
(XtPointer) UxAssociationContext ); |
| 947 |
|
| 948 |
UxAddCallback( p_3, XmNactivateCallback, |
| 949 |
activateCB_p_3, |
| 950 |
(XtPointer) UxAssociationContext ); |
| 951 |
|
| 952 |
UxAddCallback( p_4, XmNactivateCallback, |
| 953 |
activateCB_p_4, |
| 954 |
(XtPointer) UxAssociationContext ); |
| 955 |
|
| 956 |
UxAddCallback( p_5, XmNactivateCallback, |
| 957 |
activateCB_p_5, |
| 958 |
(XtPointer) UxAssociationContext ); |
| 959 |
|
| 960 |
UxAddCallback( p_6, XmNactivateCallback, |
| 961 |
activateCB_p_6, |
| 962 |
(XtPointer) UxAssociationContext ); |
| 963 |
|
| 964 |
UxAddCallback( pushButton1, XmNactivateCallback, |
| 965 |
activateCB_pushButton1, |
| 966 |
(XtPointer) UxAssociationContext ); |
| 967 |
|
| 968 |
UxAddCallback( pushButton7, XmNactivateCallback, |
| 969 |
activateCB_pushButton7, |
| 970 |
(XtPointer) UxAssociationContext ); |
| 971 |
|
| 972 |
|
| 973 |
/* Finally, call UxRealizeInterface to create the X windows |
| 974 |
for the widgets created above. */ |
| 975 |
|
| 976 |
UxRealizeInterface( Association ); |
| 977 |
|
| 978 |
return ( Association ); |
| 979 |
} |
| 980 |
|
| 981 |
/******************************************************************************* |
| 982 |
The following function includes the code that was entered |
| 983 |
in the 'Initial Code' and 'Final Code' sections of the |
| 984 |
Declarations Editor. This function is called from the |
| 985 |
'Interface function' below. |
| 986 |
*******************************************************************************/ |
| 987 |
|
| 988 |
static swidget _Ux_create_Association() |
| 989 |
{ |
| 990 |
swidget rtrn; |
| 991 |
_UxCAssociation *UxContext; |
| 992 |
|
| 993 |
UxAssociationContext = UxContext = |
| 994 |
(_UxCAssociation *) UxMalloc( sizeof(_UxCAssociation) ); |
| 995 |
|
| 996 |
rtrn = _Uxbuild_Association(); |
| 997 |
|
| 998 |
return(rtrn); |
| 999 |
} |
| 1000 |
|
| 1001 |
/******************************************************************************* |
| 1002 |
The following is the 'Interface function' which is the |
| 1003 |
external entry point for creating this interface. |
| 1004 |
This function should be called from your application or from |
| 1005 |
a callback function. |
| 1006 |
*******************************************************************************/ |
| 1007 |
|
| 1008 |
swidget create_Association() |
| 1009 |
{ |
| 1010 |
swidget _Uxrtrn; |
| 1011 |
|
| 1012 |
_Uxrtrn = _Ux_create_Association(); |
| 1013 |
|
| 1014 |
return ( _Uxrtrn ); |
| 1015 |
} |
| 1016 |
|
| 1017 |
/******************************************************************************* |
| 1018 |
END OF FILE |
| 1019 |
*******************************************************************************/ |
| 1020 |
|