|
Krita Source Code Documentation
|
#include <kundo2magicstring.h>
Inheritance diagram for KUndo2MagicString:Public Member Functions | |
| bool | isEmpty () const |
| KUndo2MagicString () | |
| bool | operator== (const KUndo2MagicString &rhs) const |
| QString | toSecondaryString () const |
| QString | toString () const |
Private Member Functions | |
| KUndo2MagicString (const QString &text) | |
Private Attributes | |
| QString | m_text |
Friends | |
| KUndo2MagicString | kundo2_i18n (const char *text) |
| template<typename A1 > | |
| KUndo2MagicString | kundo2_i18n (const char *text, const A1 &a1) |
| template<typename A1 , typename A2 > | |
| KUndo2MagicString | kundo2_i18n (const char *text, const A1 &a1, const A2 &a2) |
| template<typename A1 , typename A2 , typename A3 > | |
| KUndo2MagicString | kundo2_i18n (const char *text, const A1 &a1, const A2 &a2, const A3 &a3) |
| template<typename A1 , typename A2 , typename A3 , typename A4 > | |
| KUndo2MagicString | kundo2_i18n (const char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4) |
| KUndo2MagicString | kundo2_i18nc (const char *ctxt, const char *text) |
| template<typename A1 > | |
| KUndo2MagicString | kundo2_i18nc (const char *ctxt, const char *text, const A1 &a1) |
| template<typename A1 , typename A2 > | |
| KUndo2MagicString | kundo2_i18nc (const char *ctxt, const char *text, const A1 &a1, const A2 &a2) |
| template<typename A1 , typename A2 , typename A3 > | |
| KUndo2MagicString | kundo2_i18nc (const char *ctxt, const char *text, const A1 &a1, const A2 &a2, const A3 &a3) |
| template<typename A1 > | |
| KUndo2MagicString | kundo2_i18ncp (const char *ctxt, const char *sing, const char *plur, const A1 &a1) |
| template<typename A1 , typename A2 > | |
| KUndo2MagicString | kundo2_i18ncp (const char *ctxt, const char *sing, const char *plur, const A1 &a1, const A2 &a2) |
| template<typename A1 , typename A2 , typename A3 > | |
| KUndo2MagicString | kundo2_i18ncp (const char *ctxt, const char *sing, const char *plur, const A1 &a1, const A2 &a2, const A3 &a3) |
| template<typename A1 > | |
| KUndo2MagicString | kundo2_i18np (const char *sing, const char *plur, const A1 &a1) |
| template<typename A1 , typename A2 > | |
| KUndo2MagicString | kundo2_i18np (const char *sing, const char *plur, const A1 &a1, const A2 &a2) |
| template<typename A1 , typename A2 , typename A3 > | |
| KUndo2MagicString | kundo2_i18np (const char *sing, const char *plur, const A1 &a1, const A2 &a2, const A3 &a3) |
| template<typename A1 > | |
| KUndo2MagicString | kundo2_noi18n (const char *text, const A1 &a1) |
| template<typename A1 , typename A2 > | |
| KUndo2MagicString | kundo2_noi18n (const char *text, const A1 &a1, const A2 &a2) |
| template<typename A1 , typename A2 , typename A3 > | |
| KUndo2MagicString | kundo2_noi18n (const char *text, const A1 &a1, const A2 &a2, const A3 &a3) |
| template<typename A1 , typename A2 , typename A3 , typename A4 > | |
| KUndo2MagicString | kundo2_noi18n (const char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4) |
| KUndo2MagicString | kundo2_noi18n (const QString &text) |
special wrapper for a string that is going to passed to a KUndo2Command and be later shown in the undo history and undo action in menu. The strings like that must have (qtundo-format) context to let translators know that they are allowed to use magic split in them.
Magic split is used in some languages to split the message in the undo history docker (which is either verb or noun in nominative) and the message in undo/redo actions (which is usually a noun in accusative). When the translator needs it he, splits two translations with '
' symbol and the magic string will recognize it.
Definition at line 39 of file kundo2magicstring.h.
| KUndo2MagicString::KUndo2MagicString | ( | ) |
Construct an empty string. Note that you cannot create a non-empty string without special functions, all the calls to which are processed by xgettext.
Definition at line 11 of file kundo2magicstring.cpp.
|
explicitprivate |
Construction of a magic string is allowed only with the means of special macros which resemble their kde-wide counterparts
Definition at line 15 of file kundo2magicstring.cpp.
| bool KUndo2MagicString::isEmpty | ( | ) | const |
Definition at line 32 of file kundo2magicstring.cpp.
References m_text.
| bool KUndo2MagicString::operator== | ( | const KUndo2MagicString & | rhs | ) | const |
Definition at line 37 of file kundo2magicstring.cpp.
References m_text.
| QString KUndo2MagicString::toSecondaryString | ( | ) | const |
Fetch the secondary string which will go to the undo/redo action. This is usually a noun in accusative. If the translator didn't provide a secondary string, toString() and toSecondaryString() return the same values.
Definition at line 26 of file kundo2magicstring.cpp.
References m_text.
| QString KUndo2MagicString::toString | ( | ) | const |
Fetch the main translated string. That is the one that goes to undo history and resembles the action name in verb/nominative
Definition at line 20 of file kundo2magicstring.cpp.
References m_text.
|
friend |
Same as ki18n, but is supposed to work with strings going to undo stack
Definition at line 180 of file kundo2magicstring.h.
|
friend |
Definition at line 186 of file kundo2magicstring.h.
|
friend |
Definition at line 192 of file kundo2magicstring.h.
|
friend |
Definition at line 198 of file kundo2magicstring.h.
|
friend |
Definition at line 204 of file kundo2magicstring.h.
|
friend |
Same as ki18nc, but is supposed to work with strings going to undo stack
Definition at line 218 of file kundo2magicstring.h.
|
friend |
Definition at line 224 of file kundo2magicstring.h.
|
friend |
Definition at line 230 of file kundo2magicstring.h.
|
friend |
Definition at line 236 of file kundo2magicstring.h.
|
friend |
Same as ki18ncp, but is supposed to work with strings going to undo stack
Definition at line 282 of file kundo2magicstring.h.
|
friend |
Definition at line 288 of file kundo2magicstring.h.
|
friend |
Definition at line 294 of file kundo2magicstring.h.
|
friend |
Same as ki18np, but is supposed to work with strings going to undo stack
Definition at line 253 of file kundo2magicstring.h.
|
friend |
Definition at line 259 of file kundo2magicstring.h.
|
friend |
Definition at line 265 of file kundo2magicstring.h.
|
friend |
Definition at line 152 of file kundo2magicstring.h.
|
friend |
Definition at line 158 of file kundo2magicstring.h.
|
friend |
Definition at line 164 of file kundo2magicstring.h.
|
friend |
Definition at line 170 of file kundo2magicstring.h.
|
friend |
This is a special wrapper to a string which tells explicitly that we don't need a translation for a given string. It is used either in testing or internal commands, which don't go to the stack directly.
Definition at line 146 of file kundo2magicstring.h.
|
private |
Definition at line 125 of file kundo2magicstring.h.