KEduVocExpression

Search for usage in LXR

KEduVocExpression Class Reference

#include <keduvocexpression.h>

Public Member Functions

 KEduVocExpression ()
 
 KEduVocExpression (const KEduVocExpression &other)
 
 KEduVocExpression (const QString &expression)
 
 KEduVocExpression (const QStringList &translations)
 
bool isActive () const
 
KEduVocLessonlesson () const
 
KEduVocExpressionoperator= (const KEduVocExpression &expression)
 
bool operator== (const KEduVocExpression &expression) const
 
void removeTranslation (int index)
 
void resetGrades (int index)
 
void setActive (bool flag=true)
 
void setSizeHint (int sizeHint)
 
void setTranslation (int index, const QString &expression)
 
int sizeHint () const
 
KEduVocTranslationtranslation (int index)
 
KEduVocTranslationtranslation (int index) const
 
QList< int > translationIndices () const
 

Detailed Description

This class contains one vocabulary expression as an original with one or more translations.

Definition at line 26 of file keduvocexpression.h.

Constructor & Destructor Documentation

◆ KEduVocExpression() [1/4]

KEduVocExpression::KEduVocExpression ( )
explicit

default constructor for an empty vocabulary expression

Definition at line 61 of file keduvocexpression.cpp.

◆ KEduVocExpression() [2/4]

KEduVocExpression::KEduVocExpression ( const QString & expression)
explicit

Constructor for a vocabulary expression with one translation.

Parameters
expressiontranslation

Definition at line 66 of file keduvocexpression.cpp.

◆ KEduVocExpression() [3/4]

KEduVocExpression::KEduVocExpression ( const QStringList & translations)
explicit

Constructor for a vocabulary expression with an original and one or more translations.

Parameters
translationstranslations

Definition at line 72 of file keduvocexpression.cpp.

◆ KEduVocExpression() [4/4]

KEduVocExpression::KEduVocExpression ( const KEduVocExpression & other)

Definition at line 80 of file keduvocexpression.cpp.

◆ ~KEduVocExpression()

KEduVocExpression::~KEduVocExpression ( )

Definition at line 99 of file keduvocexpression.cpp.

Member Function Documentation

◆ isActive()

bool KEduVocExpression::isActive ( ) const

returns flag if entry is activated for queries

Definition at line 135 of file keduvocexpression.cpp.

◆ lesson()

KEduVocLesson * KEduVocExpression::lesson ( ) const

return the lesson

Definition at line 130 of file keduvocexpression.cpp.

◆ operator=()

KEduVocExpression & KEduVocExpression::operator= ( const KEduVocExpression & expression)

Definition at line 89 of file keduvocexpression.cpp.

◆ operator==()

bool KEduVocExpression::operator== ( const KEduVocExpression & expression) const

Definition at line 160 of file keduvocexpression.cpp.

◆ removeTranslation()

void KEduVocExpression::removeTranslation ( int index)

removes a translation

Parameters
indexnumber of translation 1..x

Definition at line 105 of file keduvocexpression.cpp.

◆ resetGrades()

void KEduVocExpression::resetGrades ( int index)

reset all grades of the entry

Parameters
indexidentifier (language)

Definition at line 145 of file keduvocexpression.cpp.

◆ setActive()

void KEduVocExpression::setActive ( bool flag = true)

set entry active (enabled for queries)

Definition at line 140 of file keduvocexpression.cpp.

◆ setTranslation()

void KEduVocExpression::setTranslation ( int index,
const QString & expression )

Add a translation to this expression.

Parameters
indexnumber of translation = the identifier
expressionthe translation

Definition at line 118 of file keduvocexpression.cpp.

◆ translation() [1/2]

KEduVocTranslation * KEduVocExpression::translation ( int index)

Get a pointer to the translation.

Parameters
indexof the language identifier
Returns
the translation

Definition at line 165 of file keduvocexpression.cpp.

◆ translation() [2/2]

KEduVocTranslation * KEduVocExpression::translation ( int index) const

Definition at line 174 of file keduvocexpression.cpp.

◆ translationIndices()

QList< int > KEduVocExpression::translationIndices ( ) const

Definition at line 182 of file keduvocexpression.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:55:29 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.