/[projectaxis]/projectaxis/projectAxis/src/visual/panel/pgpanel_podgenset.cpp
ViewVC logotype

Diff of /projectaxis/projectAxis/src/visual/panel/pgpanel_podgenset.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by leiavoia, Wed Aug 20 18:27:14 2003 UTC revision 1.2 by leiavoia, Sun Sep 14 01:05:00 2003 UTC
# Line 69  void PG_Panel_PodGenSet::Refresh(Pod* p) Line 69  void PG_Panel_PodGenSet::Refresh(Pod* p)
69          // load widgets if this is our first time through          // load widgets if this is our first time through
70          if ( widgetsloaded == 0 ) { InitWidgets(); widgetsloaded = 1;}          if ( widgetsloaded == 0 ) { InitWidgets(); widgetsloaded = 1;}
71    
         char b[4]; // char buffer for converting int to char  
   
72          // set defaults          // set defaults
73          avoid_out->SetText(  gcvt(pod->GetAvoid(), 3, b)  );          avoid_out->SetText(  rm->IntToChar( pod->GetAvoid() ).c_str()  );
74          avoid->SetPosition(pod->GetAvoid());          avoid->SetPosition(pod->GetAvoid());
75          switch (pod->GetEngage()) {          switch (pod->GetEngage()) {
76                  case 0: engage->SetText("Attack All"); break;                  case 0: engage->SetText("Attack All"); break;
# Line 89  void PG_Panel_PodGenSet::Refresh(Pod* p) Line 87  void PG_Panel_PodGenSet::Refresh(Pod* p)
87    
88    
89  PARAGUI_CALLBACK(PG_Panel_PodGenSet::handle_avoid_scroll) {  PARAGUI_CALLBACK(PG_Panel_PodGenSet::handle_avoid_scroll) {
90          char b[4];          avoid_out->SetText(  rm->IntToChar( avoid->GetPosition() ).c_str()  );
         avoid_out->SetText(  gcvt(avoid->GetPosition(), 3, b)  );  
91          pod->SetAvoid(avoid->GetPosition());          pod->SetAvoid(avoid->GetPosition());
92          return true;          return true;
93          }          }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26