lokalize
glossary.cpp
Go to the documentation of this file.
78 "<!DOCTYPE martif PUBLIC \"ISO 12200:1999A//DTD MARTIF core (DXFcdV04)//EN\" \"TBXcdv04.dtd\">\n"
223 QVariant GlossaryModel::headerData( int section, Qt::Orientation /*orientation*/, int role) const
445 QDomElement ntigElement=ourLangSetElement.appendChild( document.createElement(ntig)).toElement();
446 QDomElement termGrpElement=ntigElement.appendChild( document.createElement(termGrp)).toElement();
514 void Glossary::setDescrip(const QByteArray& id, QString lang, const QString& type, const QString& value)
560 QDomElement descrip=parentForDescrip.insertBefore( document.createElement("descrip"), parentForDescrip.firstChild() ).toElement();
void clear()
void setSubjectField(const QByteArray &id, const QString &lang, const QString &value)
Definition: glossary.cpp:575
QString cap(int nth) const
Definition: glossary.h:188
QVariant headerData(int section, Qt::Orientation, int role=Qt::DisplayRole) const
Definition: glossary.cpp:223
loads only data we need to store in memory e.g.
Definition: tbxparser_obsolete.h:41
QByteArray appendRow(const QString &_english, const QString &_target)
Definition: glossary.cpp:746
QString subjectField(const QByteArray &id, const QString &lang=QString()) const
Definition: glossary.cpp:565
bool contains(const Key &key) const
void fetchMore(const QModelIndex &parent)
Definition: glossary.cpp:208
QList< T > values() const
QDomNode appendChild(const QDomNode &newChild)
QString attribute(const QString &name, const QString &defValue) const
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
const T & at(int i) const
bool isEmpty() const
QDomElement nextSiblingElement(const QString &tagName) const
int columnCount(const QModelIndex &parent=QModelIndex()) const
Definition: glossary.cpp:268
void setFilterRegExp(const QString &s)
Definition: glossary.cpp:166
const_iterator insert(const T &value)
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
void clear()
virtual int rowCount(const QModelIndex &parent) const
int size() const
QDomNode nextSibling() const
QDomElement toElement() const
void beginResetModel()
QList< Key > keys() const
void rmTerm(const QByteArray &id, QString lang, int i)
Definition: glossary.cpp:455
bool isValid() const
int elapsed() const
QVariant data(const QModelIndex &, int role=Qt::DisplayRole) const
Definition: glossary.cpp:238
int count() const
void append(const T &value)
Definition: glossary.h:187
QDomDocument ownerDocument() const
QString text() const
void hashTermEntry(const QDomElement &)
Definition: glossary.cpp:591
void endInsertRows()
QStringRef leftRef(int n) const
void setAttribute(const QString &name, const QString &value)
int toInt(bool *ok, int base) const
bool isEmpty() const
QDomNodeList elementsByTagName(const QString &tagname) const
bool isEmpty() const
int remove(const Key &key)
void beginRemoveRows(const QModelIndex &parent, int first, int last)
int row() const
void unhashTermEntry(const QDomElement &)
Definition: glossary.cpp:607
virtual void setFeature(const QString &name, bool enable)
void deleteLater()
QHash< Key, T >::iterator insert(const Key &key, const T &value)
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
QDomText createTextNode(const QString &value)
QDomNode removeChild(const QDomNode &oldChild)
QList< QByteArray > idsForLangWord(const QString &lang, const QString &word) const
Definition: glossary.cpp:53
void setTerm(const QByteArray &id, QString lang, int i, const QString &term)
Definition: glossary.cpp:421
bool contains(const T &value) const
void beginInsertRows(const QModelIndex &parent, int first, int last)
bool isNull() const
QString & replace(int position, int n, QChar after)
QStringList terms(const QByteArray &id, const QString &lang) const
Definition: glossary.cpp:337
void clear()
QAbstractItemModel * sourceModel() const
void save(QTextStream &str, int indent) const
QDomNode firstChild() const
QByteArray toLatin1() const
bool isCharacterData() const
static QDomElement firstDescripElemForLang(QDomElement termEntry, const QString &lang)
Definition: glossary.cpp:470
QDomNode parentNode() const
QDomElement firstChildElement(const QString &tagName) const
static void appendTerm(QDomElement langSetElem, const QString &termText)
Definition: glossary.cpp:660
static void getElementsForTermLangIndex(QDomElement termEntry, QString &lang, int index, QDomElement &ourLangSetElement, QDomElement &tigElement, QDomElement &termElement)
Definition: glossary.cpp:370
void fetchMore(const QModelIndex &parent)
Definition: glossary.cpp:177
virtual bool parse(const QXmlInputSource &input)
bool canFetchMore(const QModelIndex &parent) const
Definition: glossary.cpp:203
int column() const
virtual void fetchMore(const QModelIndex &parent)
Definition: glossary.h:189
bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
Definition: glossary.cpp:729
QList< T > toList() const
QString fromLatin1(const char *str, int size)
void start()
iterator insert(const Key &key, const T &value)
void append(const QString &_english, const QString &_target)
Definition: glossary.cpp:704
int size() const
QDomElement createElement(const QString &tagName)
void endRemoveRows()
void endResetModel()
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QDomNode insertBefore(const QDomNode &newChild, const QDomNode &refChild)
QString definition(const QByteArray &id, const QString &lang=QString()) const
Definition: glossary.cpp:570
bool exactMatch(const QString &str) const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
virtual bool canFetchMore(const QModelIndex &parent) const
void setDefinition(const QByteArray &id, const QString &lang, const QString &value)
Definition: glossary.cpp:580
void changed()
void loaded()
QDomNode at(int index) const
bool setContent(const QByteArray &data, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn)
void setFilterRegExp(const QRegExp ®Exp)
virtual void setContentHandler(QXmlContentHandler *handler)
const T value(const Key &key) const
int remove(const Key &key)
int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: glossary.cpp:216
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.