Changeset 1317 in Sophya for trunk/SophyaPI
- Timestamp:
- Nov 10, 2000, 2:28:45 PM (25 years ago)
- Location:
- trunk/SophyaPI/PI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/piimgtools.cc
r1129 r1317 211 211 mOptCut->SetBinding(PIBK_elastic,PIBK_elastic, PIBK_elastic,PIBK_elastic); 212 212 213 int pbsx = bsy;213 int pbsx = 0.45*bsx; 214 214 int pbsy = bsy; 215 215 int pspx = spy/2; 216 216 int pspy = spy; 217 217 218 cpx = 2*spx;218 cpx = spx; 219 219 cpy += bsy+spy; 220 220 mButsz[0] = new PIButton(this, "1x1", 3201, pbsx, pbsy, cpx, cpy); … … 234 234 235 235 //cpx += pbsx+10*pspx; 236 cpx = wszx-3.0*pbsx- 2*spx-pspx;236 cpx = wszx-3.0*pbsx-spx-pspx; 237 237 mButoa[0] = new PIButton(this, "+Info", 5311, 1.5*pbsx, pbsy, cpx, cpy); 238 238 mButoa[0]->SetBinding(PIBK_elastic,PIBK_elastic, PIBK_elastic,PIBK_elastic); … … 242 242 243 243 244 cpx = 2*spx;244 cpx = spx; 245 245 cpy += pbsy+pspy; 246 246 mButcax[0] = new PIButton(this, "-X", 5201, pbsx, pbsy, cpx, cpy); … … 254 254 255 255 // cpx += 1.5*pbsx+pspx+10*pspx; 256 cpx = wszx-4.5*pbsx- 2*spx-2*pspx;256 cpx = wszx-4.5*pbsx-spx-2*pspx; 257 257 mButoa[2] = new PIButton(this, "-All", 5300, 1.5*pbsx, pbsy, cpx, cpy); 258 258 mButoa[2]->SetBinding(PIBK_elastic,PIBK_elastic, PIBK_elastic,PIBK_elastic); -
trunk/SophyaPI/PI/piwdgx.cc
r1074 r1317 625 625 "PeidaInt*XmText*highlightThickness: 0", 626 626 "PeidaInt*XmText*marginHeigt: 0", 627 "PeidaInt*XmText*marginWidth: 3",627 "PeidaInt*XmText*marginWidth: 2", 628 628 // "PeidaInt*DefMenubar*XtNwidth: 250", 629 629 // "PeidaInt*DefMenubar*XtNheight: 30", … … 690 690 list = XListFonts(dpy, buff, 15, &count); 691 691 if (count < 1) { 692 strcpy(buff,"-*-*-*-*-*-*-*-*-*-*-*-*-*-*" ); 692 strcpy(buff,"-*-*-*-*-*-*-12-*-*-*-*-*-*-*" ); 693 XFreeFontNames(list); 694 list = XListFonts(dpy, buff, 15, &count); 695 } 696 if (count < 1) { 697 strcpy(buff,"-*-*-*-*-*-*-13-*-*-*-*-*-*-*" ); 698 XFreeFontNames(list); 699 list = XListFonts(dpy, buff, 15, &count); 700 } 701 if (count < 1) { 702 strcpy(buff,"-*-*-*-*-*-*-11-*-*-*-*-*-*-*" ); 693 703 XFreeFontNames(list); 694 704 list = XListFonts(dpy, buff, 15, &count); … … 723 733 XTextExtents(stdfnt, a, 0, &hd, &fa, &fd, &ovr); 724 734 len = XTextWidth(stdfnt, "CANCEL", 6); 725 appSzY = (float)(fa+fd)*1. 5+8; // pour les shadow $CHECK$ - a ameliorer peut-etre726 appSzX = (float)len*1. 5;735 appSzY = (float)(fa+fd)*1.4+8; // pour les shadow $CHECK$ - a ameliorer peut-etre 736 appSzX = (float)len*1.4; 727 737 appSzFont = mySzFont ; 728 738 // Taille X multiple de 5 pixels, Y mult 2 pixels
Note:
See TracChangeset
for help on using the changeset viewer.