parley
document.h
Go to the documentation of this file.
391 int saveAs(const QString & url, KEduVocDocument::FileType ft = KEduVocDocument::Automatic, const QString & generator = QString("Parley")) {
459 // void setIdentifier ( int index, Identifier * lang ) { m_doc->setIdentifier ( index,* ( lang->kEduVocIdentifier() ) ); }
490 // int indexOfIdentifier ( const QString &name ) const { return m_doc->indexOfIdentifier(name); }
Definition: document.h:101
static KEduVocDocument::FileType detectFileType(const QString &fileName)
Definition: document.h:527
KEduVocIdentifier * kEduVocIdentifier()
Definition: identifier.h:69
int appendIdentifier(Identifier *identifier)
Appends a new identifier (usually a language)
Definition: document.h:449
Definition: document.h:104
static QString errorDescription(int errorCode)
Returns a more detailed description of the errorCode given.
Definition: document.h:544
static QString pattern(KEduVocDocument::FileDialogMode mode)
Create a string with the supported document types, that can be used as filter in KFileDialog.
Definition: document.h:539
QObject * identifier(int index)
Returns the identifier of translation index.
Definition: document.h:467
QString tr(const char *sourceText, const char *disambiguation, int n)
void setGenerator(const QString &generator)
Definition: document.h:221
const char * name() const
Definition: document.h:124
QObject * newIdentifier()
Creates a new identifier and returns a reference to it.
Definition: document.h:432
void setAuthorContact(const QString &authorContact)
Definition: document.h:176
QObject * newLesson(const QString &name)
Creates and returns a new lesson (doesn't add it as a sublesson to any lesson)
Definition: document.h:287
Definition: document.h:97
int saveAs(const QString &url, KEduVocDocument::FileType ft=KEduVocDocument::Automatic, const QString &generator=QString("Parley"))
Saves the data under the given name.
Definition: document.h:391
Definition: document.h:110
Definition: document.h:103
void removeIdentifier(int index)
Removes identifier and the according translations in all entries.
Definition: document.h:476
QObject * findLesson(const QString &name)
Searches through all the lessons (recursively) and returns the first lesson the specified name...
Definition: document.cpp:125
QObject * appendNewLesson(const QString &name)
Creates a new lesson and appends it to the root lesson.
Definition: document.cpp:111
QStringList wordTypes()
Returns a string list with all the available word type's names.
Definition: document.cpp:75
Identifier class can be accessed from Document class and is used for specifying the document language...
Definition: identifier.h:54
void setWordType(QObject *tr, const QString &wordtype)
Sets the word type (wordtype) of the given tr translation object.
Definition: document.cpp:61
Definition: document.h:111
void setCsvDelimiter(const QString &delimiter)
Definition: document.h:256
void setDocumentComment(const QString &comment)
Definition: document.h:198
Definition: document.h:112
void merge(Document *docToMerge, bool matchIdentifiers)
Merges data from another document.
Definition: document.h:404
Definition: document.h:100
void appendNewIdentifier(const QString &name, const QString &locale)
Append a new identifier by giving the name and locale.
Definition: document.cpp:96
QVariantList identifiers()
Returns a list of all the identifiers of this document.
Definition: document.cpp:86
KEduVocWordType * wordTypeFromString(const QString &name)
Definition: document.cpp:45
Definition: document.h:123
QVariantList allLessons()
Returns all the lessons in the document (including sublessons)
Definition: document.cpp:39
QObject * parent() const
Definition: document.h:99
Definition: document.h:105
Definition: document.h:102
Definition: document.h:98
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 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:15:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.