3 * kPPP: A pppd front end for the KDE project
6 * Copyright (C) 1997 Bernd Johannes Wuebben
7 * wuebben@math.cornell.edu
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details.
20 * You should have received a copy of the GNU Library General Public
21 * License along with this program; if not, write to the Free
22 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29 #include <qcombobox.h>
31 #include <qcheckbox.h>
32 #include <q3groupbox.h>
33 #include <qpushbutton.h>
36 #include <kcolorbutton.h>
42 class GeneralWidget
: public QWidget
{
45 explicit GeneralWidget( QWidget
*parent
=0, const char *name
=0 );
48 void pppdtimeoutchanged(int);
49 void caption_toggled(bool);
50 void iconify_toggled(bool on
);
51 void redial_toggled(bool on
);
52 void nocarrier_toggled(bool on
);
53 void xserver_toggled(bool on
);
54 void quit_toggled(bool);
55 void docking_toggled(bool on
);
60 class ModemWidget
: public QWidget
{
63 explicit ModemWidget(QWidget
*parent
=0, bool isnewmodem
=true);
65 QLineEdit
*connectName() { return connectname_l
;}
69 QLineEdit
*connectname_l
;
70 QLabel
*connect_label
;
77 QComboBox
*modemdevice
;
78 QComboBox
*flowcontrol
;
83 KIntNumInput
*modemtimeout
;
84 QCheckBox
*modemlockfile
;
85 QStringList flowListItem
;
89 class ModemWidget2
: public QWidget
{
92 explicit ModemWidget2(QWidget
*parent
=0, const char *name
=0);
96 // void use_cdline_toggled(bool);
97 void modemcmdsbutton();
103 QPushButton
*modemcmds
;
104 QPushButton
*modeminfo_button
;
105 QPushButton
*terminal_button
;
107 QCheckBox
*waitfordt
;
108 KIntNumInput
*busywait
;
115 class GraphSetup
: public QWidget
{
118 GraphSetup(QWidget
*parent
= 0);
121 void enableToggled(bool);
122 void colorChanged(const QColor
&);
127 Q3GroupBox
*grpColor
;
128 QCheckBox
*enable_check
;
130 KColorButton
*bg_color
;
131 KColorButton
*text_color
;
132 KColorButton
*in_color
;
133 KColorButton
*out_color
;