Changeset 1131 in Sophya for trunk/SophyaPI/PIext/basexecut.cc
- Timestamp:
- Aug 22, 2000, 5:09:27 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/basexecut.cc
r1126 r1131 103 103 int opt = mObjMgr->GetServiceObj()->DecodeDispOption(tokens[2], fgsr); 104 104 mImgApp->AddText(txt, xp, yp); 105 if (fgsr) mImgApp->RestoreGraphicAtt(); 106 } 107 else 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); 105 115 if (fgsr) mImgApp->RestoreGraphicAtt(); 106 116 } … … 715 725 usage += ">> XYLimits : xylimits -> Forces X-Y limits in 2-D plots \n"; 716 726 usage += ">> stat/nostat or stats/nostats -> Toggle statistic display flag \n"; 727 usage += ">> title/notitle or tit/notit -> Toggle Auto AddTitle flag \n"; 717 728 usage += ">> DisplayWindow: next same win stack inset \n"; 718 729 usage += " Related commands: setxylimits setinsetlimits setimgcenter"; … … 741 752 usage += "\n at the specified position (Gr-Object Coordinate) with graphic attribute specification"; 742 753 usage += "\n Usage: addtext x y ColFontAtt TextString"; 743 usage += "\n Related commands: graphicatt"; 754 usage += "\n Related commands: settitle graphicatt"; 755 mpiac->RegisterCommand(kw, usage, this, "Graphics"); 756 757 kw = "settitle"; 758 usage = "Set the title string (top title) for the current graphic object"; 759 usage += "\n Usage: settitle FontAtt TopTitle"; 760 usage += "\n Related commands: addtext graphicatt"; 744 761 mpiac->RegisterCommand(kw, usage, this, "Graphics"); 745 762
Note:
See TracChangeset
for help on using the changeset viewer.