[Parley-devel] [PATCH] Modifications for dictation and new sound option.

Massimo Lo Iacono massimol at lillinet.org
Sun Apr 3 00:26:33 CEST 2011


Hallo.

About two weeks ago I sent a review request in Review Board for kdeedu group (I believe I unintentionally invaded that mailing list with 4 emails. Sorry).

I have made modifications for dictation option, sound option and little more stuff.

For dictation:

- Now dictation is an option and no more a new mode of practice.
- This option is active with "Written", "Mixed Letters" and "Example Sentence" practices.
- Now the language practiced for dictation is the second of the pair languageFrom/languageTo.
- Bug fixed: no entry for words without a sound file.

Moreover:

- There is an option to play sound file of question at the start of practice.
- There is an option to hide text of question (only if sound option is activated). This and the previous options are useful to practice only with sounds.
- There are 2 options to show/hide pronunciation code for question and solution.
- Play sound button is always shown for all practice modes.
- Now it's possible control "Flash Cards" practice mode using only Enter key without need to use the mouse.
- I fixed o little annoying "change of size" of the practice box. Now the box is motionless during the practice (I tested this on Linux, I don't know on Windows and MacOsX).
- Key "T" take the place of key "ALT-T" to switch Correct/Not Correct solutions. I find this more comfortable.

I can successful compile and execute the code with my modifications.

For developers:

- Removed the 4 files "dictation...".
- The class PracticeOptions have 3 static variables and related functions:

    PracticeOptions::isDictation()
    PracticeOptions::languageFrom()
    PracticeOptions::languageTo()

  languageFrom() is set depending if isDictation() is true or false.
  languageFrom() and languageTo() take the place of Prefs::questionLanguage() and Prefs::solutionLanguage() in all the code after StatisticMainWindow, that is during the practice.

Ciao.
Massimo Lo Iacono


More information about the Parley-devel mailing list