Changeset 139 in Sophya for trunk/SophyaPI
- Timestamp:
- Aug 24, 1998, 11:22:10 AM (27 years ago)
- Location:
- trunk/SophyaPI/PI
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/pigraphuc.cc
r113 r139 80 80 81 81 xScale = xWd/(xMax-xMin); 82 if (xScale < 1.e-19) xScale = 1.e-19; // Protection 82 83 if (aXdir) { 83 84 xScale = -xScale; … … 88 89 89 90 yScale = yWd/(yMax-yMin); 91 if (yScale < 1.e-19) yScale = 1.e-19; // Protection 90 92 if (!aYdir) { 91 93 yScale = -yScale; -
trunk/SophyaPI/PI/pistzwin.cc
r138 r139 147 147 child->SetBinding(PIBK_elastic,PIBK_elastic,PIBK_elastic, PIBK_elastic); 148 148 // Il faut faire le delete a cet endroit, sinon probleme avec widget motif XmForm Reza 18/08/98 149 if (mZWdg[mZc]) delete mZWdg[mZc]; 149 if (mZWdg[mZc]) { 150 if (mACSup) delete mZWdg[mZc]; 151 else mZWdg[mZc]->UnManage(); 152 } 150 153 mZWdg[mZc] = child; 151 154 mZc = (mZc+1)%(mZx*mZy); … … 170 173 171 174 /* --Methode-- */ 172 voidPIZoneWindow::NextChildPosSize(int& px, int& py, int& sx, int& sy)175 PIWdg* PIZoneWindow::NextChildPosSize(int& px, int& py, int& sx, int& sy) 173 176 { 174 177 sx = XSize()/mZx; … … 177 180 int ny = mZc/mZx; 178 181 px = nx*sx; py = ny*sy; 182 return ((PIWdg*)mZWdg[mZc]); 179 183 } -
trunk/SophyaPI/PI/pistzwin.h
r134 r139 48 48 virtual void SetZone(int nzx, int nzy); 49 49 virtual void NbZone(int& nzx, int& nzy); 50 virtual voidNextChildPosSize(int& px, int& py, int& sx, int& sy);50 virtual PIWdg* NextChildPosSize(int& px, int& py, int& sx, int& sy); 51 51 52 52 protected:
Note:
See TracChangeset
for help on using the changeset viewer.