Changeset 194 in Sophya for trunk/SophyaPI/PIext


Ignore:
Timestamp:
Feb 11, 1999, 5:52:48 PM (27 years ago)
Author:
ercodmgr
Message:

Petites erreurs Reza 11/02/99

Location:
trunk/SophyaPI/PIext
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/pistdimgapp.cc

    r191 r194  
    319319}
    320320
    321 
     321/* --Methode-- */
     322void PIStdImgApp::SetReady()
     323{
     324mCons->SetSensitive();
     325gimv->SetSensitive();
     326PIApplication::SetReady();
     327}
     328
     329/* --Methode-- */
     330void PIStdImgApp::SetBusy()
     331{
     332mCons->SetUnSensitive();
     333gimv->SetUnSensitive();
     334PIApplication::SetBusy();
     335}
     336
     337/* --Methode-- */
     338void PIStdImgApp::SetBlocked()
     339{
     340mCons->SetUnSensitive();
     341gimv->SetUnSensitive();
     342PIApplication::SetBlocked();
     343}
    322344
    323345
  • trunk/SophyaPI/PIext/pistdimgapp.h

    r165 r194  
    4242
    4343     virtual void   Process(PIMessage msg, PIMsgHandler* sender, void* data=NULL);
     44     virtual void   SetReady();
     45     virtual void   SetBusy();
     46     virtual void   SetBlocked();
    4447
    4548     int  DispImage(P2DArrayAdapter* nouv, string const & name, int opt);
  • trunk/SophyaPI/PIext/servnobjm.cc

    r192 r194  
    370370char tsep[2] = {'.', '\0'};
    371371size_t p = fn.find_last_of(fsep);
    372 size_t q = fn.find_last_of(tsep);
    373 if (p < 0)  p = 0;
    374 p++;
    375 if (q < p) q = fn.length();
     372size_t l = fn.length();
     373if (p >= l)  p = 0;
     374else p++;
     375size_t q = fn.find_first_of(tsep,p);
     376if (q < p) q = l;
    376377return(fn.substr(p,q-p));
    377378}
Note: See TracChangeset for help on using the changeset viewer.