KHtml

scriptsdock.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 SCRIPTSDOCK_H
21 #define SCRIPTSDOCK_H
22 
23 #include <QDockWidget>
24 #include <QHash>
25 
26 class QTreeWidget;
27 class QTreeWidgetItem;
28 
29 namespace KJSDebugger
30 {
31 class DebugDocument;
32 
33 class ScriptsDock : public QDockWidget
34 {
35  Q_OBJECT
36 public:
37  ScriptsDock(QWidget *parent = 0);
38  ~ScriptsDock();
39 
40  void addDocument(DebugDocument *document);
41  void documentDestroyed(DebugDocument *document);
42 
43 Q_SIGNALS:
44  void displayScript(KJSDebugger::DebugDocument *document);
45 
46 private Q_SLOTS:
47  void scriptSelected(QTreeWidgetItem *item, int column);
48 
49 private:
50  QTreeWidget *m_widget;
53 };
54 
55 }
56 
57 #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:48:01 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.