00001 /* 00002 * kPPP: A pppd front end for the KDE project 00003 * 00004 * $Id: pppdargs.h,v 1.4 2003/08/09 17:14:55 kergoth Exp $ 00005 * 00006 * Copyright (C) 1997 Bernd Johannes Wuebben 00007 * wuebben@math.cornell.edu 00008 * 00009 * based on EzPPP: 00010 * Copyright (C) 1997 Jay Painter 00011 * 00012 * 00013 * This library is free software; you can redistribute it and/or 00014 * modify it under the terms of the GNU Library General Public 00015 * License as published by the Free Software Foundation; either 00016 * version 2 of the License, or (at your option) any later version. 00017 * 00018 * This library is distributed in the hope that it will be useful, 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00021 * Library General Public License for more details. 00022 * 00023 * You should have received a copy of the GNU Library General Public 00024 * License along with this program; if not, write to the Free 00025 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00026 */ 00027 00028 #ifndef _PPPDARGS_H_ 00029 #define _PPPDARGS_H_ 00030 00031 #include <qdialog.h> 00032 #include <qlineedit.h> 00033 #include <qpushbutton.h> 00034 #include <qlistbox.h> 00035 #include <qlabel.h> 00036 class PPPData; 00037 00038 class PPPdArguments : public QDialog { 00039 Q_OBJECT 00040 public: 00041 PPPdArguments(PPPData*,QWidget *parent=0, const char *name=0); 00042 ~PPPdArguments() {} 00043 00044 private slots: 00045 void addbutton(); 00046 void removebutton(); 00047 void defaultsbutton(); 00048 virtual void accept(); 00049 void textChanged(const QString &); 00050 void itemSelected(int); 00051 00052 private: 00053 void init(); 00054 00055 QLabel *argument_label; 00056 00057 QLineEdit *argument; 00058 00059 QPushButton *add; 00060 QPushButton *remove; 00061 QPushButton *defaults; 00062 00063 QListBox *arguments; 00064 00065 QPushButton *closebtn; 00066 PPPData *_pppdata; 00067 }; 00068 #endif 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078
1.4.2