| 1 |
! UIMX ascii 2.0 key: 5856 |
| 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 |
*action.ChangeFor: {\ |
| 74 |
extern swidget attri;\ |
| 75 |
extern int tidost;\ |
| 76 |
extern int collabchan;\ |
| 77 |
char mylab[1+TBL_LABLEN];\ |
| 78 |
char *text,form[1+TBL_LABLEN];\ |
| 79 |
int dummy;\ |
| 80 |
text = XmTextGetSelection(UxGetWidget(UxFindSwidget("scrollabel")));\ |
| 81 |
if (text != NULL) strcpy(mylab,text);\ |
| 82 |
XtFree(text);\ |
| 83 |
TCLSER(tidost,mylab,&collabchan);\ |
| 84 |
TCFGET(tidost,collabchan,form,&dummy,&dummy);\ |
| 85 |
UxPutText(UxFindSwidget("newform"),form);\ |
| 86 |
UxPopupInterface(attri,no_grab);\ |
| 87 |
} |
| 88 |
*action.HInit: {\ |
| 89 |
\ |
| 90 |
} |
| 91 |
|
| 92 |
*translation.table: HelpTable |
| 93 |
*translation.parent: ApplicWindow |
| 94 |
*translation.policy: replace |
| 95 |
*translation.<Btn1Up>: HelpACT() |
| 96 |
*translation.<Btn1Down>: grab-focus() |
| 97 |
*translation.<EnterWindow>: WriteHelp() |
| 98 |
*translation.<LeaveWindow>: ClearHelp() |
| 99 |
|
| 100 |
*translation.table: TextTable |
| 101 |
*translation.parent: ApplicWindow |
| 102 |
*translation.policy: override |
| 103 |
*translation.<Btn1Up> : SelectCommand() |
| 104 |
|
| 105 |
*translation.table: transTable1 |
| 106 |
*translation.parent: ApplicWindow |
| 107 |
*translation.policy: override |
| 108 |
*translation.<PtrMoved>: nothing() |
| 109 |
|
| 110 |
*translation.table: ChangeAttr |
| 111 |
*translation.parent: ApplicWindow |
| 112 |
*translation.policy: override |
| 113 |
*translation.<Btn1Up>: ChangeFor() |
| 114 |
*translation.<Btn1Down>: grab-focus() |
| 115 |
|
| 116 |
*ApplicWindow.class: applicationShell |
| 117 |
*ApplicWindow.parent: NO_PARENT |
| 118 |
*ApplicWindow.static: false |
| 119 |
*ApplicWindow.gbldecl: #include <ExternResources.h>\ |
| 120 |
#include <stdio.h>\ |
| 121 |
#include <Xm/Protocols.h>\ |
| 122 |
\ |
| 123 |
#include <Xm/Text.h>\ |
| 124 |
#include <Xm/LabelG.h>\ |
| 125 |
#include <midas_def.h>\ |
| 126 |
#include <tbldef.h>\ |
| 127 |
extern swidget scrolledtable;\ |
| 128 |
extern Widget sb;\ |
| 129 |
extern void myscrollv(),myscrollh();\ |
| 130 |
\ |
| 131 |
\ |
| 132 |
/* Definitions for History mechanism */\ |
| 133 |
\ |
| 134 |
#define SIZHIST 50\ |
| 135 |
#define SIZTEXT 40\ |
| 136 |
int ItemNumber = 0, ItemPosition = 0;\ |
| 137 |
int DispItem = 0; \ |
| 138 |
\ |
| 139 |
char ItemHistory[SIZHIST][SIZTEXT];\ |
| 140 |
char HistList[SIZHIST*SIZTEXT];\ |
| 141 |
\ |
| 142 |
Widget sb1,sb2,hbs;\ |
| 143 |
int height;\ |
| 144 |
\ |
| 145 |
/* Variables for SelectionArray */\ |
| 146 |
\ |
| 147 |
XmTextScanType Sarray[60];\ |
| 148 |
int SarI = 0;\ |
| 149 |
\ |
| 150 |
\ |
| 151 |
/* Include for UxPut calls on the fileSelectionBox */\ |
| 152 |
\ |
| 153 |
void CreateWindowManagerProtocols();\ |
| 154 |
void ExitCB();\ |
| 155 |
void CreateSessionManagerProtocols();\ |
| 156 |
void SaveSessionCB();\ |
| 157 |
\ |
| 158 |
extern Boolean saving; /* declared in file selection box declarations */\ |
| 159 |
extern swidget fileSelectionDialog;\ |
| 160 |
extern swidget fileSelectionBox;\ |
| 161 |
extern swidget exitDialog;\ |
| 162 |
extern swidget create_fileSelectionDialog();\ |
| 163 |
extern swidget create_exitDialog(); |
| 164 |
*ApplicWindow.ispecdecl: |
| 165 |
*ApplicWindow.funcdecl: swidget popup_ApplicWindow()\ |
| 166 |
|
| 167 |
*ApplicWindow.funcname: popup_ApplicWindow |
| 168 |
*ApplicWindow.funcdef: "swidget", "<popup_ApplicWindow>(%)" |
| 169 |
*ApplicWindow.icode: |
| 170 |
*ApplicWindow.fcode: XtVaGetValues(UxGetWidget(UxFindSwidget("scrol2")),XmNverticalScrollBar,&sb1,NULL);\ |
| 171 |
XtVaGetValues(UxGetWidget(UxFindSwidget("scrol1")),XmNverticalScrollBar,&sb,NULL);\ |
| 172 |
/*UxUnmap(UxWidgetToSwidget(sb1));*/\ |
| 173 |
/*XtVaGetValues(sb,XmNmaximum,&height,NULL);\ |
| 174 |
printf("height:%d \n",height);*/\ |
| 175 |
/*UxPutMappedWhenManaged(UxWidgetToSwidget(sb1),"false");*/\ |
| 176 |
XtUnmapWidget(sb1);\ |
| 177 |
XtVaGetValues(UxGetWidget(UxFindSwidget("textWindow")),XmNhorizontalScrollBar,&sb2,NULL);\ |
| 178 |
XtUnmapWidget(sb2);\ |
| 179 |
XtVaGetValues(UxGetWidget(UxFindSwidget("textWindow")),XmNverticalScrollBar,&sb2,NULL);\ |
| 180 |
XtUnmapWidget(sb2);\ |
| 181 |
/*UxPutTranslations(UxWidgetToSwidget(sb),transTable1);*/\ |
| 182 |
/*XtAddCallback(sb,XmNvalueChangedCallback,myscrollv,XmVERTICAL);*/\ |
| 183 |
/*XtVaGetValues(UxGetWidget(UxFindSwidget("identlist")),XmNheight,&height,XmNvisibleItemCount,&count,NULL);\ |
| 184 |
itemsize = height/count;\ |
| 185 |
printf("size:%d,height: %d, count: %d",itemsize,height,count);*/\ |
| 186 |
\ |
| 187 |
\ |
| 188 |
XtRemoveAllCallbacks(sb,XmNdragCallback);\ |
| 189 |
XtRemoveAllCallbacks(sb,XmNvalueChangedCallback);\ |
| 190 |
XtRemoveAllCallbacks(sb,XmNincrementCallback);\ |
| 191 |
XtRemoveAllCallbacks(sb,XmNdecrementCallback);\ |
| 192 |
XtRemoveAllCallbacks(sb,XmNpageIncrementCallback);\ |
| 193 |
XtRemoveAllCallbacks(sb,XmNpageDecrementCallback);\ |
| 194 |
XtRemoveAllCallbacks(sb,XmNtoTopCallback);\ |
| 195 |
XtRemoveAllCallbacks(sb,XmNtoBottomCallback);\ |
| 196 |
\ |
| 197 |
XtAddCallback(sb,XmNdragCallback,myscrollv,NULL);\ |
| 198 |
XtAddCallback(sb,XmNincrementCallback,myscrollv,NULL);\ |
| 199 |
XtAddCallback(sb,XmNdecrementCallback,myscrollv,NULL);\ |
| 200 |
XtAddCallback(sb,XmNpageIncrementCallback,myscrollv,NULL);\ |
| 201 |
XtAddCallback(sb,XmNpageDecrementCallback,myscrollv,NULL);\ |
| 202 |
XtAddCallback(sb,XmNtoTopCallback,myscrollv,NULL);\ |
| 203 |
XtAddCallback(sb,XmNtoBottomCallback,myscrollv,NULL);\ |
| 204 |
\ |
| 205 |
XtVaGetValues(UxGetWidget(UxFindSwidget("scrol2")),XmNhorizontalScrollBar,&hbs,NULL);\ |
| 206 |
XtAddCallback(hbs,XmNdragCallback,myscrollh,NULL);\ |
| 207 |
XtAddCallback(hbs,XmNincrementCallback,myscrollh,NULL);\ |
| 208 |
return(rtrn); |
| 209 |
*ApplicWindow.auxdecl: |
| 210 |
*ApplicWindow.name: ApplicWindow |
| 211 |
*ApplicWindow.x: 550 |
| 212 |
*ApplicWindow.y: 577 |
| 213 |
*ApplicWindow.width: 700 |
| 214 |
*ApplicWindow.height: 680 |
| 215 |
*ApplicWindow.title: "XDo" |
| 216 |
*ApplicWindow.deleteResponse: "do_nothing" |
| 217 |
*ApplicWindow.keyboardFocusPolicy.source: public |
| 218 |
*ApplicWindow.keyboardFocusPolicy: "pointer" |
| 219 |
*ApplicWindow.iconName: "New" |
| 220 |
*ApplicWindow.popupCallback: {\ |
| 221 |
\ |
| 222 |
} |
| 223 |
*ApplicWindow.background: WindowBackground |
| 224 |
*ApplicWindow.geometry: "700x540+30+30" |
| 225 |
|
| 226 |
*mainWindow.class: mainWindow |
| 227 |
*mainWindow.parent: ApplicWindow |
| 228 |
*mainWindow.static: true |
| 229 |
*mainWindow.name: mainWindow |
| 230 |
*mainWindow.x: 200 |
| 231 |
*mainWindow.y: 180 |
| 232 |
*mainWindow.width: 700 |
| 233 |
*mainWindow.height: 680 |
| 234 |
*mainWindow.background: WindowBackground |
| 235 |
|
| 236 |
*pullDownMenu.class: rowColumn |
| 237 |
*pullDownMenu.parent: mainWindow |
| 238 |
*pullDownMenu.static: true |
| 239 |
*pullDownMenu.name: pullDownMenu |
| 240 |
*pullDownMenu.borderWidth: 0 |
| 241 |
*pullDownMenu.menuHelpWidget: "pullDownMenu_top_b1" |
| 242 |
*pullDownMenu.rowColumnType: "menu_bar" |
| 243 |
*pullDownMenu.menuAccelerator: "<KeyUp>F10" |
| 244 |
*pullDownMenu.background: MenuBackground |
| 245 |
*pullDownMenu.foreground: MenuForeground |
| 246 |
|
| 247 |
*quitPane.class: rowColumn |
| 248 |
*quitPane.parent: pullDownMenu |
| 249 |
*quitPane.static: true |
| 250 |
*quitPane.name: quitPane |
| 251 |
*quitPane.rowColumnType: "menu_pulldown" |
| 252 |
*quitPane.background: MenuBackground |
| 253 |
*quitPane.foreground: MenuForeground |
| 254 |
|
| 255 |
*quitPane_b2.class: pushButtonGadget |
| 256 |
*quitPane_b2.parent: quitPane |
| 257 |
*quitPane_b2.static: true |
| 258 |
*quitPane_b2.name: quitPane_b2 |
| 259 |
*quitPane_b2.labelString: "Bye" |
| 260 |
*quitPane_b2.activateCallback: {\ |
| 261 |
char mycomm[200];\ |
| 262 |
int exist;\ |
| 263 |
exist = SCFINF("TAB_COMM.tbl",99,&exist);\ |
| 264 |
if (exist == 0) SCFDEL("TAB_COMM.tbl"); \ |
| 265 |
\ |
| 266 |
\ |
| 267 |
exit();} |
| 268 |
*quitPane_b2.fontList: BoldTextFont |
| 269 |
|
| 270 |
*UtilsPane.class: rowColumn |
| 271 |
*UtilsPane.parent: pullDownMenu |
| 272 |
*UtilsPane.static: true |
| 273 |
*UtilsPane.name: UtilsPane |
| 274 |
*UtilsPane.rowColumnType: "menu_pulldown" |
| 275 |
*UtilsPane.background: MenuBackground |
| 276 |
*UtilsPane.foreground: MenuForeground |
| 277 |
|
| 278 |
*UtilsPane_b5.class: pushButtonGadget |
| 279 |
*UtilsPane_b5.parent: UtilsPane |
| 280 |
*UtilsPane_b5.static: true |
| 281 |
*UtilsPane_b5.name: UtilsPane_b5 |
| 282 |
*UtilsPane_b5.labelString: "Open ..." |
| 283 |
*UtilsPane_b5.fontList: BoldTextFont |
| 284 |
*UtilsPane_b5.activateCallback: {\ |
| 285 |
char s[1000];\ |
| 286 |
extern swidget klist,tablelist;\ |
| 287 |
extern int do8;\ |
| 288 |
int strip =1;\ |
| 289 |
strcpy(s,"*.tbl");\ |
| 290 |
SetFileList(UxGetWidget(tablelist),strip,s);\ |
| 291 |
do8 = 0;\ |
| 292 |
UxPutTitle(UxFindSwidget("transientShell8"),"Select OST Table");\ |
| 293 |
UxPopupInterface(klist,no_grab);\ |
| 294 |
} |
| 295 |
|
| 296 |
*UtilsPane_b6.class: pushButtonGadget |
| 297 |
*UtilsPane_b6.parent: UtilsPane |
| 298 |
*UtilsPane_b6.static: true |
| 299 |
*UtilsPane_b6.name: UtilsPane_b6 |
| 300 |
*UtilsPane_b6.labelString: "New ..." |
| 301 |
*UtilsPane_b6.fontList: BoldTextFont |
| 302 |
*UtilsPane_b6.activateCallback: {\ |
| 303 |
extern swidget crea;\ |
| 304 |
UxPopupInterface(crea,no_grab);\ |
| 305 |
} |
| 306 |
|
| 307 |
*UtilsPane_b7.class: separator |
| 308 |
*UtilsPane_b7.parent: UtilsPane |
| 309 |
*UtilsPane_b7.static: true |
| 310 |
*UtilsPane_b7.name: UtilsPane_b7 |
| 311 |
|
| 312 |
*UtilsPane_b9.class: pushButtonGadget |
| 313 |
*UtilsPane_b9.parent: UtilsPane |
| 314 |
*UtilsPane_b9.static: true |
| 315 |
*UtilsPane_b9.name: UtilsPane_b9 |
| 316 |
*UtilsPane_b9.labelString: "Add ..." |
| 317 |
*UtilsPane_b9.fontList: BoldTextFont |
| 318 |
*UtilsPane_b9.activateCallback.source: public |
| 319 |
*UtilsPane_b9.activateCallback: |
| 320 |
*UtilsPane_b9.sensitive: "false" |
| 321 |
|
| 322 |
*HelpPane.class: rowColumn |
| 323 |
*HelpPane.parent: pullDownMenu |
| 324 |
*HelpPane.static: true |
| 325 |
*HelpPane.name: HelpPane |
| 326 |
*HelpPane.rowColumnType: "menu_pulldown" |
| 327 |
*HelpPane.background: MenuBackground |
| 328 |
*HelpPane.foreground: MenuForeground |
| 329 |
|
| 330 |
*pullDownMenu_p3_b1.class: pushButtonGadget |
| 331 |
*pullDownMenu_p3_b1.parent: HelpPane |
| 332 |
*pullDownMenu_p3_b1.static: true |
| 333 |
*pullDownMenu_p3_b1.name: pullDownMenu_p3_b1 |
| 334 |
*pullDownMenu_p3_b1.labelString: "On XDo..." |
| 335 |
*pullDownMenu_p3_b1.fontList: BoldTextFont |
| 336 |
*pullDownMenu_p3_b1.activateCallback: {\ |
| 337 |
extern swidget help;\ |
| 338 |
\ |
| 339 |
display_help (help,"XDo.help"); \ |
| 340 |
} |
| 341 |
|
| 342 |
*HelpPane_b2.class: pushButtonGadget |
| 343 |
*HelpPane_b2.parent: HelpPane |
| 344 |
*HelpPane_b2.static: true |
| 345 |
*HelpPane_b2.name: HelpPane_b2 |
| 346 |
*HelpPane_b2.labelString: "On NTT defaults..." |
| 347 |
*HelpPane_b2.fontList: BoldTextFont |
| 348 |
*HelpPane_b2.activateCallback: {\ |
| 349 |
extern swidget help;\ |
| 350 |
display_help(help,"XDo_default.help");\ |
| 351 |
} |
| 352 |
|
| 353 |
*HelpPane_b3.class: pushButtonGadget |
| 354 |
*HelpPane_b3.parent: HelpPane |
| 355 |
*HelpPane_b3.static: true |
| 356 |
*HelpPane_b3.name: HelpPane_b3 |
| 357 |
*HelpPane_b3.labelString: "On scrolled lists..." |
| 358 |
*HelpPane_b3.fontList: BoldTextFont |
| 359 |
*HelpPane_b3.activateCallback: { \ |
| 360 |
extern swidget help;\ |
| 361 |
display_help(help,"XDo_list.help"); \ |
| 362 |
} |
| 363 |
|
| 364 |
*pullDownMenu_top_b1.class: cascadeButton |
| 365 |
*pullDownMenu_top_b1.parent: pullDownMenu |
| 366 |
*pullDownMenu_top_b1.static: true |
| 367 |
*pullDownMenu_top_b1.name: pullDownMenu_top_b1 |
| 368 |
*pullDownMenu_top_b1.labelString: "Quit" |
| 369 |
*pullDownMenu_top_b1.mnemonic: "Q" |
| 370 |
*pullDownMenu_top_b1.subMenuId: "quitPane" |
| 371 |
*pullDownMenu_top_b1.background: MenuBackground |
| 372 |
*pullDownMenu_top_b1.fontList: BoldTextFont |
| 373 |
*pullDownMenu_top_b1.foreground: MenuForeground |
| 374 |
|
| 375 |
*commandsCascade.class: cascadeButton |
| 376 |
*commandsCascade.parent: pullDownMenu |
| 377 |
*commandsCascade.static: true |
| 378 |
*commandsCascade.name: commandsCascade |
| 379 |
*commandsCascade.labelString: "File" |
| 380 |
*commandsCascade.subMenuId: "UtilsPane" |
| 381 |
*commandsCascade.background: MenuBackground |
| 382 |
*commandsCascade.fontList: BoldTextFont |
| 383 |
*commandsCascade.foreground: MenuForeground |
| 384 |
*commandsCascade.mnemonic: "F" |
| 385 |
*commandsCascade.x: 101 |
| 386 |
|
| 387 |
*pullDownMenu_top_b5.class: cascadeButton |
| 388 |
*pullDownMenu_top_b5.parent: pullDownMenu |
| 389 |
*pullDownMenu_top_b5.static: true |
| 390 |
*pullDownMenu_top_b5.name: pullDownMenu_top_b5 |
| 391 |
*pullDownMenu_top_b5.labelString: "Help" |
| 392 |
*pullDownMenu_top_b5.subMenuId: "HelpPane" |
| 393 |
*pullDownMenu_top_b5.mnemonic: "H" |
| 394 |
*pullDownMenu_top_b5.background: MenuBackground |
| 395 |
*pullDownMenu_top_b5.fontList: BoldTextFont |
| 396 |
*pullDownMenu_top_b5.foreground: MenuForeground |
| 397 |
|
| 398 |
*workAreaForm.class: form |
| 399 |
*workAreaForm.parent: mainWindow |
| 400 |
*workAreaForm.static: true |
| 401 |
*workAreaForm.name: workAreaForm |
| 402 |
*workAreaForm.width: 490 |
| 403 |
*workAreaForm.height: 440 |
| 404 |
*workAreaForm.borderWidth: 0 |
| 405 |
*workAreaForm.background: WindowBackground |
| 406 |
|
| 407 |
*workAreaFrame.class: frame |
| 408 |
*workAreaFrame.parent: workAreaForm |
| 409 |
*workAreaFrame.static: true |
| 410 |
*workAreaFrame.name: workAreaFrame |
| 411 |
*workAreaFrame.x: 50 |
| 412 |
*workAreaFrame.y: 30 |
| 413 |
*workAreaFrame.width: 390 |
| 414 |
*workAreaFrame.height: 230 |
| 415 |
*workAreaFrame.bottomAttachment: "attach_form" |
| 416 |
*workAreaFrame.bottomOffset.source: public |
| 417 |
*workAreaFrame.bottomOffset: 0 |
| 418 |
*workAreaFrame.leftAttachment: "attach_form" |
| 419 |
*workAreaFrame.leftOffset.source: public |
| 420 |
*workAreaFrame.leftOffset: 0 |
| 421 |
*workAreaFrame.rightAttachment: "attach_form" |
| 422 |
*workAreaFrame.rightOffset.source: public |
| 423 |
*workAreaFrame.rightOffset: 0 |
| 424 |
*workAreaFrame.topAttachment: "attach_form" |
| 425 |
*workAreaFrame.topOffset: 0 |
| 426 |
*workAreaFrame.background: WindowBackground |
| 427 |
|
| 428 |
*workArea.class: form |
| 429 |
*workArea.parent: workAreaFrame |
| 430 |
*workArea.static: true |
| 431 |
*workArea.name: workArea |
| 432 |
*workArea.x: 2 |
| 433 |
*workArea.y: 2 |
| 434 |
*workArea.width: 698 |
| 435 |
*workArea.height: 448 |
| 436 |
*workArea.borderWidth: 0 |
| 437 |
*workArea.createCallback: {\ |
| 438 |
\ |
| 439 |
} |
| 440 |
*workArea.mapCallback: {\ |
| 441 |
\ |
| 442 |
} |
| 443 |
*workArea.background: WindowBackground |
| 444 |
*workArea.borderColor: WindowBackground |
| 445 |
*workArea.marginHeight: 5 |
| 446 |
*workArea.marginWidth: 5 |
| 447 |
|
| 448 |
*SHelp.class: text |
| 449 |
*SHelp.parent: workArea |
| 450 |
*SHelp.static: true |
| 451 |
*SHelp.name: SHelp |
| 452 |
*SHelp.x: 290 |
| 453 |
*SHelp.y: 337 |
| 454 |
*SHelp.width: 401 |
| 455 |
*SHelp.height: 40 |
| 456 |
*SHelp.background: SHelpBackground |
| 457 |
*SHelp.foreground: TextForeground |
| 458 |
*SHelp.highlightColor: ApplicBackground |
| 459 |
*SHelp.fontList: TextFont |
| 460 |
*SHelp.cursorPositionVisible: "false" |
| 461 |
*SHelp.translations: "" |
| 462 |
*SHelp.activateCallback: {\ |
| 463 |
char *s1;\ |
| 464 |
char *s2;\ |
| 465 |
extern char contxt[], midvers[];\ |
| 466 |
\ |
| 467 |
\ |
| 468 |
} |
| 469 |
*SHelp.pendingDelete: "true" |
| 470 |
*SHelp.blinkRate: 500 |
| 471 |
*SHelp.editMode: "single_line_edit" |
| 472 |
*SHelp.highlightOnEnter: "true" |
| 473 |
*SHelp.wordWrap: "false" |
| 474 |
*SHelp.accelerators: "" |
| 475 |
*SHelp.leftAttachment: "attach_form" |
| 476 |
*SHelp.leftOffset: 5 |
| 477 |
*SHelp.rightAttachment: "attach_form" |
| 478 |
*SHelp.rightOffset: 5 |
| 479 |
*SHelp.bottomAttachment: "attach_form" |
| 480 |
*SHelp.bottomOffset: 125 |
| 481 |
|
| 482 |
*scrol2.class: scrolledWindow |
| 483 |
*scrol2.parent: workArea |
| 484 |
*scrol2.static: true |
| 485 |
*scrol2.name: scrol2 |
| 486 |
*scrol2.scrollingPolicy: "application_defined" |
| 487 |
*scrol2.x: 176 |
| 488 |
*scrol2.y: 55 |
| 489 |
*scrol2.visualPolicy: "variable" |
| 490 |
*scrol2.scrollBarDisplayPolicy: "static" |
| 491 |
*scrol2.shadowThickness: 0 |
| 492 |
*scrol2.rightAttachment: "attach_form" |
| 493 |
*scrol2.rightOffset: -20 |
| 494 |
*scrol2.bottomAttachment: "attach_form" |
| 495 |
*scrol2.bottomOffset: 184 |
| 496 |
*scrol2.leftAttachment: "attach_form" |
| 497 |
*scrol2.leftOffset: 176 |
| 498 |
*scrol2.topAttachment: "attach_form" |
| 499 |
*scrol2.topOffset: 35 |
| 500 |
*scrol2.scrollBarPlacement: "bottom_right" |
| 501 |
*scrol2.background: WindowBackground |
| 502 |
*scrol2.width: 481 |
| 503 |
*scrol2.mappedWhenManaged: "true" |
| 504 |
|
| 505 |
*readtable.class: scrolledList |
| 506 |
*readtable.parent: scrol2 |
| 507 |
*readtable.static: true |
| 508 |
*readtable.name: readtable |
| 509 |
*readtable.width: 521 |
| 510 |
*readtable.height: 250 |
| 511 |
*readtable.scrollBarDisplayPolicy: "static" |
| 512 |
*readtable.listSizePolicy: "resize_if_possible" |
| 513 |
*readtable.visibleItemCount: 16 |
| 514 |
*readtable.background: TextBackground |
| 515 |
*readtable.selectionPolicy: "extended_select" |
| 516 |
*readtable.browseSelectionCallback: {\ |
| 517 |
printf("browse:");\ |
| 518 |
} |
| 519 |
*readtable.extendedSelectionCallback: {\ |
| 520 |
extern char fitschoice[30];\ |
| 521 |
XmListCallbackStruct *cbs;\ |
| 522 |
char *choice;\ |
| 523 |
int i;\ |
| 524 |
/*cbs = (XmListCallbackStruct *)UxCallbackArg;\ |
| 525 |
printf("reason:%d \n",cbs->reason);\ |
| 526 |
if (cbs->reason == XmCR_BROWSE_SELECT)\ |
| 527 |
printf("browse\n");\ |
| 528 |
else if (cbs->reason == XmCR_MULTIPLE_SELECT)\ |
| 529 |
printf("nmult \n");\ |
| 530 |
else if (cbs->reason == XmCR_DEFAULT_ACTION)\ |
| 531 |
printf("default\n");\ |
| 532 |
if (cbs->reason == XmCR_EXTENDED_SELECT ){\ |
| 533 |
printf("noitem %d\n",cbs->selected_item_count);\ |
| 534 |
for (i=0; i<cbs->selected_item_count; i++) {\ |
| 535 |
XmStringGetLtoR(cbs->selected_items[i],XmSTRING_DEFAULT_CHARSET,&choice);\ |
| 536 |
printf("choice: %s \n",choice);\ |
| 537 |
XtFree(choice);\ |
| 538 |
}\ |
| 539 |
}\ |
| 540 |
else {\ |
| 541 |
XmStringGetLtoR(cbs->item,XmSTRING_DEFAULT_CHARSET,&choice);\ |
| 542 |
printf("choice:%s\n",choice);\ |
| 543 |
XtFree(choice);\ |
| 544 |
}\ |
| 545 |
\ |
| 546 |
*/ \ |
| 547 |
} |
| 548 |
*readtable.fontList: BoldSmallFont |
| 549 |
*readtable.foreground: TextForeground |
| 550 |
|
| 551 |
*scrol1.class: scrolledWindow |
| 552 |
*scrol1.parent: workArea |
| 553 |
*scrol1.static: true |
| 554 |
*scrol1.name: scrol1 |
| 555 |
*scrol1.scrollingPolicy: "application_defined" |
| 556 |
*scrol1.x: 10 |
| 557 |
*scrol1.y: 10 |
| 558 |
*scrol1.visualPolicy: "variable" |
| 559 |
*scrol1.scrollBarDisplayPolicy: "static" |
| 560 |
*scrol1.shadowThickness: 0 |
| 561 |
*scrol1.height: 302 |
| 562 |
*scrol1.bottomAttachment: "attach_form" |
| 563 |
*scrol1.bottomOffset: 184 |
| 564 |
*scrol1.leftAttachment: "attach_form" |
| 565 |
*scrol1.rightAttachment: "attach_none" |
| 566 |
*scrol1.topAttachment: "attach_form" |
| 567 |
*scrol1.topOffset: 35 |
| 568 |
*scrol1.scrollBarPlacement: "bottom_right" |
| 569 |
*scrol1.background: WindowBackground |
| 570 |
*scrol1.leftOffset: 5 |
| 571 |
|
| 572 |
*identlist.class: scrolledList |
| 573 |
*identlist.parent: scrol1 |
| 574 |
*identlist.static: true |
| 575 |
*identlist.name: identlist |
| 576 |
*identlist.width: 150 |
| 577 |
*identlist.height: 302 |
| 578 |
*identlist.topShadowColor: "Gray80" |
| 579 |
*identlist.background: TextBackground |
| 580 |
*identlist.scrollBarDisplayPolicy: "static" |
| 581 |
*identlist.listSizePolicy: "constant" |
| 582 |
*identlist.visibleItemCount: 16 |
| 583 |
*identlist.selectionPolicy: "extended_select" |
| 584 |
*identlist.extendedSelectionCallback: {\ |
| 585 |
XmListCallbackStruct *cbs;\ |
| 586 |
char *choice;\ |
| 587 |
extern char *colchoice;\ |
| 588 |
int i;\ |
| 589 |
cbs = (XmListCallbackStruct *)UxCallbackArg;\ |
| 590 |
if (cbs->reason == XmCR_EXTENDED_SELECT ){\ |
| 591 |
\ |
| 592 |
for (i=0; i<cbs->selected_item_count; i++) {\ |
| 593 |
XmStringGetLtoR(cbs->selected_items[i],XmSTRING_DEFAULT_CHARSET,&choice);\ |
| 594 |
printf("choice: %s \n",choice);\ |
| 595 |
XtFree(choice);\ |
| 596 |
}\ |
| 597 |
}else {\ |
| 598 |
XmStringGetLtoR(cbs->item,XmSTRING_DEFAULT_CHARSET,&choice);\ |
| 599 |
printf("choice:%s\n",choice);\ |
| 600 |
XtFree(choice);\ |
| 601 |
}\ |
| 602 |
\ |
| 603 |
\ |
| 604 |
} |
| 605 |
*identlist.fontList: BoldSmallFont |
| 606 |
*identlist.traversalOn: "false" |
| 607 |
*identlist.navigationType: "tab_group" |
| 608 |
*identlist.ancestorSensitive: "true" |
| 609 |
*identlist.foreground: TextForeground |
| 610 |
|
| 611 |
*ColButton.class: pushButton |
| 612 |
*ColButton.parent: workArea |
| 613 |
*ColButton.static: true |
| 614 |
*ColButton.name: ColButton |
| 615 |
*ColButton.x: 110 |
| 616 |
*ColButton.y: 380 |
| 617 |
*ColButton.width: 90 |
| 618 |
*ColButton.height: 30 |
| 619 |
*ColButton.background: ButtonBackground |
| 620 |
*ColButton.labelString: "Sel Cols.." |
| 621 |
*ColButton.fontList: BoldTextFont |
| 622 |
*ColButton.foreground: ButtonForeground |
| 623 |
*ColButton.activateCallback: {\ |
| 624 |
extern swidget clist,myerror;\ |
| 625 |
extern int tidost,colno;\ |
| 626 |
char text[80];\ |
| 627 |
if (tidost < 0) {\ |
| 628 |
UxPutMessageString(UxFindSwidget("errorDialog1"),"No OST opened");\ |
| 629 |
UxPopupInterface(myerror,no_grab); \ |
| 630 |
return; \ |
| 631 |
}\ |
| 632 |
\ |
| 633 |
populate(UxGetWidget(UxFindSwidget("columnlist1")));\ |
| 634 |
read_table_column(UxGetWidget(UxFindSwidget("columnlist")));\ |
| 635 |
\ |
| 636 |
if (colno) selectlist("COPY",UxGetWidget(UxFindSwidget("columnlist")));\ |
| 637 |
UxPopupInterface(clist,no_grab);\ |
| 638 |
} |
| 639 |
*ColButton.recomputeSize: "false" |
| 640 |
*ColButton.highlightColor: "Black" |
| 641 |
*ColButton.bottomAttachment: "attach_form" |
| 642 |
*ColButton.bottomOffset: 25 |
| 643 |
*ColButton.topAttachment: "attach_widget" |
| 644 |
*ColButton.topOffset: 55 |
| 645 |
*ColButton.topWidget: "SHelp" |
| 646 |
*ColButton.leftAttachment: "attach_form" |
| 647 |
*ColButton.leftOffset: 20 |
| 648 |
*ColButton.leftWidget: "" |
| 649 |
|
| 650 |
*textWindow.class: scrolledWindow |
| 651 |
*textWindow.parent: workArea |
| 652 |
*textWindow.static: true |
| 653 |
*textWindow.name: textWindow |
| 654 |
*textWindow.scrollingPolicy: "application_defined" |
| 655 |
*textWindow.x: 220 |
| 656 |
*textWindow.y: 0 |
| 657 |
*textWindow.visualPolicy: "variable" |
| 658 |
*textWindow.scrollBarDisplayPolicy: "static" |
| 659 |
*textWindow.shadowThickness: 0 |
| 660 |
*textWindow.background: WindowBackground |
| 661 |
*textWindow.borderColor: "black" |
| 662 |
*textWindow.leftAttachment: "attach_form" |
| 663 |
*textWindow.leftOffset: 182 |
| 664 |
*textWindow.rightAttachment: "attach_form" |
| 665 |
*textWindow.rightOffset: -30 |
| 666 |
*textWindow.bottomAttachment: "attach_form" |
| 667 |
*textWindow.bottomOffset: 360 |
| 668 |
*textWindow.topAttachment: "attach_form" |
| 669 |
*textWindow.topOffset: 11 |
| 670 |
*textWindow.topShadowColor: "#a3a3a3" |
| 671 |
*textWindow.highlightColor: WindowBackground |
| 672 |
*textWindow.foreground: "black" |
| 673 |
*textWindow.bottomShadowColor: "#707070" |
| 674 |
*textWindow.topPosition: 0 |
| 675 |
*textWindow.height: 70 |
| 676 |
|
| 677 |
*scrollabel.class: scrolledText |
| 678 |
*scrollabel.parent: textWindow |
| 679 |
*scrollabel.static: true |
| 680 |
*scrollabel.name: scrollabel |
| 681 |
*scrollabel.width: 460 |
| 682 |
*scrollabel.height: 60 |
| 683 |
*scrollabel.editMode: "single_line_edit" |
| 684 |
*scrollabel.editable: "false" |
| 685 |
*scrollabel.background: WindowBackground |
| 686 |
*scrollabel.borderColor: WindowBackground |
| 687 |
*scrollabel.fontList: BoldSmallFont |
| 688 |
*scrollabel.foreground: "Red" |
| 689 |
*scrollabel.cursorPositionVisible: "false" |
| 690 |
*scrollabel.rows: 1 |
| 691 |
*scrollabel.text: "" |
| 692 |
*scrollabel.cursorPosition: 100 |
| 693 |
*scrollabel.marginHeight: 0 |
| 694 |
*scrollabel.highlightThickness: 0 |
| 695 |
*scrollabel.bottomShadowColor: "#707070" |
| 696 |
*scrollabel.highlightColor: "grey" |
| 697 |
*scrollabel.shadowThickness: 0 |
| 698 |
*scrollabel.autoShowCursorPosition: "false" |
| 699 |
*scrollabel.topShadowColor: "#a3a3a3" |
| 700 |
*scrollabel.marginWidth: 0 |
| 701 |
*scrollabel.highlightOnEnter: "false" |
| 702 |
*scrollabel.selectionArray: "select_word select_word select_word select_word" |
| 703 |
*scrollabel.translations: ChangeAttr |
| 704 |
|
| 705 |
*IDENT.class: label |
| 706 |
*IDENT.parent: workArea |
| 707 |
*IDENT.static: true |
| 708 |
*IDENT.name: IDENT |
| 709 |
*IDENT.x: 0 |
| 710 |
*IDENT.y: 0 |
| 711 |
*IDENT.width: 210 |
| 712 |
*IDENT.height: 50 |
| 713 |
*IDENT.background: WindowBackground |
| 714 |
*IDENT.leftAttachment: "attach_form" |
| 715 |
*IDENT.leftOffset: -20 |
| 716 |
*IDENT.topAttachment: "attach_form" |
| 717 |
*IDENT.topOffset: 0 |
| 718 |
*IDENT.fontList: BoldSmallFont |
| 719 |
*IDENT.bottomAttachment: "attach_widget" |
| 720 |
*IDENT.labelString: "IDENT" |
| 721 |
*IDENT.bottomWidget: "scrol1" |
| 722 |
*IDENT.rightAttachment: "attach_widget" |
| 723 |
*IDENT.rightOffset: 0 |
| 724 |
*IDENT.rightWidget: "textWindow" |
| 725 |
*IDENT.foreground: ButtonForeground |
| 726 |
|
| 727 |
*RowButton.class: pushButton |
| 728 |
*RowButton.parent: workArea |
| 729 |
*RowButton.static: true |
| 730 |
*RowButton.name: RowButton |
| 731 |
*RowButton.x: 20 |
| 732 |
*RowButton.y: 380 |
| 733 |
*RowButton.width: 90 |
| 734 |
*RowButton.height: 30 |
| 735 |
*RowButton.background: ButtonBackground |
| 736 |
*RowButton.labelString: "Sel Rows.." |
| 737 |
*RowButton.foreground: ButtonForeground |
| 738 |
*RowButton.fontList: BoldTextFont |
| 739 |
*RowButton.activateCallback: {\ |
| 740 |
\ |
| 741 |
} |
| 742 |
*RowButton.recomputeSize: "false" |
| 743 |
*RowButton.leftAttachment: "attach_widget" |
| 744 |
*RowButton.leftOffset: 10 |
| 745 |
*RowButton.topAttachment: "attach_widget" |
| 746 |
*RowButton.topOffset: 55 |
| 747 |
*RowButton.topWidget: "SHelp" |
| 748 |
*RowButton.highlightColor: "Black" |
| 749 |
*RowButton.bottomAttachment: "attach_form" |
| 750 |
*RowButton.bottomOffset: 25 |
| 751 |
*RowButton.leftWidget: "ColButton" |
| 752 |
*RowButton.sensitive: "false" |
| 753 |
|
| 754 |
*label9.class: label |
| 755 |
*label9.parent: workArea |
| 756 |
*label9.static: true |
| 757 |
*label9.name: label9 |
| 758 |
*label9.x: 30 |
| 759 |
*label9.y: 390 |
| 760 |
*label9.width: 75 |
| 761 |
*label9.height: 30 |
| 762 |
*label9.background: WindowBackground |
| 763 |
*label9.fontList: BoldTextFont |
| 764 |
*label9.labelString: "Selection" |
| 765 |
*label9.leftAttachment: "attach_form" |
| 766 |
*label9.leftOffset: 80 |
| 767 |
*label9.bottomAttachment: "attach_form" |
| 768 |
*label9.bottomOffset: 75 |
| 769 |
|
| 770 |
*separator6.class: separator |
| 771 |
*separator6.parent: workArea |
| 772 |
*separator6.static: true |
| 773 |
*separator6.name: separator6 |
| 774 |
*separator6.x: 20 |
| 775 |
*separator6.y: 410 |
| 776 |
*separator6.width: 205 |
| 777 |
*separator6.height: 10 |
| 778 |
*separator6.background: WindowBackground |
| 779 |
*separator6.leftAttachment: "attach_form" |
| 780 |
*separator6.leftOffset: 15 |
| 781 |
|
| 782 |
*separator7.class: separator |
| 783 |
*separator7.parent: workArea |
| 784 |
*separator7.static: true |
| 785 |
*separator7.name: separator7 |
| 786 |
*separator7.x: 25 |
| 787 |
*separator7.y: 420 |
| 788 |
*separator7.width: 205 |
| 789 |
*separator7.height: 10 |
| 790 |
*separator7.background: WindowBackground |
| 791 |
*separator7.leftAttachment: "attach_form" |
| 792 |
*separator7.leftOffset: 15 |
| 793 |
*separator7.bottomAttachment: "attach_form" |
| 794 |
*separator7.bottomOffset: 10 |
| 795 |
|
| 796 |
*separator8.class: separator |
| 797 |
*separator8.parent: workArea |
| 798 |
*separator8.static: true |
| 799 |
*separator8.name: separator8 |
| 800 |
*separator8.x: 220 |
| 801 |
*separator8.y: 410 |
| 802 |
*separator8.width: 10 |
| 803 |
*separator8.height: 70 |
| 804 |
*separator8.orientation: "vertical" |
| 805 |
*separator8.background: WindowBackground |
| 806 |
*separator8.bottomAttachment: "attach_form" |
| 807 |
*separator8.bottomOffset: 15 |
| 808 |
*separator8.leftAttachment: "attach_form" |
| 809 |
*separator8.leftOffset: 215 |
| 810 |
|
| 811 |
*separator9.class: separator |
| 812 |
*separator9.parent: workArea |
| 813 |
*separator9.static: true |
| 814 |
*separator9.name: separator9 |
| 815 |
*separator9.x: 230 |
| 816 |
*separator9.y: 422 |
| 817 |
*separator9.width: 10 |
| 818 |
*separator9.height: 70 |
| 819 |
*separator9.orientation: "vertical" |
| 820 |
*separator9.background: WindowBackground |
| 821 |
*separator9.leftAttachment: "attach_form" |
| 822 |
*separator9.leftOffset: 10 |
| 823 |
*separator9.bottomAttachment: "attach_form" |
| 824 |
*separator9.bottomOffset: 15 |
| 825 |
|
| 826 |
*label10.class: label |
| 827 |
*label10.parent: workArea |
| 828 |
*label10.static: true |
| 829 |
*label10.name: label10 |
| 830 |
*label10.x: 80 |
| 831 |
*label10.y: 407 |
| 832 |
*label10.width: 100 |
| 833 |
*label10.height: 30 |
| 834 |
*label10.background: WindowBackground |
| 835 |
*label10.fontList: BoldTextFont |
| 836 |
*label10.labelString: "Classification" |
| 837 |
*label10.leftAttachment: "attach_form" |
| 838 |
*label10.leftOffset: 305 |
| 839 |
*label10.rightAttachment: "attach_none" |
| 840 |
*label10.bottomAttachment: "attach_form" |
| 841 |
*label10.bottomOffset: 75 |
| 842 |
|
| 843 |
*separator10.class: separator |
| 844 |
*separator10.parent: workArea |
| 845 |
*separator10.static: true |
| 846 |
*separator10.name: separator10 |
| 847 |
*separator10.x: 225 |
| 848 |
*separator10.y: 427 |
| 849 |
*separator10.width: 10 |
| 850 |
*separator10.height: 70 |
| 851 |
*separator10.orientation: "vertical" |
| 852 |
*separator10.background: WindowBackground |
| 853 |
*separator10.leftAttachment: "attach_form" |
| 854 |
*separator10.leftOffset: 245 |
| 855 |
*separator10.bottomAttachment: "attach_form" |
| 856 |
*separator10.bottomOffset: 15 |
| 857 |
|
| 858 |
*separator11.class: separator |
| 859 |
*separator11.parent: workArea |
| 860 |
*separator11.static: true |
| 861 |
*separator11.name: separator11 |
| 862 |
*separator11.x: 25 |
| 863 |
*separator11.y: 492 |
| 864 |
*separator11.width: 205 |
| 865 |
*separator11.height: 10 |
| 866 |
*separator11.background: WindowBackground |
| 867 |
*separator11.leftAttachment: "attach_form" |
| 868 |
*separator11.leftOffset: 250 |
| 869 |
*separator11.bottomAttachment: "attach_form" |
| 870 |
*separator11.bottomOffset: 10 |
| 871 |
|
| 872 |
*separator12.class: separator |
| 873 |
*separator12.parent: workArea |
| 874 |
*separator12.static: true |
| 875 |
*separator12.name: separator12 |
| 876 |
*separator12.x: 25 |
| 877 |
*separator12.y: 420 |
| 878 |
*separator12.width: 205 |
| 879 |
*separator12.height: 10 |
| 880 |
*separator12.background: WindowBackground |
| 881 |
*separator12.leftAttachment: "attach_form" |
| 882 |
*separator12.leftOffset: 250 |
| 883 |
*separator12.topAttachment: "attach_form" |
| 884 |
*separator12.topOffset: 410 |
| 885 |
|
| 886 |
*separator13.class: separator |
| 887 |
*separator13.parent: workArea |
| 888 |
*separator13.static: true |
| 889 |
*separator13.name: separator13 |
| 890 |
*separator13.x: 270 |
| 891 |
*separator13.y: 427 |
| 892 |
*separator13.width: 10 |
| 893 |
*separator13.height: 70 |
| 894 |
*separator13.orientation: "vertical" |
| 895 |
*separator13.background: WindowBackground |
| 896 |
*separator13.leftAttachment: "attach_form" |
| 897 |
*separator13.leftOffset: 450 |
| 898 |
*separator13.bottomAttachment: "attach_form" |
| 899 |
*separator13.bottomOffset: 15 |
| 900 |
|
| 901 |
*AssoButton1.class: pushButton |
| 902 |
*AssoButton1.parent: workArea |
| 903 |
*AssoButton1.static: true |
| 904 |
*AssoButton1.name: AssoButton1 |
| 905 |
*AssoButton1.x: 380 |
| 906 |
*AssoButton1.y: 442 |
| 907 |
*AssoButton1.width: 90 |
| 908 |
*AssoButton1.height: 30 |
| 909 |
*AssoButton1.background: ButtonBackground |
| 910 |
*AssoButton1.labelString: "Associate.." |
| 911 |
*AssoButton1.fontList: BoldTextFont |
| 912 |
*AssoButton1.foreground: ButtonForeground |
| 913 |
*AssoButton1.activateCallback: {\ |
| 914 |
extern swidget assohaupt;\ |
| 915 |
\ |
| 916 |
UxPopupInterface(assohaupt,no_grab);\ |
| 917 |
\ |
| 918 |
} |
| 919 |
*AssoButton1.recomputeSize: "false" |
| 920 |
*AssoButton1.highlightColor: "Black" |
| 921 |
*AssoButton1.rightAttachment: "attach_form" |
| 922 |
*AssoButton1.rightOffset: 70 |
| 923 |
*AssoButton1.topAttachment: "attach_widget" |
| 924 |
*AssoButton1.topOffset: 55 |
| 925 |
*AssoButton1.topWidget: "SHelp" |
| 926 |
*AssoButton1.bottomAttachment: "attach_form" |
| 927 |
*AssoButton1.bottomOffset: 25 |
| 928 |
|
| 929 |
*ClassiButton.class: pushButton |
| 930 |
*ClassiButton.parent: workArea |
| 931 |
*ClassiButton.static: true |
| 932 |
*ClassiButton.name: ClassiButton |
| 933 |
*ClassiButton.x: 180 |
| 934 |
*ClassiButton.y: 330 |
| 935 |
*ClassiButton.width: 90 |
| 936 |
*ClassiButton.height: 30 |
| 937 |
*ClassiButton.background: ButtonBackground |
| 938 |
*ClassiButton.labelString: "Rule.." |
| 939 |
*ClassiButton.foreground: ButtonForeground |
| 940 |
*ClassiButton.fontList: BoldTextFont |
| 941 |
*ClassiButton.activateCallback: {\ |
| 942 |
extern void myrow(),never_called(),checkdigit(),checkchar();\ |
| 943 |
extern swidget classi,myerror;\ |
| 944 |
extern Widget rowrule[256][2]; \ |
| 945 |
extern int tidost;\ |
| 946 |
XmString str; \ |
| 947 |
Widget w,manage[512];\ |
| 948 |
int i,j ,dummy,ncol,type;\ |
| 949 |
static int rowrul = 0;\ |
| 950 |
char mylabel[TBL_LABLEN+1],mytext[8],mycomm[180];\ |
| 951 |
UxPutText(UxFindSwidget("criteria"),"l01");\ |
| 952 |
\ |
| 953 |
if (tidost < 0) {\ |
| 954 |
UxPutMessageString(UxFindSwidget("errorDialog1"),"No OST opened");\ |
| 955 |
UxPopupInterface(myerror,no_grab); \ |
| 956 |
return; \ |
| 957 |
}\ |
| 958 |
TCIGET(tidost,&ncol,&dummy,&dummy,&dummy,&dummy); \ |
| 959 |
if (!rowrule[0][0]) { \ |
| 960 |
XtAddCallback(UxGetWidget(UxFindSwidget("rowdescr")),XmNentryCallback,myrow,NULL);\ |
| 961 |
rowrul = ncol;\ |
| 962 |
XtVaSetValues(UxGetWidget(UxFindSwidget("rowdescr")),\ |
| 963 |
XmNnumColumns,ncol,NULL);\ |
| 964 |
\ |
| 965 |
for (i=1; i<=ncol; i++) {\ |
| 966 |
TCLGET(tidost,i,mylabel);\ |
| 967 |
TCBGET(tidost,i,&type,&dummy,&dummy); \ |
| 968 |
rowrule[i-1][0] = XtVaCreateWidget(mylabel,xmLabelGadgetClass,\ |
| 969 |
UxGetWidget(UxFindSwidget("rowdescr")),\ |
| 970 |
NULL);\ |
| 971 |
sprintf(mytext,"text_%d",i);\ |
| 972 |
rowrule[i-1][1] = XtVaCreateWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowdescr")),\ |
| 973 |
NULL);\ |
| 974 |
UxPutForeground(UxWidgetToSwidget(rowrule[i-1][1]),TextForeground);\ |
| 975 |
UxPutBackground(UxWidgetToSwidget(rowrule[i-1][1]),WindowBackground);\ |
| 976 |
UxPutFontList(UxWidgetToSwidget(rowrule[i-1][1]),BoldSmallFont);\ |
| 977 |
if (type == D_C_FORMAT)\ |
| 978 |
XtAddCallback(rowrule[i-1][1],XmNmodifyVerifyCallback,checkchar,NULL);\ |
| 979 |
else\ |
| 980 |
XtAddCallback(rowrule[i-1][1],XmNmodifyVerifyCallback,checkdigit,NULL);\ |
| 981 |
\ |
| 982 |
}\ |
| 983 |
XtManageChildren((WidgetList) rowrule, ncol * 2); \ |
| 984 |
}\ |
| 985 |
else { \ |
| 986 |
\ |
| 987 |
if (ncol > rowrul) { \ |
| 988 |
XtVaSetValues(UxGetWidget(UxFindSwidget("rowdescr")),\ |
| 989 |
XmNnumColumns,ncol,NULL); \ |
| 990 |
rowrul = ncol;\ |
| 991 |
} \ |
| 992 |
else if (ncol < rowrul) {\ |
| 993 |
for (j=ncol; j< rowrul;j++) {\ |
| 994 |
XmTextSetString(rowrule[j][1],""); \ |
| 995 |
str = XmStringCreateSimple("");\ |
| 996 |
XtVaSetValues (rowrule[j][0], XmNlabelString,str ,\ |
| 997 |
NULL);\ |
| 998 |
XmStringFree(str);\ |
| 999 |
}\ |
| 1000 |
}\ |
| 1001 |
for (i=1; i<=ncol; i++) { \ |
| 1002 |
TCLGET(tidost,i,mylabel);\ |
| 1003 |
if (!rowrule[i-1][0]) \ |
| 1004 |
rowrule[i-1][0] = XtVaCreateWidget(mylabel,\ |
| 1005 |
xmLabelGadgetClass,\ |
| 1006 |
UxGetWidget(UxFindSwidget("rowdescr")),\ |
| 1007 |
NULL); \ |
| 1008 |
else { \ |
| 1009 |
str = XmStringCreateSimple(mylabel);\ |
| 1010 |
XtVaSetValues (rowrule[i-1][0],XmNlabelString,str ,\ |
| 1011 |
NULL);\ |
| 1012 |
XmStringFree(str); \ |
| 1013 |
}\ |
| 1014 |
\ |
| 1015 |
if (!rowrule[i-1][1]) { \ |
| 1016 |
sprintf(mytext,"text_%d",i);\ |
| 1017 |
rowrule[i-1][1] = XtVaCreateWidget(mytext, xmTextWidgetClass,\ |
| 1018 |
UxGetWidget(UxFindSwidget("rowdescr")),\ |
| 1019 |
XmNrightAttachment,XmATTACH_WIDGET, \ |
| 1020 |
XmNrightWidget,UxGetWidget(UxFindSwidget("scrolledWindow6")),\ |
| 1021 |
XmNleftAttachment,XmATTACH_POSITION,\ |
| 1022 |
XmNrightPosition,200,\ |
| 1023 |
NULL);\ |
| 1024 |
UxPutForeground(UxWidgetToSwidget(rowrule[i-1][1]),TextForeground);\ |
| 1025 |
UxPutBackground(UxWidgetToSwidget(rowrule[i-1][1]),TextBackground);\ |
| 1026 |
UxPutFontList(UxWidgetToSwidget(rowrule[i-1][1]),BoldSmallFont);\ |
| 1027 |
}\ |
| 1028 |
}\ |
| 1029 |
XtManageChildren((WidgetList) rowrule, ncol * 2);\ |
| 1030 |
}\ |
| 1031 |
UxPutText(UxFindSwidget("criteria"),"");\ |
| 1032 |
UxPopupInterface(classi,no_grab);\ |
| 1033 |
\ |
| 1034 |
} |
| 1035 |
*ClassiButton.recomputeSize: "false" |
| 1036 |
*ClassiButton.topAttachment: "attach_widget" |
| 1037 |
*ClassiButton.topOffset: 55 |
| 1038 |
*ClassiButton.topWidget: "SHelp" |
| 1039 |
*ClassiButton.leftAttachment: "attach_widget" |
| 1040 |
*ClassiButton.leftOffset: 45 |
| 1041 |
*ClassiButton.leftWidget: "RowButton" |
| 1042 |
*ClassiButton.highlightColor: "Black" |
| 1043 |
*ClassiButton.bottomAttachment: "attach_form" |
| 1044 |
*ClassiButton.bottomOffset: 25 |
| 1045 |
|
| 1046 |
*AssoButton.class: pushButton |
| 1047 |
*AssoButton.parent: workArea |
| 1048 |
*AssoButton.static: true |
| 1049 |
*AssoButton.name: AssoButton |
| 1050 |
*AssoButton.x: 110 |
| 1051 |
*AssoButton.y: 380 |
| 1052 |
*AssoButton.width: 90 |
| 1053 |
*AssoButton.height: 30 |
| 1054 |
*AssoButton.background: ButtonBackground |
| 1055 |
*AssoButton.labelString: "Classify.." |
| 1056 |
*AssoButton.fontList: BoldTextFont |
| 1057 |
*AssoButton.foreground: ButtonForeground |
| 1058 |
*AssoButton.activateCallback: {\ |
| 1059 |
extern swidget clashaupt;\ |
| 1060 |
Widget w;\ |
| 1061 |
extern Widget row1[40],row2[40],row3[40];\ |
| 1062 |
int rows = 5;\ |
| 1063 |
extern int rowno;\ |
| 1064 |
int i;\ |
| 1065 |
char mytext[8];\ |
| 1066 |
\ |
| 1067 |
XtVaSetValues(UxGetWidget(UxFindSwidget("rowproc")),XmNnumColumns,rows,NULL);\ |
| 1068 |
if (!row1[0]) {\ |
| 1069 |
rowno = 5;\ |
| 1070 |
for (i=0; i<rows; i++) \ |
| 1071 |
{\ |
| 1072 |
sprintf(mytext,"text1_%d",i);\ |
| 1073 |
row1[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowproc")),NULL);\ |
| 1074 |
sprintf(mytext,"text2_%d",i);\ |
| 1075 |
UxPutForeground(UxWidgetToSwidget(row1[i]),TextForeground);\ |
| 1076 |
UxPutBackground(UxWidgetToSwidget(row1[i]),TextBackground);\ |
| 1077 |
UxPutFontList(UxWidgetToSwidget(row1[i]),BoldSmallFont);\ |
| 1078 |
row2[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowproc")),NULL);\ |
| 1079 |
UxPutForeground(UxWidgetToSwidget(row2[i]),TextForeground);\ |
| 1080 |
UxPutBackground(UxWidgetToSwidget(row2[i]),TextBackground);\ |
| 1081 |
UxPutFontList(UxWidgetToSwidget(row2[i]),BoldSmallFont);\ |
| 1082 |
sprintf(mytext,"text3_%d",i);\ |
| 1083 |
row3[i] = XtVaCreateManagedWidget(mytext, xmTextWidgetClass,UxGetWidget(UxFindSwidget("rowproc")),NULL);\ |
| 1084 |
UxPutForeground(UxWidgetToSwidget(row3[i]),TextForeground);\ |
| 1085 |
UxPutBackground(UxWidgetToSwidget(row3[i]),TextBackground);\ |
| 1086 |
UxPutFontList(UxWidgetToSwidget(row3[i]),BoldSmallFont);\ |
| 1087 |
}\ |
| 1088 |
\ |
| 1089 |
}\ |
| 1090 |
\ |
| 1091 |
\ |
| 1092 |
UxPopupInterface(clashaupt,no_grab);\ |
| 1093 |
\ |
| 1094 |
} |
| 1095 |
*AssoButton.recomputeSize: "false" |
| 1096 |
*AssoButton.highlightColor: "Black" |
| 1097 |
*AssoButton.bottomAttachment: "attach_form" |
| 1098 |
*AssoButton.bottomOffset: 25 |
| 1099 |
*AssoButton.leftAttachment: "attach_widget" |
| 1100 |
*AssoButton.leftOffset: 10 |
| 1101 |
*AssoButton.leftWidget: "ClassiButton" |
| 1102 |
*AssoButton.topAttachment: "attach_widget" |
| 1103 |
*AssoButton.topOffset: 55 |
| 1104 |
*AssoButton.topWidget: "SHelp" |
| 1105 |
|