Only KVoc used to use it and it will just no longer be used.
It had no meaning for quite a while in parley, only confusing things.
The main table now only shows (in)active for the words.
(the chainsaw was here...)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=711774
/**
* Appends a new identifier (usually a language)
*
- * @param name the identifier to append
+ * @param identifier the identifier to append. If empty default names are used.
* @returns the identifier number
*/
-// int appendIdentifier( const QString& name );
-
int appendIdentifier( const KEduVocIdentifier & identifier = KEduVocIdentifier());
/**
* @param index number of translation 0..x
* @returns the language identifier: en=english, de=german, ...
*/
-// QString identifier( int index ) const;
KEduVocIdentifier& identifier( int index );
/**
QString m_leitnerBox;
int m_sortIndex;
int m_lesson;
- bool m_inQuery;
bool m_active;
int m_sizeHint;
void KEduVocExpression::KEduVocExpressionPrivate::init()
{
m_translations.clear();
-
- m_inQuery = false;
m_active = true;
m_lesson = -1;
m_sortIndex = 0;
m_leitnerBox == p.m_leitnerBox &&
m_lesson == p.m_lesson &&
m_sortIndex == p.m_sortIndex &&
- m_inQuery == p.m_inQuery &&
m_active == p.m_active;
}
}
-bool KEduVocExpression::isInQuery() const
-{
- return d->m_inQuery;
-}
-
-
-void KEduVocExpression::setInQuery( bool flag )
-{
- d->m_inQuery = flag;
-}
-
-
bool KEduVocExpression::isActive() const
{
return d->m_active;
*/
void resetGrades( int index );
- /** returns flag if entry is "selected" for queries
- */
- bool isInQuery() const;
-
- /** set entry "selected"
- */
- void setInQuery( bool flag = true );
-
/** returns flag if entry is activated for queries
*/
bool isActive() const;
}
}
- currentElement = entryElement.firstChildElement( KVTML_INQUERY );
- if ( !currentElement.isNull() ) {
- // set the inquery information
- if ( currentElement.text() == KVTML_TRUE ) {
- expr.setInQuery( true );
- } else {
- expr.setInQuery( false );
- }
- }
+// currentElement = entryElement.firstChildElement( KVTML_INQUERY );
+// if ( !currentElement.isNull() ) {
+// // set the inquery information
+// if ( currentElement.text() == KVTML_TRUE ) {
+// expr.setInQuery( true );
+// } else {
+// expr.setInQuery( false );
+// }
+// }
currentElement = entryElement.firstChildElement( KVTML_SIZEHINT );
if ( !currentElement.isNull() ) {
// write inactive
entryElement.appendChild( newTextElement( KVTML_INACTIVE, thisEntry->isActive() ? KVTML_FALSE : KVTML_TRUE ) );
- // write inquery
- entryElement.appendChild( newTextElement( KVTML_INQUERY, thisEntry->isInQuery() ? KVTML_TRUE : KVTML_FALSE ) );
+// kvtml 1 relic no longer used
+// // write inquery
+// entryElement.appendChild( newTextElement( KVTML_INQUERY, thisEntry->isInQuery() ? KVTML_TRUE : KVTML_FALSE ) );
// write sizehint
if ( thisEntry->sizeHint() > 0 ) {
m_oldTenses[KVTML_1_USER_DEFINED + QString::number( m_userdefinedTenseCounter )] = tense;
}
return m_oldTenses.key(tense);
-}
\ No newline at end of file
+}
if ( i == 0 ) {
expr = KEduVocExpression( textstr );
expr.setLesson( lesson );
- expr.setInQuery( inquery );
+
+///@todo inquery is old and no longer used. get rid of reading it.
+// expr.setInQuery( inquery );
expr.setActive( active );
} else {
expr.setTranslation( i, textstr );
i++;
}
- if ( m_doc->entryCount() == 0 ) {
- m_doc->setQueryIdentifier( q_org, q_trans );
- }
+// if ( m_doc->entryCount() == 0 ) {
+// m_doc->setQueryIdentifier( q_org, q_trans );
+// }
m_doc->appendEntry( &expr );
// also add this entryid to the lesson it's part of
domElementExpression.setAttribute( KV_LESS_MEMBER, lm );
}
- if ( entry->isInQuery() )
- domElementExpression.setAttribute( KV_SELECTED, 1 );
+// Sorry, but we don't support this any more.
+// if ( entry->isInQuery() )
+// domElementExpression.setAttribute( KV_SELECTED, 1 );
if ( !entry->isActive() )
domElementExpression.setAttribute( KV_INACTIVE, 1 );