File indexing completed on 2025-01-12 03:27:55
0001 /*************************************************************************** 0002 * Copyright (C) 2005 by Joshua Keel <joshuakeel@gmail.com> * 0003 * Copyright (C) 2014 by Jeremy Whiting <jpwhiting@kde.org> * 0004 * * 0005 * This program is free software; you can redistribute it and/or modify * 0006 * it under the terms of the GNU General Public License as published by * 0007 * the Free Software Foundation; either version 2 of the License, or * 0008 * (at your option) any later version. * 0009 * * 0010 * This program is distributed in the hope that it will be useful, * 0011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 0012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 0013 * GNU General Public License for more details. * 0014 * * 0015 * You should have received a copy of the GNU General Public License * 0016 * along with this program; if not, write to the * 0017 * Free Software Foundation, Inc., * 0018 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * 0019 ***************************************************************************/ 0020 0021 #ifndef VOCABEDIT_H 0022 #define VOCABEDIT_H 0023 0024 #include "ui_vocabeditwidget.h" 0025 0026 #include <QVector> 0027 0028 class KEduVocExpression; 0029 0030 class VocabEdit : public QDialog, Ui::VocabEditWidget 0031 { 0032 Q_OBJECT 0033 public: 0034 explicit VocabEdit(QWidget *parent); 0035 VocabEdit(QWidget *parent, const QString &fileName); 0036 ~VocabEdit(); 0037 0038 public Q_SLOTS: 0039 void slotSave(); 0040 void slotClose(); 0041 void slotNewWord(); 0042 void slotRemoveWord(); 0043 void slotSelectionChanged(); 0044 void slotWordTextChanged(const QString &changes); 0045 void slotHintTextChanged(const QString &changes); 0046 void slotTextChanged(const QString &changes); 0047 0048 private: 0049 QVector<KEduVocExpression> m_vocabList; 0050 QString m_fileName; 0051 bool m_textChanged; 0052 }; 0053 0054 #endif 0055