From: Jeremy Paul Whiting Date: Mon, 27 Aug 2007 15:26:24 +0000 (+0000) Subject: multipleChoice and comparison return references X-Git-Tag: v3.93.0~37 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=433776d0cc2c2702fb29ba51b729c2d3d65a8bfa;p=libqmvoc.git multipleChoice and comparison return references svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705251 --- diff --git a/keduvocdocument/keduvoctranslation.cpp b/keduvocdocument/keduvoctranslation.cpp index edd8dcf..568fe93 100644 --- a/keduvocdocument/keduvoctranslation.cpp +++ b/keduvocdocument/keduvoctranslation.cpp @@ -248,7 +248,7 @@ void KEduVocTranslation::setComparison ( const KEduVocComparison &con ) } -KEduVocComparison KEduVocTranslation::comparison ( ) const +KEduVocComparison & KEduVocTranslation::comparison ( ) { return d->m_comparison; } @@ -260,7 +260,7 @@ void KEduVocTranslation::setMultipleChoice ( const KEduVocMultipleChoice &mc ) } -KEduVocMultipleChoice KEduVocTranslation::multipleChoice ( ) const +KEduVocMultipleChoice & KEduVocTranslation::multipleChoice ( ) { return d->m_multipleChoice; } diff --git a/keduvocdocument/keduvoctranslation.h b/keduvocdocument/keduvoctranslation.h index ec01595..4c8f154 100644 --- a/keduvocdocument/keduvoctranslation.h +++ b/keduvocdocument/keduvoctranslation.h @@ -66,133 +66,132 @@ public: void setTranslation ( const QString & expr ); - /** sets the pronunciation of this expression - * @param expression pronunciation of this index - */ - void setPronunciation( const QString & expression); - - /** returns the pronunciation of this expression - * @return pronunciation or "" if none available - */ - QString pronunciation() const; - - /** returns comments of this expression - * @return comment or "" if no comment available - */ - QString comment() const; - - /** sets comment of this expression - * @param expr comment of this index - */ - void setComment( const QString & expr); - - /** sets false friend of this expression - * @param indexint indexFrom index of original translation - * @param expression false friend of this index - */ - void setFalseFriend( int indexFrom, const QString & expression ); - - /** - * returns false friend of this expression - * @param indexFrom index of original translation - * @return false friend or "" if no string available - */ - QString falseFriend( int indexFrom) const; - - /** sets synonym this expression - * @param expression synonym of this index - */ - void setSynonym( const QString & expression); - - /** returns synonym of this expression - * @return synonym or "" if no string available - */ - QString synonym() const; - - /** sets example this expression - * @param expression example of this index - */ - void setExample( const QString & expression); - - /** returns example of this expression - * @return example or "" if no string available - */ - QString example() const; - - /** sets usage label this expression - * @param usage usage label of this index - */ - void setUsageLabel( const QString & usage); - - /** returns usage label of this expression - * @return usage or "" if no string available - */ - QString usageLabel() const; - - /** sets paraphrase of this expression - * @param expression paraphrase of this index - */ - void setParaphrase( const QString & expression); + /** sets the pronunciation of this expression + * @param expression pronunciation of this index + */ + void setPronunciation( const QString & expression); + + /** returns the pronunciation of this expression + * @return pronunciation or "" if none available + */ + QString pronunciation() const; + + /** returns comments of this expression + * @return comment or "" if no comment available + */ + QString comment() const; + + /** sets comment of this expression + * @param expr comment of this index + */ + void setComment( const QString & expr); + + /** sets false friend of this expression + * @param indexint indexFrom index of original translation + * @param expression false friend of this index + */ + void setFalseFriend( int indexFrom, const QString & expression ); - /** returns paraphrase of this expression - * @return paraphrase or "" if no string available - */ - QString paraphrase() const; - - /** sets antonym this expression - * @param expression antonym of this index - */ - void setAntonym( const QString & expression); - - /** returns antonym of this expression - * @return antonym or "" if no string available - */ - QString antonym() const; - - /** returns type of this expression - * - * @return type or "" if no type available - */ - QString type() const; - - /** sets type of this expression - * @param type type of this expression ("" = none) - */ - void setType( const QString &type); - - /** returns subtype of this expression - * - * @return type or "" if no type available - */ - QString subType() const; - - /** sets subtype of this expression - * @param type type of this expression ("" = none) - */ - void setSubType( const QString &type); - - /** reset the grades for this translation */ - void resetGrades(); - - /** get the gradeobject from given identifier - * @param indexFrom which identifier to get the grade from - * @returns the grade object - */ - KEduVocGrade & gradeFrom( int indexFrom ); - - - /** returns conjugations if available - */ - KEduVocConjugation conjugation() const; - - /** sets conjugations - * @param conjugation conjugation block - */ - void setConjugation(const KEduVocConjugation & conjugation); + /** + * returns false friend of this expression + * @param indexFrom index of original translation + * @return false friend or "" if no string available + */ + QString falseFriend( int indexFrom) const; + + /** sets synonym this expression + * @param expression synonym of this index + */ + void setSynonym( const QString & expression); + + /** returns synonym of this expression + * @return synonym or "" if no string available + */ + QString synonym() const; + + /** sets example this expression + * @param expression example of this index + */ + void setExample( const QString & expression); + + /** returns example of this expression + * @return example or "" if no string available + */ + QString example() const; + + /** sets usage label this expression + * @param usage usage label of this index + */ + void setUsageLabel( const QString & usage); + + /** returns usage label of this expression + * @return usage or "" if no string available + */ + QString usageLabel() const; + + /** sets paraphrase of this expression + * @param expression paraphrase of this index + */ + void setParaphrase( const QString & expression); + + /** returns paraphrase of this expression + * @return paraphrase or "" if no string available + */ + QString paraphrase() const; + + /** sets antonym this expression + * @param expression antonym of this index + */ + void setAntonym( const QString & expression); + + /** returns antonym of this expression + * @return antonym or "" if no string available + */ + QString antonym() const; + + /** returns type of this expression + * + * @return type or "" if no type available + */ + QString type() const; + + /** sets type of this expression + * @param type type of this expression ("" = none) + */ + void setType( const QString &type); + + /** returns subtype of this expression + * + * @return type or "" if no type available + */ + QString subType() const; + + /** sets subtype of this expression + * @param type type of this expression ("" = none) + */ + void setSubType( const QString &type); + + /** reset the grades for this translation */ + void resetGrades(); + + /** get the gradeobject from given identifier + * @param indexFrom which identifier to get the grade from + * @returns the grade object + */ + KEduVocGrade & gradeFrom( int indexFrom ); + + /** returns conjugations if available + */ + KEduVocConjugation conjugation() const; + + /** sets conjugations + * @param conjugation conjugation block + */ + void setConjugation(const KEduVocConjugation & conjugation); /** returns comparison if available */ - KEduVocComparison comparison() const; + KEduVocComparison & comparison(); /** sets comparison * @param comparison comparison block @@ -200,12 +199,12 @@ public: void setComparison( const KEduVocComparison & comparison); /** returns multiple choice if available - */ - KEduVocMultipleChoice multipleChoice() const; + */ + KEduVocMultipleChoice & multipleChoice(); /** sets multiple choice * @param mc multiple choice block - */ + */ void setMultipleChoice( const KEduVocMultipleChoice &mc);