Changeset 1317 in Sophya for trunk/SophyaPI


Ignore:
Timestamp:
Nov 10, 2000, 2:28:45 PM (25 years ago)
Author:
ercodmgr
Message:

modifs cosmetiques - Reza 10/11/2000

Location:
trunk/SophyaPI/PI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/piimgtools.cc

    r1129 r1317  
    211211mOptCut->SetBinding(PIBK_elastic,PIBK_elastic, PIBK_elastic,PIBK_elastic);
    212212
    213 int pbsx = bsy;
     213int pbsx = 0.45*bsx;
    214214int pbsy = bsy;
    215215int pspx = spy/2;
    216216int pspy = spy;
    217217
    218 cpx = 2*spx;
     218cpx = spx;
    219219cpy += bsy+spy;
    220220mButsz[0] = new PIButton(this, "1x1", 3201,  pbsx, pbsy, cpx, cpy);
     
    234234
    235235//cpx += pbsx+10*pspx;
    236 cpx = wszx-3.0*pbsx-2*spx-pspx;
     236cpx = wszx-3.0*pbsx-spx-pspx;
    237237mButoa[0] = new PIButton(this, "+Info", 5311,  1.5*pbsx, pbsy, cpx, cpy);
    238238mButoa[0]->SetBinding(PIBK_elastic,PIBK_elastic, PIBK_elastic,PIBK_elastic);
     
    242242
    243243
    244 cpx = 2*spx;
     244cpx = spx;
    245245cpy += pbsy+pspy;
    246246mButcax[0] = new PIButton(this, "-X", 5201,  pbsx, pbsy, cpx, cpy);
     
    254254
    255255// cpx += 1.5*pbsx+pspx+10*pspx;
    256 cpx = wszx-4.5*pbsx-2*spx-2*pspx;
     256cpx = wszx-4.5*pbsx-spx-2*pspx;
    257257mButoa[2] = new PIButton(this, "-All", 5300,  1.5*pbsx, pbsy, cpx, cpy);
    258258mButoa[2]->SetBinding(PIBK_elastic,PIBK_elastic, PIBK_elastic,PIBK_elastic);
  • trunk/SophyaPI/PI/piwdgx.cc

    r1074 r1317  
    625625"PeidaInt*XmText*highlightThickness:          0",
    626626"PeidaInt*XmText*marginHeigt:                 0",
    627 "PeidaInt*XmText*marginWidth:                 3",
     627"PeidaInt*XmText*marginWidth:                 2",
    628628// "PeidaInt*DefMenubar*XtNwidth:                250",
    629629// "PeidaInt*DefMenubar*XtNheight:               30",
     
    690690list = XListFonts(dpy, buff, 15, &count);
    691691if (count < 1)  {
    692   strcpy(buff,"-*-*-*-*-*-*-*-*-*-*-*-*-*-*" );
     692  strcpy(buff,"-*-*-*-*-*-*-12-*-*-*-*-*-*-*" );
     693  XFreeFontNames(list);
     694  list = XListFonts(dpy, buff, 15, &count);
     695  }
     696if (count < 1)  {
     697  strcpy(buff,"-*-*-*-*-*-*-13-*-*-*-*-*-*-*" );
     698  XFreeFontNames(list);
     699  list = XListFonts(dpy, buff, 15, &count);
     700  }
     701if (count < 1)  {
     702  strcpy(buff,"-*-*-*-*-*-*-11-*-*-*-*-*-*-*" );
    693703  XFreeFontNames(list);
    694704  list = XListFonts(dpy, buff, 15, &count);
     
    723733XTextExtents(stdfnt, a, 0, &hd, &fa, &fd, &ovr);
    724734len = XTextWidth(stdfnt, "CANCEL", 6);
    725 appSzY = (float)(fa+fd)*1.5+8;  // pour les shadow  $CHECK$ - a ameliorer peut-etre
    726 appSzX = (float)len*1.5;
     735appSzY = (float)(fa+fd)*1.4+8;  // pour les shadow  $CHECK$ - a ameliorer peut-etre
     736appSzX = (float)len*1.4;
    727737appSzFont =  mySzFont ;
    728738// Taille X multiple de 5 pixels, Y mult 2 pixels
Note: See TracChangeset for help on using the changeset viewer.