source: trunk/src/scripttools/debugging/qscriptdebugger_p.h@ 5

Last change on this file since 5 was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 6.7 KB
Line 
1/****************************************************************************
2**
3** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4** Contact: Qt Software Information ([email protected])
5**
6** This file is part of the QtSCriptTools module of the Qt Toolkit.
7**
8** $QT_BEGIN_LICENSE:LGPL$
9** Commercial Usage
10** Licensees holding valid Qt Commercial licenses may use this file in
11** accordance with the Qt Commercial License Agreement provided with the
12** Software or, alternatively, in accordance with the terms contained in
13** a written agreement between you and Nokia.
14**
15** GNU Lesser General Public License Usage
16** Alternatively, this file may be used under the terms of the GNU Lesser
17** General Public License version 2.1 as published by the Free Software
18** Foundation and appearing in the file LICENSE.LGPL included in the
19** packaging of this file. Please review the following information to
20** ensure the GNU Lesser General Public License version 2.1 requirements
21** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
22**
23** In addition, as a special exception, Nokia gives you certain
24** additional rights. These rights are described in the Nokia Qt LGPL
25** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
26** package.
27**
28** GNU General Public License Usage
29** Alternatively, this file may be used under the terms of the GNU
30** General Public License version 3.0 as published by the Free Software
31** Foundation and appearing in the file LICENSE.GPL included in the
32** packaging of this file. Please review the following information to
33** ensure the GNU General Public License version 3.0 requirements will be
34** met: http://www.gnu.org/copyleft/gpl.html.
35**
36** If you are unsure which license is appropriate for your use, please
37** contact the sales department at [email protected].
38** $QT_END_LICENSE$
39**
40****************************************************************************/
41
42#ifndef QSCRIPTDEBUGGER_P_H
43#define QSCRIPTDEBUGGER_P_H
44
45//
46// W A R N I N G
47// -------------
48//
49// This file is not part of the Qt API. It exists purely as an
50// implementation detail. This header file may change from version to
51// version without notice, or even be removed.
52//
53// We mean it.
54//
55
56#include <QtCore/qobject.h>
57
58QT_BEGIN_NAMESPACE
59
60class QScriptDebuggerFrontend;
61class QScriptDebuggerConsoleWidgetInterface;
62class QScriptDebuggerScriptsWidgetInterface;
63class QScriptDebuggerCodeWidgetInterface;
64class QScriptDebuggerCodeFinderWidgetInterface;
65class QScriptBreakpointsWidgetInterface;
66class QScriptDebuggerStackWidgetInterface;
67class QScriptDebuggerLocalsWidgetInterface;
68class QScriptDebugOutputWidgetInterface;
69class QScriptErrorLogWidgetInterface;
70class QScriptDebuggerWidgetFactoryInterface;
71class QAction;
72class QEvent;
73
74class QScriptDebuggerPrivate;
75class Q_AUTOTEST_EXPORT QScriptDebugger : public QObject
76{
77 Q_OBJECT
78public:
79 QScriptDebugger(QObject *parent = 0);
80 ~QScriptDebugger();
81
82 QScriptDebuggerFrontend *frontend() const;
83 void setFrontend(QScriptDebuggerFrontend *frontend);
84
85 QScriptDebuggerConsoleWidgetInterface *consoleWidget() const;
86 void setConsoleWidget(QScriptDebuggerConsoleWidgetInterface *consoleWidget);
87
88 QScriptDebuggerScriptsWidgetInterface *scriptsWidget() const;
89 void setScriptsWidget(QScriptDebuggerScriptsWidgetInterface *scriptsWidget);
90
91 QScriptDebuggerCodeWidgetInterface *codeWidget() const;
92 void setCodeWidget(QScriptDebuggerCodeWidgetInterface *codeWidget);
93
94 QScriptDebuggerCodeFinderWidgetInterface *codeFinderWidget() const;
95 void setCodeFinderWidget(QScriptDebuggerCodeFinderWidgetInterface *codeFinderWidget);
96
97 QScriptDebuggerStackWidgetInterface *stackWidget() const;
98 void setStackWidget(QScriptDebuggerStackWidgetInterface *stackWidget);
99
100 QScriptDebuggerLocalsWidgetInterface *localsWidget() const;
101 void setLocalsWidget(QScriptDebuggerLocalsWidgetInterface *localsWidget);
102
103 QScriptBreakpointsWidgetInterface *breakpointsWidget() const;
104 void setBreakpointsWidget(QScriptBreakpointsWidgetInterface *breakpointsWidget);
105
106 QScriptDebugOutputWidgetInterface *debugOutputWidget() const;
107 void setDebugOutputWidget(QScriptDebugOutputWidgetInterface *debugOutputWidget);
108
109 QScriptErrorLogWidgetInterface *errorLogWidget() const;
110 void setErrorLogWidget(QScriptErrorLogWidgetInterface *errorLogWidget);
111
112 QScriptDebuggerWidgetFactoryInterface *widgetFactory() const;
113 void setWidgetFactory(QScriptDebuggerWidgetFactoryInterface *factory);
114
115 QAction *interruptAction(QObject *parent) const;
116 QAction *continueAction(QObject *parent) const;
117 QAction *stepIntoAction(QObject *parent) const;
118 QAction *stepOverAction(QObject *parent) const;
119 QAction *stepOutAction(QObject *parent) const;
120 QAction *runToCursorAction(QObject *parent) const;
121 QAction *runToNewScriptAction(QObject *parent) const;
122
123 QAction *toggleBreakpointAction(QObject *parent) const;
124
125 QAction *findInScriptAction(QObject *parent) const;
126 QAction *findNextInScriptAction(QObject *parent) const;
127 QAction *findPreviousInScriptAction(QObject *parent) const;
128 QAction *goToLineAction(QObject *parent) const;
129
130 QAction *clearDebugOutputAction(QObject *parent) const;
131 QAction *clearConsoleAction(QObject *parent) const;
132 QAction *clearErrorLogAction(QObject *parent) const;
133
134 bool eventFilter(QObject *, QEvent *e);
135
136Q_SIGNALS:
137 void stopped() const;
138 void started() const;
139
140protected:
141 void timerEvent(QTimerEvent *e);
142
143protected:
144 QScriptDebugger(QScriptDebuggerPrivate &dd, QObject *parent);
145
146private:
147 Q_DECLARE_PRIVATE(QScriptDebugger)
148 Q_DISABLE_COPY(QScriptDebugger)
149
150 Q_PRIVATE_SLOT(d_func(), void _q_onLineEntered(const QString &))
151 Q_PRIVATE_SLOT(d_func(), void _q_onCurrentFrameChanged(int))
152 Q_PRIVATE_SLOT(d_func(), void _q_onCurrentScriptChanged(qint64))
153 Q_PRIVATE_SLOT(d_func(), void _q_onScriptLocationSelected(int))
154
155 Q_PRIVATE_SLOT(d_func(), void _q_interrupt())
156 Q_PRIVATE_SLOT(d_func(), void _q_continue())
157 Q_PRIVATE_SLOT(d_func(), void _q_stepInto())
158 Q_PRIVATE_SLOT(d_func(), void _q_stepOver())
159 Q_PRIVATE_SLOT(d_func(), void _q_stepOut())
160 Q_PRIVATE_SLOT(d_func(), void _q_runToCursor())
161 Q_PRIVATE_SLOT(d_func(), void _q_runToNewScript())
162
163 Q_PRIVATE_SLOT(d_func(), void _q_toggleBreakpoint())
164
165 Q_PRIVATE_SLOT(d_func(), void _q_clearDebugOutput())
166 Q_PRIVATE_SLOT(d_func(), void _q_clearErrorLog())
167 Q_PRIVATE_SLOT(d_func(), void _q_clearConsole())
168
169 Q_PRIVATE_SLOT(d_func(), void _q_findInScript())
170 Q_PRIVATE_SLOT(d_func(), void _q_findNextInScript())
171 Q_PRIVATE_SLOT(d_func(), void _q_findPreviousInScript())
172 Q_PRIVATE_SLOT(d_func(), void _q_onFindCodeRequest(const QString &, int))
173 Q_PRIVATE_SLOT(d_func(), void _q_goToLine())
174};
175
176QT_END_NAMESPACE
177
178#endif
Note: See TracBrowser for help on using the repository browser.