keduca
klangcombo.h
Go to the documentation of this file.00001 /* 00002 * klangcombo.h - Adds some methods for inserting languages. 00003 * 00004 * Copyright (c) 1999-2000 Hans Petter Bieker <bieker@kde.org> 00005 * 00006 * Requires the Qt widget libraries, available at no cost at 00007 * http://www.troll.no/ 00008 * 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00022 */ 00023 00024 00025 #ifndef __KLANGCOMBO_H__ 00026 #define __KLANGCOMBO_H__ 00027 00028 #include "ktagcombobox.h" 00029 00030 /* 00031 * Extends KTagCombo to support adding and changing languages. 00032 * 00033 * It has also support for sub menues. 00034 */ 00035 class KLanguageCombo : public KTagComboBox 00036 { 00037 Q_OBJECT 00038 00039 public: 00040 KLanguageCombo(QWidget *parent=0, const char *name=0); 00041 ~KLanguageCombo(); 00042 00043 void insertLanguage(const QString& path, const QString& name, const QString& sub = QString::null, const QString &submenu = QString::null); 00044 void changeLanguage(const QString& name, int i); 00045 }; 00046 00047 #endif