Kuit
Typedefs | |
typedef QString(* | TagFormatter) (const QStringList &languages, const QString &tagName, const QHash< QString, QString > &attributes, const QString &text, const QStringList &tagPath, Kuit::VisualFormat format) |
Enumerations | |
enum | Cue { UndefinedCue , ButtonCue , InmenuCue , IntoolbarCue , WindowCue , MenuCue , TabCue , GroupCue , ColumnCue , RowCue , SliderCue , SpinboxCue , ListboxCue , TextboxCue , ChooserCue , CheckCue , RadioCue , InlistboxCue , IntableCue , InrangeCue , IntextCue , ValuesuffixCue , TooltipCue , WhatsthisCue , PlaceholderCue , StatusCue , ProgressCue , TipofthedayCue , UsagetipCue , CreditCue , ShellCue } |
enum | Role { UndefinedRole , ActionRole , TitleRole , OptionRole , LabelRole , ItemRole , InfoRole } |
enum | TagClass { PhraseTag = 0 , StructTag = 1 } |
enum | VisualFormat { UndefinedFormat = 0 , PlainText = 10 , RichText = 20 , TermText = 30 } |
Functions | |
KI18N_EXPORT KuitSetup & | setupForDomain (const QByteArray &domain) |
Detailed Description
Global constants and functions related to KUIT markup.
Typedef Documentation
◆ TagFormatter
typedef QString(* Kuit::TagFormatter) (const QStringList &languages, const QString &tagName, const QHash< QString, QString > &attributes, const QString &text, const QStringList &tagPath, Kuit::VisualFormat format) |
Functions accepted by tag formatting functions.
- Parameters
-
languages the target languages (by decreasing priority) tagName the wrapping tag name attributes the attribute name-value pairs in the tag text the wrapped text tagPath the ordered list of ancestor tag names, parent first format the target visual format
- Returns
- formatted text
Definition at line 74 of file kuitsetup.h.
Enumeration Type Documentation
◆ Cue
enum Kuit::Cue |
Definition at line 125 of file kuitsetup.cpp.
◆ Role
enum Kuit::Role |
Definition at line 115 of file kuitsetup.cpp.
◆ TagClass
enum Kuit::TagClass |
Classification of KUIT tags.
Enumerator | |
---|---|
PhraseTag | Tags wrapping text inserted into running text. |
StructTag | Tags splitting text into paragraph-level blocks. |
Definition at line 52 of file kuitsetup.h.
◆ VisualFormat
enum Kuit::VisualFormat |
Visual formats into which KUIT markup can be resolved.
Enumerator | |
---|---|
UndefinedFormat | Visual format not defined. This value can be explicitly set (e.g. through |
PlainText | Plain text. |
RichText | Qt rich text (HTML subset). |
TermText | Terminal escape sequences. |
Definition at line 26 of file kuitsetup.h.
Function Documentation
◆ setupForDomain()
KuitSetup & Kuit::setupForDomain | ( | const QByteArray & | domain | ) |
Get hold of the KUIT setup object for a given domain.
- Parameters
-
domain the translation domain
- Returns
- pointer to KUIT setup object
Definition at line 509 of file kuitsetup.cpp.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.