Changeset 63 in Sophya for trunk/SophyaPI/PI/pibwdggen.cc


Ignore:
Timestamp:
Dec 5, 1997, 11:13:15 PM (28 years ago)
Author:
ansari
Message:

Modifs pour les Drawers, Nouveaux ColorMap, Copier-Coller Reza 05/12/97

File:
1 edited

Legend:

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

    r52 r63  
    5050  return;
    5151}
     52
     53/* --Methode-- */
     54void PIBaseWdgGen::Refresh()
     55{
     56if ( IsVisible() )  {
     57  Draw();
     58  CallDrawers();
     59}
     60return;
     61}
     62
     63/* --Methode-- */
     64void PIBaseWdgGen::Draw(int /*x0*/, int /*y0*/, int /*dx*/, int /*dy*/)
     65{
     66this->Draw();
     67return;
     68}
     69
     70/* --Methode-- */
     71void PIBaseWdgGen::Draw()
     72{
     73#ifdef DEBUG_RZXB
     74puts("Debug_PIBaseWdgGen::Draw() Efface la fenetre par defaut ! ");
     75#endif
     76this->EraseWindow();
     77return;
     78}
     79
     80
     81/* --Methode-- */
     82void PIBaseWdgGen::Resize()
     83{
     84#ifdef DEBUG_RZXB
     85puts("Debug_PIBaseWdgGen::Resize()  resize notify ");
     86#endif
     87return;
     88}
     89
    5290
    5391/* --Methode-- */
     
    173211drw->Attach((PIBaseWdg*)this, mDrwId);
    174212return(mDrwId);
     213}
     214
     215/* --Methode-- */
     216void PIBaseWdgGen::MoveResizeDrawer(int id, int x0, int y0, int dx, int dy)
     217{
     218list<BWDrwId>::iterator it;
     219for(it = mDrwList.begin(); it != mDrwList.end(); it++) 
     220  if ((*it).id == id) {
     221    (*it).x0 = x0;  (*it).y0 = y0;
     222    (*it).dx = dx;  (*it).dy = dy;
     223    break;
     224  }
     225return;
    175226}
    176227
     
    226277if (fgc)  ClearClipRectangle();
    227278
    228 }
     279return;
     280}
     281
     282/* --Methode-- */
     283void PIBaseWdgGen::CallDrawer(int id)
     284{
     285list<BWDrwId>::iterator it;
     286for(it = mDrwList.begin(); it != mDrwList.end(); it++)
     287  if ((*it).id == id) {
     288    SaveGraphicAtt();
     289    (*it).drw->SetDrwWdg(this, (*it).x0, (*it).y0, (*it).dx, (*it).dy);
     290    SetClipRectangle((*it).x0, (*it).y0, (*it).dx , (*it).dy);
     291    (*it).drw->Draw();
     292    RestoreGraphicAtt();   
     293    ClearClipRectangle();
     294    break;
     295  }
     296return;
     297}
Note: See TracChangeset for help on using the changeset viewer.