Changeset View
Changeset View
Standalone View
Standalone View
libs/command/kundo2magicstring.h
- This file was moved from libs/kundo2/kundo2magicstring.h.
Show All 20 Lines | |||||
21 | #ifndef KUNDO2MAGICSTRING_H | 21 | #ifndef KUNDO2MAGICSTRING_H | ||
22 | #define KUNDO2MAGICSTRING_H | 22 | #define KUNDO2MAGICSTRING_H | ||
23 | 23 | | |||
24 | #include <QString> | 24 | #include <QString> | ||
25 | #include <QDebug> | 25 | #include <QDebug> | ||
26 | 26 | | |||
27 | #include <klocalizedstring.h> | 27 | #include <klocalizedstring.h> | ||
28 | 28 | | |||
29 | #include "kritaundo2_export.h" | 29 | #include "kritacommand_export.h" | ||
30 | 30 | | |||
31 | /** | 31 | /** | ||
32 | * \class KUndo2MagicString is a special wrapper for a string that is | 32 | * \class KUndo2MagicString is a special wrapper for a string that is | ||
33 | * going to passed to a KUndo2Command and be later shown in the undo | 33 | * going to passed to a KUndo2Command and be later shown in the undo | ||
34 | * history and undo action in menu. The strings like that must have | 34 | * history and undo action in menu. The strings like that must have | ||
35 | * (qtundo-format) context to let translators know that they are | 35 | * (qtundo-format) context to let translators know that they are | ||
36 | * allowed to use magic split in them. | 36 | * allowed to use magic split in them. | ||
37 | * | 37 | * | ||
38 | * Magic split is used in some languages to split the message in the | 38 | * Magic split is used in some languages to split the message in the | ||
39 | * undo history docker (which is either verb or <a | 39 | * undo history docker (which is either verb or <a | ||
40 | * href="http://en.wikipedia.org/wiki/Nominative_case">noun in | 40 | * href="http://en.wikipedia.org/wiki/Nominative_case">noun in | ||
41 | * nominative</a>) and the message in undo/redo actions (which is | 41 | * nominative</a>) and the message in undo/redo actions (which is | ||
42 | * usually a <a href="http://en.wikipedia.org/wiki/Accusative_case">noun | 42 | * usually a <a href="http://en.wikipedia.org/wiki/Accusative_case">noun | ||
43 | * in accusative</a>). When the translator needs it he, splits two | 43 | * in accusative</a>). When the translator needs it he, splits two | ||
44 | * translations with '\n' symbol and the magic string will recognize | 44 | * translations with '\n' symbol and the magic string will recognize | ||
45 | * it. | 45 | * it. | ||
46 | * | 46 | * | ||
47 | * \note KUndo2MagicString will never support concatenation operators, | 47 | * \note KUndo2MagicString will never support concatenation operators, | ||
48 | * because in many languages you cannot combine words without | 48 | * because in many languages you cannot combine words without | ||
49 | * knowing the proper case. | 49 | * knowing the proper case. | ||
50 | */ | 50 | */ | ||
51 | class KRITAUNDO2_EXPORT KUndo2MagicString | 51 | class KRITACOMMAND_EXPORT KUndo2MagicString | ||
52 | { | 52 | { | ||
53 | public: | 53 | public: | ||
54 | /** | 54 | /** | ||
55 | * Construct an empty string. Note that you cannot create a | 55 | * Construct an empty string. Note that you cannot create a | ||
56 | * non-empy string without special functions, all the calls to which | 56 | * non-empy string without special functions, all the calls to which | ||
57 | * are processed by xgettext. | 57 | * are processed by xgettext. | ||
58 | */ | 58 | */ | ||
59 | KUndo2MagicString(); | 59 | KUndo2MagicString(); | ||
▲ Show 20 Lines • Show All 259 Lines • Show Last 20 Lines |