kanagram
vocabsettings.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2005 by Joshua Keel <joshuakeel@gmail.com> * 00003 * (C) 2007 by Jeremy Whiting <jeremy@scitools.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 #ifndef VOCABSETTINGS_H 00023 #define VOCABSETTINGS_H 00024 00025 #include "ui_vocabsettingswidget.h" 00026 00027 class KConfigDialog; 00028 00034 class VocabSettings : public QWidget, public Ui::VocabSettingsWidget 00035 { 00036 Q_OBJECT 00037 public: 00039 explicit VocabSettings(QWidget *parent); 00040 00042 virtual ~VocabSettings(); 00043 00045 void refreshView(); 00046 00047 private: 00048 00050 QStringList m_fileList; 00051 00053 QStringList m_titleList; 00054 00056 QStringList m_commentList; 00057 00058 QMap<const QTreeWidgetItem*, int> m_itemMap; 00059 00061 KConfigDialog *m_parent; 00062 00063 private slots: 00064 00068 void on_btnCreateNew_clicked(); 00069 void on_btnEdit_clicked(); 00070 void slotSelectionChanged(QTreeWidgetItem *item); 00071 }; 00072 00073 #endif 00074
KDE 4.0 API Reference