Summary: | A help dialog with label syntax is needed | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | Nicolas Brisset <nicolas.brisset> |
Component: | general | Assignee: | kst |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | 1.x | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Solaris | ||
Latest Commit: | Version Fixed In: |
Description
Nicolas Brisset
2006-02-01 16:50:18 UTC
I think once we start down the path of providing such help in Kst it will be difficult to stop. The place to look for this information is in the documentation, which is already easily accessible from within Kst. On Wednesday 22 February 2006 13:16, Andrew Walker wrote:
> ------- I think once we start down the path of providing such help in Kst
> it will be difficult to stop. The place to look for this information is in
> the documentation, which is already easily accessible from within Kst.
I was planning to put a syntax highlighter in here. It will help catch
mistakes, partially solve this problem, and is nearly free with KDE.
I think that this could fruitfully be put into the "what's this". SVN commit 552632 by staikos: Add whatsthis text to the label editor. It's a good first step, though the syntax highlighter will probably be more useful in the long term. FEATURE: 121161 M +3 -0 viewlabelwidget.ui.h --- trunk/extragear/graphics/kst/src/libkstapp/viewlabelwidget.ui.h #552631:552632 @@ -22,6 +22,7 @@ _vertical->insertItem(i18n("Bottom")); _vertical->insertItem(i18n("Center")); + QWhatsThis::add(_text, i18n("<qt>The syntax for labels is a derivative of a subset of LaTeX. Supported syntax is: <b>\\[greeklettername]</b> and <b>\\[Greeklettername]</b>, <b>\\approx</b>, <b>\\cdot</b>, <b>\\ge</b>, <b>\\geq</b>, <b>\\inf</b>, <b>\\int</b>, <b>\\le</b>, <b>\\leq</b>, <b>\\ne</b>, <b>\\n</b>, <b>\\partial</b>, <b>\\prod</b>, <b>\\pm</b>, <b>\\textcolor{color name}{colored text}</b>, <b>\\textbf{bold text}</b>, <b>\\textit{italicized text}</b>, <b>\\t</b>, <b>\\sum</b>, <b>\\sqrt</b>, <b>\\underline{underlined text}</b>, <b>x^y</b>, <b>x_y</b>. Data references and embedded expressions should be enclosed in square brackets. Example: <i>[=[MyScalar]/2]</i>")); } @@ -29,3 +30,5 @@ { _text->insert("["+S+"]"); } + +// vim: ts=8 sw=4 noet |