]> Git trees. - libqmvoc.git/commitdiff
multipleChoice and comparison return references
authorJeremy Paul Whiting <jpwhiting@kde.org>
Mon, 27 Aug 2007 15:26:24 +0000 (15:26 +0000)
committerJeremy Paul Whiting <jpwhiting@kde.org>
Mon, 27 Aug 2007 15:26:24 +0000 (15:26 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705251

keduvocdocument/keduvoctranslation.cpp
keduvocdocument/keduvoctranslation.h

index edd8dcf41454df08a23d4ef50c84d859e7fa6098..568fe9300395cb20e8279a020efaf53de2f0508b 100644 (file)
@@ -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;
 }
index ec01595e1d7427ad2131a39fcdd9beb3d6f70950..4c8f15471f2eb25819214a7e00e424010956b3cc 100644 (file)
@@ -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);