• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KDECore

Public Member Functions | Static Public Member Functions

KuitSemantics Class Reference

class for formatting semantic markup in UI messages More...

#include <kuitsemantics_p.h>

List of all members.

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.

Author:
Chusslove Illich <caslav.ilic@gmx.net>

Definition at line 38 of file kuitsemantics_p.h.


Constructor & Destructor Documentation

KuitSemantics::KuitSemantics ( const QString &  lang)

Constructor.

Parameters:
langlanguage to create the formatter for

Definition at line 1546 of file kuitsemantics.cpp.

KuitSemantics::~KuitSemantics ( )

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:
texttext containing the semantic markup
ctxtcontext 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:
  • kuitsemantics_p.h
  • kuitsemantics.cpp

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal