lokalize
#include <mergecatalog.h>

Public Types | |
enum | CopyFromBaseOptions { EvenIfNotInDiffIndex =1 } |
enum | CopyToBaseOptions { EmptyOnly =1, HigherOnly =2 } |
Public Slots | |
void | copyFromBaseCatalogIfInDiffIndex (const DocPosition &pos) |
bool | save () |
![]() | |
QString | activePhase () const |
ProjectLocal::PersonRole | activePhaseRole () const |
QList< Phase > | allPhases () const |
QMap< QString, Tool > | allTools () const |
QVector< AltTrans > | altTrans (const DocPosition &pos) const |
int | binUnitsCount () const |
CatalogString | catalogString (const DocPosition &pos) const |
QByteArray | contents () |
QStringList | context (const DocPosition &pos) const |
QVector< Note > | developerNotes (const DocPosition &pos) const |
QString | id (const DocPosition &pos) const |
bool | isApproved (uint index) const |
bool | isApproved (const DocPosition &pos) const |
bool | isBookmarked (uint index) const |
bool | isEmpty (uint index) const |
bool | isEmpty (const DocPosition &) const |
bool | isEquivTrans (const DocPosition &) const |
bool | isModified (DocPos entry) const |
bool | isModified (int entry) const |
bool | isObsolete (int entry) const |
bool | isPlural (uint index) const |
bool | isPlural (const DocPosition &pos) const |
int | loadFromUrl (const KUrl &url, const KUrl &saidUrl=KUrl(), int *fileSize=0) |
QString | mimetype () |
QStringList | noteAuthors () const |
QVector< Note > | notes (const DocPosition &pos) const |
int | numberOfEntries () const |
int | numberOfNonApproved () const |
int | numberOfPluralForms () const |
int | numberOfUntranslated () const |
QString | phase (const DocPosition &pos) const |
Phase | phase (const QString &name) const |
QVector< Note > | phaseNotes (const QString &phase) const |
bool | save () |
bool | saveToUrl (KUrl url) |
void | setActivePhase (const QString &phase, ProjectLocal::PersonRole role=ProjectLocal::Approver) |
void | setBookmark (uint, bool) |
Note | setNote (const DocPosition &pos, const Note ¬e) |
QString | setPhase (const DocPosition &pos, const QString &phase) |
QVector< Note > | setPhaseNotes (const QString &phase, QVector< Note >) |
QString | source (const DocPosition &pos) const |
QStringList | sourceFiles (const DocPosition &pos) const |
QString | sourceLangCode () const |
CatalogString | sourceWithTags (const DocPosition &pos) const |
TargetState | state (const DocPosition &pos) const |
QString | target (const DocPosition &pos) const |
QString | targetLangCode () const |
CatalogString | targetWithTags (const DocPosition &pos) const |
int | unitById (const QString &id) const |
const KUrl & | url () const |
Public Member Functions | |
MergeCatalog (QObject *parent, Catalog *baseCatalog, bool saveChanges=true) | |
~MergeCatalog () | |
void | copyFromBaseCatalog (const DocPosition &, int options) |
void | copyFromBaseCatalog (const DocPosition &pos) |
void | copyToBaseCatalog (DocPosition &pos) |
void | copyToBaseCatalog (int options=0) |
QLinkedList< int > | differentEntries () const |
int | firstChangedIndex () const |
bool | isApproved (uint index) const |
int | isDifferent (uint index) const |
bool | isModified (DocPos) const |
bool | isPlural (uint index) const |
bool | isPresent (const short int &entry) const |
int | lastChangedIndex () const |
int | loadFromUrl (const KUrl &url) |
QString | msgstr (const DocPosition &) const |
int | nextChangedIndex (uint index) const |
int | prevChangedIndex (uint index) const |
void | removeFromDiffIndex (uint index) |
TargetState | state (const DocPosition &pos) const |
int | unmatchedCount () const |
![]() | |
Catalog (QObject *parent) | |
virtual | ~Catalog () |
void | attachAltTrans (int entry, const AltTrans &trans) |
void | attachAltTransCatalog (Catalog *) |
bool | autoSaveRecovered () |
int | capabilities () const |
void | clear () |
int | firstBookmarkIndex () const |
int | firstFuzzyIndex () const |
int | firstUntranslatedIndex () const |
bool | isEmpty () |
bool | isReadOnly () |
int | lastBookmarkIndex () const |
int | lastFuzzyIndex () const |
int | lastUntranslatedIndex () const |
QString | msgid (const DocPosition &) const |
int | nextBookmarkIndex (uint index) const |
int | nextFuzzyIndex (uint index) const |
int | nextUntranslatedIndex (uint index) const |
int | prevBookmarkIndex (uint index) const |
int | prevFuzzyIndex (uint index) const |
int | prevUntranslatedIndex (uint index) const |
void | push (QUndoCommand *cmd) |
virtual const DocPosition & | redo () |
void | setTarget (DocPosition pos, const CatalogString &s) |
void | setUrl (const KUrl &u) |
virtual const DocPosition & | undo () |
Additional Inherited Members | |
![]() | |
void | activePhaseChanged () |
void | signalEntryModified (const DocPosition &) |
void | signalFileAutoSaveFailed (const QString &) |
Q_SCRIPTABLE void | signalFileLoaded () |
void | signalFileLoaded (const KUrl &) |
Q_SCRIPTABLE void | signalFileSaved () |
void | signalFileSaved (const KUrl &) |
void | signalNumberOfEmptyChanged () |
void | signalNumberOfFuzziesChanged () |
![]() | |
static bool | extIsSupported (const QString &path) |
static const char *const * | states () |
static QStringList | supportedExtensions () |
![]() | |
static QString | supportedMimeFilters |
![]() | |
void | doAutoSave () |
void | flushUpdateDBBuffer () |
void | projectConfigChanged () |
void | setAutoSaveDirty () |
![]() | |
void | setApproved (const DocPosition &pos, bool approved) |
void | setEquivTrans (const DocPosition &, bool equivTrans) |
void | setLastModifiedPos (const DocPosition &) |
bool | setModified (DocPos entry, bool modif) |
TargetState | setState (const DocPosition &pos, TargetState state) |
void | targetDelete (const DocPosition &pos, int count) |
InlineTag | targetDeleteTag (const DocPosition &pos) |
void | targetInsert (const DocPosition &pos, const QString &arg) |
void | targetInsertTag (const DocPosition &pos, const InlineTag &tag) |
void | updateApprovedEmptyIndexCache () |
Phase | updatePhase (const Phase &phase) |
![]() | |
CatalogPrivate * | d |
CatalogStorage * | m_storage |
Detailed Description
Merge source container.
Parallel editing is available. What this subclass does is creating the map (to provide main-file entry order) and index for fast changed entry lookup So order of entries the same as of main-file
TODO index of ch - on-the-fly Merge source container
Definition at line 71 of file mergecatalog.h.
Member Enumeration Documentation
Enumerator | |
---|---|
EvenIfNotInDiffIndex |
Definition at line 105 of file mergecatalog.h.
Enumerator | |
---|---|
EmptyOnly | |
HigherOnly |
Definition at line 101 of file mergecatalog.h.
Constructor & Destructor Documentation
Definition at line 35 of file mergecatalog.cpp.
|
inline |
Definition at line 76 of file mergecatalog.h.
Member Function Documentation
void MergeCatalog::copyFromBaseCatalog | ( | const DocPosition & | pos, |
int | options | ||
) |
Definition at line 48 of file mergecatalog.cpp.
|
inline |
Definition at line 107 of file mergecatalog.h.
|
inlineslot |
Definition at line 109 of file mergecatalog.h.
void MergeCatalog::copyToBaseCatalog | ( | DocPosition & | pos | ) |
- pos in baseCatalog's coordinates
Definition at line 263 of file mergecatalog.cpp.
void MergeCatalog::copyToBaseCatalog | ( | int | options = 0 | ) |
/// m_baseCatalog->push(new InsTextCmd(m_baseCatalog,pos,mergeCatalog.msgstr(pos))); ///
/// removeFromDiffIndex(m_pos.entry); ///
Definition at line 296 of file mergecatalog.cpp.
|
inline |
Definition at line 85 of file mergecatalog.h.
|
inline |
Definition at line 80 of file mergecatalog.h.
bool MergeCatalog::isApproved | ( | uint | index | ) | const |
Definition at line 84 of file mergecatalog.cpp.
|
inline |
Definition at line 84 of file mergecatalog.h.
bool MergeCatalog::isModified | ( | DocPos | pos | ) | const |
Definition at line 250 of file mergecatalog.cpp.
bool MergeCatalog::isPlural | ( | uint | index | ) | const |
Definition at line 98 of file mergecatalog.cpp.
bool MergeCatalog::isPresent | ( | const short int & | entry | ) | const |
whether 'merge source' has entry with such msgid
Definition at line 110 of file mergecatalog.cpp.
|
inline |
Definition at line 81 of file mergecatalog.h.
int MergeCatalog::loadFromUrl | ( | const KUrl & | url | ) |
Definition at line 163 of file mergecatalog.cpp.
|
virtual |
Reimplemented from Catalog.
Definition at line 76 of file mergecatalog.cpp.
|
inline |
Definition at line 82 of file mergecatalog.h.
|
inline |
Definition at line 83 of file mergecatalog.h.
|
inline |
Definition at line 104 of file mergecatalog.h.
|
slot |
Definition at line 255 of file mergecatalog.cpp.
TargetState MergeCatalog::state | ( | const DocPosition & | pos | ) | const |
Definition at line 89 of file mergecatalog.cpp.
|
inline |
Definition at line 93 of file mergecatalog.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.