Skip to content

Commit

Permalink
src/widgets/labelbuilder.cpp (showHelp) : Address nits in html (missi…
Browse files Browse the repository at this point in the history
…ng <P> terminations, <br/> instead of <br>)
  • Loading branch information
okellogg committed Apr 2, 2024
1 parent 6a370ec commit ae90eef
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/widgets/labelbuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,28 +57,29 @@ void LabelBuilder::showHelp() {

_helpBox->show();
_helpBox->setText(tr("<qt>"
"<P ALIGN=LEFT STYLE=\"margin-bottom: 0in\"><FONT SIZE=4><B>Scalars &amp; equations</B></FONT><br>"
"<P ALIGN=\"LEFT\" STYLE=\"margin-bottom: 0in\"><FONT SIZE=\"4\"><B>Scalars &amp; equations</B></FONT><br/>"
"Scalars and scalar equations can be displayed live in labels. When the scalar "
"is updated, the label is updated. Scalar names are autocompleted. The format is:</P>"

"<P STYLE=\"margin-bottom: 0in\"><B>Scalar:</B> <FONT FACE=\"Courier New, monospace\">[</FONT><I>scalar"
"name</I><FONT FACE=\"Courier New, monospace\">]</FONT>, e.g. <FONT FACE=\"Courier New, monospace\">[GYRO1:Mean"
"(X4)]</FONT><br>"
"(X4)]</FONT><br/>"
"<B>Vector Element:</B>"
"<FONT FACE=\"Courier New, monospace\">[</FONT><I>vectorName</I><FONT FACE=\"Courier New, monospace\">[</FONT><I>index</I><FONT FACE=\"Courier New, monospace\">]]</FONT><FONT FACE=\"Times New Roman, serif\">, "
"e.g., </FONT><FONT FACE=\"Courier New, monospace\">[GYRO1 (V2)[4]]</FONT>"
"<br>"
"<br/>"
"<B>Equation:</B> <FONT FACE=\"Courier New, monospace\">[=</FONT><I>equation</I><FONT FACE=\"Courier New, monospace\">]</FONT>, "
"e.g. <FONT FACE=\"Courier New, monospace\">[=[GYRO1:Mean"
"(X4)]/[GYRO1:Sigma (X4)]]</FONT></P>"

"<P STYLE=\"margin-bottom: 0in\"><B>Formatting:</B><br> Numbers can be formatted using C printf formats. "
"(eg, <FONT FACE=\"Courier New, monospace\">[GYRO1:Mean (X4)]{%4.2f}</FONT> )<br>"
"<P STYLE=\"margin-bottom: 0in\"><B>Formatting:</B><br/> Numbers can be formatted using C printf formats. "
"(eg, <FONT FACE=\"Courier New, monospace\">[GYRO1:Mean (X4)]{%4.2f}</FONT> )<br/>"

"or as time using C strftime formats. (eg, "
"<FONT FACE=\"Courier New, monospace\">[Time:Min (X4)]{T%a, %d %b %Y %T}</FONT>. )<br>For time, Note the {T...}."
"<FONT FACE=\"Courier New, monospace\">[Time:Min (X4)]{T%a, %d %b %Y %T}</FONT>. )<br/>"
"For time, Note the {T...}.</P>"

"<P ALIGN=LEFT STYLE=\"margin-bottom: 0in\"><FONT SIZE=4><B>Supported LaTeX Subset</B></FONT><br>"
"<P ALIGN=\"LEFT\" STYLE=\"margin-bottom: 0in\"><FONT SIZE=\"4\"><B>Supported LaTeX Subset</B></FONT><br/>"
"Labels in <i>kst</i> "
"support a derivative subset of LaTeX. For example, to display the equation for the area of a "
"circle, you could set the label to A=2\\pir^2. Unlike LaTeX, it is not necessary to enter math mode using '$'. Also, "
Expand Down Expand Up @@ -110,7 +111,7 @@ void LabelBuilder::showHelp() {
"<FONT FACE=\"Courier New, monospace\">\\underline{</FONT><I>underlined "
"text</I><FONT FACE=\"Courier New, monospace\">}</FONT>,"
"<FONT FACE=\"Courier New, monospace\">\\overline{</FONT><I>overlined "
"text</I><FONT FACE=\"Courier New, monospace\">}</FONT>."
"text</I><FONT FACE=\"Courier New, monospace\">}</FONT>.</P>"

"<P STYLE=\"margin-bottom: 0in\"><B>Other:</B><I>x</I><FONT FACE=\"Courier New, monospace\">^</FONT><I>y</I>,"
"<I>x</I><FONT FACE=\"Courier New, monospace\">_</FONT><I>y</I>, <FONT FACE=\"Courier New, monospace\">\\t</FONT>,"
Expand Down

0 comments on commit ae90eef

Please sign in to comment.