d->m_imageUrl = url;
}
-KEduVocContainer * KEduVocContainer::childOfType(KEduVocContainer::EnumContainerType type)
-{
- if(containerType()==type) {
- return this;
- }
- foreach(KEduVocContainer* child, childContainers()) {
- KEduVocContainer* result = child->childOfType(type);
- if(result) {
- return result;
- }
- }
- return 0;
-}
void KEduVocContainer::insertChildContainer(int row, KEduVocContainer * child)
{
d->m_childContainers.insert(row, child);
+ child->d->m_parentContainer = this;
}
*/
void setContainerType(KEduVocContainer::EnumContainerType type);
- KEduVocContainer* childOfType(KEduVocContainer::EnumContainerType type);
/** get the image url for this container if it exists */
KUrl imageUrl();
return d->m_wordType;
}
-
+///@todo provide a function to find a certain word type container... used for "make this a noun" buttons
+// KEduVocContainer * KEduVocContainer::childOfType(KEduVocContainer::EnumContainerType type)
+// {
+// if(containerType()==type) {
+// return this;
+// }
+// foreach(KEduVocContainer* child, childContainers()) {
+// KEduVocContainer* result = child->childOfType(type);
+// if(result) {
+// return result;
+// }
+// }
+// return 0;
+// }
KEduVocWordType::EnumWordType wordType() const;
+// KEduVocContainer* childOfType(KEduVocContainer::EnumContainerType type);
+
KEduVocTranslation * translation(int row);
/** get a list of all entries in the lesson */