Changeset 2677 in Sophya


Ignore:
Timestamp:
Apr 19, 2005, 11:13:49 AM (20 years ago)
Author:
ansari
Message:

Ajout de l option nodisp ds les affichages des NamedObjMgr, prise en compte de <Cntrl C> (Msg_Cancel) pour arreter l'execution de l'interpreteur ds PIStdImgApp et remplacement commande breakexe par stop ds PIACmd - Reza 19/4/2005

Location:
trunk/SophyaPI/PIext
Files:
4 edited

Legend:

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

    r2672 r2677  
    13091309void NamedObjMgr::DisplayObj(string& nom, string dopt)
    13101310{
     1311// Pas de display si option dopt = nodisp
     1312if ( (dopt == "nodisp") || (dopt == "nodisplay") ) return;
     1313
    13111314ZSync(*myMutex);
    13121315
     
    13561359void NamedObjMgr::DisplayImage(string& nom, string dopt, bool fgimagnav)
    13571360{
     1361// Pas de display si option dopt = nodisp
     1362if ( (dopt == "nodisp") || (dopt == "nodisplay") ) return;
     1363
    13581364ZSync(*myMutex);
    13591365
     
    13931399void NamedObjMgr::DisplaySurf3D(string& nom, string dopt)
    13941400{
     1401// Pas de display si option dopt = nodisp
     1402if ( (dopt == "nodisp") || (dopt == "nodisplay") ) return;
     1403
    13951404ZSync(*myMutex);
    13961405
     
    14401449                            string& label, string dopt, bool fg3d)
    14411450{
     1451// Pas de display si option dopt = nodisp
     1452if ( (dopt == "nodisp") || (dopt == "nodisplay") ) return;
     1453
    14421454ZSync(*myMutex);
    14431455
     
    15031515//|  opt = options generales pour le display.
    15041516{
     1517// Pas de display si option dopt = nodisp
     1518if ( (dopt == "nodisp") || (dopt == "nodisplay") ) return;
     1519
    15051520ZSync(*myMutex);
    15061521
     
    15561571//   nomvx et nomvy
    15571572{
     1573// Pas de display si option dopt = nodisp
     1574if ( (dopt == "nodisp") || (dopt == "nodisplay") ) return;
     1575
    15581576ZSync(*myMutex);
    15591577
  • trunk/SophyaPI/PIext/piacmd.cc

    r2672 r2677  
    165165usage = "To display the Help window ";
    166166RegisterCommand(kw, usage, NULL, grp);
    167 kw = "breakexe";
    168 usage = "To break (stop) interpreter (PIACmd/Commander) execution";
     167kw = "stop";
     168usage = "To stop (break) interpreter (PIACmd/Commander) execution";
    169169RegisterCommand(kw, usage, NULL, grp);
    170170
     
    206206void PIACmd::AddInputLine(string const & line)
    207207{
    208   if (line == "breakexe")  {
     208  if (line == "stop")  {
    209209    StopExecution();
    210210    return;
  • trunk/SophyaPI/PIext/piaversion.h

    r2651 r2677  
    22#define PIAPPVERSION_H_SEEN
    33
    4 #define PIAPP_VERSIONNUMBER  3.972
     4#define PIAPP_VERSIONNUMBER  3.98
    55
    66#endif
  • trunk/SophyaPI/PIext/pistdimgapp.cc

    r2673 r2677  
    572572else if ( (msg >= 10500) && (msg < 10600) )  MBProcess5(msg, sender, data);
    573573else if ( (msg >= 10600) && (msg < 10700) )  MBProcess6(msg, sender, data);
    574 else if ( msg == 30200  ) {    // Objet PIConsole
     574else if ( (msg == 30200) && (smm == PIMsg_Cancel) )  // <Cntrl C> appuye sur Console
     575  CmdInterpreter()->StopExecution();
     576else if ( (msg == 30200 ) && (smm == PIMsg_OK) ){    // Objet PIConsole avec <Return>/<Enter>
    575577  string s = mCons->GetCmdString();
    576578  //  string s2 = "\nExecuting " + s + "\n";
Note: See TracChangeset for help on using the changeset viewer.