KHtml

consoledock.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (C) 2006 Matt Broadstone ([email protected])
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 #ifndef CONSOLEDOCK_H
21 #define CONSOLEDOCK_H
22 
23 #include <QDockWidget>
24 #include <QString>
25 
26 class QListWidget;
27 class QListWidgetItem;
28 class KHistoryComboBox;
29 class QPushButton;
30 
31 namespace KJSDebugger
32 {
33 
34 struct InterpreterContext;
35 
36 class ConsoleDock : public QDockWidget
37 {
38  Q_OBJECT
39 public:
40  ConsoleDock(QWidget *parent = 0);
41  ~ConsoleDock();
42 
43  void reportResult(const QString &src, const QString &msg);
44 
45 Q_SIGNALS: // Bah. This isn't a public header.
46  void requestEval(const QString &code);
47 
48 private Q_SLOTS:
49  void slotUserRequestedEval();
50  void slotPasteItem(QListWidgetItem *item);
51 
52 private:
53  QListWidget *consoleView;
54  KHistoryComboBox *consoleInput;
55  QPushButton *consoleInputButton;
56 };
57 
58 }
59 
60 #endif
Q_SIGNALSQ_SIGNALS
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Oct 16 2021 22:47:51 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.