| 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 "qscriptdebuggerconsolewidget_p.h"cxx . . $ `<file>/src/scripttools/debugging/qscriptdebuggerconsolewidget_p.h`/ |
| 41 | #include "qscriptdebuggerconsolewidgetinterface_p_p.h"cxx . . $ `<file>/src/scripttools/debugging/qscriptdebuggerconsolewidgetinterface_p_p.h`/ |
| 42 | #include "qscriptdebuggerconsolehistorianinterface_p.h"cxx . . $ `<file>/src/scripttools/debugging/qscriptdebuggerconsolehistorianinterface_p.h`/ |
| 43 | #include "qscriptcompletionproviderinterface_p.h"cxx . . $ `<file>/src/scripttools/debugging/qscriptcompletionproviderinterface_p.h`/ |
| 44 | #include "qscriptcompletiontaskinterface_p.h"cxx . . $ `<file>/src/scripttools/debugging/qscriptcompletiontaskinterface_p.h`/ |
| 45 | |
| 46 | #include <QtCore/qdebug.h> |
| 47 | #include <QtWidgets/qplaintextedit.h> |
| 48 | #include <QtWidgets/qlabel.h> |
| 49 | #include <QtWidgets/qlineedit.h> |
| 50 | #include <QtWidgets/qlistview.h> |
| 51 | #include <QtWidgets/qscrollbar.h> |
| 52 | #include <QtWidgets/qboxlayout.h> |
| 53 | #include <QtWidgets/qcompleter.h> |
| 54 | |
| 55 | #include <algorithm> |
| 56 | |
| 57 | QT_BEGIN_NAMESPACEcxx . . $ `<external>/15045578679651060896/qglobal.h:148:10`! |
| 58 | |
| 59 | namespacecxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/ { |
| 60 | |
| 61 | class PromptLabelcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/PromptLabel# : public QLabelcxx . . $ QLabel# |
| 62 | { |
| 63 | public: |
| 64 | PromptLabelcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/PromptLabel#PromptLabel(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent = 0) |
| 65 | : QLabelcxx . . $ QLabel#(parent) |
| 66 | { |
| 67 | setFrameShapecxx . . $ QFrame#setFrameShape(58426e538cd37cb).(QFramecxx . . $ QFrame#::NoFramecxx . . $ QFrame#NoFrame.); |
| 68 | setIndentcxx . . $ QLabel#setIndent(d4f767463ce0a6b3).(2); |
| 69 | setMargincxx . . $ QLabel#setMargin(d4f767463ce0a6b3).(2); |
| 70 | setSizePolicycxx . . $ QWidget#setSizePolicy(41340f53ecd443dd).(QSizePolicycxx . . $ QSizePolicy#::Minimumcxx . . $ QSizePolicy#Minimum., sizePolicycxx . . $ QWidget#sizePolicy(32ae450071346403).().verticalPolicy()); |
| 71 | setAlignmentcxx . . $ QLabel#setAlignment(9d0000d583057bbf).(Qtcxx . . $ Qt/::AlignHCentercxx . . $ Qt/AlignHCenter.); |
| 72 | #ifndef QT_NO_STYLE_STYLESHEET |
| 73 | setStyleSheetcxx . . $ QWidget#setStyleSheet(3520e46b33348bf6).(QLatin1Stringcxx . . $ QLatin1String#QLatin1String(aac1607cfe1c1740).("background: white;")); |
| 74 | #endif |
| 75 | } |
| 76 | |
| 77 | QSizecxx . . $ QSize# sizeHintcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/PromptLabel#sizeHint(4b3b776e5ee2b367).() const { |
| 78 | QFontMetricscxx . . $ QFontMetrics# fm(fontcxx . . $ QWidget#font(c5040538afc47120).()); |
| 79 | return fm.sizecxx . . $ QFontMetrics#size(427a1701ea02a1c7).(0, textcxx . . $ QLabel#text(6ef7b6c27b00b43d).()) +cxx . . $ operator+(68a6fbfab4d187bc). QSizecxx . . $ QSize#QSize(c0d38f4800714fae).(8, 0); |
| 80 | } |
| 81 | }; |
| 82 | |
| 83 | class InputEditcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/InputEdit# : public QLineEditcxx . . $ QLineEdit# |
| 84 | { |
| 85 | public: |
| 86 | InputEditcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/InputEdit#InputEdit(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent = 0) |
| 87 | : QLineEditcxx . . $ QLineEdit#QLineEdit(108f35f7aa7f3cf9).(parent) |
| 88 | { |
| 89 | setFramecxx . . $ QLineEdit#setFrame(b45ddcbc8423892c).(false); |
| 90 | setSizePolicycxx . . $ QWidget#setSizePolicy(41340f53ecd443dd).(QSizePolicycxx . . $ QSizePolicy#::MinimumExpandingcxx . . $ QSizePolicy#MinimumExpanding., sizePolicycxx . . $ QWidget#sizePolicy(32ae450071346403).().verticalPolicy()); |
| 91 | } |
| 92 | }; |
| 93 | |
| 94 | class CommandLinecxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine# : public QWidgetcxx . . $ QWidget# |
| 95 | { |
| 96 | Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`! |
| 97 | public: |
| 98 | CommandLinecxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#CommandLine(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent = 0) |
| 99 | : QWidgetcxx . . $ QWidget#QWidget(872e7b0c281abd8d).(parent) |
| 100 | { |
| 101 | promptLabelcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#promptLabel. = new PromptLabelcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/PromptLabel#(); |
| 102 | inputEditcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#inputEdit. = new InputEditcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/InputEdit#(); |
| 103 | QHBoxLayoutcxx . . $ QHBoxLayout# *hbox = new QHBoxLayout(this); |
| 104 | hbox->setSpacingcxx . . $ QBoxLayout#setSpacing(d4f767463ce0a6b3).(0); |
| 105 | hbox->setContentsMarginscxx . . $ QLayout#setContentsMargins(748afa4755bc9595).(0, 0, 0, 0); |
| 106 | hbox->addWidgetcxx . . $ QBoxLayout#addWidget(d39963fa34d6acb).(promptLabelcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#promptLabel.); |
| 107 | hbox->addWidgetcxx . . $ QBoxLayout#addWidget(d39963fa34d6acb).(inputEditcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#inputEdit.); |
| 108 | |
| 109 | QObjectcxx . . $ QObject#::connectcxx . . $ QObject#connect(835f87066c895669).(inputEditcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#inputEdit., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(returnPressed()), |
| 110 | this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(onReturnPressed())); |
| 111 | QObjectcxx . . $ QObject#::connectcxx . . $ QObject#connect(835f87066c895669).(inputEditcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#inputEdit., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(textEdited(QString)), |
| 112 | this, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(lineEdited(QString))); |
| 113 | |
| 114 | setFocusProxycxx . . $ QWidget#setFocusProxy(108f35f7aa7f3cf9).(inputEditcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#inputEdit.); |
| 115 | } |
| 116 | |
| 117 | QStringcxx . . $ QString# promptcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#prompt(6ef7b6c27b00b43d).() const |
| 118 | { |
| 119 | return promptLabelcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#promptLabel.->textcxx . . $ QLabel#text(6ef7b6c27b00b43d).(); |
| 120 | } |
| 121 | void setPromptcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#setPrompt(3520e46b33348bf6).(const QStringcxx . . $ QString# &prompt) |
| 122 | { |
| 123 | promptLabelcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#promptLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(prompt); |
| 124 | } |
| 125 | |
| 126 | QStringcxx . . $ QString# inputcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#input(6ef7b6c27b00b43d).() const |
| 127 | { |
| 128 | return inputEditcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#inputEdit.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).(); |
| 129 | } |
| 130 | void setInputcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#setInput(3520e46b33348bf6).(const QStringcxx . . $ QString# &input) |
| 131 | { |
| 132 | inputEditcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#inputEdit.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(input); |
| 133 | } |
| 134 | |
| 135 | int cursorPositioncxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#cursorPosition(455f465bc33b4cdf).() const |
| 136 | { |
| 137 | return inputEditcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#inputEdit.->cursorPositioncxx . . $ QLineEdit#cursorPosition(455f465bc33b4cdf).(); |
| 138 | } |
| 139 | void setCursorPositioncxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#setCursorPosition(d4f767463ce0a6b3).(int position) |
| 140 | { |
| 141 | inputEditcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#inputEdit.->setCursorPositioncxx . . $ QLineEdit#setCursorPosition(d4f767463ce0a6b3).(position); |
| 142 | } |
| 143 | |
| 144 | QWidgetcxx . . $ QWidget# *editorcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#editor(27f420ad5cce8994).() const |
| 145 | { |
| 146 | return inputEditcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#inputEdit.; |
| 147 | } |
| 148 | |
| 149 | Q_SIGNALScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:93:10`!: |
| 150 | void lineEnteredcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#lineEntered(3520e46b33348bf6).(const QStringcxx . . $ QString# &contents); |
| 151 | void lineEditedcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#lineEdited(3520e46b33348bf6).(const QStringcxx . . $ QString# &contents); |
| 152 | |
| 153 | private Q_SLOTScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:92:10`!: |
| 154 | void onReturnPressedcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#onReturnPressed(49f6e7a06ebc5aa8).() |
| 155 | { |
| 156 | QStringcxx . . $ QString# text = inputEditcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#inputEdit.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).(); |
| 157 | inputEditcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#inputEdit.->clearcxx . . $ QLineEdit#clear(49f6e7a06ebc5aa8).(); |
| 158 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! lineEnteredcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#lineEntered(3520e46b33348bf6).(text); |
| 159 | } |
| 160 | |
| 161 | private: |
| 162 | PromptLabelcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/PromptLabel# *promptLabelcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#promptLabel.; |
| 163 | InputEditcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/InputEdit# *inputEditcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#inputEdit.; |
| 164 | }; |
| 165 | |
| 166 | class QScriptDebuggerConsoleWidgetOutputEditcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/QScriptDebuggerConsoleWidgetOutputEdit# : public QPlainTextEditcxx . . $ QPlainTextEdit# |
| 167 | { |
| 168 | public: |
| 169 | QScriptDebuggerConsoleWidgetOutputEditcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/QScriptDebuggerConsoleWidgetOutputEdit#QScriptDebuggerConsoleWidgetOutputEdit(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent = 0) |
| 170 | : QPlainTextEditcxx . . $ QPlainTextEdit#(parent) |
| 171 | { |
| 172 | setFrameShapecxx . . $ QFrame#setFrameShape(58426e538cd37cb).(QFramecxx . . $ QFrame#::NoFramecxx . . $ QFrame#NoFrame.); |
| 173 | setReadOnlycxx . . $ QPlainTextEdit#setReadOnly(b45ddcbc8423892c).(true); |
| 174 | // ### there's no context menu when the edit can't have focus, |
| 175 | // even though you can select text in it. |
| 176 | // setFocusPolicy(Qt::NoFocus); |
| 177 | setMaximumBlockCountcxx . . $ QPlainTextEdit#setMaximumBlockCount(d4f767463ce0a6b3).(2500); |
| 178 | } |
| 179 | |
| 180 | void scrollToBottomcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/QScriptDebuggerConsoleWidgetOutputEdit#scrollToBottom(49f6e7a06ebc5aa8).() |
| 181 | { |
| 182 | QScrollBarcxx . . $ QScrollBar# *bar = verticalScrollBarcxx . . $ QAbstractScrollArea#verticalScrollBar(49d9510c6adf8c19).(); |
| 183 | bar->setValuecxx . . $ QAbstractSlider#setValue(d4f767463ce0a6b3).(bar->maximumcxx . . $ QAbstractSlider#maximum(455f465bc33b4cdf).()); |
| 184 | } |
| 185 | |
| 186 | int charactersPerLinecxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/QScriptDebuggerConsoleWidgetOutputEdit#charactersPerLine(455f465bc33b4cdf).() const |
| 187 | { |
| 188 | QFontMetricscxx . . $ QFontMetrics# fm(fontcxx . . $ QWidget#font(c5040538afc47120).()); |
| 189 | return widthcxx . . $ QWidget#width(455f465bc33b4cdf).() /cxx . . $ `operator/`(68a6fbfab4d187bc). fm.maxWidthcxx . . $ QFontMetrics#maxWidth(455f465bc33b4cdf).(); |
| 190 | } |
| 191 | }; |
| 192 | |
| 193 | } // namespace |
| 194 | |
| 195 | class QScriptDebuggerConsoleWidgetPrivatecxx . . $ QScriptDebuggerConsoleWidgetPrivate# |
| 196 | : public QScriptDebuggerConsoleWidgetInterfacePrivatecxx . . $ QScriptDebuggerConsoleWidgetInterfacePrivate# |
| 197 | { |
| 198 | Q_DECLARE_PUBLICcxx . . $ `<external>/15045578679651060896/qglobal.h:1172:9`!(QScriptDebuggerConsoleWidget) |
| 199 | public: |
| 200 | QScriptDebuggerConsoleWidgetPrivatecxx . . $ QScriptDebuggerConsoleWidgetPrivate#QScriptDebuggerConsoleWidgetPrivate(49f6e7a06ebc5aa8).(); |
| 201 | ~cxx . . $ QScriptDebuggerConsoleWidgetPrivate#`~QScriptDebuggerConsoleWidgetPrivate`(ced63f7c635d850d).QScriptDebuggerConsoleWidgetPrivatecxx . . $ QScriptDebuggerConsoleWidgetPrivate#(); |
| 202 | |
| 203 | // private slots |
| 204 | void _q_onLineEnteredcxx . . $ QScriptDebuggerConsoleWidgetPrivate#_q_onLineEntered(3520e46b33348bf6).(const QStringcxx . . $ QString# &contents); |
| 205 | void _q_onLineEditedcxx . . $ QScriptDebuggerConsoleWidgetPrivate#_q_onLineEdited(3520e46b33348bf6).(const QStringcxx . . $ QString# &contents); |
| 206 | void _q_onCompletionTaskFinishedcxx . . $ QScriptDebuggerConsoleWidgetPrivate#_q_onCompletionTaskFinished(49f6e7a06ebc5aa8).(); |
| 207 | |
| 208 | CommandLinecxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine# *commandLinecxx . . $ QScriptDebuggerConsoleWidgetPrivate#commandLine.; |
| 209 | QScriptDebuggerConsoleWidgetOutputEditcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/QScriptDebuggerConsoleWidgetOutputEdit# *outputEditcxx . . $ QScriptDebuggerConsoleWidgetPrivate#outputEdit.; |
| 210 | int historyIndexcxx . . $ QScriptDebuggerConsoleWidgetPrivate#historyIndex.; |
| 211 | QStringcxx . . $ QString# newInputcxx . . $ QScriptDebuggerConsoleWidgetPrivate#newInput.; |
| 212 | }; |
| 213 | |
| 214 | QScriptDebuggerConsoleWidgetPrivatecxx . . $ QScriptDebuggerConsoleWidgetPrivate#::QScriptDebuggerConsoleWidgetPrivatecxx . . $ QScriptDebuggerConsoleWidgetPrivate#QScriptDebuggerConsoleWidgetPrivate(49f6e7a06ebc5aa8).() |
| 215 | { |
| 216 | historyIndexcxx . . $ QScriptDebuggerConsoleWidgetPrivate#historyIndex. = -1; |
| 217 | } |
| 218 | |
| 219 | QScriptDebuggerConsoleWidgetPrivatecxx . . $ QScriptDebuggerConsoleWidgetPrivate#::~cxx . . $ QScriptDebuggerConsoleWidgetPrivate#`~QScriptDebuggerConsoleWidgetPrivate`(ced63f7c635d850d).QScriptDebuggerConsoleWidgetPrivatecxx . . $ QScriptDebuggerConsoleWidgetPrivate#() |
| 220 | { |
| 221 | } |
| 222 | |
| 223 | void QScriptDebuggerConsoleWidgetPrivatecxx . . $ QScriptDebuggerConsoleWidgetPrivate#::_q_onLineEnteredcxx . . $ QScriptDebuggerConsoleWidgetPrivate#_q_onLineEntered(3520e46b33348bf6).(const QStringcxx . . $ QString# &contents) |
| 224 | { |
| 225 | Q_Qcxx . . $ `<external>/15045578679651060896/qglobal.h:1178:9`!(QScriptDebuggerConsoleWidget); |
| 226 | outputEditcxx . . $ QScriptDebuggerConsoleWidgetPrivate#outputEdit.->appendPlainTextcxx . . $ QPlainTextEdit#appendPlainText(3520e46b33348bf6).(QStringcxx . . $ QString#::fromLatin1cxx . . $ QString#fromLatin1(5ac70cc0fa2a874e).("%0 %1").argcxx . . $ QString#arg(bc823072288cbbb5).(commandLinecxx . . $ QScriptDebuggerConsoleWidgetPrivate#commandLine.->promptcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#prompt(6ef7b6c27b00b43d).()).argcxx . . $ QString#arg(bc823072288cbbb5).(contents)); |
| 227 | outputEditcxx . . $ QScriptDebuggerConsoleWidgetPrivate#outputEdit.->scrollToBottomcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/QScriptDebuggerConsoleWidgetOutputEdit#scrollToBottom(49f6e7a06ebc5aa8).(); |
| 228 | historyIndexcxx . . $ QScriptDebuggerConsoleWidgetPrivate#historyIndex. = -1; |
| 229 | newInputcxx . . $ QScriptDebuggerConsoleWidgetPrivate#newInput..clearcxx . . $ QString#clear(49f6e7a06ebc5aa8).(); |
| 230 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! q->lineEnteredcxx . . $ QScriptDebuggerConsoleWidgetInterface#lineEntered(3520e46b33348bf6).(contents); |
| 231 | } |
| 232 | |
| 233 | void QScriptDebuggerConsoleWidgetPrivatecxx . . $ QScriptDebuggerConsoleWidgetPrivate#::_q_onLineEditedcxx . . $ QScriptDebuggerConsoleWidgetPrivate#_q_onLineEdited(3520e46b33348bf6).(const QStringcxx . . $ QString# &contents) |
| 234 | { |
| 235 | if (historyIndexcxx . . $ QScriptDebuggerConsoleWidgetPrivate#historyIndex. != -1) { |
| 236 | // ### try to get the bash behavior... |
| 237 | #if 0 |
| 238 | historian->changeHistoryAt(historyIndex, contents); |
| 239 | #endif |
| 240 | } else { |
| 241 | newInputcxx . . $ QScriptDebuggerConsoleWidgetPrivate#newInput. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). contents; |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | static bool lengthLessThancxx . . $ lengthLessThan(edf9e4f73813982f).(const QStringcxx . . $ QString# &s1, const QStringcxx . . $ QString# &s2) |
| 246 | { |
| 247 | return s1.lengthcxx . . $ QString#length(455f465bc33b4cdf).() < s2.lengthcxx . . $ QString#length(455f465bc33b4cdf).(); |
| 248 | } |
| 249 | |
| 250 | // input must be sorted by length already |
| 251 | static QStringcxx . . $ QString# longestCommonPrefixcxx . . $ longestCommonPrefix(e42956c8b94252dd).(const QStringListcxx . . $ QStringList# &lst) |
| 252 | { |
| 253 | QStringcxx . . $ QString# result = lst.last(); |
| 254 | for (int i = lst.size() -cxx . . $ operator-(f4ef9359807840b4). 2; (i >= 0) && !result.isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).(); --i) { |
| 255 | const QStringcxx . . $ QString# &s = lst.at(i); |
| 256 | int j = 0; |
| 257 | for ( ; (j <cxx . . $ `operator<`(9d1caf642710d3b0). qMincxx . . $ qMin(2a338fce5842aa6a).(s.lengthcxx . . $ QString#length(455f465bc33b4cdf).(), result.lengthcxx . . $ QString#length(455f465bc33b4cdf).())) && (s.atcxx . . $ QString#at(13af7ae5a875439e).(j) ==cxx . . $ `operator==`(a468b2f18a3afe8). result.atcxx . . $ QString#at(13af7ae5a875439e).(j)); ++j) |
| 258 | ; |
| 259 | result =cxx . . $ QString#`operator=`(4f35bf974e7f8568). result.leftcxx . . $ QString#left(3f3c3d0e9c0eb37f).(j); |
| 260 | } |
| 261 | return resultcxx . . $ QString#QString(132dd6869045752b).; |
| 262 | } |
| 263 | |
| 264 | void QScriptDebuggerConsoleWidgetPrivatecxx . . $ QScriptDebuggerConsoleWidgetPrivate#::_q_onCompletionTaskFinishedcxx . . $ QScriptDebuggerConsoleWidgetPrivate#_q_onCompletionTaskFinished(49f6e7a06ebc5aa8).() |
| 265 | { |
| 266 | QScriptCompletionTaskInterfacecxx . . $ QScriptCompletionTaskInterface# *task = 0; |
| 267 | task = qobject_castcxx . . $ qobject_cast(b02bbc1e419d999d).<QScriptCompletionTaskInterfacecxx . . $ QScriptCompletionTaskInterface#*>(q_funccxx . . $ QScriptDebuggerConsoleWidgetPrivate#q_func(8a10b84ab1586854).()->sendercxx . . $ QObject#sender(2dbb680a34285c44).()); |
| 268 | if (task->resultCountcxx . . $ QScriptCompletionTaskInterface#resultCount(455f465bc33b4cdf).() == 1) { |
| 269 | QStringcxx . . $ QString# completion = task->resultAtcxx . . $ QScriptCompletionTaskInterface#resultAt(3f3c3d0e9c0eb37f).(0); |
| 270 | completion.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(task->appendixcxx . . $ QScriptCompletionTaskInterface#appendix(6ef7b6c27b00b43d).()); |
| 271 | QStringcxx . . $ QString# tmp = commandLinecxx . . $ QScriptDebuggerConsoleWidgetPrivate#commandLine.->inputcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#input(6ef7b6c27b00b43d).(); |
| 272 | tmp.removecxx . . $ QString#remove(6483560ce2afa901).(task->positioncxx . . $ QScriptCompletionTaskInterface#position(455f465bc33b4cdf).(), task->lengthcxx . . $ QScriptCompletionTaskInterface#length(455f465bc33b4cdf).()); |
| 273 | tmp.insertcxx . . $ QString#insert(2bb32e75202d9675).(task->positioncxx . . $ QScriptCompletionTaskInterface#position(455f465bc33b4cdf).(), completion); |
| 274 | commandLinecxx . . $ QScriptDebuggerConsoleWidgetPrivate#commandLine.->setInputcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#setInput(3520e46b33348bf6).(tmp); |
| 275 | } else if (task->resultCountcxx . . $ QScriptCompletionTaskInterface#resultCount(455f465bc33b4cdf).() > 1) { |
| 276 | { |
| 277 | QStringListcxx . . $ QStringList# lstcxx . . $ QStringList#QStringList(ced63f7c635d850d).; |
| 278 | for (int i = 0; i < task->resultCountcxx . . $ QScriptCompletionTaskInterface#resultCount(455f465bc33b4cdf).(); ++i) |
| 279 | lst.append(task->resultAtcxx . . $ QScriptCompletionTaskInterface#resultAt(3f3c3d0e9c0eb37f).(i).midcxx . . $ QString#mid(44b7563da18aea72).(task->lengthcxx . . $ QScriptCompletionTaskInterface#length(455f465bc33b4cdf).())); |
| 280 | stdcxx . . $ std/::sortcxx . . $ std/sort(249673c20e2b8d5).(lst.begin(), lst.end(), lengthLessThancxx . . $ lengthLessThan(edf9e4f73813982f).); |
| 281 | QStringcxx . . $ QString# lcp = longestCommonPrefixcxx . . $ longestCommonPrefix(e42956c8b94252dd).(lst); |
| 282 | if (!lcp.isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) { |
| 283 | QStringcxx . . $ QString# tmp = commandLinecxx . . $ QScriptDebuggerConsoleWidgetPrivate#commandLine.->inputcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#input(6ef7b6c27b00b43d).(); |
| 284 | tmp.insertcxx . . $ QString#insert(2bb32e75202d9675).(task->positioncxx . . $ QScriptCompletionTaskInterface#position(455f465bc33b4cdf).() + task->lengthcxx . . $ QScriptCompletionTaskInterface#length(455f465bc33b4cdf).(), lcp); |
| 285 | commandLinecxx . . $ QScriptDebuggerConsoleWidgetPrivate#commandLine.->setInputcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#setInput(3520e46b33348bf6).(tmp); |
| 286 | } |
| 287 | } |
| 288 | |
| 289 | outputEditcxx . . $ QScriptDebuggerConsoleWidgetPrivate#outputEdit.->appendPlainTextcxx . . $ QPlainTextEdit#appendPlainText(3520e46b33348bf6).(QStringcxx . . $ QString#::fromLatin1cxx . . $ QString#fromLatin1(5ac70cc0fa2a874e).("%0 %1") |
| 290 | .argcxx . . $ QString#arg(bc823072288cbbb5).(commandLinecxx . . $ QScriptDebuggerConsoleWidgetPrivate#commandLine.->promptcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#prompt(6ef7b6c27b00b43d).()).argcxx . . $ QString#arg(bc823072288cbbb5).(commandLinecxx . . $ QScriptDebuggerConsoleWidgetPrivate#commandLine.->inputcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#input(6ef7b6c27b00b43d).())); |
| 291 | int maxLength = 0; |
| 292 | for (int i = 0; i < task->resultCountcxx . . $ QScriptCompletionTaskInterface#resultCount(455f465bc33b4cdf).(); ++i) |
| 293 | maxLength = qMaxcxx . . $ qMax(2a338fce5842aa6a).(maxLength, task->resultAtcxx . . $ QScriptCompletionTaskInterface#resultAt(3f3c3d0e9c0eb37f).(i).lengthcxx . . $ QString#length(455f465bc33b4cdf).()); |
| 294 | Q_ASSERTcxx . . $ `<external>/15045578679651060896/qglobal.h:859:13`!(maxLength > 0); |
| 295 | int tab = 8; |
| 296 | int columns = qMaxcxx . . $ qMax(2a338fce5842aa6a).(1, outputEditcxx . . $ QScriptDebuggerConsoleWidgetPrivate#outputEdit.->charactersPerLinecxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/QScriptDebuggerConsoleWidgetOutputEdit#charactersPerLine(455f465bc33b4cdf).() / (maxLength + tab)); |
| 297 | QStringcxx . . $ QString# msgcxx . . $ QString#QString(ced63f7c635d850d).; |
| 298 | for (int i = 0; i < task->resultCountcxx . . $ QScriptCompletionTaskInterface#resultCount(455f465bc33b4cdf).(); ++i) { |
| 299 | if (i != 0) { |
| 300 | if ((i % columns) == 0) { |
| 301 | outputEditcxx . . $ QScriptDebuggerConsoleWidgetPrivate#outputEdit.->appendPlainTextcxx . . $ QPlainTextEdit#appendPlainText(3520e46b33348bf6).(msg); |
| 302 | msg.clearcxx . . $ QString#clear(49f6e7a06ebc5aa8).(); |
| 303 | } else { |
| 304 | int pad = maxLength + tab - (msg.lengthcxx . . $ QString#length(455f465bc33b4cdf).() % (maxLength + tab)); |
| 305 | msg.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QStringcxx . . $ QString#QString(96e7cefa75f5b4f8).(pad, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' '))); |
| 306 | } |
| 307 | } |
| 308 | msg.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(task->resultAtcxx . . $ QScriptCompletionTaskInterface#resultAt(3f3c3d0e9c0eb37f).(i)); |
| 309 | } |
| 310 | if (!msg.isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) |
| 311 | outputEditcxx . . $ QScriptDebuggerConsoleWidgetPrivate#outputEdit.->appendPlainTextcxx . . $ QPlainTextEdit#appendPlainText(3520e46b33348bf6).(msg); |
| 312 | outputEditcxx . . $ QScriptDebuggerConsoleWidgetPrivate#outputEdit.->scrollToBottomcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/QScriptDebuggerConsoleWidgetOutputEdit#scrollToBottom(49f6e7a06ebc5aa8).(); |
| 313 | } |
| 314 | task->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).(); |
| 315 | } |
| 316 | |
| 317 | QScriptDebuggerConsoleWidgetcxx . . $ QScriptDebuggerConsoleWidget#::QScriptDebuggerConsoleWidgetcxx . . $ QScriptDebuggerConsoleWidget#QScriptDebuggerConsoleWidget(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent) |
| 318 | : QScriptDebuggerConsoleWidgetInterfacecxx . . $ QScriptDebuggerConsoleWidgetInterface#(*new QScriptDebuggerConsoleWidgetPrivatecxx . . $ QScriptDebuggerConsoleWidgetPrivate#QScriptDebuggerConsoleWidgetPrivate(49f6e7a06ebc5aa8)., parent, {}) |
| 319 | { |
| 320 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(QScriptDebuggerConsoleWidget); |
| 321 | d->commandLinecxx . . $ QScriptDebuggerConsoleWidgetPrivate#commandLine. = new CommandLinecxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#(); |
| 322 | d->commandLinecxx . . $ QScriptDebuggerConsoleWidgetPrivate#commandLine.->setPromptcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#setPrompt(3520e46b33348bf6).(QStringcxx . . $ QString#::fromLatin1cxx . . $ QString#fromLatin1(5ac70cc0fa2a874e).("qsdb>")); |
| 323 | d->outputEditcxx . . $ QScriptDebuggerConsoleWidgetPrivate#outputEdit. = new QScriptDebuggerConsoleWidgetOutputEditcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/QScriptDebuggerConsoleWidgetOutputEdit#(); |
| 324 | QVBoxLayoutcxx . . $ QVBoxLayout# *vbox = new QVBoxLayout(this); |
| 325 | vbox->setSpacingcxx . . $ QBoxLayout#setSpacing(d4f767463ce0a6b3).(0); |
| 326 | vbox->setContentsMarginscxx . . $ QLayout#setContentsMargins(748afa4755bc9595).(0, 0, 0, 0); |
| 327 | vbox->addWidgetcxx . . $ QBoxLayout#addWidget(d39963fa34d6acb).(d->outputEditcxx . . $ QScriptDebuggerConsoleWidgetPrivate#outputEdit.); |
| 328 | vbox->addWidgetcxx . . $ QBoxLayout#addWidget(d39963fa34d6acb).(d->commandLinecxx . . $ QScriptDebuggerConsoleWidgetPrivate#commandLine.); |
| 329 | |
| 330 | #if 0 |
| 331 | QString sheet = QString::fromLatin1("background-color: black;" |
| 332 | "color: aquamarine;" |
| 333 | "font-size: 14px;" |
| 334 | "font-family: \"Monospace\""); |
| 335 | #endif |
| 336 | #ifndef QT_NO_STYLE_STYLESHEET |
| 337 | QStringcxx . . $ QString# sheet = QStringcxx . . $ QString#::fromLatin1cxx . . $ QString#fromLatin1(5ac70cc0fa2a874e).("font-size: 14px; font-family: \"Monospace\";"); |
| 338 | setStyleSheetcxx . . $ QWidget#setStyleSheet(3520e46b33348bf6).(sheet); |
| 339 | #endif |
| 340 | |
| 341 | QObjectcxx . . $ QObject#::connectcxx . . $ QObject#connect(835f87066c895669).(d->commandLinecxx . . $ QScriptDebuggerConsoleWidgetPrivate#commandLine., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(lineEntered(QString)), |
| 342 | this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(_q_onLineEntered(QString))); |
| 343 | QObjectcxx . . $ QObject#::connectcxx . . $ QObject#connect(835f87066c895669).(d->commandLinecxx . . $ QScriptDebuggerConsoleWidgetPrivate#commandLine., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(lineEdited(QString)), |
| 344 | this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(_q_onLineEdited(QString))); |
| 345 | } |
| 346 | |
| 347 | QScriptDebuggerConsoleWidgetcxx . . $ QScriptDebuggerConsoleWidget#::~cxx . . $ QScriptDebuggerConsoleWidget#`~QScriptDebuggerConsoleWidget`(ced63f7c635d850d).QScriptDebuggerConsoleWidgetcxx . . $ QScriptDebuggerConsoleWidget#() |
| 348 | { |
| 349 | } |
| 350 | |
| 351 | void QScriptDebuggerConsoleWidgetcxx . . $ QScriptDebuggerConsoleWidget#::messagecxx . . $ QScriptDebuggerConsoleWidget#message(2525eba6d4edee60).( |
| 352 | QtMsgTypecxx . . $ QtMsgType# type, const QStringcxx . . $ QString# &text, const QStringcxx . . $ QString# &fileName, |
| 353 | int lineNumber, int columnNumber, const QVariantcxx . . $ QVariant# &/*data*/) |
| 354 | { |
| 355 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(QScriptDebuggerConsoleWidget); |
| 356 | QStringcxx . . $ QString# msgcxx . . $ QString#QString(ced63f7c635d850d).; |
| 357 | if (!fileName.isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).() || (lineNumber != -1)) { |
| 358 | if (!fileName.isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) |
| 359 | msg.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(fileName); |
| 360 | else |
| 361 | msg.appendcxx . . $ QString#append(10913c921d46e09a).(QLatin1Stringcxx . . $ QLatin1String#QLatin1String(aac1607cfe1c1740).("<noname>")); |
| 362 | if (lineNumber != -1) { |
| 363 | msg.appendcxx . . $ QString#append(3a2ffbdf8ecc25e2).(QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(':')); |
| 364 | msg.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(lineNumber)); |
| 365 | if (columnNumber != -1) { |
| 366 | msg.appendcxx . . $ QString#append(3a2ffbdf8ecc25e2).(QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(':')); |
| 367 | msg.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(columnNumber)); |
| 368 | } |
| 369 | } |
| 370 | msg.appendcxx . . $ QString#append(10913c921d46e09a).(QLatin1Stringcxx . . $ QLatin1String#QLatin1String(aac1607cfe1c1740).(": ")); |
| 371 | } |
| 372 | msg.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(text); |
| 373 | QTextCharFormatcxx . . $ QTextCharFormat# oldFmt = d->outputEditcxx . . $ QScriptDebuggerConsoleWidgetPrivate#outputEdit.->currentCharFormatcxx . . $ QPlainTextEdit#currentCharFormat(268dbcd0ed66b30c).(); |
| 374 | QTextCharFormatcxx . . $ QTextCharFormat# fmt(oldFmt); |
| 375 | if (type == QtCriticalMsgcxx . . $ QtCriticalMsg.) { |
| 376 | fmt.setForegroundcxx . . $ QTextFormat#setForeground(ffc9f5d0bda78261).(Qtcxx . . $ Qt/::redcxx . . $ Qt/red.); |
| 377 | d->outputEditcxx . . $ QScriptDebuggerConsoleWidgetPrivate#outputEdit.->setCurrentCharFormatcxx . . $ QPlainTextEdit#setCurrentCharFormat(dd8d5568386b23bd).(fmt); |
| 378 | } |
| 379 | d->outputEditcxx . . $ QScriptDebuggerConsoleWidgetPrivate#outputEdit.->appendPlainTextcxx . . $ QPlainTextEdit#appendPlainText(3520e46b33348bf6).(msg); |
| 380 | d->outputEditcxx . . $ QScriptDebuggerConsoleWidgetPrivate#outputEdit.->setCurrentCharFormatcxx . . $ QPlainTextEdit#setCurrentCharFormat(dd8d5568386b23bd).(oldFmt); |
| 381 | d->outputEditcxx . . $ QScriptDebuggerConsoleWidgetPrivate#outputEdit.->scrollToBottomcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/QScriptDebuggerConsoleWidgetOutputEdit#scrollToBottom(49f6e7a06ebc5aa8).(); |
| 382 | } |
| 383 | |
| 384 | void QScriptDebuggerConsoleWidgetcxx . . $ QScriptDebuggerConsoleWidget#::setLineContinuationModecxx . . $ QScriptDebuggerConsoleWidget#setLineContinuationMode(b45ddcbc8423892c).(bool enabled) |
| 385 | { |
| 386 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(QScriptDebuggerConsoleWidget); |
| 387 | QStringcxx . . $ QString# prompt = enabled |
| 388 | ? QStringcxx . . $ QString#::fromLatin1cxx . . $ QString#fromLatin1(5ac70cc0fa2a874e).("....") |
| 389 | : QStringcxx . . $ QString#::fromLatin1cxx . . $ QString#fromLatin1(5ac70cc0fa2a874e).("qsdb>"); |
| 390 | d->commandLinecxx . . $ QScriptDebuggerConsoleWidgetPrivate#commandLine.->setPromptcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#setPrompt(3520e46b33348bf6).(prompt); |
| 391 | } |
| 392 | |
| 393 | void QScriptDebuggerConsoleWidgetcxx . . $ QScriptDebuggerConsoleWidget#::clearcxx . . $ QScriptDebuggerConsoleWidget#clear(49f6e7a06ebc5aa8).() |
| 394 | { |
| 395 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(QScriptDebuggerConsoleWidget); |
| 396 | d->outputEditcxx . . $ QScriptDebuggerConsoleWidgetPrivate#outputEdit.->clearcxx . . $ QPlainTextEdit#clear(49f6e7a06ebc5aa8).(); |
| 397 | } |
| 398 | |
| 399 | void QScriptDebuggerConsoleWidgetcxx . . $ QScriptDebuggerConsoleWidget#::keyPressEventcxx . . $ QScriptDebuggerConsoleWidget#keyPressEvent(c92999c1b6b09cc0).(QKeyEventcxx . . $ QKeyEvent# *event) |
| 400 | { |
| 401 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(QScriptDebuggerConsoleWidget); |
| 402 | if (event->keycxx . . $ QKeyEvent#key(455f465bc33b4cdf).() == Qtcxx . . $ Qt/::Key_Upcxx . . $ Qt/Key_Up.) { |
| 403 | if (d->historyIndexcxx . . $ QScriptDebuggerConsoleWidgetPrivate#historyIndex.+1 ==cxx . . $ `operator==`(abb235a625a921b3). d->historian->historyCount()) |
| 404 | return; |
| 405 | QStringcxx . . $ QString# cmd = d->historian->historyAt(++d->historyIndexcxx . . $ QScriptDebuggerConsoleWidgetPrivate#historyIndex.); |
| 406 | d->commandLinecxx . . $ QScriptDebuggerConsoleWidgetPrivate#commandLine.->setInputcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#setInput(3520e46b33348bf6).(cmd); |
| 407 | } else if (event->keycxx . . $ QKeyEvent#key(455f465bc33b4cdf).() == Qtcxx . . $ Qt/::Key_Downcxx . . $ Qt/Key_Down.) { |
| 408 | if (d->historyIndexcxx . . $ QScriptDebuggerConsoleWidgetPrivate#historyIndex. == -1) { |
| 409 | // nothing to do |
| 410 | } else if (d->historyIndexcxx . . $ QScriptDebuggerConsoleWidgetPrivate#historyIndex. == 0) { |
| 411 | d->commandLinecxx . . $ QScriptDebuggerConsoleWidgetPrivate#commandLine.->setInputcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#setInput(3520e46b33348bf6).(d->newInputcxx . . $ QScriptDebuggerConsoleWidgetPrivate#newInput.); |
| 412 | --d->historyIndexcxx . . $ QScriptDebuggerConsoleWidgetPrivate#historyIndex.; |
| 413 | } else { |
| 414 | QStringcxx . . $ QString# cmd = d->historian->historyAt(--d->historyIndexcxx . . $ QScriptDebuggerConsoleWidgetPrivate#historyIndex.); |
| 415 | d->commandLinecxx . . $ QScriptDebuggerConsoleWidgetPrivate#commandLine.->setInputcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#setInput(3520e46b33348bf6).(cmd); |
| 416 | } |
| 417 | } else if (event->keycxx . . $ QKeyEvent#key(455f465bc33b4cdf).() == Qtcxx . . $ Qt/::Key_Tabcxx . . $ Qt/Key_Tab.) { |
| 418 | QScriptCompletionTaskInterfacecxx . . $ QScriptCompletionTaskInterface# *task = 0; |
| 419 | task = d->completionProvider->createCompletionTask( |
| 420 | d->commandLinecxx . . $ QScriptDebuggerConsoleWidgetPrivate#commandLine.->inputcxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#input(6ef7b6c27b00b43d).(), d->commandLinecxx . . $ QScriptDebuggerConsoleWidgetPrivate#commandLine.->cursorPositioncxx . . $ `$anonymous_namespace_src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp`/CommandLine#cursorPosition(455f465bc33b4cdf).(), |
| 421 | /*frameIndex=*/-1, // current frame |
| 422 | QScriptCompletionProviderInterfacecxx . . $ QScriptCompletionProviderInterface#::ConsoleCommandCompletioncxx . . $ QScriptCompletionProviderInterface#ConsoleCommandCompletion.); |
| 423 | QObjectcxx . . $ QObject#::connectcxx . . $ QObject#connect(835f87066c895669).(task, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(finished()), |
| 424 | this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(_q_onCompletionTaskFinished())); |
| 425 | task->startcxx . . $ QScriptCompletionTaskInterface#start(49f6e7a06ebc5aa8).(); |
| 426 | } else { |
| 427 | QScriptDebuggerConsoleWidgetInterfacecxx . . $ QScriptDebuggerConsoleWidgetInterface#::keyPressEventcxx . . $ QWidget#keyPressEvent(c92999c1b6b09cc0).(event); |
| 428 | } |
| 429 | } |
| 430 | |
| 431 | bool QScriptDebuggerConsoleWidgetcxx . . $ QScriptDebuggerConsoleWidget#::focusNextPrevChildcxx . . $ QScriptDebuggerConsoleWidget#focusNextPrevChild(efaadfb7dc14930a).(bool b) |
| 432 | { |
| 433 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(QScriptDebuggerConsoleWidget); |
| 434 | if (d->outputEditcxx . . $ QScriptDebuggerConsoleWidgetPrivate#outputEdit.->hasFocuscxx . . $ QWidget#hasFocus(50ce9a9e25b4a850).()) |
| 435 | return QScriptDebuggerConsoleWidgetInterfacecxx . . $ QScriptDebuggerConsoleWidgetInterface#::focusNextPrevChildcxx . . $ QWidget#focusNextPrevChild(efaadfb7dc14930a).(b); |
| 436 | else |
| 437 | return false; |
| 438 | } |
| 439 | |
| 440 | QT_END_NAMESPACEcxx . . $ `<external>/15045578679651060896/qglobal.h:149:10`! |
| 441 | |
| 442 | #include "qscriptdebuggerconsolewidget.moc"cxx . . $ `<file>/src/scripttools/.moc/qscriptdebuggerconsolewidget.moc`/ |
| 443 | |
| 444 | #include "moc_qscriptdebuggerconsolewidget_p.cpp"cxx . . $ `<file>/src/scripttools/.moc/moc_qscriptdebuggerconsolewidget_p.cpp`/ |