[Parley-devel] [PATCH] Added dictation practice.

Massimo Lo Iacono massimol at inventati.org
Wed Feb 16 01:14:52 CET 2011


Hallo.

I just sent a review request in Review Board for kdeedu group. Here I attach the 4 files too.

I have made the modifications to add functionality for dictation practice.

Dictation is a monolanguage type of practice. It consists a sound (only) question and a text solution in the same language of question.

The language of practice is the first of the pair languageFrom/languageTo.

For developers:

Since the dictation practice is of the type monolanguage and the pre existent code was for bilanguage practice, I modified a bit the code in order that now it is adapt also for a monolanguage type of practice.

I added these new 4 files in "src/4/kdeedu/parley/src/practice/" directory:

  dictationbackendmode.h
  dictationbackendmode.cpp
  dictationmodewidget.h
  dictationmodewidget.cpp

IMPORTANT: to manage the visualisation of question and solution images, I was forced to create the new function:

  GuiFrontend::compareImage()

and to modify the functions:

  AbstractBackendMode::setTestEntry
  MultipleChoiceBackendMode::setTestEntry
  ConjugationBackendMode::setTestEntry
  ComparisonBackendMode::setTestEntry
  
adding the rows:

  m_frontend->setQuestionImage
  m_frontend->setSolutionImage
  m_frontend->compareImage();

I created the patch from the 1218525 revision, almost 2 weeks old.

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

Massimo Lo Iacono
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dictationbackendmode.cpp
Type: text/x-c++src
Size: 7412 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/parley-devel/attachments/20110216/8ff9de80/attachment.cpp 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dictationbackendmode.h
Type: text/x-chdr
Size: 1746 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/parley-devel/attachments/20110216/8ff9de80/attachment.h 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dictationmodewidget.cpp
Type: text/x-c++src
Size: 2539 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/parley-devel/attachments/20110216/8ff9de80/attachment-0001.cpp 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dictationmodewidget.h
Type: text/x-chdr
Size: 1496 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/parley-devel/attachments/20110216/8ff9de80/attachment-0001.h 


More information about the Parley-devel mailing list