lokalize
catalog.h
Go to the documentation of this file.
63 void insertInList(QLinkedList<int>& list, int index); // insert index in the right place in the list
121 void setActivePhase(const QString& phase, ProjectLocal::PersonRole role=ProjectLocal::Approver);
157 int firstFuzzyIndex() const {return d->_nonApprovedIndex.isEmpty()?numberOfEntries():d->_nonApprovedIndex.first();}
158 int lastFuzzyIndex() const {return d->_nonApprovedIndex.isEmpty()?-1:d->_nonApprovedIndex.last();}
161 int firstUntranslatedIndex() const {return d->_emptyIndex.isEmpty()?numberOfEntries():d->_emptyIndex.first();}
166 int firstBookmarkIndex() const {return d->_bookmarkIndex.isEmpty()?numberOfEntries():d->_bookmarkIndex.first();}
191 int loadFromUrl(const KUrl& url, const KUrl& saidUrl=KUrl(), int* fileSize=0, bool fast = false);
CatalogString targetWithTags(const DocPosition &pos) const
Definition: catalog.cpp:211
QVector< AltTrans > altTrans(const DocPosition &pos) const
Definition: catalog.cpp:272
how undo system works: undo() and redo() functions call appropriate private method of Catalog to chan...
Definition: cmd.h:85
TargetState closestState(bool approved, ProjectLocal::PersonRole role)
Definition: catalog.cpp:1005
int loadFromUrl(const KUrl &url, const KUrl &saidUrl=KUrl(), int *fileSize=0, bool fast=false)
Definition: catalog.cpp:508
void setEquivTrans(const DocPosition &, bool equivTrans)
Definition: catalog.cpp:910
TargetState setState(const DocPosition &pos, TargetState state)
Definition: catalog.cpp:872
void setApproved(const DocPosition &pos, bool approved)
(EDITING) accessed from undo/redo code accessed from mergeCatalog) it does check if action should be ...
int findPrevInList(const QLinkedList< int > &list, int index)
Definition: catalog.cpp:964
void signalNumberOfFuzziesChanged()
QVector< Note > phaseNotes(const QString &phase) const
Definition: catalog.cpp:390
Q_SCRIPTABLE void signalFileLoaded()
int binUnitsCount() const
so DocPosition::entry may actually be < size()+binUnitsCount()
Definition: catalog.cpp:448
Definition: cmd.h:196
CatalogString catalogString(const DocPosition &pos) const
Definition: catalog.cpp:219
void attachAltTrans(int entry, const AltTrans &trans)
Definition: catalog.cpp:267
void setActivePhase(const QString &phase, ProjectLocal::PersonRole role=ProjectLocal::Approver)
Definition: catalog.cpp:339
Definition: cmd.h:99
QVector< Note > developerNotes(const DocPosition &pos) const
Definition: catalog.cpp:236
QLinkedList< int > _nonApprovedIndex
Definition: catalog_private.h:89
void setTarget(DocPosition pos, const CatalogString &s)
Definition: catalog.cpp:866
InlineTag targetDeleteTag(const DocPosition &pos)
Definition: catalog.cpp:852
const char * name() const
Definition: cmd.h:112
int findNextInList(const QLinkedList< int > &list, int index)
Definition: catalog.cpp:950
bool isEmpty() const
Q_SCRIPTABLE void signalFileSaved()
void targetInsertTag(const DocPosition &pos, const InlineTag &tag)
Definition: catalog.cpp:840
void flushUpdateDBBuffer()
updates DB for _posBuffer and accompanying _originalForLastModified
Definition: catalog.cpp:752
Definition: projectlocal.h:13
QVector< Note > setPhaseNotes(const QString &phase, QVector< Note >)
Definition: catalog.cpp:395
virtual KAutoSaveFile * checkAutoSave(const KUrl &url)
Definition: catalog.cpp:489
Definition: phase.h:34
void activePhaseChanged()
HISTORY: this was a base class for Catalog import plugins in KBabel, but this architecture isn't not ...
Definition: catalogfileplugin.h:85
void signalNumberOfEmptyChanged()
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
data structure used to pass info about inline elements a XLIFF tag is represented by a TAGRANGE_IMAGE...
Definition: catalogstring.h:128
T & last()
void signalEntryModified(const DocPosition &)
int index() const
CatalogString sourceWithTags(const DocPosition &pos) const
Definition: catalog.cpp:203
void targetDelete(const DocPosition &pos, int count)
Definition: catalog.cpp:805
This class represents a catalog It uses CatalogStorage interface to work with catalogs in different f...
Definition: catalog.h:74
int count() const
T & first()
void signalFileAutoSaveFailed(const QString &)
QStringList sourceFiles(const DocPosition &pos) const
Definition: catalog.cpp:306
Definition: catalog_private.h:60
void updateApprovedEmptyIndexCache()
Definition: catalog.cpp:347
QObject * parent() const
Definition: cmd.h:45
void setLastModifiedPos(const DocPosition &)
(EDITING) accessed from undo/redo code called BEFORE modification
Definition: catalog.cpp:783
QString setPhase(const DocPosition &pos, const QString &phase)
Definition: catalog.cpp:330
Definition: alttrans.h:30
int size() const
data structure used to pass info about inline elements a XLIFF tag is represented by a TAGRANGE_IMAGE...
Definition: catalogstring.h:44
bool contains(const T &value) const
bool isApproved(TargetState state, ProjectLocal::PersonRole role)
Definition: catalog.cpp:993
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.