Cleanup conjugations.
Verify for conjugations is much improved and basically works.
Problems:
- you have to get all conjugations in all selected tenses right at the same time to have it count as correct.
- statistics are not considered when selecting the verbs (need grades for conjugations I guess)
- line edits that stay empty are now hidden, their labels not
Use the index from the Conjugation class in the conjugation practice for the line edits.
Much cleaner less redundant code.
Change from totaly unusable to actually somewhat working.
Askes the tenses chosen in the config and actually should even ask one tense after the other.
Cleanup and improve the vokabeln reader.
Original patch by Ilja.
> This patch should make possible to open .voc with longer header. (e.g.
> http://www.vokabeln.de/v1/download/GB_Technik.zip).
> KEduVocDocument::setDocumentComment changed to allow to insert
> multiline file comments from .voc files.
CCMAIL: iljuss@gmail.com
Read plural pronouns correctly from old docs.
Add isEmpty() to conjugations.
Attempt to make conjugations a little less broken:
- empty conjugations are ignored
- a stringlist contains possible tenses to practice
- for now only the first not empty tense is practiced
Add combobox to select special types (like noun) for a work type.
This empowers the mighty user to have even multiple noun types, each with subtypes.
Localization of the specialtypes is not implemented yet.
This breaks ABI since I removed an old debug call from the lib.
Added setSpecialType calls.
Add a real personal pronoun class. It contains if male/female/neuter conjugations exist.
Add methods to read/write personal ps.
Rewrite conjugation to use enums.
Redo the dialogs for entry conjugation and articles. Much simpler and nicer now.
Conjugation practice does not work yet.
Make declination class compile, not used still.
Don't pass the domDoc countless times in the kvtml-1 writer, it's a member now.
Adapt readers/writers, the kvtml-1 writer needs care, it will not work correctly.
Rewrite of the article class with enums.
Port parley.
Adapt CMakeLists.txt as discussed with Alex.
KDE4_ADD_TEST_EXECUTABLE is deprecated now use KDE4_ADD_EXECUTABLE(<target> TEST <files>) instead
QT4_ADD_DBUS_INTERFACE_NO_NAMESPACE and QT4_ADD_DBUS_INTERFACES_NO_NAMESPACE are deprecated too
used SET_SOURCE_FILES_PROPERTIES(<files> PROPERTIES NO_NAMESPACE TRUE) QT4_ADD_DBUS_INTERFACES(<srcList> <files>)
set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} ) is put in each CMakeLists.txt where
KDE4_ADD_EXECUTABLE(<target> TEST <files>) and KDE4_ADD_UNIT_TEST were used.
Rewrite the article class using enums, only one get/set function is needed now.
So far we only read/write singular. But support is there for plural and dual.
Deprecated old constructor with arguments, but leave it for now, since porting will take some time.
This breaks compability with articles in kvtml2 docs!
Port parley to use that stuff.
Better url handling for sound/image.
Use KUrl internally, only save as relative path, when the sound/image is in the same or a subdir of the document.
Move handling of relative urls into the lib.
Remove irregular plural tags in favour of a real declination class (not used currently). This will also allow support for plurals and dual forms correctly.
The article class still had get/set natural instead of neutral as functions.
Make the article test work so far.
Only wrong answers don't count as wrong right now. (Before the dialog showed up and was completely disabled).
Make the grammar practice selection much better.
In the config dialog one can check the grammar tests to use now. This also allows for adverb (mixed with adjective or alone) tests.
Give the doc default grammar when using the wizard.
Rewrite the type for test selection funtion as checkType.
Deprecate a function that probably doesn't work, esp if multiple word types are allowed to share a special type.
BUG: 106451
Add the first real unit test:
Create a doc, write it to a temp file and read it again. Tests for the easy tags: author, title, comment, license and category.
Remove all gui elements from keduvocdocument.
This means that when opening a document fails, the apps have to check for the return value of doc->open().
Added an enum for the errors.
With KEduVocDocument::errorDescription a message can be generated to display to the user.
CCMAIL: peter@peterandlinda.com
Get rid of the m_inQuery for KEduVocExpression.
Only KVoc used to use it and it will just no longer be used.
It had no meaning for quite a while in parley, only confusing things.
The main table now only shows (in)active for the words.
(the chainsaw was here...)
Make lessons a list again.
QMap is too flexible. Users will kill us for changing lesson order. The flexibility of the map makes the lesson model in KVocTrain much harder to implement.
Moved the inQuery flag into the lesson class.
Fixed readers and writers. I could not verify if the keduvocvokabelnreader.cpp works.
The first lesson has 0 as index now.
A default lesson is created according to Jeremys plans, but within the document class itself, after reading the doc, so all readers profit from it.
KEduVocExpression is not initialized to lesson=-1 as default.
The old reader maps lesson 1 to 0.
Splitting and deleting lessons seems to work.
Moving lessons is not implemented (this will become interesting, when drag and drop for the lesson model is enabled).
TODO: When adding an expression, the document can automatically add it to the lesson.
Right now we call doc->lesson.add(Exp) and doc->addExp(lesson). The later should suffice.
Fixes in KVocTrain (many +-1 are no longer needed).
CCMAIL:jeremy@scitools.com
CCMAIL:peter@peterandlinda.com
Begin reworking the wizard to reflect changes in the document classes.
- added author title etc page.
- added category combobox to author title page.
- added get/set methods for category to keduvocdocument
- added a new identifier name/locale page
The old pages are still there, but will be removed, when the new stuff is working.
Writing/reading of the category still missing.