Changeset 2165 in Sophya for trunk/SophyaPI/PIext/basexecut.cc
- Timestamp:
- Aug 7, 2002, 5:00:49 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/basexecut.cc
r2158 r2165 128 128 129 129 130 else if ( kw == "settitle") {131 if (tokens.size() < 1) { cout << "Usage: settitle TopTitle [BotTitle] [fontatt]" << endl; return(0); }130 else if ((kw == "settitle") || (kw == "addtitle")) { 131 if (tokens.size() < 1) { cout << "Usage: settitle/addtitle TopTitle [BotTitle] [fontatt]" << endl; return(0); } 132 132 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 138 else 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); 134 143 } 135 144 … … 879 888 usage += "\n Usage: settitle TopTitle [BottomTitle] [fontAtt]"; 880 889 usage += "\n Related commands: addtext graphicatt"; 890 mpiac->RegisterCommand(kw, usage, this, "Graphics"); 891 892 kw = "addtitle"; 893 usage = "Set the title string (top title / bottom title) \n"; 894 usage += " alias for settitle "; 895 mpiac->RegisterCommand(kw, usage, this, "Graphics"); 896 897 kw = "setaxelabels"; 898 usage = "Set the X and Y axis labels for the current 2D graphic object \n"; 899 usage += "\n Usage: setaxelabels xLabel yLabel [ColorFntAtt]"; 900 usage += "\n Related commands: settitle addtext graphicatt"; 901 mpiac->RegisterCommand(kw, usage, this, "Graphics"); 902 903 kw = "addaxelabels"; 904 usage = "Set the X and Y axis labels for the current 2D graphic object"; 905 usage += " alias for setaxelabels "; 881 906 mpiac->RegisterCommand(kw, usage, this, "Graphics"); 882 907
Note:
See TracChangeset
for help on using the changeset viewer.