1/*
2 *
3 * kPPP: A pppd front end for the KDE project
4 *
5 *
6 * Copyright (C) 1997 Bernd Johannes Wuebben
7 * wuebben@math.cornell.edu
8 *
9 *
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.
14 *
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.
19 *
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.
23 */
24
25#ifndef _GENERAL_H_
26#define _GENERAL_H_
27
28#include <qwidget.h>
29#include <qcombobox.h>
30#include <qlabel.h>
31#include <qcheckbox.h>
32#include <q3groupbox.h>
33#include <qpushbutton.h>
34//Added by qt3to4:
35#include <QFrame>
36#include <kcolorbutton.h>
37
38class QSlider;
39class KIntNumInput;
40class ModemCommands;
41
42class GeneralWidget : public QWidget {
43 Q_OBJECT
44public:
45 explicit GeneralWidget( QWidget *parent=0, const char *name=0 );
46
47private slots:
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);
56
57};
58
59
60class ModemWidget : public QWidget {
61 Q_OBJECT
62public:
63 explicit ModemWidget(QWidget *parent=0, bool isnewmodem=true);
64 bool save();
65 QLineEdit *connectName() { return connectname_l;}
66private slots:
67
68private:
69 QLineEdit *connectname_l;
70 QLabel *connect_label;
71
72 QComboBox *enter;
73 QLabel *label1;
74 QLabel *label2;
75 QLabel *labeltmp;
76 QLabel *labelenter;
77 QComboBox *modemdevice;
78 QComboBox *flowcontrol;
79
80 QComboBox *baud_c;
81 QLabel *baud_label;
82
83 KIntNumInput *modemtimeout;
84 QCheckBox *modemlockfile;
85 QStringList flowListItem;
86};
87
88
89class ModemWidget2 : public QWidget {
90 Q_OBJECT
91public:
92 explicit ModemWidget2(QWidget *parent=0, const char *name=0);
93 bool save();
94
95private slots:
96// void use_cdline_toggled(bool);
97 void modemcmdsbutton();
98 void terminal();
99 void query_modem();
100
101private:
102 QLabel *labeltmp;
103 QPushButton *modemcmds;
104 QPushButton *modeminfo_button;
105 QPushButton *terminal_button;
106 QFrame *fline;
107 QCheckBox *waitfordt;
108 KIntNumInput *busywait;
109 QCheckBox *chkbox1;
110 QSlider *volume;
111
112 ModemCommands* mc;
113};
114
115class GraphSetup : public QWidget {
116 Q_OBJECT
117public:
118 GraphSetup(QWidget *parent = 0);
119
120private slots:
121 void enableToggled(bool);
122 void colorChanged(const QColor &);
123
124private:
125 void save();
126
127 Q3GroupBox *grpColor;
128 QCheckBox *enable_check;
129
130 KColorButton *bg_color;
131 KColorButton *text_color;
132 KColorButton *in_color;
133 KColorButton *out_color;
134
135};
136
137#endif
138
139
140