| 1 |
! UIMX ascii 2.0 key: 5545 |
| 2 |
*action.HelpACT: {\ |
| 3 |
/* char *s;\ |
| 4 |
s = XmTextGetSelection(UxWidget); \ |
| 5 |
\ |
| 6 |
XmTextClearSelection(UxWidget,XtLastTimestampProcessed(UxDisplay));\ |
| 7 |
*/} |
| 8 |
*action.WriteHelp: {\ |
| 9 |
char s[100],comm[160] ;\ |
| 10 |
extern char print_com[];\ |
| 11 |
Widget sw = UxWidget;\ |
| 12 |
\ |
| 13 |
strcpy(s,"");\ |
| 14 |
/*sprintf(comm,"WRITE/OUT here");\ |
| 15 |
AppendDialogText(comm);*/\ |
| 16 |
\ |
| 17 |
if (sw == UxGetWidget(UxFindSwidget("ColButton"))) {\ |
| 18 |
strcpy(s,"Select the OST columns to be displayed into the scrolled window");\ |
| 19 |
UxPutText(UxFindSwidget("SHelp") ,s); \ |
| 20 |
} \ |
| 21 |
else if (sw == UxGetWidget(UxFindSwidget("ClassiButton"))) {\ |
| 22 |
strcpy(s,"Activate interface for defining classification rules ");\ |
| 23 |
UxPutText(UxFindSwidget("SHelp") ,s); \ |
| 24 |
} \ |
| 25 |
else if (sw == UxGetWidget(UxFindSwidget("AssoButton"))) {\ |
| 26 |
strcpy(s,"Activate interface for classifying images");\ |
| 27 |
UxPutText(UxFindSwidget("SHelp") ,s); \ |
| 28 |
}\ |
| 29 |
else if (sw == UxGetWidget(UxFindSwidget("AssoButton1"))) {\ |
| 30 |
strcpy(s,"Activate interface for associating calibration exposures to scientific frames");\ |
| 31 |
UxPutText(UxFindSwidget("SHelp") ,s); \ |
| 32 |
}\ |
| 33 |
else if (sw == UxGetWidget(UxFindSwidget("NewsButton3"))) {\ |
| 34 |
strcpy(s,"Create the OST table");\ |
| 35 |
UxPutText(UxFindSwidget("SHelp3") ,s); \ |
| 36 |
}\ |
| 37 |
else if (sw == UxGetWidget(UxFindSwidget("PrintButton3"))) {\ |
| 38 |
strcpy(s,"Popdown this interface");\ |
| 39 |
UxPutText(UxFindSwidget("SHelp3") ,s); \ |
| 40 |
}\ |
| 41 |
else if (sw == UxGetWidget(UxFindSwidget("ost_t1"))){ \ |
| 42 |
strcpy(s,"Name of the Observation Summary Table to be created ");\ |
| 43 |
UxPutText(UxFindSwidget("SHelp3") ,s); \ |
| 44 |
}\ |
| 45 |
else if (sw == UxGetWidget(UxFindSwidget("ost_t2"))){ \ |
| 46 |
strcpy(s,"List of frames to be processed ");\ |
| 47 |
UxPutText(UxFindSwidget("SHelp3") ,s); \ |
| 48 |
} \ |
| 49 |
else if (sw == UxGetWidget(UxFindSwidget("ost_t3"))){ \ |
| 50 |
strcpy(s,"Name of the table containing the list of relevant Midas descriptors"); \ |
| 51 |
UxPutText(UxFindSwidget("SHelp3") ,s); \ |
| 52 |
}\ |
| 53 |
else if (sw == UxGetWidget(UxFindSwidget("pushButton4"))){ \ |
| 54 |
strcpy(s,"Push button to popup the File Selection Box"); \ |
| 55 |
UxPutText(UxFindSwidget("SHelp3") ,s); \ |
| 56 |
}\ |
| 57 |
else if (sw == UxGetWidget(UxFindSwidget("pushButton5"))){ \ |
| 58 |
strcpy(s,"Push button to popup the File Selection Box"); \ |
| 59 |
UxPutText(UxFindSwidget("SHelp3") ,s); \ |
| 60 |
} \ |
| 61 |
} |
| 62 |
*action.ClearHelp: {\ |
| 63 |
UxPutText(UxFindSwidget("SHelp"),"");\ |
| 64 |
} |
| 65 |
*action.SelectCommand: {\ |
| 66 |
\ |
| 67 |
\ |
| 68 |
\ |
| 69 |
} |
| 70 |
*action.nothing: {\ |
| 71 |
printf("toto:\n");\ |
| 72 |
} |
| 73 |
|
| 74 |
*translation.table: transTable3 |
| 75 |
*translation.parent: applicationClas |
| 76 |
*translation.policy: replace |
| 77 |
*translation.<Btn1Up>: HelpACT() |
| 78 |
*translation.<Btn1Down>: grab-focus() |
| 79 |
*translation.<EnterWindow>: WriteHelp() |
| 80 |
*translation.<LeaveWindow>: ClearHelp() |
| 81 |
|
| 82 |
*translation.table: transTable4 |
| 83 |
*translation.parent: applicationClas |
| 84 |
*translation.policy: override |
| 85 |
*translation.<Btn1Up> : SelectCommand() |
| 86 |
|
| 87 |
*translation.table: transTable5 |
| 88 |
*translation.parent: applicationClas |
| 89 |
*translation.policy: override |
| 90 |
*translation.<PtrMoved>: nothing() |
| 91 |
|
| 92 |
*applicationClas.class: applicationShell |
| 93 |
*applicationClas.parent: NO_PARENT |
| 94 |
*applicationClas.static: true |
| 95 |
*applicationClas.gbldecl: #include <stdio.h>\ |
| 96 |
#include <ExternResources.h>\ |
| 97 |
#include <Xm/LabelG.h>\ |
| 98 |
#include <midas_def.h>\ |
| 99 |
#include <tbldef.h>\ |
| 100 |
char *osmmget();\ |
| 101 |
char *rowlab[256]; |
| 102 |
*applicationClas.ispecdecl: |
| 103 |
*applicationClas.funcdecl: swidget create_applicationClas()\ |
| 104 |
|
| 105 |
*applicationClas.funcname: create_applicationClas |
| 106 |
*applicationClas.funcdef: "swidget", "<create_applicationClas>(%)" |
| 107 |
*applicationClas.icode: |
| 108 |
*applicationClas.fcode: return(rtrn);\ |
| 109 |
|
| 110 |
*applicationClas.auxdecl: |
| 111 |
*applicationClas.name: applicationClas |
| 112 |
*applicationClas.x: 690 |
| 113 |
*applicationClas.y: 260 |
| 114 |
*applicationClas.width: 370 |
| 115 |
*applicationClas.height: 670 |
| 116 |
*applicationClas.title: "Classification Rules" |
| 117 |
|
| 118 |
*mainWindow1.class: mainWindow |
| 119 |
*mainWindow1.parent: applicationClas |
| 120 |
*mainWindow1.static: true |
| 121 |
*mainWindow1.name: mainWindow1 |
| 122 |
*mainWindow1.x: 200 |
| 123 |
*mainWindow1.y: 180 |
| 124 |
*mainWindow1.width: 700 |
| 125 |
*mainWindow1.height: 470 |
| 126 |
*mainWindow1.background: WindowBackground |
| 127 |
*mainWindow1.unitType: "pixels" |
| 128 |
|
| 129 |
*pullDownMenu1.class: rowColumn |
| 130 |
*pullDownMenu1.parent: mainWindow1 |
| 131 |
*pullDownMenu1.static: true |
| 132 |
*pullDownMenu1.name: pullDownMenu1 |
| 133 |
*pullDownMenu1.borderWidth: 0 |
| 134 |
*pullDownMenu1.menuHelpWidget: "pullDownMenu_top_b2" |
| 135 |
*pullDownMenu1.rowColumnType: "menu_bar" |
| 136 |
*pullDownMenu1.menuAccelerator: "<KeyUp>F10" |
| 137 |
*pullDownMenu1.background: MenuBackground |
| 138 |
*pullDownMenu1.foreground: MenuForeground |
| 139 |
|
| 140 |
*quitPane1.class: rowColumn |
| 141 |
*quitPane1.parent: pullDownMenu1 |
| 142 |
*quitPane1.static: true |
| 143 |
*quitPane1.name: quitPane1 |
| 144 |
*quitPane1.rowColumnType: "menu_pulldown" |
| 145 |
*quitPane1.background: MenuBackground |
| 146 |
*quitPane1.foreground: MenuForeground |
| 147 |
|
| 148 |
*quitPane_b1.class: pushButtonGadget |
| 149 |
*quitPane_b1.parent: quitPane1 |
| 150 |
*quitPane_b1.static: true |
| 151 |
*quitPane_b1.name: quitPane_b1 |
| 152 |
*quitPane_b1.labelString: "Bye" |
| 153 |
*quitPane_b1.activateCallback: {\ |
| 154 |
extern swidget classi,ilist;\ |
| 155 |
UxPopdownInterface(ilist); \ |
| 156 |
UxPopdownInterface(classi);\ |
| 157 |
} |
| 158 |
*quitPane_b1.fontList: BoldTextFont |
| 159 |
|
| 160 |
*UtilsPane1.class: rowColumn |
| 161 |
*UtilsPane1.parent: pullDownMenu1 |
| 162 |
*UtilsPane1.static: true |
| 163 |
*UtilsPane1.name: UtilsPane1 |
| 164 |
*UtilsPane1.rowColumnType: "menu_pulldown" |
| 165 |
*UtilsPane1.background: MenuBackground |
| 166 |
*UtilsPane1.foreground: MenuForeground |
| 167 |
|
| 168 |
*UtilsPane_b1.class: pushButtonGadget |
| 169 |
*UtilsPane_b1.parent: UtilsPane1 |
| 170 |
*UtilsPane_b1.static: true |
| 171 |
*UtilsPane_b1.name: UtilsPane_b1 |
| 172 |
*UtilsPane_b1.labelString: "Import " |
| 173 |
*UtilsPane_b1.fontList: BoldTextFont |
| 174 |
*UtilsPane_b1.activateCallback: {\ |
| 175 |
extern int tidost;\ |
| 176 |
extern char ostchoice[60]; \ |
| 177 |
char command[160];\ |
| 178 |
sprintf(command,"COPY/dd template.bdf *,3 %s",ostchoice);\ |
| 179 |
AppendDialogText(command);\ |
| 180 |
} |
| 181 |
|
| 182 |
*UtilsPane_b2.class: pushButtonGadget |
| 183 |
*UtilsPane_b2.parent: UtilsPane1 |
| 184 |
*UtilsPane_b2.static: true |
| 185 |
*UtilsPane_b2.name: UtilsPane_b2 |
| 186 |
*UtilsPane_b2.labelString: "Save" |
| 187 |
*UtilsPane_b2.fontList: BoldTextFont |
| 188 |
*UtilsPane_b2.activateCallback: {\ |
| 189 |
extern int tidost,msgvalue;\ |
| 190 |
extern Widget rowrule[256][2];\ |
| 191 |
extern swidget mymsg,myerror;\ |
| 192 |
extern char ostchoice[60],commerr[180];\ |
| 193 |
char descr[16],command[180],type[2],selecrit[256];\ |
| 194 |
char temp[256],mytext[256],mylabel[TBL_LABLEN+2];\ |
| 195 |
int bytelem,noelem,ncol,dummy,i,tidtemp,coltemp;\ |
| 196 |
strcpy(descr,UxGetText(UxFindSwidget("clas_t1")));\ |
| 197 |
if (descr[0] == '\0') {\ |
| 198 |
UxPutMessageString(UxFindSwidget("errorDialog1"),"No rule name specified");\ |
| 199 |
UxPopupInterface(myerror,no_grab);\ |
| 200 |
return;\ |
| 201 |
}\ |
| 202 |
SCDFND(tidost,descr,type,&noelem,&bytelem);\ |
| 203 |
strcpy(selecrit,UxGetText(UxFindSwidget("criteria"))); \ |
| 204 |
if (selecrit[0] == '\0') {\ |
| 205 |
\ |
| 206 |
TCIGET(tidost,&ncol,&dummy,&dummy,&dummy,&dummy);\ |
| 207 |
oscfill(selecrit,256,'\0');\ |
| 208 |
for (i=1; i<=ncol; i++) {\ |
| 209 |
strcpy(mytext, XmTextGetString(rowrule[i-1][1])); \ |
| 210 |
if (*mytext) {\ |
| 211 |
mylabel[0] = ':'; \ |
| 212 |
TCLGET(tidost,i,mylabel+1);\ |
| 213 |
if (selecrit[0] != '\0') strcat(selecrit,".AND.");\ |
| 214 |
decrypt1(mylabel,mytext,selecrit,temp);\ |
| 215 |
}\ |
| 216 |
}\ |
| 217 |
}\ |
| 218 |
sprintf( command," @s saverule %s %s TMP_RULE ",ostchoice ,descr );\ |
| 219 |
\ |
| 220 |
TCTINI("TMP_RULE" ,F_IO_MODE,F_TRANS,1,2,&tidtemp);\ |
| 221 |
TCCINI(tidtemp,D_C_FORMAT,strlen(selecrit),"A20"," ","VAL",&coltemp);\ |
| 222 |
TCEWRC(tidtemp, 1,coltemp,selecrit);\ |
| 223 |
TCTCLO(tidtemp);\ |
| 224 |
if (type[0] == ' ') AppendDialogText(command);\ |
| 225 |
\ |
| 226 |
else \ |
| 227 |
{\ |
| 228 |
msgvalue = 1; \ |
| 229 |
sprintf(commerr," @s saverule %s %s TMP_RULE ",ostchoice ,descr );\ |
| 230 |
UxPutMessageString( UxFindSwidget("Warning"),"The rule already exists, do you want to overwrite it?");\ |
| 231 |
UxPopupInterface(mymsg,exclusive_grab);\ |
| 232 |
}\ |
| 233 |
}\ |
| 234 |
\ |
| 235 |
\ |
| 236 |
|
| 237 |
|
| 238 |
*pullDownMenu1_p3.class: rowColumn |
| 239 |
*pullDownMenu1_p3.parent: pullDownMenu1 |
| 240 |
*pullDownMenu1_p3.static: true |
| 241 |
*pullDownMenu1_p3.name: pullDownMenu1_p3 |
| 242 |
*pullDownMenu1_p3.rowColumnType: "menu_pulldown" |
| 243 |
*pullDownMenu1_p3.background: MenuBackground |
| 244 |
*pullDownMenu1_p3.foreground: MenuForeground |
| 245 |
|
| 246 |
*pullDownMenu1_p3_b1.class: pushButtonGadget |
| 247 |
*pullDownMenu1_p3_b1.parent: pullDownMenu1_p3 |
| 248 |
*pullDownMenu1_p3_b1.static: true |
| 249 |
*pullDownMenu1_p3_b1.name: pullDownMenu1_p3_b1 |
| 250 |
*pullDownMenu1_p3_b1.labelString: "Editor..." |
| 251 |
*pullDownMenu1_p3_b1.fontList: BoldTextFont |
| 252 |
*pullDownMenu1_p3_b1.activateCallback: {\ |
| 253 |
extern swidget ilist;\ |
| 254 |
extern int doI;\ |
| 255 |
UxPutListLabelString(UxFindSwidget("SelectInstrument"),"Rule");\ |
| 256 |
UxPutDialogTitle(UxFindSwidget("SelectInstrument"),"Select Rule");\ |
| 257 |
doI = 1;\ |
| 258 |
read_descr(UxGetWidget(UxFindSwidget("SelectInstrument")));\ |
| 259 |
\ |
| 260 |
\ |
| 261 |
UxPopupInterface(ilist,no_grab);} |
| 262 |
|
| 263 |
*pullDownMenu1_p3_b2.class: pushButtonGadget |
| 264 |
*pullDownMenu1_p3_b2.parent: pullDownMenu1_p3 |
| 265 |
*pullDownMenu1_p3_b2.static: true |
| 266 |
*pullDownMenu1_p3_b2.name: pullDownMenu1_p3_b2 |
| 267 |
*pullDownMenu1_p3_b2.labelString: "Delete" |
| 268 |
*pullDownMenu1_p3_b2.fontList: BoldTextFont |
| 269 |
*pullDownMenu1_p3_b2.sensitive: "false" |
| 270 |
*pullDownMenu1_p3_b2.activateCallback.source: public |
| 271 |
*pullDownMenu1_p3_b2.activateCallback: |
| 272 |
|
| 273 |
*pullDownMenu1_p4.class: rowColumn |
| 274 |
*pullDownMenu1_p4.parent: pullDownMenu1 |
| 275 |
*pullDownMenu1_p4.static: true |
| 276 |
*pullDownMenu1_p4.name: pullDownMenu1_p4 |
| 277 |
*pullDownMenu1_p4.rowColumnType: "menu_pulldown" |
| 278 |
*pullDownMenu1_p4.background: MenuBackground |
| 279 |
*pullDownMenu1_p4.foreground: MenuForeground |
| 280 |
|
| 281 |
*pullDownMenu1_p4_b1.class: pushButtonGadget |
| 282 |
*pullDownMenu1_p4_b1.parent: pullDownMenu1_p4 |
| 283 |
*pullDownMenu1_p4_b1.static: true |
| 284 |
*pullDownMenu1_p4_b1.name: pullDownMenu1_p4_b1 |
| 285 |
*pullDownMenu1_p4_b1.labelString: "On this interface..." |
| 286 |
*pullDownMenu1_p4_b1.activateCallback: {\ |
| 287 |
extern swidget help;\ |
| 288 |
display_help(help,"Rule.help");\ |
| 289 |
} |
| 290 |
*pullDownMenu1_p4_b1.fontList: BoldTextFont |
| 291 |
|
| 292 |
*pullDownMenu1_p4_b2.class: pushButtonGadget |
| 293 |
*pullDownMenu1_p4_b2.parent: pullDownMenu1_p4 |
| 294 |
*pullDownMenu1_p4_b2.static: true |
| 295 |
*pullDownMenu1_p4_b2.name: pullDownMenu1_p4_b2 |
| 296 |
*pullDownMenu1_p4_b2.labelString: "On NTT defaults..." |
| 297 |
*pullDownMenu1_p4_b2.fontList: BoldTextFont |
| 298 |
*pullDownMenu1_p4_b2.activateCallback: {\ |
| 299 |
extern swidget help;\ |
| 300 |
display_help(help,"Rule_default.help");\ |
| 301 |
} |
| 302 |
|
| 303 |
*pullDownMenu_top_b2.class: cascadeButton |
| 304 |
*pullDownMenu_top_b2.parent: pullDownMenu1 |
| 305 |
*pullDownMenu_top_b2.static: true |
| 306 |
*pullDownMenu_top_b2.name: pullDownMenu_top_b2 |
| 307 |
*pullDownMenu_top_b2.labelString: "Quit" |
| 308 |
*pullDownMenu_top_b2.mnemonic: "Q" |
| 309 |
*pullDownMenu_top_b2.subMenuId: "quitPane1" |
| 310 |
*pullDownMenu_top_b2.background: MenuBackground |
| 311 |
*pullDownMenu_top_b2.fontList: BoldTextFont |
| 312 |
*pullDownMenu_top_b2.foreground: MenuForeground |
| 313 |
|
| 314 |
*commandsCascade1.class: cascadeButton |
| 315 |
*commandsCascade1.parent: pullDownMenu1 |
| 316 |
*commandsCascade1.static: true |
| 317 |
*commandsCascade1.name: commandsCascade1 |
| 318 |
*commandsCascade1.labelString: "Rule" |
| 319 |
*commandsCascade1.subMenuId: "UtilsPane1" |
| 320 |
*commandsCascade1.background: MenuBackground |
| 321 |
*commandsCascade1.fontList: BoldTextFont |
| 322 |
*commandsCascade1.foreground: MenuForeground |
| 323 |
*commandsCascade1.mnemonic: "R" |
| 324 |
*commandsCascade1.x: 101 |
| 325 |
|
| 326 |
*pullDownMenu1_top_b1.class: cascadeButton |
| 327 |
*pullDownMenu1_top_b1.parent: pullDownMenu1 |
| 328 |
*pullDownMenu1_top_b1.static: true |
| 329 |
*pullDownMenu1_top_b1.name: pullDownMenu1_top_b1 |
| 330 |
*pullDownMenu1_top_b1.labelString: "Edit" |
| 331 |
*pullDownMenu1_top_b1.mnemonic: "E" |
| 332 |
*pullDownMenu1_top_b1.subMenuId: "pullDownMenu1_p3" |
| 333 |
*pullDownMenu1_top_b1.background: MenuBackground |
| 334 |
*pullDownMenu1_top_b1.fontList: BoldTextFont |
| 335 |
*pullDownMenu1_top_b1.foreground: MenuForeground |
| 336 |
|
| 337 |
*pullDownMenu1_top_b4.class: cascadeButton |
| 338 |
*pullDownMenu1_top_b4.parent: pullDownMenu1 |
| 339 |
*pullDownMenu1_top_b4.static: true |
| 340 |
*pullDownMenu1_top_b4.name: pullDownMenu1_top_b4 |
| 341 |
*pullDownMenu1_top_b4.labelString: "Help" |
| 342 |
*pullDownMenu1_top_b4.mnemonic: "H" |
| 343 |
*pullDownMenu1_top_b4.subMenuId: "pullDownMenu1_p4" |
| 344 |
*pullDownMenu1_top_b4.background: MenuBackground |
| 345 |
*pullDownMenu1_top_b4.fontList: BoldTextFont |
| 346 |
*pullDownMenu1_top_b4.foreground: MenuForeground |
| 347 |
|
| 348 |
*workAreaForm1.class: form |
| 349 |
*workAreaForm1.parent: mainWindow1 |
| 350 |
*workAreaForm1.static: true |
| 351 |
*workAreaForm1.name: workAreaForm1 |
| 352 |
*workAreaForm1.width: 490 |
| 353 |
*workAreaForm1.height: 440 |
| 354 |
*workAreaForm1.borderWidth: 0 |
| 355 |
*workAreaForm1.background: WindowBackground |
| 356 |
|
| 357 |
*form6.class: form |
| 358 |
*form6.parent: workAreaForm1 |
| 359 |
*form6.static: true |
| 360 |
*form6.name: form6 |
| 361 |
*form6.resizePolicy: "resize_none" |
| 362 |
*form6.unitType: "pixels" |
| 363 |
*form6.x: 10 |
| 364 |
*form6.y: 10 |
| 365 |
*form6.width: 350 |
| 366 |
*form6.height: 610 |
| 367 |
*form6.background: WindowBackground |
| 368 |
|
| 369 |
*scrolledWindow6.class: scrolledWindow |
| 370 |
*scrolledWindow6.parent: form6 |
| 371 |
*scrolledWindow6.static: true |
| 372 |
*scrolledWindow6.name: scrolledWindow6 |
| 373 |
*scrolledWindow6.scrollingPolicy: "automatic" |
| 374 |
*scrolledWindow6.x: 10 |
| 375 |
*scrolledWindow6.y: 30 |
| 376 |
*scrolledWindow6.width: 350 |
| 377 |
*scrolledWindow6.height: 380 |
| 378 |
*scrolledWindow6.background: WindowBackground |
| 379 |
*scrolledWindow6.scrollBarPlacement: "bottom_left" |
| 380 |
*scrolledWindow6.scrollBarDisplayPolicy: "static" |
| 381 |
*scrolledWindow6.leftAttachment: "attach_form" |
| 382 |
*scrolledWindow6.rightAttachment: "attach_form" |
| 383 |
*scrolledWindow6.rightOffset: 10 |
| 384 |
*scrolledWindow6.leftOffset: 10 |
| 385 |
*scrolledWindow6.bottomAttachment: "attach_none" |
| 386 |
*scrolledWindow6.bottomOffset: 70 |
| 387 |
*scrolledWindow6.topOffset: 50 |
| 388 |
*scrolledWindow6.topAttachment: "attach_form" |
| 389 |
|
| 390 |
*rowdescr.class: rowColumn |
| 391 |
*rowdescr.parent: scrolledWindow6 |
| 392 |
*rowdescr.static: true |
| 393 |
*rowdescr.name: rowdescr |
| 394 |
*rowdescr.x: 8 |
| 395 |
*rowdescr.y: 8 |
| 396 |
*rowdescr.width: 350 |
| 397 |
*rowdescr.height: 370 |
| 398 |
*rowdescr.background: WindowBackground |
| 399 |
*rowdescr.entryAlignment: "alignment_center" |
| 400 |
*rowdescr.orientation: "horizontal" |
| 401 |
*rowdescr.packing: "pack_column" |
| 402 |
*rowdescr.createCallback: {\ |
| 403 |
\ |
| 404 |
} |
| 405 |
*rowdescr.numColumns: 2 |
| 406 |
*rowdescr.entryCallback: {\ |
| 407 |
/*XmRowColumnCallbackStruct *cbs;\ |
| 408 |
Widget pb = cbs->widget;\ |
| 409 |
cbs = (XmRowColumnCallbackStruct *)UxCallbackArg;\ |
| 410 |
printf("%s: %s\n",XtName(pb),cbs->data);*/\ |
| 411 |
} |
| 412 |
*rowdescr.resizeWidth: "true" |
| 413 |
|
| 414 |
*label7.class: label |
| 415 |
*label7.parent: form6 |
| 416 |
*label7.static: true |
| 417 |
*label7.name: label7 |
| 418 |
*label7.x: 10 |
| 419 |
*label7.y: 420 |
| 420 |
*label7.width: 240 |
| 421 |
*label7.height: 40 |
| 422 |
*label7.background: WindowBackground |
| 423 |
*label7.fontList: BoldTextFont |
| 424 |
*label7.labelString: "Selection Criteria" |
| 425 |
*label7.alignment: "alignment_beginning" |
| 426 |
*label7.topOffset: 440 |
| 427 |
*label7.topAttachment: "attach_form" |
| 428 |
|
| 429 |
*pushButton13.class: pushButton |
| 430 |
*pushButton13.parent: form6 |
| 431 |
*pushButton13.static: true |
| 432 |
*pushButton13.name: pushButton13 |
| 433 |
*pushButton13.x: 140 |
| 434 |
*pushButton13.y: 530 |
| 435 |
*pushButton13.width: 80 |
| 436 |
*pushButton13.height: 40 |
| 437 |
*pushButton13.background: ButtonBackground |
| 438 |
*pushButton13.fontList: BoldTextFont |
| 439 |
*pushButton13.foreground: ButtonForeground |
| 440 |
*pushButton13.labelString: "Apply" |
| 441 |
*pushButton13.bottomAttachment: "attach_form" |
| 442 |
*pushButton13.bottomOffset: 10 |
| 443 |
*pushButton13.activateCallback: {\ |
| 444 |
extern int tidost;\ |
| 445 |
extern Widget rowrule[256][2];\ |
| 446 |
int ncol,dummy,i,unit,lennew;\ |
| 447 |
char mylabel[TBL_LABLEN+2],*temp,selecrit[256],mytext[256];\ |
| 448 |
TCIGET(tidost,&ncol,&dummy,&dummy,&dummy,&dummy);\ |
| 449 |
temp = osmmget(256);\ |
| 450 |
oscfill(selecrit,256,'\0');\ |
| 451 |
for (i=1; i<=ncol; i++) {\ |
| 452 |
strcpy(mytext, XmTextGetString(rowrule[i-1][1])); \ |
| 453 |
if (*mytext) {\ |
| 454 |
mylabel[0] = ':'; \ |
| 455 |
TCLGET(tidost,i,mylabel+1);\ |
| 456 |
if (selecrit[0] != '\0') strcat(selecrit,".AND.");\ |
| 457 |
decrypt1(mylabel,mytext,selecrit,temp);\ |
| 458 |
lennew = strlen(selecrit);\ |
| 459 |
}\ |
| 460 |
}\ |
| 461 |
UxPutText(UxFindSwidget("criteria"),selecrit);\ |
| 462 |
/*SCDWRC(tidost,"test",1,selecrit,1,lennew,&unit);*/\ |
| 463 |
\ |
| 464 |
} |
| 465 |
*pushButton13.leftAttachment: "attach_form" |
| 466 |
*pushButton13.leftOffset: 40 |
| 467 |
|
| 468 |
*pushButton14.class: pushButton |
| 469 |
*pushButton14.parent: form6 |
| 470 |
*pushButton14.static: true |
| 471 |
*pushButton14.name: pushButton14 |
| 472 |
*pushButton14.x: 250 |
| 473 |
*pushButton14.y: 530 |
| 474 |
*pushButton14.width: 80 |
| 475 |
*pushButton14.height: 40 |
| 476 |
*pushButton14.background: ButtonBackground |
| 477 |
*pushButton14.fontList: BoldTextFont |
| 478 |
*pushButton14.foreground: ButtonForeground |
| 479 |
*pushButton14.labelString: "Clear" |
| 480 |
*pushButton14.leftAttachment: "attach_none" |
| 481 |
*pushButton14.leftOffset: 40 |
| 482 |
*pushButton14.leftWidget: "pushButton13" |
| 483 |
*pushButton14.rightAttachment: "attach_form" |
| 484 |
*pushButton14.rightOffset: 40 |
| 485 |
*pushButton14.bottomAttachment: "attach_form" |
| 486 |
*pushButton14.bottomOffset: 10 |
| 487 |
*pushButton14.activateCallback: {\ |
| 488 |
extern Widget rowrule[256][2];\ |
| 489 |
extern int tidost;\ |
| 490 |
int dummy,i,ncol;\ |
| 491 |
TCIGET(tidost,&ncol,&dummy,&dummy,&dummy,&dummy);\ |
| 492 |
for (i=0; i<ncol; i++) {\ |
| 493 |
XmTextSetString(rowrule[i][1],"");\ |
| 494 |
}\ |
| 495 |
UxPutText(UxFindSwidget("criteria"),"");\ |
| 496 |
} |
| 497 |
|
| 498 |
*label8.class: label |
| 499 |
*label8.parent: form6 |
| 500 |
*label8.static: true |
| 501 |
*label8.name: label8 |
| 502 |
*label8.x: 20 |
| 503 |
*label8.y: 410 |
| 504 |
*label8.width: 100 |
| 505 |
*label8.height: 40 |
| 506 |
*label8.background: WindowBackground |
| 507 |
*label8.fontList: BoldTextFont |
| 508 |
*label8.labelString: "Rule Name" |
| 509 |
*label8.alignment: "alignment_beginning" |
| 510 |
*label8.topAttachment: "attach_form" |
| 511 |
*label8.topOffset: 0 |
| 512 |
*label8.leftOffset: 10 |
| 513 |
*label8.leftAttachment: "attach_form" |
| 514 |
|
| 515 |
*clas_t1.class: text |
| 516 |
*clas_t1.parent: form6 |
| 517 |
*clas_t1.static: true |
| 518 |
*clas_t1.name: clas_t1 |
| 519 |
*clas_t1.x: 20 |
| 520 |
*clas_t1.y: 450 |
| 521 |
*clas_t1.width: 200 |
| 522 |
*clas_t1.height: 40 |
| 523 |
*clas_t1.background: TextBackground |
| 524 |
*clas_t1.topAttachment: "attach_form" |
| 525 |
*clas_t1.topOffset: 0 |
| 526 |
*clas_t1.leftAttachment: "attach_form" |
| 527 |
*clas_t1.leftOffset: 130 |
| 528 |
*clas_t1.fontList: BoldSmallFont |
| 529 |
*clas_t1.foreground: TextForeground |
| 530 |
|
| 531 |
*scrolledWindow7.class: scrolledWindow |
| 532 |
*scrolledWindow7.parent: form6 |
| 533 |
*scrolledWindow7.static: true |
| 534 |
*scrolledWindow7.name: scrolledWindow7 |
| 535 |
*scrolledWindow7.scrollingPolicy: "application_defined" |
| 536 |
*scrolledWindow7.x: 0 |
| 537 |
*scrolledWindow7.y: 490 |
| 538 |
*scrolledWindow7.visualPolicy: "variable" |
| 539 |
*scrolledWindow7.scrollBarDisplayPolicy: "static" |
| 540 |
*scrolledWindow7.shadowThickness: 0 |
| 541 |
*scrolledWindow7.background: WindowBackground |
| 542 |
*scrolledWindow7.height: 60 |
| 543 |
*scrolledWindow7.leftAttachment: "attach_form" |
| 544 |
*scrolledWindow7.leftOffset: 10 |
| 545 |
*scrolledWindow7.rightAttachment: "attach_form" |
| 546 |
*scrolledWindow7.rightOffset: 10 |
| 547 |
*scrolledWindow7.topAttachment: "attach_form" |
| 548 |
*scrolledWindow7.topOffset: 480 |
| 549 |
*scrolledWindow7.scrollBarPlacement: "bottom_left" |
| 550 |
|
| 551 |
*criteria.class: scrolledText |
| 552 |
*criteria.parent: scrolledWindow7 |
| 553 |
*criteria.static: true |
| 554 |
*criteria.name: criteria |
| 555 |
*criteria.width: 350 |
| 556 |
*criteria.height: 60 |
| 557 |
*criteria.background: TextBackground |
| 558 |
*criteria.fontList: BoldTextFont |
| 559 |
*criteria.editable: "true" |
| 560 |
*criteria.valueChangedCallback: {\ |
| 561 |
\ |
| 562 |
} |
| 563 |
*criteria.modifyVerifyCallback: {\ |
| 564 |
XmTextVerifyCallbackStruct *cbs;\ |
| 565 |
int len;\ |
| 566 |
/*cbs = (XmTextVerifyCallbackStruct *)UxCallbackArg;\ |
| 567 |
if (cbs->text->ptr == NULL)\ |
| 568 |
return;\ |
| 569 |
for (len=0; len<cbs->text->length; len++) {\ |
| 570 |
if (isdigit(cbs->text->ptr[len])) {\ |
| 571 |
int i;\ |
| 572 |
for (i=len; (i+1) <cbs->text->length; i++)\ |
| 573 |
cbs->text->ptr[i] = cbs->text->ptr[i+1];\ |
| 574 |
cbs->text->length--;\ |
| 575 |
len--;\ |
| 576 |
}\ |
| 577 |
} */\ |
| 578 |
} |
| 579 |
*criteria.foreground: TextForeground |
| 580 |
|