Changeset 202 in Sophya for trunk/SophyaPI/PI/pidrwtools.cc


Ignore:
Timestamp:
Feb 26, 1999, 3:18:35 PM (27 years ago)
Author:
ercodmgr
Message:

protec mem piimage, amelioration trace axes, rz+cmv 26/2/99

File:
1 edited

Legend:

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

    r201 r202  
    7878mText[1]->SetBinding(PIBK_elastic,PIBK_elastic, PIBK_elastic,PIBK_elastic);
    7979
    80 cpx = 2*spx+0.25*bsx;
     80cpx = spx+0.25*bsx;
    8181cpy += spy+bsy;
    82 mCkb[0] = new PICheckBox(this,"AxeX-RtoL", 2000, 1.5*bsx, bsy, cpx, cpy);
    83 cpx += spx+1.5*bsx;
    84 mCkb[1] = new PICheckBox(this,"AxeY-UpDown", 2000, 1.5*bsx, bsy, cpx, cpy);
     82mCkb[0] = new PICheckBox(this,"X-RtoL", 2000, bsx, bsy, cpx, cpy);
     83cpx += spx+bsx;
     84mCkb[1] = new PICheckBox(this,"Y-UpDn", 2000, bsx, bsy, cpx, cpy);
     85cpx += spx+bsx;
     86mCkb[2] = new PICheckBox(this,"Grid", 2000, bsx, bsy, cpx, cpy);
    8587mCkb[0]->SetBinding(PIBK_elastic,PIBK_elastic, PIBK_elastic,PIBK_elastic);
    8688mCkb[1]->SetBinding(PIBK_elastic,PIBK_elastic, PIBK_elastic,PIBK_elastic);
     89mCkb[2]->SetBinding(PIBK_elastic,PIBK_elastic, PIBK_elastic,PIBK_elastic);
    8790
    8891cpy += spy+bsy;
     
    248251  delete mButcf[i];
    249252  }
     253for(i=0; i<3; i++) delete mCkb[i];
    250254delete mBut[2];
    251255for(i=0; i<6; i++)  delete mOpt[i];
     
    305309mCkb[0]->SetState(false);
    306310mCkb[1]->SetState(false);
     311mCkb[2]->SetState(false);
    307312
    308313mOpt[0]->SetValue(100);
     
    339344    if (mCkb[0]->GetState())  axrl = kAxeDirRtoL ;
    340345    if (mCkb[1]->GetState())  ayud = kAxeDirUpDown;
    341     if ( mCurBW->kind() == PIScDrawWdg::ClassId ) ((PIScDrawWdg*)mCurBW)-> SetLimits(xmin, xmax, ymin, ymax, axrl, ayud);
     346    if ( mCurBW->kind() == PIScDrawWdg::ClassId ) {
     347      ((PIScDrawWdg*)mCurBW)->SetLimits(xmin, xmax, ymin, ymax, axrl, ayud);
     348      unsigned int flags = ((PIScDrawWdg*)mCurBW)->GetAxesFlags();
     349      if (mCkb[2]->GetState()) ((PIScDrawWdg*)mCurBW)->SetAxesFlags(flags | kGridOn);
     350      else  ((PIScDrawWdg*)mCurBW)->SetAxesFlags(flags & ~kGridOn);
     351      }
    342352    else mCurBW->SetDefaultDrawerLimits(xmin, xmax, ymin, ymax, axrl, ayud);
    343353    mCurBW->Refresh();
Note: See TracChangeset for help on using the changeset viewer.