config does not yet save it correctly though.
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=847466
project(libkdeedu)
+#add_definitions( -Wall -fprofile-arcs -ftest-coverage )
+
add_subdirectory(keduvocdocument)
add_subdirectory(kdeeduui)
add_subdirectory(libscience)
setModified(true);
}
-QString KEduVocDocument::tenseName( int index ) const
-{
- if ( index >= d->m_tenseDescriptions.size() )
- return "";
- else
- return d->m_tenseDescriptions[index];
-}
-
-QStringList KEduVocDocument::tenseDescriptions() const
-{
- return d->m_tenseDescriptions;
-}
-
// works if const is removed
int KEduVocDocument::indexOfIdentifier( const QString &name ) const
{
*/
int indexOfIdentifier( const QString &name ) const;
- // *** tense methods ***
-
- /**
- * Returns the tense string
- *
- * @param index number of tense
- * @returns string
- */
- QString tenseName( int index ) const;
-
- /**
- * Gets the descriptions of the tenses
- */
- QStringList tenseDescriptions() const;
-
-
// *** grade methods ***
/**
}
KEduVocIdentifier::KEduVocIdentifier( const KEduVocIdentifier &other )
-: d( new Private )
+: d( new Private( *other.d ) )
{
+#if 0
d->m_locale = other.d->m_locale;
d->m_name = other.d->m_name;
d->m_articles = other.d->m_articles;
d->m_comment = other.d->m_comment;
d->m_tenses = other.d->m_tenses;
d->m_type = other.d->m_type;
+#endif
}
KEduVocIdentifier& KEduVocIdentifier::operator= ( const KEduVocIdentifier &other )
m_doc->identifier(id).setPersonalPronouns( personalPronoun );
}
-
QStringList tenses = readTenses(identifierElement);
+kDebug() << tenses;
+
m_doc->identifier(id).setTenseList(tenses);
return result;
return true;
}
-const QStringList& KEduVocKvtml2Reader::readTenses( QDomElement &tensesElement )
+QStringList KEduVocKvtml2Reader::readTenses( QDomElement &tensesElement )
{
QStringList tenses;
/** read the tenses
* @param tensesElement QDomElement for the tenses group
*/
- const QStringList& readTenses( QDomElement &tensesElement );
+ QStringList readTenses( QDomElement &tensesElement );
/** read the usages
* @param usagesElement QDomElement for the usages group
}
// tenses
- foreach(const QString &tense, m_doc->tenseDescriptions() ) {
+ foreach(const QString &tense, m_doc->identifier(i).tenseList() ) {
if ( !( tense.isNull() ) ) {
identifier.appendChild( newTextElement( KVTML_TENSE, tense ) );
}