KDECore
kuitsemantics.cpp File Reference
#include <kuitsemantics_p.h>
#include <config.h>
#include <QHash>
#include <QSet>
#include <QRegExp>
#include <QStack>
#include <QXmlStreamReader>
#include <QStringList>
#include <QPair>
#include <QDir>
#include <kdebug.h>
#include <kglobal.h>
#include <kcatalog_p.h>
#include <kuitformats_p.h>
#include <ktranslit_p.h>
Go to the source code of this file.
|
Namespaces |
namespace | Kuit |
namespace | Kuit::Att |
namespace | Kuit::Cue |
namespace | Kuit::Fmt |
namespace | Kuit::Numfmt |
namespace | Kuit::Rol |
namespace | Kuit::Tag |
Defines |
#define | I18N_NOOP2(ctxt, msg) msg |
#define | I18N_NOOP2(ctxt, msg) ctxt, msg |
#define | INLINES |
#define | SET_KEYNAME(rawname) |
#define | SET_PATTERN(tag, atts, fmt, ctxt_ptrn) |
#define | SETUP_ATT(att, name) |
#define | SETUP_CUE(cue, name) |
#define | SETUP_FMT(fmt, name) |
#define | SETUP_NUMFMT(numfmt, name) |
#define | SETUP_ROL(rol, name, fmt, cues) |
#define | SETUP_ROLCUEFMT(rol, cue, fmt) |
#define | SETUP_TAG(tag, name, atts, subs) |
#define | SETUP_TAG_NL(tag, nlead) |
#define | XXXX_NOOP2(ctxt, msg) ctxt, msg |
Typedefs |
typedef Att::Var | Kuit::AttVar |
typedef Cue::Var | Kuit::CueVar |
typedef Fmt::Var | Kuit::FmtVar |
typedef Numfmt::Var | Kuit::NumfmtVar |
typedef Rol::Var | Kuit::RolVar |
typedef Tag::Var | Kuit::TagVar |
Enumerations |
enum | Kuit::Numfmt::Var {
Kuit::Numfmt::System,
Kuit::Numfmt::Posix,
Kuit::Numfmt::US,
Kuit::Numfmt::Euro,
Kuit::Numfmt::Euro2,
Kuit::Numfmt::Euro2ct
} |
enum | Kuit::Fmt::Var { Kuit::Fmt::None,
Kuit::Fmt::Plain,
Kuit::Fmt::Rich,
Kuit::Fmt::Term
} |
enum | Kuit::Cue::Var {
Kuit::Cue::None,
Kuit::Cue::Button,
Kuit::Cue::Inmenu,
Kuit::Cue::Intoolbar,
Kuit::Cue::Window,
Kuit::Cue::Menu,
Kuit::Cue::Tab,
Kuit::Cue::Group,
Kuit::Cue::Column,
Kuit::Cue::Slider,
Kuit::Cue::Spinbox,
Kuit::Cue::Listbox,
Kuit::Cue::Textbox,
Kuit::Cue::Chooser,
Kuit::Cue::Check,
Kuit::Cue::Radio,
Kuit::Cue::Inlistbox,
Kuit::Cue::Intable,
Kuit::Cue::Inrange,
Kuit::Cue::Intext,
Kuit::Cue::Tooltip,
Kuit::Cue::Whatsthis,
Kuit::Cue::Status,
Kuit::Cue::Progress,
Kuit::Cue::Tipoftheday,
Kuit::Cue::Credit,
Kuit::Cue::Shell
} |
enum | Kuit::Rol::Var {
Kuit::Rol::None,
Kuit::Rol::Action,
Kuit::Rol::Title,
Kuit::Rol::Option,
Kuit::Rol::Label,
Kuit::Rol::Item,
Kuit::Rol::Info
} |
enum | Kuit::Att::Var {
Kuit::Att::None,
Kuit::Att::Ctx,
Kuit::Att::Url,
Kuit::Att::Address,
Kuit::Att::Section,
Kuit::Att::Label
} |
enum | Kuit::Tag::Var {
Kuit::Tag::None,
Kuit::Tag::TopLong,
Kuit::Tag::TopShort,
Kuit::Tag::Title,
Kuit::Tag::Subtitle,
Kuit::Tag::Para,
Kuit::Tag::List,
Kuit::Tag::Item,
Kuit::Tag::Note,
Kuit::Tag::Warning,
Kuit::Tag::Link,
Kuit::Tag::Filename,
Kuit::Tag::Application,
Kuit::Tag::Command,
Kuit::Tag::Resource,
Kuit::Tag::Icode,
Kuit::Tag::Bcode,
Kuit::Tag::Shortcut,
Kuit::Tag::Interface,
Kuit::Tag::Emphasis,
Kuit::Tag::Placeholder,
Kuit::Tag::Email,
Kuit::Tag::Numid,
Kuit::Tag::Envar,
Kuit::Tag::Message,
Kuit::Tag::Nl,
Kuit::Tag::NumIntg,
Kuit::Tag::NumReal
} |
Functions |
static QString | shorten (const QString &str) |
Define Documentation
#define I18N_NOOP2 |
( |
ctxt, |
|
|
msg |
|
) |
msg |
#define I18N_NOOP2 |
( |
ctxt, |
|
|
msg |
|
) |
ctxt, msg |
#define SET_KEYNAME |
( |
rawname |
|
) |
|
Value:
do { \
\
QString normname = QString(rawname).trimmed().toLower(); \
m_keyNames[normname] = metaTr("keyboard-key-name", rawname); \
} while (0)
#define SET_PATTERN |
( |
tag, |
|
|
atts, |
|
|
fmt, |
|
|
ctxt_ptrn |
|
) |
|
Value:
do { \
QSet<AttVar> aset; \
aset << atts; \
int akey = attSetKey(aset); \
QString pattern = metaTr(ctxt_ptrn); \
m_patterns[tag][akey][fmt] = pattern; \
\
if (fmt == Fmt::Plain && !m_patterns[tag][akey].contains(Fmt::Term)) { \
m_patterns[tag][akey][Fmt::Term] = pattern; \
} \
} while (0)
#define SETUP_ATT |
( |
att, |
|
|
name |
|
) |
|
Value:
do { \
knownAtts[name] = Kuit::Att::att; \
} while (0)
#define SETUP_CUE |
( |
cue, |
|
|
name |
|
) |
|
Value:
do { \
knownCues[name] = Kuit::Cue::cue; \
} while (0)
#define SETUP_FMT |
( |
fmt, |
|
|
name |
|
) |
|
Value:
do { \
knownFmts[name] = Kuit::Fmt::fmt; \
} while (0)
#define SETUP_NUMFMT |
( |
numfmt, |
|
|
name |
|
) |
|
Value:
do { \
knownNumfmts[name] = Kuit::Numfmt::numfmt; \
} while (0)
#define SETUP_ROL |
( |
rol, |
|
|
name, |
|
|
fmt, |
|
|
cues |
|
) |
|
Value:
do { \
knownRols[name] = Kuit::Rol::rol; \
defFmts[Kuit::Rol::rol][Kuit::Cue::None] = Kuit::Fmt::fmt; \
{ \
using namespace Kuit::Cue; \
rolCues[Kuit::Rol::rol] << cues; \
} \
} while (0)
#define SETUP_ROLCUEFMT |
( |
rol, |
|
|
cue, |
|
|
fmt |
|
) |
|
Value:
do { \
defFmts[Kuit::Rol::rol][Kuit::Cue::cue] = Kuit::Fmt::fmt; \
} while (0)
#define SETUP_TAG |
( |
tag, |
|
|
name, |
|
|
atts, |
|
|
subs |
|
) |
|
Value:
do { \
knownTags[name] = Kuit::Tag::tag; \
tagNames[Kuit::Tag::tag] = name; \
{ \
using namespace Kuit::Att; \
tagAtts[Kuit::Tag::tag] << atts; \
} \
{ \
using namespace Kuit::Tag; \
tagSubs[Kuit::Tag::tag] << subs << NumIntg << NumReal; \
} \
} while (0)
#define SETUP_TAG_NL |
( |
tag, |
|
|
nlead |
|
) |
|
Value:
do { \
leadingNewlines[Kuit::Tag::tag] = nlead; \
} while (0)
#define XXXX_NOOP2 |
( |
ctxt, |
|
|
msg |
|
) |
ctxt, msg |
Function Documentation