lokalize
cmd.cpp
Go to the documentation of this file.
38 LokalizeUnitCmd::LokalizeUnitCmd(Catalog *catalog, const DocPosition& pos, const QString& name=QString())
45 static QString setPhaseForPart(Catalog* catalog, const QString& phase, DocPosition phasePos, DocPosition::Part part)
75 LokalizeTargetCmd::LokalizeTargetCmd(Catalog *catalog, const DocPosition& pos, const QString& name=QString())
186 void SetStateCmd::instantiateAndPush(Catalog *catalog, const DocPosition& pos, TargetState state)
308 : LokalizeTargetCmd(catalog,pos,i18nc("@item Undo action item","Translation Equivalence Setting"))
421 void insertCatalogString(Catalog* catalog, DocPosition pos, const CatalogString& catStr, int start)
428 //kWarning()<<"\t"<<catStr.tags.at(i).getElementName()<<catStr.tags.at(i).id<<catStr.tags.at(i).start<<catStr.tags.at(i).end;
434 if (containsMarkup) catalog->beginMacro(i18nc("@item Undo action item","Insert text with markup"));
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
CatalogString targetWithTags(const DocPosition &pos) const
Definition: catalog.cpp:211
bool _firstModificationForThisEntry
Definition: cmd.h:64
SetEquivTransCmd(Catalog *catalog, const DocPosition &pos, bool equivTrans)
Definition: cmd.cpp:307
bool contains(const Key &key) const
how undo system works: undo() and redo() functions call appropriate private method of Catalog to chan...
Definition: cmd.h:85
void setEquivTrans(const DocPosition &, bool equivTrans)
Definition: catalog.cpp:910
static void push(Catalog *catalog, const DocPosition &pos, bool approved)
Definition: cmd.cpp:182
Definition: pos.h:44
void beginMacro(const QString &text)
TargetState setState(const DocPosition &pos, TargetState state)
Definition: catalog.cpp:872
LokalizeTargetCmd(Catalog *catalog, const DocPosition &pos, const QString &name)
Definition: cmd.cpp:75
LokalizeUnitCmd(Catalog *catalog, const DocPosition &pos, const QString &name)
Definition: cmd.cpp:38
QString & prepend(QChar ch)
const_iterator constBegin() const
const T & at(int i) const
int size() const
static void setNote(Catalog &catalog, DocPosition &_pos, const Note ¬e, Note &resultNote)
Definition: cmd.cpp:259
virtual void doUndo()=0
QString & remove(int position, int n)
InsTagCmd(Catalog *catalog, const DocPosition &pos, const InlineTag &tag)
offset is taken from tag and not from pos
Definition: cmd.cpp:209
bool fillTagPlaces(QMap< int, int > &tagPlaces, const CatalogString &catalogString, int start, int len)
CatalogString cmds helper function.
Definition: cmd.cpp:328
virtual void doRedo()=0
int size() const
Definition: cmd.h:99
InlineTag targetDeleteTag(const DocPosition &pos)
Definition: catalog.cpp:852
Definition: cmd.h:112
bool isSpace() const
bool removeTargetSubstring(Catalog *catalog, DocPosition pos, int delStart, int delLen)
Definition: cmd.cpp:364
static void instantiateAndPush(Catalog *catalog, const DocPosition &pos, TargetState state)
Definition: cmd.cpp:186
void targetInsertTag(const DocPosition &pos, const InlineTag &tag)
Definition: catalog.cpp:840
Definition: catalogcapabilities.h:33
bool isEmpty() const
const_iterator constEnd() const
const Key & key() const
Definition: phase.h:34
virtual void setJumpingPos()
may be overridden to set customized pos alternatively customized pos may be set manually in do*() ...
Definition: cmd.cpp:68
const T & value() const
void targetInsert(const DocPosition &pos, const QString &arg)
Definition: catalog.cpp:828
Note setNote(const DocPosition &pos, const Note ¬e)
pos.form is note number
Definition: catalog.cpp:244
InsTextCmd(Catalog *catalog, const DocPosition &pos, const QString &str)
Definition: cmd.cpp:93
QString & replace(int position, int n, QChar after)
data structure used to pass info about inline elements a XLIFF tag is represented by a TAGRANGE_IMAGE...
Definition: catalogstring.h:128
SetNoteCmd(Catalog *catalog, const DocPosition &pos, const Note ¬e)
pos.form is note number
Definition: cmd.cpp:252
void insertCatalogString(Catalog *catalog, DocPosition pos, const CatalogString &catStr, int start)
Definition: cmd.cpp:421
QString mid(int position, int n) const
Item previous()
void setJumpingPos()
may be overridden to set customized pos alternatively customized pos may be set manually in do*() ...
Definition: cmd.cpp:277
void endMacro()
const QChar at(int position) const
void targetDelete(const DocPosition &pos, int count)
Definition: catalog.cpp:805
int length() const
This class represents a catalog It uses CatalogStorage interface to work with catalogs in different f...
Definition: catalog.h:74
iterator insert(const Key &key, const T &value)
void toBack()
static QString setPhaseForPart(Catalog *catalog, const QString &phase, DocPosition phasePos, DocPosition::Part part)
Definition: cmd.cpp:45
DelTextCmd(Catalog *catalog, const DocPosition &pos, const QString &str)
Definition: cmd.cpp:136
virtual int id() const
Definition: pos.h:42
Definition: cmd.h:45
void setLastModifiedPos(const DocPosition &)
(EDITING) accessed from undo/redo code called BEFORE modification
Definition: catalog.cpp:783
Definition: cmd.h:68
QString setPhase(const DocPosition &pos, const QString &phase)
Definition: catalog.cpp:330
data structure used to pass info about inline elements a XLIFF tag is represented by a TAGRANGE_IMAGE...
Definition: catalogstring.h:44
Definition: pos.h:45
const T value(const Key &key) const
bool hasPrevious() const
TargetState closestState(bool approved, ProjectLocal::PersonRole role)
Definition: catalog.cpp:1005
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.