parley
document.h
Go to the documentation of this file.
168 void setAuthorContact ( const QString & authorContact ) { m_doc->setAuthorContact ( authorContact ); }
349 int saveAs ( const QString & url, KEduVocDocument::FileType ft = KEduVocDocument::Automatic, const QString & generator = QString ( "Parley" ) ) { return m_doc->saveAs ( url, ft, generator ); }
360 void merge ( Document *docToMerge, bool matchIdentifiers ) { m_doc->merge ( docToMerge->kEduVocDocument(),matchIdentifiers ); }
399 int appendIdentifier ( Identifier * identifier ) { return m_doc->appendIdentifier ( * ( identifier->kEduVocIdentifier() ) ); }
407 // void setIdentifier ( int index, Identifier * lang ) { m_doc->setIdentifier ( index,* ( lang->kEduVocIdentifier() ) ); }
434 // int indexOfIdentifier ( const QString &name ) const { return m_doc->indexOfIdentifier(name); }
471 static KEduVocDocument::FileType detectFileType ( const QString &fileName ) { return KEduVocDocument::detectFileType ( fileName ); }
481 static QString pattern ( KEduVocDocument::FileDialogMode mode ) { return KEduVocDocument::pattern ( mode ); }
484 static QString errorDescription ( int errorCode ) { return KEduVocDocument::errorDescription ( errorCode ); }
Definition: document.h:102
static KEduVocDocument::FileType detectFileType(const QString &fileName)
Definition: document.h:471
KEduVocIdentifier * kEduVocIdentifier()
Definition: identifier.h:69
int appendIdentifier(Identifier *identifier)
Appends a new identifier (usually a language)
Definition: document.h:399
Definition: document.h:105
static QString errorDescription(int errorCode)
Returns a more detailed description of the errorCode given.
Definition: document.h:484
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:481
QObject * identifier(int index)
Returns the identifier of translation index.
Definition: document.h:415
void setGenerator(const QString &generator)
Definition: document.h:197
Definition: document.h:127
QObject * newIdentifier()
Creates a new identifier and returns a reference to it.
Definition: document.h:384
void setAuthorContact(const QString &authorContact)
Definition: document.h:168
QObject * newLesson(const QString &name)
Creates and returns a new lesson (doesn't add it as a sublesson to any lesson)
Definition: document.h:247
Definition: document.h:98
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:349
Definition: document.h:112
Definition: document.h:104
void removeIdentifier(int index)
Removes identifier and the according translations in all entries.
Definition: document.h:422
QObject * findLesson(const QString &name)
Searches through all the lessons (recursively) and returns the first lesson the specified name...
Definition: document.cpp:128
QObject * appendNewLesson(const QString &name)
Creates a new lesson and appends it to the root lesson.
Definition: document.cpp:114
QStringList wordTypes()
Returns a string list with all the available word type's names.
Definition: document.cpp:77
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:62
Definition: document.h:113
void setCsvDelimiter(const QString &delimiter)
Definition: document.h:222
void setDocumentComment(const QString &comment)
Definition: document.h:182
Definition: document.h:114
void merge(Document *docToMerge, bool matchIdentifiers)
Merges data from another document.
Definition: document.h:360
Definition: document.h:101
void appendNewIdentifier(const QString &name, const QString &locale)
Append a new identifier by giving the name and locale.
Definition: document.cpp:100
QVariantList identifiers()
Returns a list of all the identifiers of this document.
Definition: document.cpp:89
KEduVocWordType * wordTypeFromString(const QString &name)
Definition: document.cpp:45
Definition: document.h:126
QVariantList allLessons()
Returns all the lessons in the document (including sublessons)
Definition: document.cpp:39
Definition: document.h:100
Definition: document.h:106
Definition: document.h:103
Definition: document.h:99
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.