languageselectwidget.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2003 by Harald Fernengel * 00003 * harry@kdevelop.org * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 ***************************************************************************/ 00011 00012 #ifndef _LANGUAGESELECTWIDGET_H_ 00013 #define _LANGUAGESELECTWIDGET_H_ 00014 00015 #include <qdialog.h> 00016 #include <qdom.h> 00017 #include <qstringlist.h> 00018 00019 class QListView; 00020 00021 class LanguageSelectWidget : public QWidget 00022 { 00023 Q_OBJECT 00024 00025 public: 00026 /* for selection of project parts */ 00027 LanguageSelectWidget( QDomDocument &projectDom, QWidget *parent=0, const char *name=0 ); 00028 ~LanguageSelectWidget(); 00029 00030 public slots: 00031 void accept(); 00032 00033 signals: 00034 void accepted(); 00035 00036 private slots: 00037 void itemSelected( QListViewItem * ); 00038 00039 private: 00040 void init(); 00041 void readProjectConfig(); 00042 void saveProjectConfig(); 00043 00044 QDomDocument m_projectDom; 00045 QListView * _pluginList; 00046 QLabel * _pluginDescription; 00047 QLabel * _currentLanguage; 00048 00049 }; 00050 00051 #endif