lokalize
mergecatalog.cpp
Go to the documentation of this file.
43 connect (baseCatalog,SIGNAL(signalEntryModified(DocPosition)),this,SLOT(copyFromBaseCatalogIfInDiffIndex(DocPosition)));
103 kWarning()<<"!!! index"<<index<<"m_map.at(index)"<<m_map.at(index)<<"numberOfEntries()"<<numberOfEntries();
126 item.score+=40*((baseMatchData.isEmpty()&&mergeMatchData.isEmpty())?baseStorage.id(basePos)==mergeStorage.id(mergePos)
231 //qDebug()<<"erasing"<<scores.at(i).baseEntry<<m_map[scores.at(i).baseEntry]<<",m_map["<<scores.at(i).baseEntry<<"]=-1";
252 return Catalog::isModified(pos) && m_originalHashes.value(pos)!=qHash(target(pos.toDocPosition()));
317 !(options&HigherOnly && !m_baseCatalog->isEmpty(pos) && m_baseCatalog->state(pos)>=state(pos))*/)
323 disconnect (m_baseCatalog,SIGNAL(signalEntryModified(DocPosition)),this,SLOT(copyFromBaseCatalogIfInDiffIndex(DocPosition)));
344 connect (m_baseCatalog,SIGNAL(signalEntryModified(DocPosition)),this,SLOT(copyFromBaseCatalogIfInDiffIndex(DocPosition)));
virtual QString source(const DocPosition &pos) const =0
flat-model interface (ignores XLIFF grouping)
bool contains(const Key &key) const
QList< T > values() const
int loadFromUrl(const KUrl &url, const KUrl &saidUrl=KUrl(), int *fileSize=0, bool fast=false)
Definition: catalog.cpp:508
void beginMacro(const QString &text)
virtual void setApproved(const DocPosition &, bool approved)
Definition: catalogstorage.h:134
QVector< T > & fill(const T &value, int size)
const T & at(int i) const
QLinkedList< int > differentEntries() const
Definition: mergecatalog.h:85
bool isPresent(const short int &entry) const
whether 'merge source' has entry with such msgid
Definition: mergecatalog.cpp:110
Definition: mergecatalog.h:101
virtual QString target(const DocPosition &pos) const =0
QString & remove(int position, int n)
void clear()
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
virtual void setTarget(const DocPosition &pos, const QString &arg)=0
Definition: state.h:32
void setActivePhase(const QString &phase, ProjectLocal::PersonRole role=ProjectLocal::Approver)
Definition: catalog.cpp:339
int size() const
Definition: cmd.h:99
int count(const T &value) const
Q_SCRIPTABLE void signalFileSaved()
static void instantiateAndPush(Catalog *catalog, const DocPosition &pos, TargetState state)
Definition: cmd.cpp:186
bool isEmpty() const
bool isEmpty() const
Definition: mergecatalog.h:32
QMap< Key, T >::iterator insert(const Key &key, const T &value)
T & first()
QHash< Key, T >::iterator insert(const Key &key, const T &value)
virtual QStringList targetAllForms(const DocPosition &pos, bool stripNewLines=false) const =0
iterator end()
void copyFromBaseCatalog(const DocPosition &, int options)
Definition: mergecatalog.cpp:48
MergeCatalog(QObject *parent, Catalog *baseCatalog, bool saveChanges=true)
Definition: mergecatalog.cpp:35
const T & at(int i) const
void signalEntryModified(const DocPosition &)
void endMacro()
virtual int size() const =0
This class represents a catalog It uses CatalogStorage interface to work with catalogs in different f...
Definition: catalog.h:74
int removeAll(const T &value)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Definition: mergecatalog.h:101
iterator begin()
void copyFromBaseCatalogIfInDiffIndex(const DocPosition &pos)
Definition: mergecatalog.h:109
virtual QStringList matchData(const DocPosition &) const =0
user-invisible data for matching, e.g.
bool contains(const T &value) const
void append(const T &value)
const T value(const Key &key) const
QList< Key > uniqueKeys() const
virtual bool isApproved(const DocPosition &) const
Definition: catalogstorage.h:133
void copyToBaseCatalog(DocPosition &pos)
Definition: mergecatalog.cpp:263
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:07 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:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.