KHtml

localvariabledock.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 LOCALVARIABLEDOCK_H
21 #define LOCALVARIABLEDOCK_H
22 
23 #include <QDockWidget>
24 
25 class QTreeWidget;
26 class QTreeWidgetItem;
27 
28 namespace KJS
29 {
30 class ExecState;
31 class JSValue;
32 }
33 
34 namespace KJSDebugger
35 {
36 
37 class LocalVariablesDock : public QDockWidget
38 {
39  Q_OBJECT
40 public:
41  LocalVariablesDock(QWidget *parent = 0);
42  ~LocalVariablesDock();
43 
44  void updateDisplay(KJS::ExecState *exec);
45  KJS::ExecState *currentlyDisplaying()
46  {
47  return m_execState;
48  }
49 
50 private Q_SLOTS:
51  void slotItemExpanded(QTreeWidgetItem *item);
52 
53 private:
54  void updateObjectProperties(KJS::ExecState *exec, KJS::JSValue *val, QTreeWidgetItem *item,
55  bool globalObject = false);
56  void updateValue(KJS::ExecState *exec, KJS::JSValue *val, QTreeWidgetItem *item, bool recurse);
57 
58  QTreeWidget *m_view;
59  KJS::ExecState *m_execState;
60 
61 };
62 
63 }
64 
65 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Oct 26 2021 22:48:06 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.