kanagram
vocabedit.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2005 by Joshua Keel * 00003 * joshuakeel@gmail.com * 00004 * * 00005 * * 00006 * This program is free software; you can redistribute it and/or modify * 00007 * it under the terms of the GNU General Public License as published by * 00008 * the Free Software Foundation; either version 2 of the License, or * 00009 * (at your option) any later version. * 00010 * * 00011 * This program is distributed in the hope that it will be useful, * 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00014 * GNU General Public License for more details. * 00015 * * 00016 * You should have received a copy of the GNU General Public License * 00017 * along with this program; if not, write to the * 00018 * Free Software Foundation, Inc., * 00019 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * 00020 ***************************************************************************/ 00021 00022 00023 #ifndef VOCABEDIT_H 00024 #define VOCABEDIT_H 00025 00026 #include "ui_vocabeditwidget.h" 00027 00028 #include <QVector> 00029 00030 class KEduVocExpression; 00031 00032 class VocabEdit : public QDialog, Ui::VocabEditWidget 00033 { 00034 Q_OBJECT 00035 public: 00036 explicit VocabEdit(QWidget *parent); 00037 VocabEdit(QWidget *parent, const QString &fileName); 00038 ~VocabEdit(); 00039 00040 public slots: 00041 void slotSave(); 00042 void slotClose(); 00043 void slotNewWord(); 00044 void slotRemoveWord(); 00045 void slotSelectionChanged(); 00046 void slotWordTextChanged(const QString &changes); 00047 void slotHintTextChanged(const QString &changes); 00048 void slotTextChanged(const QString &changes); 00049 00050 private: 00051 QVector<KEduVocExpression> m_vocabList; 00052 QString m_fileName; 00053 bool m_textChanged; 00054 }; 00055 00056 #endif 00057
KDE 4.2 API Reference