Changeset 1131 in Sophya for trunk/SophyaPI/PIext/basexecut.cc


Ignore:
Timestamp:
Aug 22, 2000, 5:09:27 PM (25 years ago)
Author:
ercodmgr
Message:

Introduction de l'option graphique tit/notit (methodes ds PIStdImgApp, modifs ds baseexcut.cc et ds servnobjmgr.cc - Reza 22/08/2000

File:
1 edited

Legend:

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

    r1126 r1131  
    103103  int opt = mObjMgr->GetServiceObj()->DecodeDispOption(tokens[2], fgsr);
    104104  mImgApp->AddText(txt, xp, yp);
     105  if (fgsr) mImgApp->RestoreGraphicAtt();
     106  }
     107else if (kw == "settitle") {
     108  if (tokens.size() < 2) { cout << "Usage: addtitle fontatt titleup " << endl;  return(0); }
     109  bool fgsr = true;
     110  int opt = mObjMgr->GetServiceObj()->DecodeDispOption(tokens[0], fgsr);
     111  string txt = tokens[1];
     112  for(int k=2; k<tokens.size(); k++) txt += (' ' + tokens[k]);
     113  string td = "";
     114  mImgApp->SetTitle(txt, td);
    105115  if (fgsr) mImgApp->RestoreGraphicAtt();
    106116  }
     
    715725usage += ">> XYLimits : xylimits  -> Forces X-Y limits in 2-D plots \n";
    716726usage += ">> stat/nostat or stats/nostats -> Toggle statistic display flag \n";
     727usage += ">> title/notitle or tit/notit -> Toggle Auto AddTitle flag \n";
    717728usage += ">> DisplayWindow: next same win stack inset \n";
    718729usage += "   Related commands: setxylimits setinsetlimits setimgcenter"; 
     
    741752usage += "\n at the specified position (Gr-Object Coordinate) with graphic attribute specification";
    742753usage += "\n  Usage: addtext x y ColFontAtt TextString";
    743 usage += "\n  Related commands: graphicatt"; 
     754usage += "\n  Related commands: settitle graphicatt"; 
     755mpiac->RegisterCommand(kw, usage, this, "Graphics");
     756
     757kw = "settitle";
     758usage = "Set the title string (top title) for the current graphic object";
     759usage += "\n  Usage: settitle FontAtt TopTitle";
     760usage += "\n  Related commands: addtext graphicatt"; 
    744761mpiac->RegisterCommand(kw, usage, this, "Graphics");
    745762
Note: See TracChangeset for help on using the changeset viewer.