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

KDECore

Public Member Functions | Static Public Member Functions | List of all members
KuitSemantics Class Reference

#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.

Author
Chusslove Illich casla.nosp@m.v.il.nosp@m.ic@gm.nosp@m.x.ne.nosp@m.t

Definition at line 38 of file kuitsemantics_p.h.

Constructor & Destructor Documentation

◆ KuitSemantics()

KuitSemantics::KuitSemantics ( const QString &  lang)

Constructor.

Parameters
langlanguage to create the formatter for

Definition at line 1574 of file kuitsemantics.cpp.

◆ ~KuitSemantics()

KuitSemantics::~KuitSemantics ( )

Destructor.

Definition at line 1579 of file kuitsemantics.cpp.

Member Function Documentation

◆ escape()

QString KuitSemantics::escape ( const QString &  text)
static

Convert &, ", ', <, > characters into XML entities &, <, >, ', ", respectively.

Definition at line 1633 of file kuitsemantics.cpp.

◆ format()

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 1584 of file kuitsemantics.cpp.

◆ mightBeRichText()

bool KuitSemantics::mightBeRichText ( const QString &  text)
static

Poor man's version of Qt::mightBeRichText() (cannot link to QtGui).

Definition at line 1589 of file kuitsemantics.cpp.


The documentation for this class was generated from the following files:
  • kuitsemantics_p.h
  • kuitsemantics.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • 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
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal