Changeset 457 in Sophya


Ignore:
Timestamp:
Oct 11, 1999, 3:28:47 PM (26 years ago)
Author:
ercodmgr
Message:

Portage sur SGI IRIX64 , Reza 11/10/99

Location:
trunk/SophyaPI/PI
Files:
2 edited

Legend:

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

    r365 r457  
    3232class PITopContAppX : public PIContainer {
    3333public :
    34                 PITopContAppX(PIContainer *par, char *nom,
     34                PITopContAppX(PIContainer *par, char *nom, PIWdg* topw,
    3535                          int sx=10, int sy=10, int px=0, int py=0);
    3636   virtual      ~PITopContAppX();
     
    3838   virtual void SetSize(int sx, int sy);
    3939   virtual void SetPos(int px, int py);
     40
     41PIWdg* mTopWdg;
    4042};
    4143
    4244/* --Methode-- */
    43 PITopContAppX::PITopContAppX(PIContainer *par, char *nom, int sx, int sy, int px, int py)
     45PITopContAppX::PITopContAppX(PIContainer *par, char *nom, PIWdg* topw, int sx, int sy, int px, int py)
    4446        : PIContainer(par, nom, (sx>10)?sx:10, (sy>10)?sy:10, px, py)
    4547{
     48 mTopWdg = topw;
    4649 SetBinding(PIBK_fixed, PIBK_fixed, PIBK_fixed, PIBK_fixed); 
    4750}
     
    5659{
    5760if ((sx <10) || (sy < 10) ) return;
     61mTopWdg->SetSize(sx+XPos(), sy+YPos());
    5862Parent()->SetSize(sx+XPos(), sy+YPos());
    5963// PIContainer::SetSize(sx, sy);   Probleme sur Sun - Reza 9/08/99
     
    101105if (sx < sxt)  sx = sxt;
    102106if (sy < 10) sy = 10;
    103 topcont = new PITopContAppX(MBCont(), "TopLevelCont",
     107topcont = new PITopContAppX(MBCont(), "TopLevelCont", topwdg,
    104108                            sx, sy, 0, msy);
    105109MBCont()->Show();
  • trunk/SophyaPI/PI/pigraphgen.h

    r316 r457  
    4646  inline PIGrCoord(float a) { iv = (int)a; dv = (double)a;}
    4747  inline PIGrCoord(double a) { iv = (int)a; dv = a;}
     48  inline PIGrCoord(PIGrCoord const & gc) { iv = gc.iv;  dv = gc.dv; }
    4849  inline operator int() { return(iv); }
    4950  inline operator short() { return((short)iv); }
     
    5556  inline PIGrCoord& operator= (float a) { iv = (int)a; dv = (double)a; return(*this); }
    5657  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); }
    5759  int iv;
    5860  double dv;
Note: See TracChangeset for help on using the changeset viewer.