QStringList new_tenses = docToMerge->tenseDescriptions();
- QList<int> old_in_query = lessonsInQuery();
- QList<int> new_in_query = docToMerge->lessonsInQuery();
+ QList<int> old_in_query = lessonsInPractice();
+ QList<int> new_in_query = docToMerge->lessonsInPractice();
QStringList new_usages = docToMerge->usageDescriptions();
for (int i = 0; i < new_in_query.count(); i++)
old_in_query.append(new_in_query[i] + lesson_offset);
- setLessonsInQuery(old_in_query);
+ setLessonsInPractice(old_in_query);
int types_offset = d->m_typeDescriptions.count();
for (int i = 0; i < new_types.count(); i++) {
}
-int KEduVocDocument::appendLesson( const QString &lessonName, bool inQuery )
+int KEduVocDocument::appendLesson( const QString &lessonName, bool inPractice )
{
KEduVocLesson lesson;
lesson.setName( lessonName );
- lesson.setInQuery( inQuery );
+ lesson.setInPractice( inPractice );
d->m_lessons.append( lesson );
return d->m_lessons.count() - 1;
}
// if ( !currentElement.isNull() ) {
// // set the inquery information
// if ( currentElement.text() == KVTML_TRUE ) {
-// expr.setInQuery( true );
+// expr.setInPractice( true );
// } else {
-// expr.setInQuery( false );
+// expr.setInPractice( false );
// }
// }
//<query>true</query>
currentElement = lessonElement.firstChildElement( KVTML_QUERY );
- m_doc->lesson(lessonId).setInQuery(currentElement.text() == KVTML_TRUE);
+ m_doc->lesson(lessonId).setInPractice(currentElement.text() == KVTML_TRUE);
//<current>true</current>
currentElement = lessonElement.firstChildElement( KVTML_CURRENT );
thisLessonElement.appendChild( newTextElement( KVTML_NAME, m_doc->lesson(lessonId).name() ) );
// add a inquery tag
- if ( m_doc->lesson(lessonId).inQuery() ) {
+ if ( m_doc->lesson(lessonId).inPractice() ) {
thisLessonElement.appendChild( newTextElement( KVTML_QUERY, KVTML_TRUE ) );
}
if ( m_doc->currentLesson() == i ) {
domElementDesc.setAttribute( KV_LESS_CURR, 1 );
}
- if ( m_doc->lesson(i).inQuery() ) {
+ if ( m_doc->lesson(i).inPractice() ) {
domElementDesc.setAttribute( KV_LESS_QUERY, 1 );
}
domElementDesc.appendChild( domTextDesc );
public:
QSet<int> m_entries;
QString m_name;
- bool m_inQuery;
+ bool m_inPractice;
};
KEduVocLesson::KEduVocLesson()
{
d->m_entries = other.d->m_entries;
d->m_name = other.d->m_name;
- d->m_inQuery = other.d->m_inQuery;
+ d->m_inPractice = other.d->m_inPractice;
}
KEduVocLesson::~KEduVocLesson()
{
d->m_entries = other.d->m_entries;
d->m_name = other.d->m_name;
- d->m_inQuery = other.d->m_inQuery;
+ d->m_inPractice = other.d->m_inPractice;
return *this;
}
{
return d->m_entries == other.d->m_entries &&
d->m_name == other.d->m_name &&
- d->m_inQuery == other.d->m_inQuery;;
+ d->m_inPractice == other.d->m_inPractice;;
}
void KEduVocLesson::setName( const QString &name )
d->m_entries = entries.toSet();
}
-bool KEduVocLesson::inQuery()
+bool KEduVocLesson::inPractice()
{
- return d->m_inQuery;
+ return d->m_inPractice;
}
-void KEduVocLesson::setInQuery(bool inQuery)
+void KEduVocLesson::setInPractice(bool inPractice)
{
- d->m_inQuery = inQuery;
+ d->m_inPractice = inPractice;
}
*/
void decrementEntriesAbove( int entryid );
- bool inQuery();
- void setInQuery( bool inQuery );
+ bool inPractice();
+ void setInPractice( bool inPractice );
/** equality operator */
bool operator==(const KEduVocLesson &other);