Changeset 202 in Sophya for trunk/SophyaPI/PI/pidrwtools.cc
- Timestamp:
- Feb 26, 1999, 3:18:35 PM (27 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/pidrwtools.cc
r201 r202 78 78 mText[1]->SetBinding(PIBK_elastic,PIBK_elastic, PIBK_elastic,PIBK_elastic); 79 79 80 cpx = 2*spx+0.25*bsx;80 cpx = spx+0.25*bsx; 81 81 cpy += 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); 82 mCkb[0] = new PICheckBox(this,"X-RtoL", 2000, bsx, bsy, cpx, cpy); 83 cpx += spx+bsx; 84 mCkb[1] = new PICheckBox(this,"Y-UpDn", 2000, bsx, bsy, cpx, cpy); 85 cpx += spx+bsx; 86 mCkb[2] = new PICheckBox(this,"Grid", 2000, bsx, bsy, cpx, cpy); 85 87 mCkb[0]->SetBinding(PIBK_elastic,PIBK_elastic, PIBK_elastic,PIBK_elastic); 86 88 mCkb[1]->SetBinding(PIBK_elastic,PIBK_elastic, PIBK_elastic,PIBK_elastic); 89 mCkb[2]->SetBinding(PIBK_elastic,PIBK_elastic, PIBK_elastic,PIBK_elastic); 87 90 88 91 cpy += spy+bsy; … … 248 251 delete mButcf[i]; 249 252 } 253 for(i=0; i<3; i++) delete mCkb[i]; 250 254 delete mBut[2]; 251 255 for(i=0; i<6; i++) delete mOpt[i]; … … 305 309 mCkb[0]->SetState(false); 306 310 mCkb[1]->SetState(false); 311 mCkb[2]->SetState(false); 307 312 308 313 mOpt[0]->SetValue(100); … … 339 344 if (mCkb[0]->GetState()) axrl = kAxeDirRtoL ; 340 345 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 } 342 352 else mCurBW->SetDefaultDrawerLimits(xmin, xmax, ymin, ymax, axrl, ayud); 343 353 mCurBW->Refresh();
Note:
See TracChangeset
for help on using the changeset viewer.