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


Ignore:
Timestamp:
Aug 7, 2002, 5:00:49 PM (23 years ago)
Author:
ansari
Message:

Ajout commande setaxelabels, adaptations aux modifs PIElDrwMgr et
PIDrawer3D - Reza 7/8/2002

File:
1 edited

Legend:

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

    r2158 r2165  
    128128
    129129
    130 else if (kw == "settitle") {
    131   if (tokens.size() < 1) { cout << "Usage: settitle TopTitle [BotTitle] [fontatt]" << endl;  return(0); }
     130else if ((kw == "settitle") || (kw == "addtitle")) {
     131  if (tokens.size() < 1) { cout << "Usage: settitle/addtitle TopTitle [BotTitle] [fontatt]" << endl;  return(0); }
    132132  if(tokens.size()<2) tokens.push_back("");
    133   mImgApp->SetTitle(tokens[0], tokens[1]);
     133  string gropt;
     134  if(tokens.size()>2) gropt = tokens[2];
     135  mImgApp->SetTitle(tokens[0], tokens[1], gropt);
     136}
     137
     138else if ((kw == "setaxelabels") || (kw == "addaxelabels")) {
     139  if (tokens.size() < 2) { cout << "Usage: setaxelabels/addaxelabels xLabel yLabel [fontatt]" << endl;  return(0); }
     140  string gropt;
     141  if(tokens.size()>2) gropt = tokens[2];
     142  mImgApp->SetAxeLabels(tokens[0], tokens[1], gropt);
    134143}
    135144 
     
    879888usage += "\n  Usage: settitle TopTitle [BottomTitle] [fontAtt]";
    880889usage += "\n  Related commands: addtext graphicatt"; 
     890mpiac->RegisterCommand(kw, usage, this, "Graphics");
     891
     892kw = "addtitle";
     893usage = "Set the title string (top title / bottom title) \n";
     894usage += "   alias for settitle ";
     895mpiac->RegisterCommand(kw, usage, this, "Graphics");
     896
     897kw = "setaxelabels";
     898usage = "Set the X and Y axis labels for the current 2D graphic object \n";
     899usage += "\n  Usage: setaxelabels xLabel yLabel [ColorFntAtt]";
     900usage += "\n  Related commands: settitle addtext graphicatt"; 
     901mpiac->RegisterCommand(kw, usage, this, "Graphics");
     902
     903kw = "addaxelabels";
     904usage = "Set the X and Y axis labels for the current 2D graphic object";
     905usage += "   alias for setaxelabels ";
    881906mpiac->RegisterCommand(kw, usage, this, "Graphics");
    882907
Note: See TracChangeset for help on using the changeset viewer.