Changeset 484 in Sophya
- Timestamp:
- Oct 21, 1999, 9:59:23 AM (26 years ago)
- Location:
- trunk/SophyaPI/PIext
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/basexecut.cc
r463 r484 1111 1111 usage += "\n Related commands: newwin zone stacknext gratt"; 1112 1112 piac->RegisterHelp(kw, usage, grp); 1113 1114 } 1113 1114 kw = "PIConsole"; 1115 usage = "Text output area and command editing window (console) \n"; 1116 usage += ">>>> Mouse controls : \n"; 1117 usage += "o Button-1: Rectangle selection for copy/paste \n"; 1118 usage += "o Button-2: Paste text in the command editing line \n"; 1119 usage += "o Button-3: activate display option menu \n"; 1120 usage += ">>>> Keyboard controls : \n"; 1121 usage += "o <Alt>O : activate display option menu \n"; 1122 usage += "o <Alt>V : Paste text in the command editing line \n"; 1123 usage += "o <Alt>A : Selection of the whole window for copy \n"; 1124 usage += "o <Alt>L : Command history (List of command history buffer) \n"; 1125 usage += "o <Ctl>A : Command editing -> Goto the beginning of line \n"; 1126 usage += "o <Ctl>E : Command editing -> Goto the end of line \n"; 1127 usage += "o <Ctl>K : Command editing -> Clear to the end of line \n"; 1128 usage += "o <Ctl>C : Command editing -> Clear the line \n"; 1129 usage += "o Cursor left,right : Command editing -> Move cursor \n"; 1130 usage += "o Cursor Up,Down : recall command from history buffer \n"; 1131 usage += "o Backspace,Del : Command editing \n"; 1132 usage += "o <Return>,<Enter> : Execute command \n"; 1133 piac->RegisterHelp(kw, usage, grp); 1134 } -
trunk/SophyaPI/PIext/piacmd.cc
r463 r484 918 918 CmdHGroup::iterator it; 919 919 for(it = cmdhgrp.begin(); it != cmdhgrp.end(); it++) 920 fprintf(fip,"\\item {\\bf %s } \n", (*it).first.c_str()); 920 fprintf(fip,"\\item {\\bf %s } (p. \\pageref{%s}) \n", 921 (*it).first.c_str(), (*it).first.c_str()); 921 922 922 923 fputs("\\end{itemize} \n",fip); 924 925 fputs("\\newpage \n",fip); 926 927 CmdExmap::iterator ite; 928 fputs("% ----- Liste de toutes les commandes ----- \n",fip); 929 fputs("\\begin{center} \n ", fip); 930 fputs("\\rule{2cm}{1mm} List of {\\bf piapp} Help items \\rule{2cm}{1mm} \n", fip); 931 fputs("\n \n \\vspace{5mm} \n",fip); 932 fputs("\\begin{tabular}{llllll} \n", fip); 933 int kt = 0; 934 for(ite = helpexmap.begin(); ite != helpexmap.end(); ite++) { 935 fprintf(fip,"%s & p. \\pageref{%s} ", (*ite).first.c_str(), (*ite).first.c_str() ); 936 kt++; 937 if (kt < 3) fputs(" & ", fip); 938 else { fputs(" \\\\ \n", fip); kt = 0; } 939 } 940 if (kt == 1) fputs(" & & & \\\\ \n", fip); 941 else if (kt == 2) fputs(" & \\\\ \n", fip); 942 fputs("\\end{tabular} \n", fip); 943 fputs("\\end{center} \n", fip); 944 fputs("\n \n \\vspace{1cm} \n",fip); 945 946 fputs("\\begin{center} \n ", fip); 947 fputs("\\rule{2cm}{1mm} List of {\\bf piapp} Commands \\rule{2cm}{1mm} \n", fip); 948 fputs("\n \n \\vspace{5mm} \n",fip); 949 fputs("\\begin{tabular}{llllll} \n", fip); 950 kt = 0; 951 for(ite = cmdexmap.begin(); ite != cmdexmap.end(); ite++) { 952 fprintf(fip,"%s & p. \\pageref{%s} ", (*ite).first.c_str(), (*ite).first.c_str() ); 953 kt++; 954 if (kt < 3) fputs(" & ", fip); 955 else { fputs(" \\\\ \n", fip); kt = 0; } 956 } 957 if (kt == 1) fputs(" & & & \\\\ \n", fip); 958 else if (kt == 2) fputs(" & \\\\ \n", fip); 959 fputs("\\end{tabular} \n", fip); 960 fputs("\\end{center} \n", fip); 961 // fputs("\\newline \n",fip); 923 962 924 963 fputs("% ----- Liste des commandes dans chaque groupe ----- \n",fip); 925 964 fputs("\\newpage \n",fip); 926 CmdExmap::iterator ite;927 965 int gid; 928 966 for(it = cmdhgrp.begin(); it != cmdhgrp.end(); it++) { 929 967 gid = (*it).second; 930 968 if (gid == 0) continue; 931 fprintf(fip,"\\subsection{%s} \n", (*it).first.c_str()); 969 fprintf(fip,"\\subsection{%s} \\label{%s} \n", 970 (*it).first.c_str(), (*it).first.c_str()); 932 971 for(ite = helpexmap.begin(); ite != helpexmap.end(); ite++) { 933 972 if ((*ite).second.group != gid) continue; 934 fprintf(fip,"{ \\Large $ \\star \\star \\star $ } Help item {\\bf \\Large %s } \ n",935 (*ite).first.c_str() );973 fprintf(fip,"{ \\Large $ \\star \\star \\star $ } Help item {\\bf \\Large %s } \\label{%s} \n", 974 (*ite).first.c_str(), (*ite).first.c_str()); 936 975 fputs("\\begin{verbatim} \n",fip); 937 976 fprintf(fip,"%s\n", (*ite).second.us.c_str()); … … 940 979 for(ite = cmdexmap.begin(); ite != cmdexmap.end(); ite++) { 941 980 if ((*ite).second.group != gid) continue; 942 fprintf(fip,"{ \\Large $ \\star \\star \\star $ } Command {\\bf \\Large %s } \ n",943 (*ite).first.c_str() );981 fprintf(fip,"{ \\Large $ \\star \\star \\star $ } Command {\\bf \\Large %s } \\label{%s} \n", 982 (*ite).first.c_str(), (*ite).first.c_str()); 944 983 fputs("\\begin{verbatim} \n",fip); 945 984 fprintf(fip,"%s\n", (*ite).second.us.c_str()); -
trunk/SophyaPI/PIext/piacmd.h
r463 r484 61 61 62 62 virtual void RegisterCommand(string& keyw, string& usage, CmdExecutor * ce, 63 string grp="Command ");63 string grp="Commands"); 64 64 virtual void RegisterHelp(string& keyw, string& usage, string& grp); 65 65 virtual void LoadModule(string& fnameso, string& name);
Note:
See TracChangeset
for help on using the changeset viewer.