00001 /* 00002 Opie-Remote. emulates remote controlls on an iPaq (and maybe a Zaurus) in Opie. 00003 Copyright (C) 2002 Thomas Stephens 00004 00005 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public 00006 License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later 00007 version. 00008 00009 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the 00010 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 00011 Public License for more details. 00012 00013 You should have received a copy of the GNU General Public License along with this program; if not, write to the Free 00014 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00015 */ 00016 00017 #include <qpe/config.h> 00018 #include <qwidget.h> 00019 #include <qlayout.h> 00020 #include <qcombobox.h> 00021 #include <qpushbutton.h> 00022 #include <qlabel.h> 00023 #include <qstring.h> 00024 #include <qstringlist.h> 00025 #include <qmessagebox.h> 00026 #include <qobjectlist.h> 00027 //#include <qscrollview.h> 00028 //#include <qcolor.h> 00029 //#include <qvbox.h> 00030 00031 #include "buttondialog.h" 00032 #include "channelgroupconf.h" 00033 #include "dvdgroupconf.h" 00034 #include "topgroupconf.h" 00035 #include "vcrgroupconf.h" 00036 00037 class ConfigTab : public QWidget 00038 { 00039 Q_OBJECT 00040 public: 00041 ConfigTab(QWidget *parent=0, const char *name=0); 00042 void setConfig(Config *newCfg); 00043 public slots: 00044 void newPressed(); 00045 void remoteSelected(const QString &string); 00046 void buttonPressed(); 00047 signals: 00048 void remotesChanged(); 00049 private: 00050 Config *cfg; 00051 TopGroupConf *topGroupConf; 00052 DVDGroupConf *dvdGroupConf; 00053 VCRGroupConf *vcrGroupConf; 00054 ChannelGroupConf *channelGroupConf; 00055 };
1.4.2