Revision 704715

Go back to digest for 26th August 2007

Features in Educational

Frederik Gladhorn committed changes in /trunk/KDE/kdeedu:

Complete rewrite of the type handling.
This means the addition of a new class to keduvocdocument: KEduVocWordType.
Word types are handled by getting a pointer KEduVocWordType* KEduVocDocument::wordTypes().

The class provides functions for adding types and subtypes and also has a special type QString to prevent users from deleting types necessary for certain query types (verb for conjugation etc.). These types can be renamed still.

Within KVocTrain a few type_relation and other curious functions go away. When this is done with usages as well, a few more interdependencies will go away.
To handle types in KVocTrain a new model and treeview has been added.

Note: next step is to adapt the old reader/writer. And move the compability maps and functions away from KEduVocWordType.

At document creation time a good preset (maybe the old types) should also be created.
Also the old typeDescription QStringList has to be removed.

File Changes

Added 3 files
  • /trunk/KDE/kdeedu
  •   /libkdeedu/keduvocdocument/keduvocwordtype.cpp
  •   /libkdeedu/keduvocdocument/keduvocwordtype.h
  •   /kvoctrain/kvoctrain/docprop-dialogs/typeeditform.ui
Deleted 2 files
  • /trunk/KDE/kdeedu/kvoctrain/kvoctrain
  •   /keduvocwordtype.cpp
  •   /keduvocwordtype.h
Modified 22 files
  • /trunk/KDE/kdeedu
  •   /kvoctrain/kvoctrain/CMakeLists.txt
  •   /kvoctrain/kvoctrain/kva_io.cpp
  •   /kvoctrain/kvoctrain/kvoctrain.cpp
  •   /libkdeedu/keduvocdocument/CMakeLists.txt
  •   /libkdeedu/keduvocdocument/keduvocdocument.cpp
  •   /libkdeedu/keduvocdocument/keduvocdocument.h
  •   /libkdeedu/keduvocdocument/keduvockvtml2reader.cpp
  •   /libkdeedu/keduvocdocument/keduvockvtml2writer.cpp
  •   /libkdeedu/keduvocdocument/keduvoclesson.h
  •   /libkdeedu/keduvocdocument/kvtml2.dtd
  •   /libkdeedu/keduvocdocument/kvtml2defs.h
  •   /kvoctrain/kvoctrain/common-dialogs/thresholdoptions.cpp
  •   /kvoctrain/kvoctrain/docprop-dialogs/DocPropDlg.cpp
  •   /kvoctrain/kvoctrain/docprop-dialogs/DocPropDlg.h
  •   /kvoctrain/kvoctrain/docprop-dialogs/TypeOptPage.cpp
  •   /kvoctrain/kvoctrain/docprop-dialogs/TypeOptPage.h
  •   /kvoctrain/kvoctrain/entry-dialogs/CommonEntryPage.cpp
  •   /kvoctrain/kvoctrain/entry-dialogs/CommonEntryPage.h
  •   /kvoctrain/kvoctrain/query-dialogs/kvtquery.cpp
  •   /kvoctrain/kvoctrain/query-dialogs/kvtquery.h
  •   /kvoctrain/kvoctrain/query-dialogs/kvtquerymanager.cpp
  •   /kvoctrain/kvoctrain/query-dialogs/RandomQueryDlg.cpp
27 files changed in total