File indexing completed on 2024-05-12 07:45:23
0001 /* 0002 SPDX-FileCopyrightText: 2007-2010 Frederik Gladhorn <gladhorn@kde.org> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #ifndef CONJUGATIONOPTIONS_H 0007 #define CONJUGATIONOPTIONS_H 0008 0009 #include <QMap> 0010 #include <QWidget> 0011 0012 class KEduVocDocument; 0013 class QTreeWidget; 0014 class QTreeWidgetItem; 0015 0016 class ConjugationOptions : public QWidget 0017 { 0018 Q_OBJECT 0019 public: 0020 ConjugationOptions(KEduVocDocument *doc, QWidget *parent); 0021 0022 public Q_SLOTS: 0023 void setLanguages(int from, int to); 0024 void updateSettings(); 0025 0026 Q_SIGNALS: 0027 void checkBoxChanged(); 0028 0029 private: 0030 void setupTenses(); 0031 0032 private Q_SLOTS: 0033 void processCheckBoxChanged(QTreeWidgetItem *item, int column); 0034 0035 private: 0036 KEduVocDocument *m_doc; 0037 int m_language; 0038 QTreeWidget *m_treeWidget; 0039 QMap<QTreeWidgetItem *, Qt::CheckState> m_checkStates; 0040 }; 0041 0042 #endif