KDECore
#include <kuitsemantics_p.h>
Public Member Functions | |
| KuitSemantics (const QString &lang) | |
| ~KuitSemantics () | |
| QString | format (const QString &text, const QString &ctxt) const |
Static Public Member Functions | |
| static QString | escape (const QString &text) |
| static bool | mightBeRichText (const QString &text) |
Detailed Description
class for formatting semantic markup in UI messages
(used by KLocalizedString)
KuitSemantics resolves semantic markup in user interface text into appropriate visual formatting.
Definition at line 38 of file kuitsemantics_p.h.
Constructor & Destructor Documentation
| KuitSemantics::KuitSemantics | ( | const QString & | lang | ) |
Constructor.
- Parameters:
-
lang language to create the formatter for
Definition at line 1546 of file kuitsemantics.cpp.
Destructor.
Definition at line 1551 of file kuitsemantics.cpp.
Member Function Documentation
| QString KuitSemantics::escape | ( | const QString & | text | ) | [static] |
Convert &, ", ', <, > characters into XML entities &, <, >, ', ", respectively.
Definition at line 1605 of file kuitsemantics.cpp.
| QString KuitSemantics::format | ( | const QString & | text, |
| const QString & | ctxt | ||
| ) | const |
Transforms the semantic markup in the given text into visual formatting.
The appropriate visual formatting is decided based on the semantic context marker provided in the context string.
- Parameters:
-
text text containing the semantic markup ctxt context of the text
- See also:
- More information on semantic markup in UI messages in the article on Techbase.
Definition at line 1556 of file kuitsemantics.cpp.
| bool KuitSemantics::mightBeRichText | ( | const QString & | text | ) | [static] |
Poor man's version of Qt::mightBeRichText() (cannot link to QtGui).
Definition at line 1561 of file kuitsemantics.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 20:49:41 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.