Logo Search packages:      
Sourcecode: kanagram version File versions  Download package

void KanagramGame::nextVocab (  ) [slot]

use the next vocab file in the list

open returns KEduVocDocument::ErrorCode

Definition at line 145 of file kanagramgame.cpp.

References checkFile(), m_answeredWords, m_doc, m_fileList, m_filename, and m_index.

Referenced by loadDefaultVocab(), Kanagram::refreshVocabularies(), and Kanagram::slotNextVocabulary().

    if (++m_index >= m_fileList.size())
        m_index = 0;

    if (!m_fileList.isEmpty())
        m_filename = m_fileList[m_index];
        delete m_doc;
        m_doc = new KEduVocDocument(this);
        ///@todo open returns KEduVocDocument::ErrorCode
        m_doc->open(KUrl(KStandardDirs::locate("data", m_filename)));

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index