File indexing completed on 2024-03-24 03:53:48
0001 /* 0002 SPDX-FileCopyrightText: 2008 Frederik Gladhorn <frederik.gladhorn@kdemail.net> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #ifndef WORDCLASSMODEL_H 0007 #define WORDCLASSMODEL_H 0008 0009 #include "containermodel.h" 0010 0011 /** 0012 * Model for the tree of word types. 0013 */ 0014 class WordClassModel : public ContainerModel 0015 { 0016 Q_OBJECT 0017 0018 public: 0019 explicit WordClassModel(QObject *parent = nullptr); 0020 0021 QModelIndex appendWordClass(const QModelIndex &parent, const QString &wordTypeName = QString()); 0022 0023 void deleteWordClass(const QModelIndex &wordTypeIndex); 0024 0025 protected: 0026 KEduVocContainer *rootContainer() const override; 0027 }; 0028 0029 #endif