! UIMX ascii 2.0 key: 7005 *action.HelpACT: {\ /* char *s;\ s = XmTextGetSelection(UxWidget); \ \ XmTextClearSelection(UxWidget,XtLastTimestampProcessed(UxDisplay));\ */} *action.WriteHelp: {\ char s[100],comm[160] ;\ extern char print_com[];\ Widget sw = UxWidget;\ \ strcpy(s,"");\ /*sprintf(comm,"WRITE/OUT here");\ AppendDialogText(comm);*/\ \ if (sw == UxGetWidget(UxFindSwidget("ColButton"))) {\ strcpy(s,"Select the OST columns to be displayed into the scrolled window");\ UxPutText(UxFindSwidget("SHelp") ,s); \ } \ else if (sw == UxGetWidget(UxFindSwidget("ClassiButton"))) {\ strcpy(s,"Activate interface for defining classification rules ");\ UxPutText(UxFindSwidget("SHelp") ,s); \ } \ else if (sw == UxGetWidget(UxFindSwidget("AssoButton"))) {\ strcpy(s,"Activate interface for classifying images");\ UxPutText(UxFindSwidget("SHelp") ,s); \ }\ else if (sw == UxGetWidget(UxFindSwidget("AssoButton1"))) {\ strcpy(s,"Activate interface for associating calibration exposures to scientific frames");\ UxPutText(UxFindSwidget("SHelp") ,s); \ }\ else if (sw == UxGetWidget(UxFindSwidget("NewsButton3"))) {\ strcpy(s,"Create the OST table");\ UxPutText(UxFindSwidget("SHelp3") ,s); \ }\ else if (sw == UxGetWidget(UxFindSwidget("PrintButton3"))) {\ strcpy(s,"Popdown this interface");\ UxPutText(UxFindSwidget("SHelp3") ,s); \ }\ else if (sw == UxGetWidget(UxFindSwidget("ost_t1"))){ \ strcpy(s,"Name of the Observation Summary Table to be created ");\ UxPutText(UxFindSwidget("SHelp3") ,s); \ }\ else if (sw == UxGetWidget(UxFindSwidget("ost_t2"))){ \ strcpy(s,"List of frames to be processed ");\ UxPutText(UxFindSwidget("SHelp3") ,s); \ } \ else if (sw == UxGetWidget(UxFindSwidget("ost_t3"))){ \ strcpy(s,"Name of the table containing the list of relevant Midas descriptors"); \ UxPutText(UxFindSwidget("SHelp3") ,s); \ }\ else if (sw == UxGetWidget(UxFindSwidget("pushButton4"))){ \ strcpy(s,"Push button to popup the File Selection Box"); \ UxPutText(UxFindSwidget("SHelp3") ,s); \ }\ else if (sw == UxGetWidget(UxFindSwidget("pushButton5"))){ \ strcpy(s,"Push button to popup the File Selection Box"); \ UxPutText(UxFindSwidget("SHelp3") ,s); \ } \ } *action.ClearHelp: {\ UxPutText(UxFindSwidget("SHelp"),"");\ } *action.SelectCommand: {\ \ \ \ } *action.nothing: {\ printf("toto:\n");\ } *translation.table: transTable6 *translation.parent: Classify *translation.policy: replace *translation.: HelpACT() *translation.: grab-focus() *translation.: WriteHelp() *translation.: ClearHelp() *translation.table: transTable7 *translation.parent: Classify *translation.policy: override *translation. : SelectCommand() *translation.table: transTable8 *translation.parent: Classify *translation.policy: override *translation.: nothing() *Classify.class: applicationShell *Classify.parent: NO_PARENT *Classify.static: true *Classify.gbldecl: #include \ #include \ #include \ *Classify.ispecdecl: *Classify.funcdecl: swidget create_Classify()\ *Classify.funcname: create_Classify *Classify.funcdef: "swidget", "(%)" *Classify.icode: *Classify.fcode: return(rtrn);\ *Classify.auxdecl: *Classify.name: Classify *Classify.x: 29 *Classify.y: 387 *Classify.width: 500 *Classify.height: 450 *mainWindow2.class: mainWindow *mainWindow2.parent: Classify *mainWindow2.static: true *mainWindow2.name: mainWindow2 *mainWindow2.x: 200 *mainWindow2.y: 180 *mainWindow2.width: 700 *mainWindow2.height: 470 *mainWindow2.background: WindowBackground *mainWindow2.unitType: "pixels" *pullDownMenu2.class: rowColumn *pullDownMenu2.parent: mainWindow2 *pullDownMenu2.static: true *pullDownMenu2.name: pullDownMenu2 *pullDownMenu2.borderWidth: 0 *pullDownMenu2.menuHelpWidget: "pullDownMenu_top_b3" *pullDownMenu2.rowColumnType: "menu_bar" *pullDownMenu2.menuAccelerator: "F10" *pullDownMenu2.background: MenuBackground *pullDownMenu2.foreground: MenuForeground *quitPane2.class: rowColumn *quitPane2.parent: pullDownMenu2 *quitPane2.static: true *quitPane2.name: quitPane2 *quitPane2.rowColumnType: "menu_pulldown" *quitPane2.background: MenuBackground *quitPane2.foreground: MenuForeground *quitPane_b3.class: pushButtonGadget *quitPane_b3.parent: quitPane2 *quitPane_b3.static: true *quitPane_b3.name: quitPane_b3 *quitPane_b3.labelString: "Bye" *quitPane_b3.activateCallback: {\ extern swidget clashaupt;\ extern Widget row1[40],row2[40],row3[40];\ extern int rowno;\ int rows,i;\ for (i=0; i<5; i++) {\ XmTextSetString(row1[i],"");\ XmTextSetString(row2[i],"");\ XmTextSetString(row3[i],"");\ }\ for (i=5; iwidget;\ cbs = (XmRowColumnCallbackStruct *)UxCallbackArg;\ printf("%s: %s\n",XtName(pb),cbs->data);*/\ } *rowproc.resizeWidth: "true" *label5.class: label *label5.parent: form3 *label5.static: true *label5.name: label5 *label5.x: 10 *label5.y: 420 *label5.width: 240 *label5.height: 40 *label5.background: WindowBackground *label5.fontList: BoldTextFont *label5.labelString: "Selection Criteria" *label5.alignment: "alignment_beginning" *label5.topOffset: 440 *label5.topAttachment: "attach_form" *pushButton6.class: pushButton *pushButton6.parent: form3 *pushButton6.static: true *pushButton6.name: pushButton6 *pushButton6.x: 140 *pushButton6.y: 530 *pushButton6.width: 80 *pushButton6.height: 40 *pushButton6.background: ButtonBackground *pushButton6.fontList: BoldTextFont *pushButton6.foreground: ButtonForeground *pushButton6.labelString: "Apply" *pushButton6.bottomAttachment: "attach_form" *pushButton6.bottomOffset: 10 *pushButton6.activateCallback: {\ extern char ostchoice[60];\ extern int tidost;\ extern swidget myerror;\ char command[160],mycval[81],column[18];\ if (tidost == -1) {\ UxPutMessageString(UxFindSwidget("errorDialog1"),"No OST opened");\ UxPopupInterface(myerror,no_grab);\ return;\ }\ save_clas_table("TEMP_CLAS");\ sprintf(command,"CLASSIFY/IMAGE %s TEMP_CLAS.tbl",ostchoice);\ /*AppendDialogText(command);*/\ mycval[0] = '\0';\ column[0] = '\0';\ classify(ostchoice,"TEMP_CLAS.tbl",column,mycval);\ TCTCLO(tidost);\ TCTOPN(ostchoice,F_I_MODE,&tidost);\ /*display_col_table(UxGetWidget(UxFindSwidget("readtable")));*/\ \ } *pushButton6.leftAttachment: "attach_form" *pushButton6.leftOffset: 200 *label11.class: label *label11.parent: form3 *label11.static: true *label11.name: label11 *label11.x: 40 *label11.y: 10 *label11.width: 130 *label11.height: 30 *label11.background: WindowBackground *label11.fontList: BoldTextFont *label11.labelString: "DESCR" *label11.topAttachment: "attach_form" *label11.topOffset: 100 *label11.leftAttachment: "attach_form" *label11.leftOffset: 40 *label12.class: label *label12.parent: form3 *label12.static: true *label12.name: label12 *label12.x: 50 *label12.y: 20 *label12.width: 130 *label12.height: 30 *label12.background: WindowBackground *label12.fontList: BoldTextFont *label12.labelString: "OUTCOL" *label12.leftAttachment: "attach_form" *label12.leftOffset: 180 *label12.topAttachment: "attach_form" *label12.topOffset: 100 *label13.class: label *label13.parent: form3 *label13.static: true *label13.name: label13 *label13.x: 190 *label13.y: 20 *label13.width: 130 *label13.height: 30 *label13.background: WindowBackground *label13.fontList: BoldTextFont *label13.labelString: "OUTCHAR" *label13.leftAttachment: "attach_form" *label13.leftOffset: 320 *label13.topAttachment: "attach_form" *label13.topOffset: 100 *label21.class: label *label21.parent: form3 *label21.static: true *label21.name: label21 *label21.x: 50 *label21.y: 110 *label21.width: 200 *label21.height: 30 *label21.background: WindowBackground *label21.fontList: BoldTextFont *label21.labelString: "Classification Table Name" *label21.topAttachment: "attach_form" *label21.topOffset: 30 *label21.leftAttachment: "attach_form" *label21.leftOffset: 20 *sclas_t1.class: text *sclas_t1.parent: form3 *sclas_t1.static: true *sclas_t1.name: sclas_t1 *sclas_t1.x: 230 *sclas_t1.y: 20 *sclas_t1.width: 240 *sclas_t1.height: 40 *sclas_t1.background: TextBackground *sclas_t1.topAttachment: "attach_form" *sclas_t1.topOffset: 25 *sclas_t1.fontList: BoldTextFont *sclas_t1.foreground: TextForeground