• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

kanagram

KanagramGame Class Reference

#include <kanagramgame.h>

Inheritance diagram for KanagramGame:

Inheritance graph
[legend]

List of all members.


Detailed Description

game api

Author:
Joshua Keel <joshuakeel@gmail.com>

Jeremy Whiting <jeremy@scitools.com>

Definition at line 35 of file kanagramgame.h.


Public Slots

void useVocab (const QString &vocabname)
bool refreshVocabList ()
void loadDefaultVocab ()
void nextAnagram ()
void nextVocab ()
void previousVocab ()
void restoreWord ()

Signals

void fileError (const QString &filename)

Public Member Functions

 KanagramGame ()
 ~KanagramGame ()
QString getAnagram ()
QString getHint ()
QString getWord ()
QString getDocTitle ()
QString getFilename ()
QStringList getVocabsList ()

Constructor & Destructor Documentation

KanagramGame::KanagramGame (  )  [explicit]

default constructor

Definition at line 41 of file kanagramgame.cpp.

KanagramGame::~KanagramGame (  ) 

default destructor

Definition at line 50 of file kanagramgame.cpp.


Member Function Documentation

QString KanagramGame::getAnagram (  ) 

get the anagram to show

Definition at line 222 of file kanagramgame.cpp.

QString KanagramGame::getHint (  ) 

get this anagram's hint

Definition at line 227 of file kanagramgame.cpp.

QString KanagramGame::getWord (  ) 

get this anagram's answer

Definition at line 232 of file kanagramgame.cpp.

QString KanagramGame::getDocTitle (  ) 

get the current vocabulary file's title

Definition at line 273 of file kanagramgame.cpp.

QString KanagramGame::getFilename (  ) 

get the current vocabulary file's filename

Definition at line 217 of file kanagramgame.cpp.

QStringList KanagramGame::getVocabsList (  ) 

get the list of vocabularies

Definition at line 103 of file kanagramgame.cpp.

void KanagramGame::useVocab ( const QString &  vocabname  )  [slot]

set the vocab to use

Definition at line 109 of file kanagramgame.cpp.

bool KanagramGame::refreshVocabList (  )  [slot]

refresh the list of vocabulary files available from what we find on disk

Returns:
true if the current vocabulary has changed so the ui can refresh

Definition at line 91 of file kanagramgame.cpp.

void KanagramGame::loadDefaultVocab (  )  [slot]

load the default vocab file

Todo:
open returns KEduVocDocument::ErrorCode

Definition at line 67 of file kanagramgame.cpp.

void KanagramGame::nextAnagram (  )  [slot]

set the index to the next word

Definition at line 176 of file kanagramgame.cpp.

void KanagramGame::nextVocab (  )  [slot]

use the next vocab file in the list

Todo:
open returns KEduVocDocument::ErrorCode

Definition at line 155 of file kanagramgame.cpp.

void KanagramGame::previousVocab (  )  [slot]

use the previous vocab file in the list

Todo:
open returns KEduVocDocument::ErrorCode

Definition at line 137 of file kanagramgame.cpp.

void KanagramGame::restoreWord (  )  [slot]

restore the word, set the anagram to the answer

Definition at line 237 of file kanagramgame.cpp.

void KanagramGame::fileError ( const QString &  filename  )  [signal]

signal the ui that a there's a file error of some kind


The documentation for this class was generated from the following files:
  • kanagramgame.h
  • kanagramgame.cpp

kanagram

Skip menu "kanagram"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal