}
-QString KEduVocDocument::originalIdentifier() const
-{
- if ( d->m_identifiers.size() > 0 )
- return d->m_identifiers[0];
- else
- return "";
-}
-
-
-void KEduVocDocument::setOriginalIdentifier( const QString &id )
-{
- if ( d->m_identifiers.size() > 0 ) {
- d->m_identifiers[0] = id;
- }
-}
-
-
bool KEduVocDocument::isModified() const
{
return d->m_dirty;
return count;
}
+
void KEduVocDocument::shuffle()
{
KRandomSequence rs;
KUrl url() const;
-
/** set the title of the file
* @param title title to set */
void setTitle( const QString & title );
/** @returns the version of the loaded file */
QString version() const;
+
// *** entry methods ***
/**
void appendEntry( KEduVocExpression *expression );
/**
- * Inserts a new expression
+ * Inserts a new expression at position @p index
*
* @param expression expression to insert
* @param index index of entry
*/
int appendIdentifier( const QString & id );
- /**
- * Sets the original identifier
- *
- * @param id the new identifier
- */
- void setOriginalIdentifier( const QString &id );
-
- /**
- * @returns the original identifier
- */
- QString originalIdentifier() const;
-
/**
* Sets the identifier of translation
*
- * @param index number of translation 1..x
+ * @param index number of translation 0..x
* @param lang thr language identifier: en=english, de=german, ...
*/
void setIdentifier( int index, const QString &lang );
/**
* Returns the identifier of translation @p index
*
- * @param index number of translation 1..x
+ * @param index number of translation 0..x
* @returns the language identifier: en=english, de=german, ...
*/
QString identifier( int index ) const;