Revision 840889

Go back to digest for 3rd August 2008

Other in Educational

David Capel committed changes in /trunk/KDE/kdeedu/parley/src:

Major remodeling of how themes work, based on Frederik's idea.

Now there is a group named 'main' that is the main background, and it has a rectangle named 'active_area' to denote where to put the rest.

For each mode, the themer makes a group named that name (written => 'written', etc). Within that group are all the requisit elements (answer_text_input, etc).

Depending on the mode, practice puts the named group in the 'actve_area' rectangle, and we are off! For certain modes, there is another mode that is used as a fallback. For example, if no 'example' element is found, it uses the 'written' element instead (they are similar enough most themes just won't both making a seperate design for example.) This will be documented more thoroughly later.

This change allows for more freedom when designing themes.

For now, don't try to use any modes except for written, example, and paraphrase.

File Changes

Added 2 files
  • /trunk/KDE/kdeedu/parley/src/practice
  •   /activearea.cpp
  •   /activearea.h
Modified 31 files
  • /trunk/KDE/kdeedu/parley/src
  •   /CMakeLists.txt
  •   /practice/feedback.cpp
  •   /practice/feedback.h
  •   /practice/modeindependent.cpp
  •   /practice/modespecifics.cpp
  •   /practice/parleypracticemainwindow.cpp
  •   /practice/parleypracticemainwindow.h
  •   /practice/prompt.h
  •   /practice/stdbuttons.cpp
  •   /practice/stdbuttons.h
  •   /practice/timer.cpp
  •   /practice/timer.h
  •   /practice/input/articlemcinput.cpp
  •   /practice/input/articlemcinput.h
  •   /practice/input/mcinput.cpp
  •   /practice/input/mcinput.h
  •   /practice/input/multiplechoicemcinput.cpp
  •   /practice/input/multiplechoicemcinput.h
  •   /practice/input/textualinput.cpp
  •   /practice/input/textualinput.h
  •   /practice/prompt/imageprompt.cpp
  •   /practice/prompt/imageprompt.h
  •   /practice/prompt/mixedlettersprompt.cpp
  •   /practice/prompt/mixedlettersprompt.h
  •   /practice/prompt/soundprompt.cpp
  •   /practice/prompt/soundprompt.h
  •   /practice/prompt/textualprompt.cpp
  •   /practice/prompt/textualprompt.h
  •   /practice/statistics/svgbarstatistics.cpp
  •   /practice/statistics/svgbarstatistics.h
  •   /practice/themes/default_theme.svgz
33 files changed in total