| 1 | /**************************************************************************** |
| 2 | ** |
| 3 | ** Copyright (C) 2018 The Qt Company Ltd. |
| 4 | ** Contact: https://www.qt.io/licensing/ |
| 5 | ** |
| 6 | ** This file is part of the QtSCriptTools module of the Qt Toolkit. |
| 7 | ** |
| 8 | ** $QT_BEGIN_LICENSE:LGPL$ |
| 9 | ** Commercial License Usage |
| 10 | ** Licensees holding valid commercial Qt licenses may use this file in |
| 11 | ** accordance with the commercial license agreement provided with the |
| 12 | ** Software or, alternatively, in accordance with the terms contained in |
| 13 | ** a written agreement between you and The Qt Company. For licensing terms |
| 14 | ** and conditions see https://www.qt.io/terms-conditions. For further |
| 15 | ** information use the contact form at https://www.qt.io/contact-us. |
| 16 | ** |
| 17 | ** GNU Lesser General Public License Usage |
| 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser |
| 19 | ** General Public License version 3 as published by the Free Software |
| 20 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the |
| 21 | ** packaging of this file. Please review the following information to |
| 22 | ** ensure the GNU Lesser General Public License version 3 requirements |
| 23 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. |
| 24 | ** |
| 25 | ** GNU General Public License Usage |
| 26 | ** Alternatively, this file may be used under the terms of the GNU |
| 27 | ** General Public License version 2.0 or (at your option) the GNU General |
| 28 | ** Public license version 3 or any later version approved by the KDE Free |
| 29 | ** Qt Foundation. The licenses are as published by the Free Software |
| 30 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 |
| 31 | ** included in the packaging of this file. Please review the following |
| 32 | ** information to ensure the GNU General Public License requirements will |
| 33 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and |
| 34 | ** https://www.gnu.org/licenses/gpl-3.0.html. |
| 35 | ** |
| 36 | ** $QT_END_LICENSE$ |
| 37 | ** |
| 38 | ****************************************************************************/ |
| 39 | |
| 40 | #include "qscriptenginedebugger.h"cxx . . $ `<file>/src/scripttools/debugging/qscriptenginedebugger.h`/ |
| 41 | #include "qscriptdebugger_p.h"cxx . . $ `<file>/src/scripttools/debugging/qscriptdebugger_p.h`/ |
| 42 | #include "qscriptenginedebuggerfrontend_p.h"cxx . . $ `<file>/src/scripttools/debugging/qscriptenginedebuggerfrontend_p.h`/ |
| 43 | #include "qscriptdebuggerstandardwidgetfactory_p.h"cxx . . $ `<file>/src/scripttools/debugging/qscriptdebuggerstandardwidgetfactory_p.h`/ |
| 44 | #include <private/qobject_p.h> |
| 45 | |
| 46 | #include <QtCore/qsettings.h> |
| 47 | #include <QtWidgets/qapplication.h> |
| 48 | #include <QtWidgets/qdockwidget.h> |
| 49 | #include <QtWidgets/qmainwindow.h> |
| 50 | #include <QtWidgets/qmenubar.h> |
| 51 | #include <QtWidgets/qboxlayout.h> |
| 52 | |
| 53 | // this has to be outside the namespace |
| 54 | static void initScriptEngineDebuggerResourcescxx . . $ initScriptEngineDebuggerResources(49f6e7a06ebc5aa8).() |
| 55 | { |
| 56 | Q_INIT_RESOURCEcxx . . $ `<external>/15045578679651060896/qglobal.h:469:9`!(scripttools_debugging); |
| 57 | } |
| 58 | |
| 59 | QT_BEGIN_NAMESPACEcxx . . $ `<external>/15045578679651060896/qglobal.h:148:10`! |
| 60 | |
| 61 | class QtScriptDebuggerResourceInitializercxx . . $ QtScriptDebuggerResourceInitializer# |
| 62 | { |
| 63 | public: |
| 64 | QtScriptDebuggerResourceInitializercxx . . $ QtScriptDebuggerResourceInitializer#QtScriptDebuggerResourceInitializer(49f6e7a06ebc5aa8).() { |
| 65 | // call outside-the-namespace function |
| 66 | initScriptEngineDebuggerResourcescxx . . $ initScriptEngineDebuggerResources(49f6e7a06ebc5aa8).(); |
| 67 | } |
| 68 | }; |
| 69 | |
| 70 | /*! |
| 71 | \since 4.5 |
| 72 | \class QScriptEngineDebugger |
| 73 | \inmodule QtScriptTools |
| 74 | \brief The QScriptEngineDebugger class provides a QScriptEngine debugger. |
| 75 | |
| 76 | \ingroup script |
| 77 | |
| 78 | |
| 79 | The QScriptEngineDebugger class provides a debugger that can be |
| 80 | embedded into Qt applications that use Qt Script. The debugger |
| 81 | enables the application user to inspect the state of the script |
| 82 | environment and control script execution. |
| 83 | |
| 84 | To attach the debugger to a script engine, call the attachTo() |
| 85 | function. |
| 86 | |
| 87 | \snippet src.scripttools.qscriptenginedebugger.cpp 0 |
| 88 | |
| 89 | Once the debugger has been attached to a script engine, you can |
| 90 | proceed to evaluate scripts as usual, e.g. by calling |
| 91 | QScriptEngine::evaluate(). The debugger will be triggered when an |
| 92 | uncaught exception occurs, or when a \c{debugger} statement is |
| 93 | encountered in a script. It is also possible to interrupt script |
| 94 | evaluation at an arbitrary time by triggering the InterruptAction. |
| 95 | For instance, to start the debugger when script evaluation starts, |
| 96 | you trigger the action before you begin to \l{QScriptEngine::}{evaluate()} |
| 97 | the script. |
| 98 | |
| 99 | \snippet scriptdebugger.cpp 2 |
| 100 | |
| 101 | By default, the \l{standardWindow()}{standard debugger window} is shown when |
| 102 | evaluation is suspended. This can be changed by calling the |
| 103 | setAutoShowStandardWindow() function. |
| 104 | |
| 105 | The debugger defines a set of \l{DebuggerAction}{actions} that are |
| 106 | available, such as stopping execution or printing the contents of a |
| 107 | variable. It also provides a set of widgets (components) that |
| 108 | display the information available from the debugger and that trigger |
| 109 | the actions on request. The actions available are identified by the |
| 110 | DebuggerAction enum, and the widgets are identified by the |
| 111 | DebuggerWidget enum. |
| 112 | |
| 113 | Access to the individual debugger widgets is provided by the |
| 114 | widget() function. This makes it possible to arrange the widgets in |
| 115 | a custom manner. Similarly, the action() function provides access |
| 116 | to the various debugger actions. |
| 117 | |
| 118 | The createStandardToolBar() function creates a standard toolbar, and the |
| 119 | createStandardMenu() function creates a standard menu; these functions can |
| 120 | be useful if you are creating a custom debugger configuration. |
| 121 | |
| 122 | The evaluationSuspended() signal is emitted when the debugger has |
| 123 | suspended script evaluation and entered interactive mode, i.e., the |
| 124 | mode in which it accepts input from the user. The |
| 125 | evaluationResumed() signal is emitted when script evaluation is |
| 126 | resumed, i.e, when execution control is given back to the script |
| 127 | engine. The state() function returns the debugger's current state. |
| 128 | |
| 129 | When calling QScriptEngine::evaluate() it is useful to pass a |
| 130 | descriptive script name (file name) as second argument, as this is |
| 131 | the name that will be displayed by the debugger in the |
| 132 | ScriptsWidget; if a name is not passed, the script will be labelled |
| 133 | "anonymous". |
| 134 | |
| 135 | When evaluation is suspended, the debugger will also suspend the |
| 136 | event loop of the script. In the following snippet, the call to |
| 137 | QScriptEngine::evaluate() causes the debugger to be triggered, and |
| 138 | the function call does not return until the user has finished |
| 139 | interacting with the debugger. |
| 140 | |
| 141 | \snippet src.scripttools.qscriptenginedebugger.cpp 1 |
| 142 | |
| 143 | When the Qt Script debugger is running, the C++ application itself |
| 144 | is not "frozen". This means that it is possible that more scripts |
| 145 | are evaluated, even though the debugger has suspended evaluation of |
| 146 | the \b{current} script evaluation. For example, a C++ timer might |
| 147 | trigger that causes a script function to be called, or the user |
| 148 | might click on a button in the main application user interface whose |
| 149 | clicked() signal is connected to a script function. This kind of |
| 150 | nested evaluation is permitted. The debugger will enter interactive |
| 151 | mode for the new script if an exception is thrown or a breakpoint is |
| 152 | reached. Note that it will not stop when encountering \c{debugger} |
| 153 | statements. \omit The effects are similar to those achieved by |
| 154 | typing a program into the debugger's console and evaluating |
| 155 | it. \endomit |
| 156 | |
| 157 | Nested evaluation requires some thought when deciding |
| 158 | how the debugger is presented to the user; for example, whether a |
| 159 | modal dialog is suitable, or whether some parts of the main |
| 160 | application user interface should be disabled while the debugger is |
| 161 | running. \omit Seems unfinished somehow \endomit |
| 162 | |
| 163 | Debugging inside of a \l{QWidget::paintEvent()}{paintEvent}() is |
| 164 | currently not supported. If you need to debug painting-related |
| 165 | script code, that code should be evaluated outside of the C++ |
| 166 | paintEvent(), e.g. by rendering to an image, like the Context2D and |
| 167 | Tetrix Qt Script examples do. This will make the code safe for |
| 168 | debugging. |
| 169 | |
| 170 | The debugger adds some special properties to the script engine: |
| 171 | \c{__FILE__} holds the name of the script in which the current |
| 172 | evaluation occurs, and \c{__LINE__} holds the current line |
| 173 | number. These are useful when doing print()-style debugging (the |
| 174 | messages appear in the debugger's debug output widget). |
| 175 | |
| 176 | The \l{Qt Script Debugger Manual} describes how to use the debugger. |
| 177 | The \l{Context2D Example}{Context2D example} shows how to integrate |
| 178 | the debugger in applications. |
| 179 | |
| 180 | \sa QScriptEngine, {Context2D Example} |
| 181 | */ |
| 182 | |
| 183 | /*! |
| 184 | \enum QScriptEngineDebugger::DebuggerWidget |
| 185 | |
| 186 | This enum decides the widget that the widget() function should |
| 187 | retrieve. We treat these widgets in more detail in the \l{Qt |
| 188 | Script Debugger Manual}. |
| 189 | |
| 190 | \value ConsoleWidget Provides a command-line interface to the debugger. |
| 191 | \value StackWidget Shows a backtrace of the script's execution state. |
| 192 | \value ScriptsWidget Displays a list of currently loaded scripts. |
| 193 | \value LocalsWidget Shows the local variables of the current stack frame. |
| 194 | \value CodeWidget Displays the code of the current script. |
| 195 | \value CodeFinderWidget Provides a widget that can search for text in the script shown in the |
| 196 | CodeWidget. |
| 197 | \value BreakpointsWidget Shows breakpoints that have been set. |
| 198 | \value DebugOutputWidget Contains output from the \c print() script function. |
| 199 | \value ErrorLogWidget Shows error messages that have been generated. |
| 200 | */ |
| 201 | |
| 202 | /*! |
| 203 | \enum QScriptEngineDebugger::DebuggerAction |
| 204 | |
| 205 | This enum specifies the action that the action() function should |
| 206 | retrieve. The actions retrieved can be connected to any slot and |
| 207 | connected to any widget. Please see the \l{Qt Script Debugger Manual}'s |
| 208 | \l{Console Command Reference} for a detailed description of these actions. |
| 209 | |
| 210 | \value InterruptAction Suspends script execution as soon as the next script statement is reached. |
| 211 | \value ContinueAction Gives the execution control back to the script engine. |
| 212 | \value StepIntoAction Performs a step action. |
| 213 | \value StepOverAction Performs a next action. |
| 214 | \value StepOutAction Executes the script until the current function returns. |
| 215 | \value RunToCursorAction Continues execution to the selected line (which contains the cursor) in the CodeWidget. |
| 216 | \value RunToNewScriptAction Returns control to the script engine until a new script is executed. |
| 217 | \value ToggleBreakpointAction Toggles a breakpoint at the selected line in the CodeWidget. |
| 218 | \value ClearDebugOutputAction Clears the contents of the DebugOutputWidget. |
| 219 | \value ClearErrorLogAction Clears the contents of the ErrorLogWidget. |
| 220 | \value ClearConsoleAction Clears the contents of the ConsoleWidget. |
| 221 | \value FindInScriptAction Displays the CodeFinderWidget. |
| 222 | \value FindNextInScriptAction Finds next occurrence in the CodeWidget. |
| 223 | \value FindPreviousInScriptAction Finds previous occurrence in the CodeWidget. |
| 224 | \value GoToLineAction Shows the "Go to Line" dialog. |
| 225 | */ |
| 226 | |
| 227 | /*! |
| 228 | \enum QScriptEngineDebugger::DebuggerState |
| 229 | \since 4.6 |
| 230 | |
| 231 | This enum specifies the current state of the debugger. |
| 232 | |
| 233 | \value RunningState The debugger is running. (Script evaluation is allowed.) |
| 234 | \value SuspendedState The debugger has suspended script evaluation. |
| 235 | */ |
| 236 | |
| 237 | class QScriptEngineDebuggerPrivatecxx . . $ QScriptEngineDebuggerPrivate# |
| 238 | : public QObjectPrivatecxx . . $ QObjectPrivate# |
| 239 | { |
| 240 | Q_DECLARE_PUBLICcxx . . $ `<external>/15045578679651060896/qglobal.h:1172:9`!(QScriptEngineDebugger) |
| 241 | public: |
| 242 | QScriptEngineDebuggerPrivatecxx . . $ QScriptEngineDebuggerPrivate#QScriptEngineDebuggerPrivate(49f6e7a06ebc5aa8).(); |
| 243 | ~cxx . . $ QScriptEngineDebuggerPrivate#`~QScriptEngineDebuggerPrivate`(ced63f7c635d850d).QScriptEngineDebuggerPrivatecxx . . $ QScriptEngineDebuggerPrivate#(); |
| 244 | |
| 245 | // private slots |
| 246 | void _q_showStandardWindowcxx . . $ QScriptEngineDebuggerPrivate#_q_showStandardWindow(49f6e7a06ebc5aa8).(); |
| 247 | |
| 248 | void createDebuggercxx . . $ QScriptEngineDebuggerPrivate#createDebugger(49f6e7a06ebc5aa8).(); |
| 249 | |
| 250 | QScriptDebuggercxx . . $ QScriptDebugger# *debuggercxx . . $ QScriptEngineDebuggerPrivate#debugger.; |
| 251 | QScriptEngineDebuggerFrontendcxx . . $ QScriptEngineDebuggerFrontend# *frontendcxx . . $ QScriptEngineDebuggerPrivate#frontend.; |
| 252 | #ifndef QT_NO_MAINWINDOW |
| 253 | QMainWindowcxx . . $ QMainWindow# *standardWindowcxx . . $ QScriptEngineDebuggerPrivate#standardWindow.; |
| 254 | #endif |
| 255 | bool autoShowcxx . . $ QScriptEngineDebuggerPrivate#autoShow.; |
| 256 | |
| 257 | static QtScriptDebuggerResourceInitializercxx . . $ QtScriptDebuggerResourceInitializer# resourceInitializercxx . . $ QScriptEngineDebuggerPrivate#resourceInitializer.; |
| 258 | }; |
| 259 | |
| 260 | namespacecxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptenginedebugger.cpp`/ { |
| 261 | |
| 262 | class WidgetClosedNotifiercxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptenginedebugger.cpp`/WidgetClosedNotifier# : public QObjectcxx . . $ QObject# |
| 263 | { |
| 264 | Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`! |
| 265 | public: |
| 266 | WidgetClosedNotifiercxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptenginedebugger.cpp`/WidgetClosedNotifier#WidgetClosedNotifier(999d990128f944b).(QWidgetcxx . . $ QWidget# *w, QObjectcxx . . $ QObject# *parent = 0) |
| 267 | : QObjectcxx . . $ QObject#QObject(749de1b6ae65bddd).(parent), widgetcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptenginedebugger.cpp`/WidgetClosedNotifier#widget.(w) |
| 268 | { |
| 269 | w->installEventFiltercxx . . $ QObject#installEventFilter(749de1b6ae65bddd).(this); |
| 270 | } |
| 271 | |
| 272 | bool eventFiltercxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptenginedebugger.cpp`/WidgetClosedNotifier#eventFilter(978aa4af1d030efa).(QObjectcxx . . $ QObject# *watched, QEventcxx . . $ QEvent# *e) |
| 273 | { |
| 274 | if (watched != widgetcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptenginedebugger.cpp`/WidgetClosedNotifier#widget.) |
| 275 | return false; |
| 276 | if (e->typecxx . . $ QEvent#type(916a8de57f4d422b).() != QEventcxx . . $ QEvent#::Closecxx . . $ QEvent#Close.) |
| 277 | return false; |
| 278 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! widgetClosedcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptenginedebugger.cpp`/WidgetClosedNotifier#widgetClosed(49f6e7a06ebc5aa8).(); |
| 279 | return true; |
| 280 | } |
| 281 | |
| 282 | Q_SIGNALScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:93:10`!: |
| 283 | void widgetClosedcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptenginedebugger.cpp`/WidgetClosedNotifier#widgetClosed(49f6e7a06ebc5aa8).(); |
| 284 | |
| 285 | private: |
| 286 | QWidgetcxx . . $ QWidget# *widgetcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptenginedebugger.cpp`/WidgetClosedNotifier#widget.; |
| 287 | }; |
| 288 | |
| 289 | } // namespace |
| 290 | |
| 291 | QtScriptDebuggerResourceInitializercxx . . $ QtScriptDebuggerResourceInitializer# QScriptEngineDebuggerPrivatecxx . . $ QScriptEngineDebuggerPrivate#::resourceInitializercxx . . $ QScriptEngineDebuggerPrivate#resourceInitializer.; |
| 292 | |
| 293 | QScriptEngineDebuggerPrivatecxx . . $ QScriptEngineDebuggerPrivate#::QScriptEngineDebuggerPrivatecxx . . $ QScriptEngineDebuggerPrivate#QScriptEngineDebuggerPrivate(49f6e7a06ebc5aa8).() |
| 294 | { |
| 295 | debuggercxx . . $ QScriptEngineDebuggerPrivate#debugger. = 0; |
| 296 | frontendcxx . . $ QScriptEngineDebuggerPrivate#frontend. = 0; |
| 297 | #ifndef QT_NO_MAINWINDOW |
| 298 | standardWindowcxx . . $ QScriptEngineDebuggerPrivate#standardWindow. = 0; |
| 299 | #endif |
| 300 | autoShowcxx . . $ QScriptEngineDebuggerPrivate#autoShow. = true; |
| 301 | } |
| 302 | |
| 303 | QScriptEngineDebuggerPrivatecxx . . $ QScriptEngineDebuggerPrivate#::~cxx . . $ QScriptEngineDebuggerPrivate#`~QScriptEngineDebuggerPrivate`(ced63f7c635d850d).QScriptEngineDebuggerPrivatecxx . . $ QScriptEngineDebuggerPrivate#() |
| 304 | { |
| 305 | delete debuggercxx . . $ QScriptEngineDebuggerPrivate#debugger.; |
| 306 | delete frontendcxx . . $ QScriptEngineDebuggerPrivate#frontend.; |
| 307 | #ifndef QT_NO_MAINWINDOW |
| 308 | if (standardWindowcxx . . $ QScriptEngineDebuggerPrivate#standardWindow.) { |
| 309 | QSettingscxx . . $ QSettings# settingscxx . . $ QSettings#QSettings(dba89adbf0bbd2d3).(QSettingscxx . . $ QSettings#::UserScopecxx . . $ QSettings#UserScope., QLatin1Stringcxx . . $ QString#QString(4641beeb24e75d60).("Trolltech")); |
| 310 | QByteArraycxx . . $ QByteArray# geometry = standardWindowcxx . . $ QScriptEngineDebuggerPrivate#standardWindow.->saveGeometrycxx . . $ QWidget#saveGeometry(a96750bfbcb1fbe9).(); |
| 311 | settings.setValuecxx . . $ QSettings#setValue(1c60a90c724e6bfb).(QLatin1Stringcxx . . $ QString#QString(4641beeb24e75d60).("Qt/scripttools/debugging/mainWindowGeometry"), geometrycxx . . $ QVariant#QVariant(45672f3c6961a244).); |
| 312 | QByteArraycxx . . $ QByteArray# state = standardWindowcxx . . $ QScriptEngineDebuggerPrivate#standardWindow.->saveStatecxx . . $ QMainWindow#saveState(1e245adf2d5d15b2).(); |
| 313 | settings.setValuecxx . . $ QSettings#setValue(1c60a90c724e6bfb).(QLatin1Stringcxx . . $ QString#QString(4641beeb24e75d60).("Qt/scripttools/debugging/mainWindowState"), statecxx . . $ QVariant#QVariant(45672f3c6961a244).); |
| 314 | if (standardWindowcxx . . $ QScriptEngineDebuggerPrivate#standardWindow.->parentcxx . . $ QObject#parent(2dbb680a34285c44).() ==cxx . . $ `operator==`(844795bf13b447e6). 0) |
| 315 | delete standardWindowcxx . . $ QScriptEngineDebuggerPrivate#standardWindow.; |
| 316 | } |
| 317 | #endif |
| 318 | } |
| 319 | |
| 320 | #ifndef QT_NO_MAINWINDOW |
| 321 | void QScriptEngineDebuggerPrivatecxx . . $ QScriptEngineDebuggerPrivate#::_q_showStandardWindowcxx . . $ QScriptEngineDebuggerPrivate#_q_showStandardWindow(49f6e7a06ebc5aa8).() |
| 322 | { |
| 323 | Q_Qcxx . . $ `<external>/15045578679651060896/qglobal.h:1178:9`!(QScriptEngineDebugger); |
| 324 | (void)q->standardWindowcxx . . $ QScriptEngineDebugger#standardWindow(f196da0a5fa05375).(); // ensure it's created |
| 325 | standardWindowcxx . . $ QScriptEngineDebuggerPrivate#standardWindow.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).(); |
| 326 | } |
| 327 | #endif |
| 328 | |
| 329 | void QScriptEngineDebuggerPrivatecxx . . $ QScriptEngineDebuggerPrivate#::createDebuggercxx . . $ QScriptEngineDebuggerPrivate#createDebugger(49f6e7a06ebc5aa8).() |
| 330 | { |
| 331 | Q_Qcxx . . $ `<external>/15045578679651060896/qglobal.h:1178:9`!(QScriptEngineDebugger); |
| 332 | if (!debuggercxx . . $ QScriptEngineDebuggerPrivate#debugger.) { |
| 333 | debuggercxx . . $ QScriptEngineDebuggerPrivate#debugger. = new QScriptDebuggercxx . . $ QScriptDebugger#(); |
| 334 | debuggercxx . . $ QScriptEngineDebuggerPrivate#debugger.->setWidgetFactorycxx . . $ QScriptDebugger#setWidgetFactory(657609330d989540).(new QScriptDebuggerStandardWidgetFactory(q)); |
| 335 | QObjectcxx . . $ QObject#::connectcxx . . $ QObjectPrivate#connect(835f87066c895669).(debuggercxx . . $ QScriptEngineDebuggerPrivate#debugger., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(started()), |
| 336 | q, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(evaluationResumed())); |
| 337 | QObjectcxx . . $ QObject#::connectcxx . . $ QObjectPrivate#connect(835f87066c895669).(debuggercxx . . $ QScriptEngineDebuggerPrivate#debugger., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(stopped()), |
| 338 | q, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(evaluationSuspended())); |
| 339 | if (autoShowcxx . . $ QScriptEngineDebuggerPrivate#autoShow.) { |
| 340 | QObjectcxx . . $ QObject#::connectcxx . . $ QObjectPrivate#connect(835f87066c895669).(q, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(evaluationSuspended()), |
| 341 | q, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(_q_showStandardWindow())); |
| 342 | } |
| 343 | } |
| 344 | } |
| 345 | |
| 346 | /*! |
| 347 | Constructs a new QScriptEngineDebugger object with the given \a |
| 348 | parent. |
| 349 | |
| 350 | To attach a QScriptEngine to the debugger, use attachTo() |
| 351 | function. |
| 352 | |
| 353 | */ |
| 354 | QScriptEngineDebuggercxx . . $ QScriptEngineDebugger#::QScriptEngineDebuggercxx . . $ QScriptEngineDebugger#QScriptEngineDebugger(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *parent) |
| 355 | : QObjectcxx . . $ QObject#(*new QScriptEngineDebuggerPrivatecxx . . $ QScriptEngineDebuggerPrivate#QScriptEngineDebuggerPrivate(49f6e7a06ebc5aa8)., parent) |
| 356 | { |
| 357 | } |
| 358 | |
| 359 | /*! |
| 360 | Destroys this QScriptEngineDebugger. |
| 361 | */ |
| 362 | QScriptEngineDebuggercxx . . $ QScriptEngineDebugger#::~cxx . . $ QScriptEngineDebugger#`~QScriptEngineDebugger`(ced63f7c635d850d).QScriptEngineDebuggercxx . . $ QScriptEngineDebugger#() |
| 363 | { |
| 364 | } |
| 365 | |
| 366 | /*! |
| 367 | Attaches to the given \a engine. |
| 368 | |
| 369 | The debugger will install a custom agent (using |
| 370 | QScriptEngine::setAgent()) to monitor the engine. While the debugger |
| 371 | is attached, you should not change the agent; however, if you do |
| 372 | have to perform additional monitoring, you must set a proxy agent |
| 373 | that forwards all events to the debugger's agent. |
| 374 | |
| 375 | \sa detach() |
| 376 | */ |
| 377 | void QScriptEngineDebuggercxx . . $ QScriptEngineDebugger#::attachTocxx . . $ QScriptEngineDebugger#attachTo(d3e0164fcca5dac6).(QScriptEnginecxx . . $ QScriptEngine# *engine) |
| 378 | { |
| 379 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(QScriptEngineDebugger); |
| 380 | if (!engine) { |
| 381 | detachcxx . . $ QScriptEngineDebugger#detach(49f6e7a06ebc5aa8).(); |
| 382 | return; |
| 383 | } |
| 384 | d->createDebuggercxx . . $ QScriptEngineDebuggerPrivate#createDebugger(49f6e7a06ebc5aa8).(); |
| 385 | if (!d->frontendcxx . . $ QScriptEngineDebuggerPrivate#frontend.) |
| 386 | d->frontendcxx . . $ QScriptEngineDebuggerPrivate#frontend. = new QScriptEngineDebuggerFrontendcxx . . $ QScriptEngineDebuggerFrontend#(); |
| 387 | d->frontendcxx . . $ QScriptEngineDebuggerPrivate#frontend.->attachTocxx . . $ QScriptEngineDebuggerFrontend#attachTo(d3e0164fcca5dac6).(engine); |
| 388 | d->debuggercxx . . $ QScriptEngineDebuggerPrivate#debugger.->setFrontendcxx . . $ QScriptDebugger#setFrontend(afb86326fe2cc46).(d->frontendcxx . . $ QScriptEngineDebuggerPrivate#frontend.); |
| 389 | } |
| 390 | |
| 391 | /*! |
| 392 | Detaches from the current script engine, if any. |
| 393 | |
| 394 | \sa attachTo() |
| 395 | */ |
| 396 | void QScriptEngineDebuggercxx . . $ QScriptEngineDebugger#::detachcxx . . $ QScriptEngineDebugger#detach(49f6e7a06ebc5aa8).() |
| 397 | { |
| 398 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(QScriptEngineDebugger); |
| 399 | if (d->frontendcxx . . $ QScriptEngineDebuggerPrivate#frontend.) |
| 400 | d->frontendcxx . . $ QScriptEngineDebuggerPrivate#frontend.->detachcxx . . $ QScriptEngineDebuggerFrontend#detach(49f6e7a06ebc5aa8).(); |
| 401 | if (d->debuggercxx . . $ QScriptEngineDebuggerPrivate#debugger.) |
| 402 | d->debuggercxx . . $ QScriptEngineDebuggerPrivate#debugger.->setFrontendcxx . . $ QScriptDebugger#setFrontend(afb86326fe2cc46).(0); |
| 403 | } |
| 404 | |
| 405 | /*! |
| 406 | \since 4.6 |
| 407 | |
| 408 | Returns the current state of the debugger. |
| 409 | |
| 410 | \sa evaluationResumed() |
| 411 | \sa evaluationSuspended() |
| 412 | */ |
| 413 | QScriptEngineDebuggercxx . . $ QScriptEngineDebugger#::DebuggerStatecxx . . $ QScriptEngineDebugger#DebuggerState# QScriptEngineDebuggercxx . . $ QScriptEngineDebugger#::statecxx . . $ QScriptEngineDebugger#state(a095d098773fbea5).() const |
| 414 | { |
| 415 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const QScriptEngineDebugger); |
| 416 | return !d->debuggercxx . . $ QScriptEngineDebuggerPrivate#debugger. || !d->debuggercxx . . $ QScriptEngineDebuggerPrivate#debugger.->isInteractivecxx . . $ QScriptDebugger#isInteractive(50ce9a9e25b4a850).() ? SuspendedStatecxx . . $ QScriptEngineDebugger#SuspendedState. : RunningStatecxx . . $ QScriptEngineDebugger#RunningState.; |
| 417 | } |
| 418 | |
| 419 | /*! |
| 420 | |
| 421 | Returns a pointer to the instance of the specified standard \a |
| 422 | widget. The widgets available are defined by the DebuggerWidget |
| 423 | enum. |
| 424 | |
| 425 | A main window containing all widgets is returned by |
| 426 | standardWindow(). If you do not want to use this window, you can |
| 427 | fetch the individual widgets with this function. For instance, the |
| 428 | code example below shows how to set up a layout containing a |
| 429 | \l{QScriptEngineDebugger::CodeWidget}{code window} and a |
| 430 | \l{QScriptEngineDebugger::StackWidget}{stack widget}. |
| 431 | |
| 432 | \snippet scriptdebugger.cpp 0 |
| 433 | |
| 434 | Note that you need to set setAutoShowStandardWindow() to false; if |
| 435 | not, the standard window will be shown regardless. |
| 436 | |
| 437 | \sa action(), standardWindow(), setAutoShowStandardWindow() |
| 438 | */ |
| 439 | QWidgetcxx . . $ QWidget# *QScriptEngineDebuggercxx . . $ QScriptEngineDebugger#::widgetcxx . . $ QScriptEngineDebugger#widget(b935b775c08057e3).(DebuggerWidgetcxx . . $ QScriptEngineDebugger#DebuggerWidget# widget) const |
| 440 | { |
| 441 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const QScriptEngineDebugger); |
| 442 | const_cast<QScriptEngineDebuggerPrivatecxx . . $ QScriptEngineDebuggerPrivate#*>(d)->createDebuggercxx . . $ QScriptEngineDebuggerPrivate#createDebugger(49f6e7a06ebc5aa8).(); |
| 443 | return d->debuggercxx . . $ QScriptEngineDebuggerPrivate#debugger.->widgetcxx . . $ QScriptDebugger#widget(7d4672df5dd5766d).(static_cast<QScriptDebuggercxx . . $ QScriptDebugger#::DebuggerWidgetcxx . . $ QScriptDebugger#DebuggerWidget#>(static_cast<int>(widget))); |
| 444 | } |
| 445 | |
| 446 | /*! |
| 447 | Returns a pointer to the specified \a action. The actions available |
| 448 | are given by the DebuggerAction enum. |
| 449 | |
| 450 | With this function, you can add the actions to your own widgets, |
| 451 | toolbars, and menus. It is also convenient if you, for example, |
| 452 | wish to spice things up with your own groovy icons. The code |
| 453 | example below shows how to add actions to a QToolBar. |
| 454 | |
| 455 | \snippet scriptdebugger.cpp 1 |
| 456 | |
| 457 | Note that QScriptEngineDebugger has already added the actions to |
| 458 | its \l{DebuggerWidget}{standard widgets} and \l{standardWindow()}{standard window}. |
| 459 | |
| 460 | \sa widget(), createStandardMenu(), createStandardToolBar(), standardWindow() |
| 461 | */ |
| 462 | QActioncxx . . $ QAction# *QScriptEngineDebuggercxx . . $ QScriptEngineDebugger#::actioncxx . . $ QScriptEngineDebugger#action(d2acf4bc32070020).(DebuggerActioncxx . . $ QScriptEngineDebugger#DebuggerAction# action) const |
| 463 | { |
| 464 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const QScriptEngineDebugger); |
| 465 | QScriptEngineDebuggercxx . . $ QScriptEngineDebugger# *that = const_cast<QScriptEngineDebuggercxx . . $ QScriptEngineDebugger#*>(this); |
| 466 | that->d_funccxx . . $ QScriptEngineDebugger#d_func(7345d8fa1f631d6).()->createDebuggercxx . . $ QScriptEngineDebuggerPrivate#createDebugger(49f6e7a06ebc5aa8).(); |
| 467 | return d->debuggercxx . . $ QScriptEngineDebuggerPrivate#debugger.->actioncxx . . $ QScriptDebugger#action(6474643d7ffadc88).(static_cast<QScriptDebuggercxx . . $ QScriptDebugger#::DebuggerActioncxx . . $ QScriptDebugger#DebuggerAction#>(static_cast<int>(action)), that); |
| 468 | } |
| 469 | |
| 470 | /*! |
| 471 | Returns whether the standard debugger window is automatically shown when |
| 472 | evaluation is suspended. |
| 473 | |
| 474 | The default is true. |
| 475 | */ |
| 476 | bool QScriptEngineDebuggercxx . . $ QScriptEngineDebugger#::autoShowStandardWindowcxx . . $ QScriptEngineDebugger#autoShowStandardWindow(50ce9a9e25b4a850).() const |
| 477 | { |
| 478 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const QScriptEngineDebugger); |
| 479 | return d->autoShowcxx . . $ QScriptEngineDebuggerPrivate#autoShow.; |
| 480 | } |
| 481 | |
| 482 | /*! |
| 483 | Sets whether the standard debugger window is automatically shown when |
| 484 | evaluation is suspended. If \a autoShow is true, the window will be |
| 485 | automatically shown, otherwise it will not. |
| 486 | */ |
| 487 | void QScriptEngineDebuggercxx . . $ QScriptEngineDebugger#::setAutoShowStandardWindowcxx . . $ QScriptEngineDebugger#setAutoShowStandardWindow(b45ddcbc8423892c).(bool autoShow) |
| 488 | { |
| 489 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(QScriptEngineDebugger); |
| 490 | if (autoShow == d->autoShowcxx . . $ QScriptEngineDebuggerPrivate#autoShow.) |
| 491 | return; |
| 492 | if (autoShow) { |
| 493 | QObjectcxx . . $ QObject#::connectcxx . . $ QObject#connect(835f87066c895669).(this, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(evaluationSuspended()), |
| 494 | this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(_q_showStandardWindow())); |
| 495 | } else { |
| 496 | QObjectcxx . . $ QObject#::disconnectcxx . . $ QObject#disconnect(bb355c0e5cae20e4).(this, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(evaluationSuspended()), |
| 497 | this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(_q_showStandardWindow())); |
| 498 | } |
| 499 | d->autoShowcxx . . $ QScriptEngineDebuggerPrivate#autoShow. = autoShow; |
| 500 | } |
| 501 | |
| 502 | /*! |
| 503 | Returns a main window with a standard configuration of the debugger's |
| 504 | components. |
| 505 | |
| 506 | \sa createStandardMenu(), createStandardToolBar() |
| 507 | */ |
| 508 | #ifndef QT_NO_MAINWINDOW |
| 509 | QMainWindowcxx . . $ QMainWindow# *QScriptEngineDebuggercxx . . $ QScriptEngineDebugger#::standardWindowcxx . . $ QScriptEngineDebugger#standardWindow(f196da0a5fa05375).() const |
| 510 | { |
| 511 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const QScriptEngineDebugger); |
| 512 | if (d->standardWindowcxx . . $ QScriptEngineDebuggerPrivate#standardWindow.) |
| 513 | return d->standardWindowcxx . . $ QScriptEngineDebuggerPrivate#standardWindow.; |
| 514 | if (!QApplicationcxx . . $ QApplication#::instancecxx . . $ QCoreApplication#instance(d43115d48568c255).()) |
| 515 | return 0; |
| 516 | QScriptEngineDebuggercxx . . $ QScriptEngineDebugger# *that = const_cast<QScriptEngineDebuggercxx . . $ QScriptEngineDebugger#*>(this); |
| 517 | |
| 518 | QMainWindowcxx . . $ QMainWindow# *win = new QMainWindowcxx . . $ QMainWindow#QMainWindow(872e7b0c281abd8d).(); |
| 519 | #ifndef QT_NO_DOCKWIDGET |
| 520 | QDockWidgetcxx . . $ QDockWidget# *scriptsDock = new QDockWidget(win); |
| 521 | scriptsDock->setObjectNamecxx . . $ QObject#setObjectName(3520e46b33348bf6).(QLatin1Stringcxx . . $ QLatin1String#QLatin1String(aac1607cfe1c1740).("qtscriptdebugger_scriptsDockWidget")); |
| 522 | scriptsDock->setWindowTitlecxx . . $ QWidget#setWindowTitle(3520e46b33348bf6).(trcxx . . $ QScriptEngineDebugger#tr(75d9f1c324b4579d).("Loaded Scripts")); |
| 523 | scriptsDock->setWidgetcxx . . $ QDockWidget#setWidget(108f35f7aa7f3cf9).(widgetcxx . . $ QScriptEngineDebugger#widget(b935b775c08057e3).(ScriptsWidgetcxx . . $ QScriptEngineDebugger#ScriptsWidget.)); |
| 524 | win->addDockWidgetcxx . . $ QMainWindow#addDockWidget(315e3aea24dde9f7).(Qtcxx . . $ Qt/::LeftDockWidgetAreacxx . . $ Qt/LeftDockWidgetArea., scriptsDock); |
| 525 | |
| 526 | QDockWidgetcxx . . $ QDockWidget# *breakpointsDock = new QDockWidget(win); |
| 527 | breakpointsDock->setObjectNamecxx . . $ QObject#setObjectName(3520e46b33348bf6).(QLatin1Stringcxx . . $ QLatin1String#QLatin1String(aac1607cfe1c1740).("qtscriptdebugger_breakpointsDockWidget")); |
| 528 | breakpointsDock->setWindowTitlecxx . . $ QWidget#setWindowTitle(3520e46b33348bf6).(trcxx . . $ QScriptEngineDebugger#tr(75d9f1c324b4579d).("Breakpoints")); |
| 529 | breakpointsDock->setWidgetcxx . . $ QDockWidget#setWidget(108f35f7aa7f3cf9).(widgetcxx . . $ QScriptEngineDebugger#widget(b935b775c08057e3).(BreakpointsWidgetcxx . . $ QScriptEngineDebugger#BreakpointsWidget.)); |
| 530 | win->addDockWidgetcxx . . $ QMainWindow#addDockWidget(315e3aea24dde9f7).(Qtcxx . . $ Qt/::LeftDockWidgetAreacxx . . $ Qt/LeftDockWidgetArea., breakpointsDock); |
| 531 | |
| 532 | QDockWidgetcxx . . $ QDockWidget# *stackDock = new QDockWidget(win); |
| 533 | stackDock->setObjectNamecxx . . $ QObject#setObjectName(3520e46b33348bf6).(QLatin1Stringcxx . . $ QLatin1String#QLatin1String(aac1607cfe1c1740).("qtscriptdebugger_stackDockWidget")); |
| 534 | stackDock->setWindowTitlecxx . . $ QWidget#setWindowTitle(3520e46b33348bf6).(trcxx . . $ QScriptEngineDebugger#tr(75d9f1c324b4579d).("Stack")); |
| 535 | stackDock->setWidgetcxx . . $ QDockWidget#setWidget(108f35f7aa7f3cf9).(widgetcxx . . $ QScriptEngineDebugger#widget(b935b775c08057e3).(StackWidgetcxx . . $ QScriptEngineDebugger#StackWidget.)); |
| 536 | win->addDockWidgetcxx . . $ QMainWindow#addDockWidget(315e3aea24dde9f7).(Qtcxx . . $ Qt/::RightDockWidgetAreacxx . . $ Qt/RightDockWidgetArea., stackDock); |
| 537 | |
| 538 | QDockWidgetcxx . . $ QDockWidget# *localsDock = new QDockWidget(win); |
| 539 | localsDock->setObjectNamecxx . . $ QObject#setObjectName(3520e46b33348bf6).(QLatin1Stringcxx . . $ QLatin1String#QLatin1String(aac1607cfe1c1740).("qtscriptdebugger_localsDockWidget")); |
| 540 | localsDock->setWindowTitlecxx . . $ QWidget#setWindowTitle(3520e46b33348bf6).(trcxx . . $ QScriptEngineDebugger#tr(75d9f1c324b4579d).("Locals")); |
| 541 | localsDock->setWidgetcxx . . $ QDockWidget#setWidget(108f35f7aa7f3cf9).(widgetcxx . . $ QScriptEngineDebugger#widget(b935b775c08057e3).(LocalsWidgetcxx . . $ QScriptEngineDebugger#LocalsWidget.)); |
| 542 | win->addDockWidgetcxx . . $ QMainWindow#addDockWidget(315e3aea24dde9f7).(Qtcxx . . $ Qt/::RightDockWidgetAreacxx . . $ Qt/RightDockWidgetArea., localsDock); |
| 543 | |
| 544 | QDockWidgetcxx . . $ QDockWidget# *consoleDock = new QDockWidget(win); |
| 545 | consoleDock->setObjectNamecxx . . $ QObject#setObjectName(3520e46b33348bf6).(QLatin1Stringcxx . . $ QLatin1String#QLatin1String(aac1607cfe1c1740).("qtscriptdebugger_consoleDockWidget")); |
| 546 | consoleDock->setWindowTitlecxx . . $ QWidget#setWindowTitle(3520e46b33348bf6).(trcxx . . $ QScriptEngineDebugger#tr(75d9f1c324b4579d).("Console")); |
| 547 | consoleDock->setWidgetcxx . . $ QDockWidget#setWidget(108f35f7aa7f3cf9).(widgetcxx . . $ QScriptEngineDebugger#widget(b935b775c08057e3).(ConsoleWidgetcxx . . $ QScriptEngineDebugger#ConsoleWidget.)); |
| 548 | win->addDockWidgetcxx . . $ QMainWindow#addDockWidget(315e3aea24dde9f7).(Qtcxx . . $ Qt/::BottomDockWidgetAreacxx . . $ Qt/BottomDockWidgetArea., consoleDock); |
| 549 | |
| 550 | QDockWidgetcxx . . $ QDockWidget# *debugOutputDock = new QDockWidget(win); |
| 551 | debugOutputDock->setObjectNamecxx . . $ QObject#setObjectName(3520e46b33348bf6).(QLatin1Stringcxx . . $ QLatin1String#QLatin1String(aac1607cfe1c1740).("qtscriptdebugger_debugOutputDockWidget")); |
| 552 | debugOutputDock->setWindowTitlecxx . . $ QWidget#setWindowTitle(3520e46b33348bf6).(trcxx . . $ QScriptEngineDebugger#tr(75d9f1c324b4579d).("Debug Output")); |
| 553 | debugOutputDock->setWidgetcxx . . $ QDockWidget#setWidget(108f35f7aa7f3cf9).(widgetcxx . . $ QScriptEngineDebugger#widget(b935b775c08057e3).(DebugOutputWidgetcxx . . $ QScriptEngineDebugger#DebugOutputWidget.)); |
| 554 | win->addDockWidgetcxx . . $ QMainWindow#addDockWidget(315e3aea24dde9f7).(Qtcxx . . $ Qt/::BottomDockWidgetAreacxx . . $ Qt/BottomDockWidgetArea., debugOutputDock); |
| 555 | |
| 556 | QDockWidgetcxx . . $ QDockWidget# *errorLogDock = new QDockWidget(win); |
| 557 | errorLogDock->setObjectNamecxx . . $ QObject#setObjectName(3520e46b33348bf6).(QLatin1Stringcxx . . $ QLatin1String#QLatin1String(aac1607cfe1c1740).("qtscriptdebugger_errorLogDockWidget")); |
| 558 | errorLogDock->setWindowTitlecxx . . $ QWidget#setWindowTitle(3520e46b33348bf6).(trcxx . . $ QScriptEngineDebugger#tr(75d9f1c324b4579d).("Error Log")); |
| 559 | errorLogDock->setWidgetcxx . . $ QDockWidget#setWidget(108f35f7aa7f3cf9).(widgetcxx . . $ QScriptEngineDebugger#widget(b935b775c08057e3).(ErrorLogWidgetcxx . . $ QScriptEngineDebugger#ErrorLogWidget.)); |
| 560 | win->addDockWidgetcxx . . $ QMainWindow#addDockWidget(315e3aea24dde9f7).(Qtcxx . . $ Qt/::BottomDockWidgetAreacxx . . $ Qt/BottomDockWidgetArea., errorLogDock); |
| 561 | |
| 562 | win->tabifyDockWidgetcxx . . $ QMainWindow#tabifyDockWidget(40cdd67d28b4897d).(errorLogDock, debugOutputDock); |
| 563 | win->tabifyDockWidgetcxx . . $ QMainWindow#tabifyDockWidget(40cdd67d28b4897d).(debugOutputDock, consoleDock); |
| 564 | #endif |
| 565 | |
| 566 | #ifndef QT_NO_TOOLBAR |
| 567 | win->addToolBarcxx . . $ QMainWindow#addToolBar(c27adf9b57498543).(Qtcxx . . $ Qt/::TopToolBarAreacxx . . $ Qt/TopToolBarArea., that->createStandardToolBarcxx . . $ QScriptEngineDebugger#createStandardToolBar(79f41f0c6cd596ee).()); |
| 568 | #endif |
| 569 | |
| 570 | #ifndef QT_NO_MENUBAR |
| 571 | win->menuBarcxx . . $ QMainWindow#menuBar(752dea92cd67ab27).()->addMenucxx . . $ QMenuBar#addMenu(e6260eb8882b953).(that->createStandardMenucxx . . $ QScriptEngineDebugger#createStandardMenu(d12fcb6153460000).(win)); |
| 572 | |
| 573 | QMenucxx . . $ QMenu# *editMenu = win->menuBarcxx . . $ QMainWindow#menuBar(752dea92cd67ab27).()->addMenucxx . . $ QMenuBar#addMenu(7bd5d996bbe37ddf).(trcxx . . $ QScriptEngineDebugger#tr(75d9f1c324b4579d).("Search")); |
| 574 | editMenu->addActioncxx . . $ QMenu#addAction(92b1e80c0a7f1406).(actioncxx . . $ QScriptEngineDebugger#action(d2acf4bc32070020).(FindInScriptActioncxx . . $ QScriptEngineDebugger#FindInScriptAction.)); |
| 575 | editMenu->addActioncxx . . $ QMenu#addAction(92b1e80c0a7f1406).(actioncxx . . $ QScriptEngineDebugger#action(d2acf4bc32070020).(FindNextInScriptActioncxx . . $ QScriptEngineDebugger#FindNextInScriptAction.)); |
| 576 | editMenu->addActioncxx . . $ QMenu#addAction(92b1e80c0a7f1406).(actioncxx . . $ QScriptEngineDebugger#action(d2acf4bc32070020).(FindPreviousInScriptActioncxx . . $ QScriptEngineDebugger#FindPreviousInScriptAction.)); |
| 577 | editMenu->addSeparatorcxx . . $ QMenu#addSeparator(a590eff9f1ec9a95).(); |
| 578 | editMenu->addActioncxx . . $ QMenu#addAction(92b1e80c0a7f1406).(actioncxx . . $ QScriptEngineDebugger#action(d2acf4bc32070020).(GoToLineActioncxx . . $ QScriptEngineDebugger#GoToLineAction.)); |
| 579 | |
| 580 | #ifndef QT_NO_DOCKWIDGET |
| 581 | QMenucxx . . $ QMenu# *viewMenu = win->menuBarcxx . . $ QMainWindow#menuBar(752dea92cd67ab27).()->addMenucxx . . $ QMenuBar#addMenu(7bd5d996bbe37ddf).(trcxx . . $ QScriptEngineDebugger#tr(75d9f1c324b4579d).("View")); |
| 582 | viewMenu->addActioncxx . . $ QMenu#addAction(92b1e80c0a7f1406).(scriptsDock->toggleViewActioncxx . . $ QDockWidget#toggleViewAction(50f6a0536a8019cb).()); |
| 583 | viewMenu->addActioncxx . . $ QMenu#addAction(92b1e80c0a7f1406).(breakpointsDock->toggleViewActioncxx . . $ QDockWidget#toggleViewAction(50f6a0536a8019cb).()); |
| 584 | viewMenu->addActioncxx . . $ QMenu#addAction(92b1e80c0a7f1406).(stackDock->toggleViewActioncxx . . $ QDockWidget#toggleViewAction(50f6a0536a8019cb).()); |
| 585 | viewMenu->addActioncxx . . $ QMenu#addAction(92b1e80c0a7f1406).(localsDock->toggleViewActioncxx . . $ QDockWidget#toggleViewAction(50f6a0536a8019cb).()); |
| 586 | viewMenu->addActioncxx . . $ QMenu#addAction(92b1e80c0a7f1406).(consoleDock->toggleViewActioncxx . . $ QDockWidget#toggleViewAction(50f6a0536a8019cb).()); |
| 587 | viewMenu->addActioncxx . . $ QMenu#addAction(92b1e80c0a7f1406).(debugOutputDock->toggleViewActioncxx . . $ QDockWidget#toggleViewAction(50f6a0536a8019cb).()); |
| 588 | viewMenu->addActioncxx . . $ QMenu#addAction(92b1e80c0a7f1406).(errorLogDock->toggleViewActioncxx . . $ QDockWidget#toggleViewAction(50f6a0536a8019cb).()); |
| 589 | #endif |
| 590 | #endif |
| 591 | |
| 592 | QWidgetcxx . . $ QWidget# *central = new QWidgetcxx . . $ QWidget#QWidget(872e7b0c281abd8d).(); |
| 593 | QVBoxLayoutcxx . . $ QVBoxLayout# *vbox = new QVBoxLayoutcxx . . $ QVBoxLayout#(central); |
| 594 | vbox->setContentsMarginscxx . . $ QLayout#setContentsMargins(748afa4755bc9595).(0, 0, 0, 0); |
| 595 | vbox->addWidgetcxx . . $ QBoxLayout#addWidget(d39963fa34d6acb).(widgetcxx . . $ QScriptEngineDebugger#widget(b935b775c08057e3).(CodeWidgetcxx . . $ QScriptEngineDebugger#CodeWidget.)); |
| 596 | vbox->addWidgetcxx . . $ QBoxLayout#addWidget(d39963fa34d6acb).(widgetcxx . . $ QScriptEngineDebugger#widget(b935b775c08057e3).(CodeFinderWidgetcxx . . $ QScriptEngineDebugger#CodeFinderWidget.)); |
| 597 | widgetcxx . . $ QScriptEngineDebugger#widget(b935b775c08057e3).(CodeFinderWidgetcxx . . $ QScriptEngineDebugger#CodeFinderWidget.)->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).(); |
| 598 | win->setCentralWidgetcxx . . $ QMainWindow#setCentralWidget(108f35f7aa7f3cf9).(central); |
| 599 | |
| 600 | win->setWindowTitlecxx . . $ QWidget#setWindowTitle(3520e46b33348bf6).(trcxx . . $ QScriptEngineDebugger#tr(75d9f1c324b4579d).("Qt Script Debugger")); |
| 601 | #ifndef QT_NO_TOOLBAR |
| 602 | win->setUnifiedTitleAndToolBarOnMaccxx . . $ QMainWindow#setUnifiedTitleAndToolBarOnMac(b45ddcbc8423892c).(true); |
| 603 | #endif |
| 604 | |
| 605 | QSettingscxx . . $ QSettings# settingscxx . . $ QSettings#QSettings(dba89adbf0bbd2d3).(QSettingscxx . . $ QSettings#::UserScopecxx . . $ QSettings#UserScope., QLatin1Stringcxx . . $ QString#QString(4641beeb24e75d60).("Trolltech")); |
| 606 | QVariantcxx . . $ QVariant# geometry = settings.valuecxx . . $ QSettings#value(12a1b1749da49362).(QLatin1Stringcxx . . $ QString#QString(4641beeb24e75d60).("Qt/scripttools/debugging/mainWindowGeometry")); |
| 607 | if (geometry.isValidcxx . . $ QVariant#isValid(50ce9a9e25b4a850).()) |
| 608 | win->restoreGeometrycxx . . $ QWidget#restoreGeometry(544790aa27d183a0).(geometry.toByteArraycxx . . $ QVariant#toByteArray(a96750bfbcb1fbe9).()); |
| 609 | QVariantcxx . . $ QVariant# state = settings.valuecxx . . $ QSettings#value(12a1b1749da49362).(QLatin1Stringcxx . . $ QString#QString(4641beeb24e75d60).("Qt/scripttools/debugging/mainWindowState")); |
| 610 | if (state.isValidcxx . . $ QVariant#isValid(50ce9a9e25b4a850).()) |
| 611 | win->restoreStatecxx . . $ QMainWindow#restoreState(eb4ac98757633405).(state.toByteArraycxx . . $ QVariant#toByteArray(a96750bfbcb1fbe9).()); |
| 612 | |
| 613 | WidgetClosedNotifiercxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptenginedebugger.cpp`/WidgetClosedNotifier# *closedNotifier = new WidgetClosedNotifier(win, that); |
| 614 | QObjectcxx . . $ QObject#::connectcxx . . $ QObject#connect(835f87066c895669).(closedNotifier, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(widgetClosed()), |
| 615 | actioncxx . . $ QScriptEngineDebugger#action(d2acf4bc32070020).(ContinueActioncxx . . $ QScriptEngineDebugger#ContinueAction.), SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(trigger())); |
| 616 | |
| 617 | const_cast<QScriptEngineDebuggerPrivatecxx . . $ QScriptEngineDebuggerPrivate#*>(d)->standardWindowcxx . . $ QScriptEngineDebuggerPrivate#standardWindow. = win; |
| 618 | return win; |
| 619 | } |
| 620 | #endif // QT_NO_MAINWINDOW |
| 621 | |
| 622 | /*! |
| 623 | Creates a standard debugger menu with the given \a parent. |
| 624 | Returns the new menu object. |
| 625 | |
| 626 | \sa createStandardToolBar() |
| 627 | */ |
| 628 | QMenucxx . . $ QMenu# *QScriptEngineDebuggercxx . . $ QScriptEngineDebugger#::createStandardMenucxx . . $ QScriptEngineDebugger#createStandardMenu(d12fcb6153460000).(QWidgetcxx . . $ QWidget# *parent) |
| 629 | { |
| 630 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(QScriptEngineDebugger); |
| 631 | d->createDebuggercxx . . $ QScriptEngineDebuggerPrivate#createDebugger(49f6e7a06ebc5aa8).(); |
| 632 | return d->debuggercxx . . $ QScriptEngineDebuggerPrivate#debugger.->createStandardMenucxx . . $ QScriptDebugger#createStandardMenu(232c34e897e16662).(parent, this); |
| 633 | } |
| 634 | |
| 635 | /*! |
| 636 | Creates a standard debugger toolbar with the given \a parent. |
| 637 | Returns the new toolbar object. |
| 638 | |
| 639 | \sa createStandardMenu() |
| 640 | */ |
| 641 | #ifndef QT_NO_TOOLBAR |
| 642 | QToolBarcxx . . $ QToolBar# *QScriptEngineDebuggercxx . . $ QScriptEngineDebugger#::createStandardToolBarcxx . . $ QScriptEngineDebugger#createStandardToolBar(79f41f0c6cd596ee).(QWidgetcxx . . $ QWidget# *parent) |
| 643 | { |
| 644 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(QScriptEngineDebugger); |
| 645 | d->createDebuggercxx . . $ QScriptEngineDebuggerPrivate#createDebugger(49f6e7a06ebc5aa8).(); |
| 646 | return d->debuggercxx . . $ QScriptEngineDebuggerPrivate#debugger.->createStandardToolBarcxx . . $ QScriptDebugger#createStandardToolBar(a6804a15b5f9adf3).(parent, this); |
| 647 | } |
| 648 | #endif |
| 649 | |
| 650 | /*! |
| 651 | \fn QScriptEngineDebugger::evaluationSuspended() |
| 652 | |
| 653 | This signal is emitted when the debugger has suspended script |
| 654 | evaluation for whatever reason (e.g. due to an uncaught script |
| 655 | exception, or due to a breakpoint being triggered). |
| 656 | |
| 657 | \sa evaluationResumed() |
| 658 | */ |
| 659 | |
| 660 | /*! |
| 661 | \fn QScriptEngineDebugger::evaluationResumed() |
| 662 | |
| 663 | This signal is emitted when the debugger has resumed script |
| 664 | evaluation (e.g. the user gave the "continue" command). |
| 665 | |
| 666 | \sa evaluationSuspended() |
| 667 | */ |
| 668 | |
| 669 | QT_END_NAMESPACEcxx . . $ `<external>/15045578679651060896/qglobal.h:149:10`! |
| 670 | |
| 671 | #include "qscriptenginedebugger.moc"cxx . . $ `<file>/src/scripttools/.moc/qscriptenginedebugger.moc`/ |
| 672 | |
| 673 | #include "moc_qscriptenginedebugger.cpp"cxx . . $ `<file>/src/scripttools/.moc/moc_qscriptenginedebugger.cpp`/ |