Kuit

Kuit Namespace Reference

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,
  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 KuitSetupsetupForDomain (const char *domain)
 
KI18N_EXPORT KuitSetupsetupForDomain (const QByteArray &domain)
 

Detailed Description

Global constants and functions related to KUIT markup.

Typedef Documentation

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
languagesthe target languages (by decreasing priority)
tagNamethe wrapping tag name
attributesthe attribute name-value pairs in the tag
textthe wrapped text
tagPaththe ordered list of ancestor tag names, parent first
formatthe target visual format
Returns
formatted text

Definition at line 74 of file kuitmarkup.h.

Enumeration Type Documentation

Classification of KUIT tags.

Enumerator
PhraseTag 

Tags wrapping text inserted into running text.

StructTag 

Tags spliting text into paragraph-level blocks.

Definition at line 52 of file kuitmarkup.h.

Visual formats into which KUIT markup can be resolved.

Enumerator
UndefinedFormat 

Visual format not defined.

This value can be explicitly set (e.g. through KLocalizedString::withFormat) to indicate that the format should be decided by another mechanism (e.g. context UI marker).

PlainText 

Plain text.

RichText 

Qt rich text (HTML subset).

TermText 

Terminal escape sequences.

Definition at line 26 of file kuitmarkup.h.

Function Documentation

KuitSetup & Kuit::setupForDomain ( const char *  domain)

Get hold of the KUIT setup object for a given domain.

Parameters
domainthe translation domain
Returns
pointer to KUIT setup object

Definition at line 512 of file kuitmarkup.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Aug 8 2020 22:41:30 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.