1 | /* |
2 | * kPPP: A pppd front end for the KDE project |
3 | * |
4 | * $Id$ |
5 | * Copyright (C) 1997 Bernd Wuebben |
6 | * wuebben@math.cornel.edu |
7 | * |
8 | * |
9 | * This program is free software; you can redistribute it and/or |
10 | * modify it under the terms of the GNU Library General Public |
11 | * License as published by the Free Software Foundation; either |
12 | * version 2 of the License, or (at your option) any later version. |
13 | * |
14 | * This program is distributed in the hope that it will be useful, |
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
17 | * Library General Public License for more details. |
18 | * |
19 | * You should have received a copy of the GNU Library General Public |
20 | * License along with this program; if not, write to the Free |
21 | * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
22 | */ |
23 | |
24 | #ifndef _DEBUGWIDGET_ |
25 | #define _DEBUGWIDGET_ |
26 | |
27 | #include <qdialog.h> |
28 | #include <qstring.h> |
29 | #include <qlabel.h> |
30 | #include <q3multilineedit.h> |
31 | #include <qpushbutton.h> |
32 | //Added by qt3to4: |
33 | #include <QHideEvent> |
34 | #include <QFrame> |
35 | #include <QResizeEvent> |
36 | |
37 | |
38 | class myMultiEdit : public Q3MultiLineEdit { |
39 | public: |
40 | |
41 | explicit myMultiEdit(QWidget *parent=0, const char *name=0); |
42 | |
43 | void newLine(); |
44 | }; |
45 | |
46 | |
47 | class DebugWidget : public QDialog { |
48 | Q_OBJECT |
49 | public: |
50 | DebugWidget(QWidget *parent=0); |
51 | |
52 | void clear(); |
53 | |
54 | public slots: |
55 | void statusLabel(const QString &); |
56 | void toggleVisibility(); |
57 | void addChar(unsigned char); |
58 | |
59 | protected: |
60 | virtual void hideEvent(QHideEvent *); |
61 | virtual void resizeEvent(QResizeEvent *e); |
62 | |
63 | private: |
64 | void enter(); |
65 | QFrame *fline; |
66 | QPushButton *dismiss; |
67 | myMultiEdit *text_window; |
68 | |
69 | QLabel *statuslabel; |
70 | }; |
71 | |
72 | #endif |
73 | |
74 | |