Changeset 457 in Sophya
- Timestamp:
- Oct 11, 1999, 3:28:47 PM (26 years ago)
- Location:
- trunk/SophyaPI/PI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/piapplx.cc
r365 r457 32 32 class PITopContAppX : public PIContainer { 33 33 public : 34 PITopContAppX(PIContainer *par, char *nom, 34 PITopContAppX(PIContainer *par, char *nom, PIWdg* topw, 35 35 int sx=10, int sy=10, int px=0, int py=0); 36 36 virtual ~PITopContAppX(); … … 38 38 virtual void SetSize(int sx, int sy); 39 39 virtual void SetPos(int px, int py); 40 41 PIWdg* mTopWdg; 40 42 }; 41 43 42 44 /* --Methode-- */ 43 PITopContAppX::PITopContAppX(PIContainer *par, char *nom, int sx, int sy, int px, int py)45 PITopContAppX::PITopContAppX(PIContainer *par, char *nom, PIWdg* topw, int sx, int sy, int px, int py) 44 46 : PIContainer(par, nom, (sx>10)?sx:10, (sy>10)?sy:10, px, py) 45 47 { 48 mTopWdg = topw; 46 49 SetBinding(PIBK_fixed, PIBK_fixed, PIBK_fixed, PIBK_fixed); 47 50 } … … 56 59 { 57 60 if ((sx <10) || (sy < 10) ) return; 61 mTopWdg->SetSize(sx+XPos(), sy+YPos()); 58 62 Parent()->SetSize(sx+XPos(), sy+YPos()); 59 63 // PIContainer::SetSize(sx, sy); Probleme sur Sun - Reza 9/08/99 … … 101 105 if (sx < sxt) sx = sxt; 102 106 if (sy < 10) sy = 10; 103 topcont = new PITopContAppX(MBCont(), "TopLevelCont", 107 topcont = new PITopContAppX(MBCont(), "TopLevelCont", topwdg, 104 108 sx, sy, 0, msy); 105 109 MBCont()->Show(); -
trunk/SophyaPI/PI/pigraphgen.h
r316 r457 46 46 inline PIGrCoord(float a) { iv = (int)a; dv = (double)a;} 47 47 inline PIGrCoord(double a) { iv = (int)a; dv = a;} 48 inline PIGrCoord(PIGrCoord const & gc) { iv = gc.iv; dv = gc.dv; } 48 49 inline operator int() { return(iv); } 49 50 inline operator short() { return((short)iv); } … … 55 56 inline PIGrCoord& operator= (float a) { iv = (int)a; dv = (double)a; return(*this); } 56 57 inline PIGrCoord& operator= (double a) { iv = (int)a; dv = a; return(*this); } 58 inline PIGrCoord& operator= (PIGrCoord const & gc) { iv = gc.iv; dv = gc.dv; return(*this); } 57 59 int iv; 58 60 double dv;
Note:
See TracChangeset
for help on using the changeset viewer.