]> Git trees. - libqmvoc.git/commit
Complete rewrite of the type handling.
authorFrederik Gladhorn <gladhorn@kde.org>
Sun, 26 Aug 2007 01:19:56 +0000 (01:19 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Sun, 26 Aug 2007 01:19:56 +0000 (01:19 +0000)
commita9537495c7271d2cc330013a2d394ed0a90e7cc5
tree651fe7508a86ce3cb071c0f3af4cfa113aabde67
parent7110fa7a632b702a17fa410d6b4144b537102fa9
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.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=704715
keduvocdocument/CMakeLists.txt
keduvocdocument/keduvocdocument.cpp
keduvocdocument/keduvocdocument.h
keduvocdocument/keduvockvtml2reader.cpp
keduvocdocument/keduvockvtml2writer.cpp
keduvocdocument/keduvoclesson.h
keduvocdocument/keduvocwordtype.cpp [new file with mode: 0644]
keduvocdocument/keduvocwordtype.h [new file with mode: 0644]
keduvocdocument/kvtml2.dtd
keduvocdocument/kvtml2defs.h