Commit 6a30b721 authored by Claes Sjofors's avatar Claes Sjofors

Orm, function objects pin name s, graphname, displayed in object reference manual and xtt help

parent 3d4ecd3d
...@@ -684,6 +684,7 @@ void CnvReadWbl::attribute_init() ...@@ -684,6 +684,7 @@ void CnvReadWbl::attribute_init()
strcpy( attr_typeref, ""); strcpy( attr_typeref, "");
strcpy( attr_typeref_volume, ""); strcpy( attr_typeref_volume, "");
strcpy( attr_pgmname, ""); strcpy( attr_pgmname, "");
strcpy( attr_graphname, "");
strcpy( attr_elements, ""); strcpy( attr_elements, "");
attr_pointer = 0; attr_pointer = 0;
attr_array = 0; attr_array = 0;
...@@ -760,6 +761,9 @@ int CnvReadWbl::attribute_attr( char *name, char *value) ...@@ -760,6 +761,9 @@ int CnvReadWbl::attribute_attr( char *name, char *value)
else if ( strcmp( low( name), "pgmname") == 0) { else if ( strcmp( low( name), "pgmname") == 0) {
strcpy( attr_pgmname, value); strcpy( attr_pgmname, value);
} }
else if ( strcmp( low( name), "graphname") == 0) {
strcpy( attr_graphname, value);
}
return 1; return 1;
} }
......
...@@ -133,6 +133,7 @@ class CnvReadWbl { ...@@ -133,6 +133,7 @@ class CnvReadWbl {
char attr_elements[80]; char attr_elements[80];
int attr_elem; int attr_elem;
char attr_pgmname[80]; char attr_pgmname[80];
char attr_graphname[80];
char volume_name[80]; char volume_name[80];
char class_id[80]; char class_id[80];
char class_name[80]; char class_name[80];
......
...@@ -672,7 +672,7 @@ endl << ...@@ -672,7 +672,7 @@ endl <<
"<A NAME=\"" << ctx->rw->body_name << "\"><!-- --></A>" << endl << "<A NAME=\"" << ctx->rw->body_name << "\"><!-- --></A>" << endl <<
"<TABLE BORDER=\"1\" CELLPADDING=\"3\" CELLSPACING=\"0\" WIDTH=\"100%\">" << endl << "<TABLE BORDER=\"1\" CELLPADDING=\"3\" CELLSPACING=\"0\" WIDTH=\"100%\">" << endl <<
"<TR BGCOLOR=\"#CCCCFF\" CLASS=\"TableHeadingColor\">" << endl << "<TR BGCOLOR=\"#CCCCFF\" CLASS=\"TableHeadingColor\">" << endl <<
"<TD COLSPAN=3><FONT SIZE=\"+2\">" << endl << "<TD COLSPAN=4><FONT SIZE=\"+2\">" << endl <<
"<B>" << ctx->rw->body_name << " attributes</B></FONT>" << "<B>" << ctx->rw->body_name << " attributes</B></FONT>" <<
"<FONT SIZE=\"+1\"<B>&nbsp;&nbsp;&nbsp;&nbsp; <A HREF=\"" << struct_file << "#" << ctx->rw->class_name << "\">" << struct_name << "</A></B></FONT></TD>" << endl << "<FONT SIZE=\"+1\"<B>&nbsp;&nbsp;&nbsp;&nbsp; <A HREF=\"" << struct_file << "#" << ctx->rw->class_name << "\">" << struct_name << "</A></B></FONT></TD>" << endl <<
"</TR>" << endl; "</TR>" << endl;
...@@ -872,7 +872,14 @@ int CnvWblToHtml::attribute_exec() ...@@ -872,7 +872,14 @@ int CnvWblToHtml::attribute_exec()
"<CODE>" << ctx->rw->attr_typeref << "</CODE></FONT></A></TD>" << endl; "<CODE>" << ctx->rw->attr_typeref << "</CODE></FONT></A></TD>" << endl;
html_clf->f << html_clf->f <<
"</A><TD><A HREF=\"#" << ctx->rw->attr_name << "\"><CODE><B>" << ctx->rw->attr_name << "</B></CODE></A></TD>" << endl << "</A><TD><A HREF=\"#" << ctx->rw->attr_name << "\"><CODE><B>" << ctx->rw->attr_name << "</B></CODE></A></TD>" << endl;
if ( strcmp( ctx->rw->attr_graphname, "") != 0 )
html_clf->f <<
"<TD WIDTH=\"1%\">" << ctx->rw->attr_graphname << "</TD>" << endl;
else
html_clf->f <<
"<TD WIDTH=\"1%\">&nbsp;</TD>" << endl;
html_clf->f <<
"<TD>"; "<TD>";
if ( ctx->rw->doc_fresh) if ( ctx->rw->doc_fresh)
{ {
...@@ -937,6 +944,10 @@ int CnvWblToHtml::attribute_exec() ...@@ -937,6 +944,10 @@ int CnvWblToHtml::attribute_exec()
fp_tmp << fp_tmp <<
"<DT><CODE><B>Elements</B>&nbsp;&nbsp;" << ctx->rw->attr_elements << "</CODE><DT>" << endl; "<DT><CODE><B>Elements</B>&nbsp;&nbsp;" << ctx->rw->attr_elements << "</CODE><DT>" << endl;
if ( strcmp( ctx->rw->attr_graphname, "") != 0)
fp_tmp <<
"<DT><CODE><B>GraphName</B>&nbsp;" << ctx->rw->attr_graphname << "</CODE><DT>" << endl;
fp_tmp << fp_tmp <<
"<DT><CODE><B>" << Lng::translate("Body") << "</B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" << ctx->rw->body_name << "</CODE><DT>" << endl; "<DT><CODE><B>" << Lng::translate("Body") << "</B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" << ctx->rw->body_name << "</CODE><DT>" << endl;
fp_tmp << fp_tmp <<
......
...@@ -224,9 +224,12 @@ int CnvWblToXtthelp::attribute_exec() ...@@ -224,9 +224,12 @@ int CnvWblToXtthelp::attribute_exec()
if ( Lng::current() != lng_eLanguage_en_US) if ( Lng::current() != lng_eLanguage_en_US)
lng_sts = ctx->rw->read_lng( ctx->rw->class_name, ctx->rw->attr_name); lng_sts = ctx->rw->read_lng( ctx->rw->class_name, ctx->rw->attr_name);
fp_tmp << if ( strcmp( ctx->rw->attr_graphname, "") == 0)
endl << fp_tmp << endl <<
"<H2>" << ctx->rw->attr_name << "<BOOKMARK>" << ctx->rw->attr_name << endl; "<H2>" << ctx->rw->attr_name << "<BOOKMARK>" << ctx->rw->attr_name << endl;
else
fp_tmp << endl <<
"<H2>" << ctx->rw->attr_name << " " << ctx->rw->attr_graphname << "<BOOKMARK>" << ctx->rw->attr_name << endl;
if ( ctx->rw->attr_array && ctx->rw->attr_pointer) if ( ctx->rw->attr_array && ctx->rw->attr_pointer)
fp_tmp << fp_tmp <<
"<B>Array[" << ctx->rw->attr_elements << "] of pointers to " << ctx->rw->attr_typeref << " "; "<B>Array[" << ctx->rw->attr_elements << "] of pointers to " << ctx->rw->attr_typeref << " ";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment