KHtml

callstackdock.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 CALLSTACKDOCK_H
21 #define CALLSTACKDOCK_H
22 
23 #include <QDockWidget>
24 
25 class QTableWidget;
26 class QTableWidgetItem;
27 
28 namespace KJS
29 {
30 class ExecState;
31 }
32 
33 namespace KJSDebugger
34 {
35 class DebugDocument;
36 struct InterpreterContext;
37 
38 class CallStackDock : public QDockWidget
39 {
40  Q_OBJECT
41 public:
42  CallStackDock(QWidget *parent = 0);
43  ~CallStackDock();
44 
45  void displayStack(InterpreterContext *ctx);
46  void clearDisplay();
47 
48  KJS::ExecState *selectedFrameContext();
49 private Q_SLOTS:
50  void slotViewItem(QTableWidgetItem *item);
51 Q_SIGNALS:
52  void displayScript(KJSDebugger::DebugDocument *doc, int line);
53 private:
54  InterpreterContext *m_activeCtx;
55  QTableWidget *m_view;
56 };
57 
58 }
59 
60 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Oct 26 2021 22:47:58 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.