lokalize
mergeview.cpp
Go to the documentation of this file.
47 : QDockWidget ( primary?i18nc("@title:window that displays difference between current file and 'merge source'","Primary Sync"):i18nc("@title:window that displays difference between current file and 'merge source'","Secondary Sync"), parent)
52 i18nc("@title:window that displays difference between current file and 'merge source'","Primary Sync"):
53 i18nc("@title:window that displays difference between current file and 'merge source'","Secondary Sync"))
60 setToolTip(i18nc("@info:tooltip","Drop file to be merged into / synced with the current one here"));
85 if(event->mimeData()->hasUrls() && Catalog::extIsSupported(event->mimeData()->urls().first().path()))
214 url=KFileDialog::getOpenUrl(KUrl("kfiledialog:///merge-source") /*m_baseCatalog->url()*/ , Catalog::supportedMimeFilters, this);
232 connect (m_mergeCatalog,SIGNAL(signalEntryModified(DocPosition)),this,SLOT(slotUpdate(DocPosition)));
243 KMessageBox::error(this, i18nc("@info","Error opening the file <filename>%1</filename> for synchronization, error line: %2",url.pathOrUrl(),errorLine) );
248 notification->setText( i18nc("@info %1 is full filename","Error opening the file <filename>%1</filename> for synchronization",url.pathOrUrl()) );
252 //i18nc("@info %1 is w/o path","No branch counterpart for <filename>%1</filename>",url.fileName()),
262 int formLimit=qMin(m_baseCatalog->numberOfPluralForms(),m_mergeCatalog->numberOfPluralForms());//just sanity check
379 QString text="<b>" % url().prettyUrl() % "</b>\n" % i18nc("@info:tooltip","Different entries: %1\nUnmatched entries: %2",
void signalPriorChangedAvailable(bool)
QString & append(QChar ch)
Type type() const
const QMimeData * mimeData() const
QString & prepend(QChar ch)
QString userVisibleWordDiff(const QString &str1ForMatching, const QString &str2ForMatching, const QString &accel, const QString &markup, int options)
Definition: diff.cpp:408
void gotoEntry(const DocPosition &, int)
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
void slotNewEntryDisplayed(const DocPosition &)
Definition: mergeview.cpp:101
void showText(const QPoint &pos, const QString &text, QWidget *w)
void update()
int count(const T &value) const
void gotoNextChanged(bool approvedOnly=false)
Definition: mergeview.cpp:314
const QPoint & globalPos() const
void setObjectName(const QString &name)
bool isEmpty() const
QPoint pos() const
void hide()
void setAcceptDrops(bool on)
void copyFromBaseCatalog(const DocPosition &, int options)
Definition: mergecatalog.cpp:48
void setContextMenuPolicy(Qt::ContextMenuPolicy policy)
void setWidget(QWidget *widget)
QString & replace(int position, int n, QChar after)
bool hasUrls() const
QList< QUrl > urls() const
void signalEntryWithMergeDisplayed(bool)
void setWindowTitle(const QString &)
This class represents a catalog It uses CatalogStorage interface to work with catalogs in different f...
Definition: catalog.h:74
void show()
void setToolTip(const QString &)
void signalNextChangedAvailable(bool)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
virtual bool event(QEvent *event)
void mergeCatalogPointerChanged(MergeCatalog *mergeCatalog)
bool contains(const T &value) const
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.