00001 /*************************************************************************** 00002 * Copyright (C) 2002 by Yann Hodique * 00003 * Yann.Hodique@lifl.fr * 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 #ifndef _PREFIXSETTINGS_H_ 00012 #define _PREFIXSETTINGS_H_ 00013 00014 #include "prefixsettingsbase.h" 00015 00016 #include <qwidget.h> 00017 #include <qstring.h> 00018 #include <qmap.h> 00019 00024 class PrefixSettings : public PrefixSettingsBase { 00025 Q_OBJECT 00026 00027 public: 00028 00029 class PrefixItem { 00030 public: 00031 PrefixItem(QString n="") { 00032 name = n; 00033 } 00034 QString name; 00035 }; 00036 00037 PrefixSettings(QWidget *parent = 0, const char *name = 0); 00038 ~PrefixSettings(); 00039 00040 QMap<QString,PrefixItem> map; 00041 00042 public slots: 00043 void addPrefixItem(PrefixItem &); 00044 void delPrefixItem(const QString&); 00045 void slotAdd(); 00046 void slotDel(); 00047 00048 }; 00049 00050 #endif