| 1 | |
| 2 | // File: mainwindow.cpp |
| 3 | /* |
| 4 | Pep8-1 is a virtual machine for writing machine language and assembly |
| 5 | language programs. |
| 6 | |
| 7 | Copyright (C) 2009 J. Stanley Warford, Pepperdine University |
| 8 | |
| 9 | This program is free software: you can redistribute it and/or modify |
| 10 | it under the terms of the GNU General Public License as published by |
| 11 | the Free Software Foundation, either version 3 of the License, or |
| 12 | (at your option) any later version. |
| 13 | |
| 14 | This program is distributed in the hope that it will be useful, |
| 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | GNU General Public License for more details. |
| 18 | |
| 19 | You should have received a copy of the GNU General Public License |
| 20 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 21 | */ |
| 22 | #include <QMessageBox> |
| 23 | #include <QDesktopServices> |
| 24 | #include <QFileDialog> |
| 25 | #include <QCloseEvent> |
| 26 | #include <QUrl> |
| 27 | #include <QSettings> |
| 28 | #include <QApplication> |
| 29 | #include <QPrinter> |
| 30 | #include <QPrintDialog> |
| 31 | #include <QFontDialog> |
| 32 | #include <QTextDocument> |
| 33 | #include <QFontDatabase> |
| 34 | #include <QTextStream> |
| 35 | #include <QDesktopWidget> |
| 36 | #include <QTextCodec> |
| 37 | #include "mainwindow.h"cxx . . $ `<file>/mainwindow.h`/ |
| 38 | #include "ui_mainwindow.h"cxx . . $ `<file>/ui_mainwindow.h`/ |
| 39 | #include "pep.h"cxx . . $ `<file>/pep.h`/ |
| 40 | #include "sim.h"cxx . . $ `<file>/sim.h`/ |
| 41 | |
| 42 | #include <QDebug> |
| 43 | |
| 44 | MainWindowcxx . . $ MainWindow#::MainWindowcxx . . $ MainWindow#MainWindow(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent) |
| 45 | : QMainWindowcxx . . $ QMainWindow#(parent), uicxx . . $ MainWindow#ui.(new Uicxx . . $ Ui/::MainWindowClasscxx . . $ Ui/MainWindowClass#),codeFontcxx . . $ MainWindow#codeFont.(Pepcxx . . $ Pep#::codeFontcxx . . $ Pep#codeFont.,Pepcxx . . $ Pep#::codeFontSizecxx . . $ Pep#codeFontSize.) |
| 46 | { |
| 47 | uicxx . . $ MainWindow#ui.->setupUicxx . . $ Ui_MainWindowClass#setupUi(f2c32f691ede4a4e).(this); |
| 48 | |
| 49 | // Left pane setup |
| 50 | sourceCodePanecxx . . $ MainWindow#sourceCodePane. = new SourceCodePanecxx . . $ SourceCodePane#(uicxx . . $ MainWindow#ui.->codeSplittercxx . . $ Ui_MainWindowClass#codeSplitter.); |
| 51 | delete uicxx . . $ MainWindow#ui.->SourceCodeWidgetPanecxx . . $ Ui_MainWindowClass#SourceCodeWidgetPane.; |
| 52 | objectCodePanecxx . . $ MainWindow#objectCodePane. = new ObjectCodePanecxx . . $ ObjectCodePane#(uicxx . . $ MainWindow#ui.->codeSplittercxx . . $ Ui_MainWindowClass#codeSplitter.); |
| 53 | delete uicxx . . $ MainWindow#ui.->ObjectCodeWidgetPanecxx . . $ Ui_MainWindowClass#ObjectCodeWidgetPane.; |
| 54 | assemblerListingPanecxx . . $ MainWindow#assemblerListingPane. = new AssemblerListingPanecxx . . $ AssemblerListingPane#(uicxx . . $ MainWindow#ui.->codeSplittercxx . . $ Ui_MainWindowClass#codeSplitter.); |
| 55 | delete uicxx . . $ MainWindow#ui.->AssemblerListingWidgetPanecxx . . $ Ui_MainWindowClass#AssemblerListingWidgetPane.; |
| 56 | listingTracePanecxx . . $ MainWindow#listingTracePane. = new ListingTracePanecxx . . $ ListingTracePane#(uicxx . . $ MainWindow#ui.->traceSplittercxx . . $ Ui_MainWindowClass#traceSplitter.); |
| 57 | delete uicxx . . $ MainWindow#ui.->ListingTraceWidgetPanecxx . . $ Ui_MainWindowClass#ListingTraceWidgetPane.; |
| 58 | memoryTracePanecxx . . $ MainWindow#memoryTracePane. = new MemoryTracePanecxx . . $ MemoryTracePane#(uicxx . . $ MainWindow#ui.->traceSplittercxx . . $ Ui_MainWindowClass#traceSplitter.); |
| 59 | delete uicxx . . $ MainWindow#ui.->MemoryTraceWidgetPanecxx . . $ Ui_MainWindowClass#MemoryTraceWidgetPane.; |
| 60 | uicxx . . $ MainWindow#ui.->pepCodeTraceTabcxx . . $ Ui_MainWindowClass#pepCodeTraceTab.->setCurrentIndexcxx . . $ QTabWidget#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 61 | |
| 62 | // Middle pane setup |
| 63 | cpuPanecxx . . $ MainWindow#cpuPane. = new CpuPanecxx . . $ CpuPane#(uicxx . . $ MainWindow#ui.->middleSplittercxx . . $ Ui_MainWindowClass#middleSplitter.); |
| 64 | uicxx . . $ MainWindow#ui.->middleSplittercxx . . $ Ui_MainWindowClass#middleSplitter.->insertWidgetcxx . . $ QSplitter#insertWidget(2a5d9dfebf5c0b7a).(0, cpuPanecxx . . $ MainWindow#cpuPane.); // Move cpu pane to index 0 (above I/O tabs). |
| 65 | delete uicxx . . $ MainWindow#ui.->CpuWidgetPanecxx . . $ Ui_MainWindowClass#CpuWidgetPane.; |
| 66 | inputPanecxx . . $ MainWindow#inputPane. = new InputPanecxx . . $ InputPane#(uicxx . . $ MainWindow#ui.->batchSplittercxx . . $ Ui_MainWindowClass#batchSplitter.); |
| 67 | delete uicxx . . $ MainWindow#ui.->InputWidgetPanecxx . . $ Ui_MainWindowClass#InputWidgetPane.; |
| 68 | outputPanecxx . . $ MainWindow#outputPane. = new OutputPanecxx . . $ OutputPane#(uicxx . . $ MainWindow#ui.->batchSplittercxx . . $ Ui_MainWindowClass#batchSplitter.); |
| 69 | delete uicxx . . $ MainWindow#ui.->OutputWidgetPanecxx . . $ Ui_MainWindowClass#OutputWidgetPane.; |
| 70 | terminalPanecxx . . $ MainWindow#terminalPane. = new TerminalPanecxx . . $ TerminalPane#(uicxx . . $ MainWindow#ui.->terminalSplittercxx . . $ Ui_MainWindowClass#terminalSplitter.); |
| 71 | delete uicxx . . $ MainWindow#ui.->TerminalWidgetPanecxx . . $ Ui_MainWindowClass#TerminalWidgetPane.; |
| 72 | uicxx . . $ MainWindow#ui.->pepInputOutputTabcxx . . $ Ui_MainWindowClass#pepInputOutputTab.->setCurrentIndexcxx . . $ QTabWidget#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 73 | |
| 74 | // Right pane setup |
| 75 | memoryDumpPanecxx . . $ MainWindow#memoryDumpPane. = new MemoryDumpPanecxx . . $ MemoryDumpPane#(uicxx . . $ MainWindow#ui.->horizontalSplittercxx . . $ Ui_MainWindowClass#horizontalSplitter.); |
| 76 | delete uicxx . . $ MainWindow#ui.->MemoryDumpWidgetPanecxx . . $ Ui_MainWindowClass#MemoryDumpWidgetPane.; |
| 77 | |
| 78 | // Dialog boxes setup |
| 79 | redefineMnemonicsDialogcxx . . $ MainWindow#redefineMnemonicsDialog. = new RedefineMnemonicsDialogcxx . . $ RedefineMnemonicsDialog#(this); |
| 80 | helpDialogcxx . . $ MainWindow#helpDialog. = new HelpDialogcxx . . $ HelpDialog#(this); |
| 81 | aboutPepDialogcxx . . $ MainWindow#aboutPepDialog. = new AboutPepcxx . . $ AboutPep#(this); |
| 82 | |
| 83 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(helpDialogcxx . . $ MainWindow#helpDialog., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(helpCopyToSourceButtonClicked())); |
| 84 | |
| 85 | // Byte converter setup |
| 86 | byteConverterDeccxx . . $ MainWindow#byteConverterDec. = new ByteConverterDeccxx . . $ ByteConverterDec#(); |
| 87 | uicxx . . $ MainWindow#ui.->byteConverterToolBarcxx . . $ Ui_MainWindowClass#byteConverterToolBar.->addWidgetcxx . . $ QToolBar#addWidget(e05c3352fc75448e).(byteConverterDeccxx . . $ MainWindow#byteConverterDec.); |
| 88 | byteConverterHexcxx . . $ MainWindow#byteConverterHex. = new ByteConverterHexcxx . . $ ByteConverterHex#(); |
| 89 | uicxx . . $ MainWindow#ui.->byteConverterToolBarcxx . . $ Ui_MainWindowClass#byteConverterToolBar.->addWidgetcxx . . $ QToolBar#addWidget(e05c3352fc75448e).(byteConverterHexcxx . . $ MainWindow#byteConverterHex.); |
| 90 | byteConverterBincxx . . $ MainWindow#byteConverterBin. = new ByteConverterBincxx . . $ ByteConverterBin#(); |
| 91 | uicxx . . $ MainWindow#ui.->byteConverterToolBarcxx . . $ Ui_MainWindowClass#byteConverterToolBar.->addWidgetcxx . . $ QToolBar#addWidget(e05c3352fc75448e).(byteConverterBincxx . . $ MainWindow#byteConverterBin.); |
| 92 | byteConverterCharcxx . . $ MainWindow#byteConverterChar. = new ByteConverterCharcxx . . $ ByteConverterChar#(); |
| 93 | uicxx . . $ MainWindow#ui.->byteConverterToolBarcxx . . $ Ui_MainWindowClass#byteConverterToolBar.->addWidgetcxx . . $ QToolBar#addWidget(e05c3352fc75448e).(byteConverterCharcxx . . $ MainWindow#byteConverterChar.); |
| 94 | byteConverterInstrcxx . . $ MainWindow#byteConverterInstr. = new ByteConverterInstrcxx . . $ ByteConverterInstr#(); |
| 95 | uicxx . . $ MainWindow#ui.->byteConverterToolBarcxx . . $ Ui_MainWindowClass#byteConverterToolBar.->addWidgetcxx . . $ QToolBar#addWidget(e05c3352fc75448e).(byteConverterInstrcxx . . $ MainWindow#byteConverterInstr.); |
| 96 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(byteConverterDeccxx . . $ MainWindow#byteConverterDec., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(textEdited(const QString &)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(slotByteConverterDecEdited(const QString &))); |
| 97 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(byteConverterHexcxx . . $ MainWindow#byteConverterHex., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(textEdited(const QString &)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(slotByteConverterHexEdited(const QString &))); |
| 98 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(byteConverterBincxx . . $ MainWindow#byteConverterBin., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(textEdited(const QString &)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(slotByteConverterBinEdited(const QString &))); |
| 99 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(byteConverterCharcxx . . $ MainWindow#byteConverterChar., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(textEdited(const QString &)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(slotByteConverterCharEdited(const QString &))); |
| 100 | |
| 101 | // Pep tables setup |
| 102 | Pepcxx . . $ Pep#::initEnumMnemonMapscxx . . $ Pep#initEnumMnemonMaps(49f6e7a06ebc5aa8).(); |
| 103 | Pepcxx . . $ Pep#::initAddrModesMapcxx . . $ Pep#initAddrModesMap(49f6e7a06ebc5aa8).(); |
| 104 | Pepcxx . . $ Pep#::initMnemonicMapscxx . . $ Pep#initMnemonicMaps(49f6e7a06ebc5aa8).(); |
| 105 | Pepcxx . . $ Pep#::initDecoderTablescxx . . $ Pep#initDecoderTables(49f6e7a06ebc5aa8).(); |
| 106 | |
| 107 | // Adjust initial configuration |
| 108 | uicxx . . $ MainWindow#ui.->actionView_Code_CPUcxx . . $ Ui_MainWindowClass#actionView_Code_CPU.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 109 | uicxx . . $ MainWindow#ui.->horizontalSplittercxx . . $ Ui_MainWindowClass#horizontalSplitter.->widgetcxx . . $ QSplitter#widget(6d79a97041fa24a7).(2)->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).(); |
| 110 | uicxx . . $ MainWindow#ui.->pepCodeTraceTabcxx . . $ Ui_MainWindowClass#pepCodeTraceTab.->resizecxx . . $ QWidget#resize(1c5f201b4c2f0aba).(QSizecxx . . $ QSize#QSize(c0d38f4800714fae).(800,1)); // Enlarge Code/Trace pane on left. |
| 111 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->resizecxx . . $ QWidget#resize(1c5f201b4c2f0aba).(QSizecxx . . $ QSize#QSize(c0d38f4800714fae).(1, 9001)); // Enlarge Source Code pane. |
| 112 | // memoryDumpPane->resize(QSize(500, 1)); // Enlarges the Memory Dump pane. |
| 113 | |
| 114 | // Install OS into memory |
| 115 | Pepcxx . . $ Pep#::memAddrssToAssemblerListingcxx . . $ Pep#memAddrssToAssemblerListing. = &Pepcxx . . $ Pep#::memAddrssToAssemblerListingOScxx . . $ Pep#memAddrssToAssemblerListingOS.; |
| 116 | Pepcxx . . $ Pep#::listingRowCheckedcxx . . $ Pep#listingRowChecked. = &Pepcxx . . $ Pep#::listingRowCheckedOScxx . . $ Pep#listingRowCheckedOS.; |
| 117 | if (sourceCodePanecxx . . $ MainWindow#sourceCodePane.->installDefaultOscxx . . $ SourceCodePane#installDefaultOs(c9857a73d68e59ba).()) { |
| 118 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->getAssemblerListingListcxx . . $ SourceCodePane#getAssemblerListingList(669a05bc42dd57cc).(); |
| 119 | listingTracePanecxx . . $ MainWindow#listingTracePane.->setListingTracecxx . . $ ListingTracePane#setListingTrace(fbf163fdf621be2d).(sourceCodePanecxx . . $ MainWindow#sourceCodePane.->getAssemblerListingListcxx . . $ SourceCodePane#getAssemblerListingList(669a05bc42dd57cc).(), sourceCodePanecxx . . $ MainWindow#sourceCodePane.->getHasCheckBoxcxx . . $ SourceCodePane#getHasCheckBox(901f99b7efa3626e).()); |
| 120 | uicxx . . $ MainWindow#ui.->statusbarcxx . . $ Ui_MainWindowClass#statusbar.->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("OS installed"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 121 | } |
| 122 | else { |
| 123 | uicxx . . $ MainWindow#ui.->statusbarcxx . . $ Ui_MainWindowClass#statusbar.->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("OS assembly failed"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 124 | } |
| 125 | |
| 126 | // Focus highlighting, actions enable/disable |
| 127 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(qAppcxx . . $ `<external>/6022697617041041825/qapplication.h:70:9`!->instancecxx . . $ QCoreApplication#instance(d43115d48568c255).(), SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(focusChanged(QWidget*, QWidget*)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(mainWindowUtilities(QWidget*, QWidget*))); |
| 128 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(objectCodePanecxx . . $ MainWindow#objectCodePane., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(undoAvailable(bool)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(setUndoability(bool))); |
| 129 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(objectCodePanecxx . . $ MainWindow#objectCodePane., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(redoAvailable(bool)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(setRedoability(bool))); |
| 130 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(sourceCodePanecxx . . $ MainWindow#sourceCodePane., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(undoAvailable(bool)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(setUndoability(bool))); |
| 131 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(sourceCodePanecxx . . $ MainWindow#sourceCodePane., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(redoAvailable(bool)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(setRedoability(bool))); |
| 132 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(inputPanecxx . . $ MainWindow#inputPane., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(undoAvailable(bool)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(setUndoability(bool))); |
| 133 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(inputPanecxx . . $ MainWindow#inputPane., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(redoAvailable(bool)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(setRedoability(bool))); |
| 134 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(terminalPanecxx . . $ MainWindow#terminalPane., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(undoAvailable(bool)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(setUndoability(bool))); |
| 135 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(terminalPanecxx . . $ MainWindow#terminalPane., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(redoAvailable(bool)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(setRedoability(bool))); |
| 136 | |
| 137 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(sourceCodePanecxx . . $ MainWindow#sourceCodePane., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(labelDoubleClicked(Enu::EPane)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(doubleClickedCodeLabel(Enu::EPane))); |
| 138 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(objectCodePanecxx . . $ MainWindow#objectCodePane., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(labelDoubleClicked(Enu::EPane)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(doubleClickedCodeLabel(Enu::EPane))); |
| 139 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(assemblerListingPanecxx . . $ MainWindow#assemblerListingPane., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(labelDoubleClicked(Enu::EPane)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(doubleClickedCodeLabel(Enu::EPane))); |
| 140 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(memoryTracePanecxx . . $ MainWindow#memoryTracePane., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(labelDoubleClicked(Enu::EPane)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(doubleClickedCodeLabel(Enu::EPane))); |
| 141 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(listingTracePanecxx . . $ MainWindow#listingTracePane., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(labelDoubleClicked(Enu::EPane)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(doubleClickedCodeLabel(Enu::EPane))); |
| 142 | |
| 143 | // Simulator signals |
| 144 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(cpuPanecxx . . $ MainWindow#cpuPane., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(updateSimulationView()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(updateSimulationView())); |
| 145 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(cpuPanecxx . . $ MainWindow#cpuPane., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(executionComplete()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(on_actionBuild_Stop_Debugging_triggered())); |
| 146 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(cpuPanecxx . . $ MainWindow#cpuPane., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(appendOutput(QString)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(appendOutput(QString))); |
| 147 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(cpuPanecxx . . $ MainWindow#cpuPane., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(resumeButtonClicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(resumeButtonClicked())); |
| 148 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(cpuPanecxx . . $ MainWindow#cpuPane., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(singleStepButtonClicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(singleStepButtonClicked())); |
| 149 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(cpuPanecxx . . $ MainWindow#cpuPane., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(vonNeumannStepped()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(vonNeumannStepped())); |
| 150 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(cpuPanecxx . . $ MainWindow#cpuPane., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(waitingForInput()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(waitingForInput())); |
| 151 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(terminalPanecxx . . $ MainWindow#terminalPane., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(inputReceived()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(inputReceived())); |
| 152 | |
| 153 | // connect(ui->horizontalSplitter, SIGNAL(splitterMoved(int,int)), this, SLOT(resizeDocWidth(int,int))); |
| 154 | //Handle synchronizing fonts |
| 155 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(this,SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(fontChanged(QFont)),sourceCodePanecxx . . $ MainWindow#sourceCodePane.,SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(onFontChanged(QFont))); |
| 156 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(this,SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(fontChanged(QFont)),objectCodePanecxx . . $ MainWindow#objectCodePane.,SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(onFontChanged(QFont))); |
| 157 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(this,SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(fontChanged(QFont)),assemblerListingPanecxx . . $ MainWindow#assemblerListingPane.,SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(onFontChanged(QFont))); |
| 158 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(this,SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(fontChanged(QFont)),listingTracePanecxx . . $ MainWindow#listingTracePane.,SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(onFontChanged(QFont))); |
| 159 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(this,SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(fontChanged(QFont)),memoryTracePanecxx . . $ MainWindow#memoryTracePane.,SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(onFontChanged(QFont))); |
| 160 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(this,SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(fontChanged(QFont)),inputPanecxx . . $ MainWindow#inputPane.,SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(onFontChanged(QFont))); |
| 161 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(this,SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(fontChanged(QFont)),outputPanecxx . . $ MainWindow#outputPane.,SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(onFontChanged(QFont))); |
| 162 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(this,SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(fontChanged(QFont)),terminalPanecxx . . $ MainWindow#terminalPane.,SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(onFontChanged(QFont))); |
| 163 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(this,SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(fontChanged(QFont)),memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.,SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(onFontChanged(QFont))); |
| 164 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(this,SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(fontChanged(QFont)),helpDialogcxx . . $ MainWindow#helpDialog.,SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(onFontChanged(QFont))); |
| 165 | readSettingscxx . . $ MainWindow#readSettings(49f6e7a06ebc5aa8).(); |
| 166 | |
| 167 | // Recent files |
| 168 | for (int i = 0; i < MaxRecentFilescxx . . $ MainWindow#MaxRecentFiles.; ++i) { |
| 169 | recentFileActscxx . . $ MainWindow#recentFileActs.[i] = new QActioncxx . . $ QAction#QAction(749de1b6ae65bddd).(this); |
| 170 | recentFileActscxx . . $ MainWindow#recentFileActs.[i]->setVisiblecxx . . $ QAction#setVisible(b45ddcbc8423892c).(false); |
| 171 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(recentFileActscxx . . $ MainWindow#recentFileActs.[i], SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(triggered()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(openRecentFile())); |
| 172 | } |
| 173 | separatorActcxx . . $ MainWindow#separatorAct. = uicxx . . $ MainWindow#ui.->menu_Filecxx . . $ Ui_MainWindowClass#menu_File.->addSeparatorcxx . . $ QMenu#addSeparator(a590eff9f1ec9a95).(); |
| 174 | for (int i = 0; i < MaxRecentFilescxx . . $ MainWindow#MaxRecentFiles.; ++i) |
| 175 | uicxx . . $ MainWindow#ui.->menu_Filecxx . . $ Ui_MainWindowClass#menu_File.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(recentFileActscxx . . $ MainWindow#recentFileActs.[i]); |
| 176 | updateRecentFileActionscxx . . $ MainWindow#updateRecentFileActions(49f6e7a06ebc5aa8).(); |
| 177 | |
| 178 | memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->refreshMemorycxx . . $ MemoryDumpPane#refreshMemory(49f6e7a06ebc5aa8).(); |
| 179 | |
| 180 | qAppcxx . . $ `<external>/6022697617041041825/qapplication.h:70:9`!->installEventFiltercxx . . $ QObject#installEventFilter(749de1b6ae65bddd).(this); |
| 181 | memoryTracePanecxx . . $ MainWindow#memoryTracePane.->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).(); // Hidden until successful assembly with trace tags. |
| 182 | } |
| 183 | |
| 184 | MainWindowcxx . . $ MainWindow#::~cxx . . $ MainWindow#`~MainWindow`(ced63f7c635d850d).MainWindowcxx . . $ MainWindow#() |
| 185 | { |
| 186 | delete uicxx . . $ MainWindow#ui.; |
| 187 | } |
| 188 | |
| 189 | // Protected closeEvent |
| 190 | void MainWindowcxx . . $ MainWindow#::closeEventcxx . . $ MainWindow#closeEvent(642e80679aeb34f8).(QCloseEventcxx . . $ QCloseEvent# *event) |
| 191 | { |
| 192 | if (maybeSaveSourcecxx . . $ MainWindow#maybeSaveSource(c9857a73d68e59ba).() && maybeSaveObjectcxx . . $ MainWindow#maybeSaveObject(c9857a73d68e59ba).()) { |
| 193 | writeSettingscxx . . $ MainWindow#writeSettings(49f6e7a06ebc5aa8).(); |
| 194 | cpuPanecxx . . $ MainWindow#cpuPane.->interruptExecutioncxx . . $ CpuPane#interruptExecution(49f6e7a06ebc5aa8).(); |
| 195 | event->acceptcxx . . $ QEvent#accept(49f6e7a06ebc5aa8).(); |
| 196 | } |
| 197 | else { |
| 198 | event->ignorecxx . . $ QEvent#ignore(49f6e7a06ebc5aa8).(); |
| 199 | } |
| 200 | } |
| 201 | |
| 202 | // Save methods |
| 203 | bool MainWindowcxx . . $ MainWindow#::saveSourcecxx . . $ MainWindow#saveSource(c9857a73d68e59ba).() |
| 204 | { |
| 205 | if (curSourceFilecxx . . $ MainWindow#curSourceFile..isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) { |
| 206 | return on_actionFile_Save_Source_As_triggeredcxx . . $ MainWindow#on_actionFile_Save_Source_As_triggered(c9857a73d68e59ba).(); |
| 207 | } |
| 208 | else { |
| 209 | return saveFileSourcecxx . . $ MainWindow#saveFileSource(e1defb592416720d).(curSourceFilecxx . . $ MainWindow#curSourceFile.); |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | bool MainWindowcxx . . $ MainWindow#::saveObjectcxx . . $ MainWindow#saveObject(c9857a73d68e59ba).() |
| 214 | { |
| 215 | if (curObjectFilecxx . . $ MainWindow#curObjectFile..isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) { |
| 216 | return on_actionFile_Save_Object_As_triggeredcxx . . $ MainWindow#on_actionFile_Save_Object_As_triggered(c9857a73d68e59ba).(); |
| 217 | } |
| 218 | else { |
| 219 | return saveFileObjectcxx . . $ MainWindow#saveFileObject(e1defb592416720d).(curObjectFilecxx . . $ MainWindow#curObjectFile.); |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | void MainWindowcxx . . $ MainWindow#::readSettingscxx . . $ MainWindow#readSettings(49f6e7a06ebc5aa8).() |
| 224 | { |
| 225 | QSettingscxx . . $ QSettings# settingscxx . . $ QSettings#QSettings(b05324713c9ab95e).("cslab.pepperdine"cxx . . $ QString#QString(85c52e162fed56f9).,"Pep8"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 226 | settings.beginGroupcxx . . $ QSettings#beginGroup(3520e46b33348bf6).("MainWindow"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 227 | QDesktopWidgetcxx . . $ QDesktopWidget# *desktop = QApplicationcxx . . $ QApplication#::desktopcxx . . $ QApplication#desktop(b97132749444d255).(); |
| 228 | int width = static_cast<int>(desktop->widthcxx . . $ QWidget#width(455f465bc33b4cdf).() * 0.80); |
| 229 | int height = static_cast<int>(desktop->heightcxx . . $ QWidget#height(455f465bc33b4cdf).() * 0.70); |
| 230 | int screenWidth = desktop->widthcxx . . $ QWidget#width(455f465bc33b4cdf).(); |
| 231 | int screenHeight = desktop->heightcxx . . $ QWidget#height(455f465bc33b4cdf).(); |
| 232 | QPointcxx . . $ QPoint# pos = settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("pos"cxx . . $ QString#QString(85c52e162fed56f9)., QPointcxx . . $ QVariant#QVariant(4f9e9534be445c03).((screenWidth - width) / 2, (screenHeight - height) / 2)).toPointcxx . . $ QVariant#toPoint(75d69cfbd3c4b2dd).(); |
| 233 | QSizecxx . . $ QSize# size = settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("size"cxx . . $ QString#QString(85c52e162fed56f9)., QSizecxx . . $ QVariant#QVariant(1c5f201b4c2f0aba).(width, height)).toSizecxx . . $ QVariant#toSize(4b3b776e5ee2b367).(); |
| 234 | if (Pepcxx . . $ Pep#::getSystemcxx . . $ Pep#getSystem(4365c3963150523e).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "Mac") { |
| 235 | pos.setYcxx . . $ QPoint#setY(d4f767463ce0a6b3).(pos.ycxx . . $ QPoint#y(455f465bc33b4cdf).() + 20); // Every time the app launches, it seems OSX moves the window 20 pixels up the screen, so we compensate here. |
| 236 | } |
| 237 | else if (Pepcxx . . $ Pep#::getSystemcxx . . $ Pep#getSystem(4365c3963150523e).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "Linux") { // Linux has a similar issue, so compensate here. |
| 238 | pos.setYcxx . . $ QPoint#setY(d4f767463ce0a6b3).(pos.ycxx . . $ QPoint#y(455f465bc33b4cdf).() - 20); |
| 239 | } |
| 240 | if (pos.xcxx . . $ QPoint#x(455f465bc33b4cdf).() > width || pos.xcxx . . $ QPoint#x(455f465bc33b4cdf).() < 0 || pos.ycxx . . $ QPoint#y(455f465bc33b4cdf).() > height || pos.ycxx . . $ QPoint#y(455f465bc33b4cdf).() < 0) { |
| 241 | pos =cxx . . $ QPoint#`operator=`(2950c70ea382b4e5). QPointcxx . . $ QPoint#QPoint(3e454b8ccf442868).(0, 0); |
| 242 | } |
| 243 | resizecxx . . $ QWidget#resize(1c5f201b4c2f0aba).(size); |
| 244 | movecxx . . $ QWidget#move(4f9e9534be445c03).(pos); |
| 245 | QVariantcxx . . $ QVariant# val = settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("font"cxx . . $ QString#QString(85c52e162fed56f9).,codeFontcxx . . $ MainWindow#codeFont.); |
| 246 | if(val.canConvertcxx . . $ QVariant#canConvert(50ce9a9e25b4a850).<QFontcxx . . $ QFont#>()) |
| 247 | { |
| 248 | codeFontcxx . . $ MainWindow#codeFont. =cxx . . $ QFont#`operator=`(d35b8cc88ecbd547). qvariant_castcxx . . $ qvariant_cast(c08a979ef106920f).<QFontcxx . . $ QFont#>(val); |
| 249 | } |
| 250 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! fontChangedcxx . . $ MainWindow#fontChanged(19c44da831d1de49).(codeFontcxx . . $ QFont#QFont(d0a4bd0c8524b912).); |
| 251 | curPathcxx . . $ MainWindow#curPath. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("filePath"cxx . . $ QString#QString(85c52e162fed56f9)., QDircxx . . $ QVariant#QVariant(3520e46b33348bf6).::homePathcxx . . $ QDir#homePath(4365c3963150523e).()).toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).(); |
| 252 | settings.endGroupcxx . . $ QSettings#endGroup(49f6e7a06ebc5aa8).(); |
| 253 | } |
| 254 | |
| 255 | void MainWindowcxx . . $ MainWindow#::writeSettingscxx . . $ MainWindow#writeSettings(49f6e7a06ebc5aa8).() |
| 256 | { |
| 257 | QSettingscxx . . $ QSettings# settingscxx . . $ QSettings#QSettings(b05324713c9ab95e).("cslab.pepperdine"cxx . . $ QString#QString(85c52e162fed56f9).,"Pep8"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 258 | settings.beginGroupcxx . . $ QSettings#beginGroup(3520e46b33348bf6).("MainWindow"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 259 | settings.setValuecxx . . $ QSettings#setValue(1c60a90c724e6bfb).("pos"cxx . . $ QString#QString(85c52e162fed56f9)., poscxx . . $ QVariant#QVariant(4f9e9534be445c03).()); |
| 260 | settings.setValuecxx . . $ QSettings#setValue(1c60a90c724e6bfb).("size"cxx . . $ QString#QString(85c52e162fed56f9)., sizecxx . . $ QVariant#QVariant(1c5f201b4c2f0aba).()); |
| 261 | settings.setValuecxx . . $ QSettings#setValue(1c60a90c724e6bfb).("filePath"cxx . . $ QString#QString(85c52e162fed56f9)., curPathcxx . . $ QVariant#QVariant(3520e46b33348bf6).); |
| 262 | settings.setValuecxx . . $ QSettings#setValue(1c60a90c724e6bfb).("font"cxx . . $ QString#QString(85c52e162fed56f9).,codeFontcxx . . $ MainWindow#codeFont.); |
| 263 | settings.endGroupcxx . . $ QSettings#endGroup(49f6e7a06ebc5aa8).(); |
| 264 | } |
| 265 | |
| 266 | bool MainWindowcxx . . $ MainWindow#::maybeSaveSourcecxx . . $ MainWindow#maybeSaveSource(c9857a73d68e59ba).() |
| 267 | { |
| 268 | if (sourceCodePanecxx . . $ MainWindow#sourceCodePane.->isModifiedcxx . . $ SourceCodePane#isModified(c9857a73d68e59ba).()) { |
| 269 | QMessageBoxcxx . . $ QMessageBox#::StandardButtoncxx . . $ QMessageBox#StandardButton# ret; |
| 270 | ret = QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(a9e3742e6f7b4147).(this, "Pep/8"cxx . . $ QString#QString(85c52e162fed56f9)., |
| 271 | "The source code has been modified.\n"cxx . . $ QString#QString(85c52e162fed56f9). |
| 272 | "Do you want to save your changes?", |
| 273 | QMessageBoxcxx . . $ QMessageBox#::Savecxx . . $ QMessageBox#Save. |cxx . . $ `operator|`(67530149e923fc12). QMessageBoxcxx . . $ QMessageBox#::Discardcxx . . $ QMessageBox#Discard. |cxx . . $ QFlags#`operator|`(2cc1994e0be6f18e). QMessageBoxcxx . . $ QMessageBox#::Cancelcxx . . $ QMessageBox#Cancel.); |
| 274 | if (ret == QMessageBoxcxx . . $ QMessageBox#::Savecxx . . $ QMessageBox#Save.) |
| 275 | return saveSourcecxx . . $ MainWindow#saveSource(c9857a73d68e59ba).(); |
| 276 | else if (ret == QMessageBoxcxx . . $ QMessageBox#::Cancelcxx . . $ QMessageBox#Cancel.) |
| 277 | return false; |
| 278 | } |
| 279 | return true; |
| 280 | } |
| 281 | |
| 282 | bool MainWindowcxx . . $ MainWindow#::maybeSaveObjectcxx . . $ MainWindow#maybeSaveObject(c9857a73d68e59ba).() |
| 283 | { |
| 284 | if (objectCodePanecxx . . $ MainWindow#objectCodePane.->isModifiedcxx . . $ ObjectCodePane#isModified(c9857a73d68e59ba).()) { |
| 285 | QMessageBoxcxx . . $ QMessageBox#::StandardButtoncxx . . $ QMessageBox#StandardButton# ret; |
| 286 | ret = QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(a9e3742e6f7b4147).(this, "Pep/8"cxx . . $ QString#QString(85c52e162fed56f9)., |
| 287 | "The object code has been modified.\n"cxx . . $ QString#QString(85c52e162fed56f9). |
| 288 | "Do you want to save your changes?", |
| 289 | QMessageBoxcxx . . $ QMessageBox#::Savecxx . . $ QMessageBox#Save. |cxx . . $ `operator|`(67530149e923fc12). QMessageBoxcxx . . $ QMessageBox#::Discardcxx . . $ QMessageBox#Discard. |cxx . . $ QFlags#`operator|`(2cc1994e0be6f18e). QMessageBoxcxx . . $ QMessageBox#::Cancelcxx . . $ QMessageBox#Cancel.); |
| 290 | if (ret == QMessageBoxcxx . . $ QMessageBox#::Savecxx . . $ QMessageBox#Save.) |
| 291 | return saveObjectcxx . . $ MainWindow#saveObject(c9857a73d68e59ba).(); |
| 292 | else if (ret == QMessageBoxcxx . . $ QMessageBox#::Cancelcxx . . $ QMessageBox#Cancel.) |
| 293 | return false; |
| 294 | } |
| 295 | return true; |
| 296 | } |
| 297 | |
| 298 | void MainWindowcxx . . $ MainWindow#::loadFilecxx . . $ MainWindow#loadFile(3520e46b33348bf6).(const QStringcxx . . $ QString# &fileName) |
| 299 | { |
| 300 | QFilecxx . . $ QFile# filecxx . . $ QFile#QFile(3520e46b33348bf6).(fileName); |
| 301 | if (!file.opencxx . . $ QFile#open(dca164408be960c8).(QFilecxx . . $ QFile#::ReadOnlycxx . . $ QIODevice#ReadOnly. |cxx . . $ `operator|`(c9e45f682471e48d). QFilecxx . . $ QFile#::Textcxx . . $ QIODevice#Text.)) { |
| 302 | QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(a9e3742e6f7b4147).(this, trcxx . . $ MainWindow#tr(75d9f1c324b4579d).("Application"), |
| 303 | trcxx . . $ MainWindow#tr(75d9f1c324b4579d).("Cannot read file %1:\n%2.") |
| 304 | .argcxx . . $ QString#arg(bc823072288cbbb5).(fileName) |
| 305 | .argcxx . . $ QString#arg(bc823072288cbbb5).(file.errorStringcxx . . $ QIODevice#errorString(6ef7b6c27b00b43d).())); |
| 306 | return; |
| 307 | } |
| 308 | |
| 309 | QTextStreamcxx . . $ QTextStream# incxx . . $ QTextStream#QTextStream(bebe8f2dee7f9e86).(&file); |
| 310 | in.setCodeccxx . . $ QTextStream#setCodec(1f30447839ed391).(QTextCodeccxx . . $ QTextCodec#::codecForNamecxx . . $ QTextCodec#codecForName(914382192c9ca379).("ISO 8859-1")); |
| 311 | QApplicationcxx . . $ QApplication#::setOverrideCursorcxx . . $ QGuiApplication#setOverrideCursor(abdcfda6ee8376ea).(Qtcxx . . $ QCursor#QCursor(1a9232e7b845eb22).::WaitCursorcxx . . $ Qt/WaitCursor.); |
| 312 | QRegExpcxx . . $ QRegExp# rxcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).(".*.pepo"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 313 | Enucxx . . $ Enu/::EPanecxx . . $ Enu/EPane# pane; |
| 314 | if (rx.exactMatchcxx . . $ QRegExp#exactMatch(f3b39adf77d9c36c).(strippedNamecxx . . $ MainWindow#strippedName(fd988a2ab94d906b).(fileName))) { |
| 315 | if (maybeSaveObjectcxx . . $ MainWindow#maybeSaveObject(c9857a73d68e59ba).()) { |
| 316 | // Set object code pane text |
| 317 | objectCodePanecxx . . $ MainWindow#objectCodePane.->setObjectCodePaneTextcxx . . $ ObjectCodePane#setObjectCodePaneText(7df51288a9ebd664).(in.readAllcxx . . $ QTextStream#readAll(4365c3963150523e).()); |
| 318 | pane = Enucxx . . $ Enu/::EObjectcxx . . $ Enu/EObject.; |
| 319 | setCurrentFilecxx . . $ MainWindow#setCurrentFile(30e909e7afe2d54e).(fileName, pane); |
| 320 | statusBarcxx . . $ QMainWindow#statusBar(422c485dd0fc791b).()->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).(trcxx . . $ MainWindow#tr(75d9f1c324b4579d).("File loaded"), 4000); |
| 321 | } |
| 322 | } |
| 323 | else if (maybeSaveSourcecxx . . $ MainWindow#maybeSaveSource(c9857a73d68e59ba).()) { |
| 324 | // Set source code pane text |
| 325 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->setSourceCodePaneTextcxx . . $ SourceCodePane#setSourceCodePaneText(7df51288a9ebd664).(in.readAllcxx . . $ QTextStream#readAll(4365c3963150523e).()); |
| 326 | pane = Enucxx . . $ Enu/::ESourcecxx . . $ Enu/ESource.; |
| 327 | setCurrentFilecxx . . $ MainWindow#setCurrentFile(30e909e7afe2d54e).(fileName, pane); |
| 328 | statusBarcxx . . $ QMainWindow#statusBar(422c485dd0fc791b).()->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).(trcxx . . $ MainWindow#tr(75d9f1c324b4579d).("File loaded"), 4000); |
| 329 | } |
| 330 | QApplicationcxx . . $ QApplication#::restoreOverrideCursorcxx . . $ QGuiApplication#restoreOverrideCursor(49f6e7a06ebc5aa8).(); |
| 331 | } |
| 332 | |
| 333 | bool MainWindowcxx . . $ MainWindow#::saveFileSourcecxx . . $ MainWindow#saveFileSource(e1defb592416720d).(const QStringcxx . . $ QString# &fileName) |
| 334 | { |
| 335 | QFilecxx . . $ QFile# filecxx . . $ QFile#QFile(3520e46b33348bf6).(fileName); |
| 336 | if (!file.opencxx . . $ QFile#open(dca164408be960c8).(QFilecxx . . $ QFile#::WriteOnlycxx . . $ QIODevice#WriteOnly. |cxx . . $ `operator|`(c9e45f682471e48d). QFilecxx . . $ QFile#::Textcxx . . $ QIODevice#Text.)) { |
| 337 | QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(a9e3742e6f7b4147).(this, trcxx . . $ MainWindow#tr(75d9f1c324b4579d).("Application"), |
| 338 | trcxx . . $ MainWindow#tr(75d9f1c324b4579d).("Cannot write file %1:\n%2.") |
| 339 | .argcxx . . $ QString#arg(bc823072288cbbb5).(fileName) |
| 340 | .argcxx . . $ QString#arg(bc823072288cbbb5).(file.errorStringcxx . . $ QIODevice#errorString(6ef7b6c27b00b43d).())); |
| 341 | return false; |
| 342 | } |
| 343 | |
| 344 | QTextStreamcxx . . $ QTextStream# outcxx . . $ QTextStream#QTextStream(bebe8f2dee7f9e86).(&file); |
| 345 | out.setCodeccxx . . $ QTextStream#setCodec(1f30447839ed391).(QTextCodeccxx . . $ QTextCodec#::codecForNamecxx . . $ QTextCodec#codecForName(914382192c9ca379).("ISO 8859-1")); |
| 346 | QApplicationcxx . . $ QApplication#::setOverrideCursorcxx . . $ QGuiApplication#setOverrideCursor(abdcfda6ee8376ea).(Qtcxx . . $ QCursor#QCursor(1a9232e7b845eb22).::WaitCursorcxx . . $ Qt/WaitCursor.); |
| 347 | out <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). sourceCodePanecxx . . $ MainWindow#sourceCodePane.->toPlainTextcxx . . $ SourceCodePane#toPlainText(4365c3963150523e).(); |
| 348 | QApplicationcxx . . $ QApplication#::restoreOverrideCursorcxx . . $ QGuiApplication#restoreOverrideCursor(49f6e7a06ebc5aa8).(); |
| 349 | |
| 350 | setCurrentFilecxx . . $ MainWindow#setCurrentFile(30e909e7afe2d54e).(fileName, Enucxx . . $ Enu/::ESourcecxx . . $ Enu/ESource.); |
| 351 | statusBarcxx . . $ QMainWindow#statusBar(422c485dd0fc791b).()->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("Source saved"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 352 | return true; |
| 353 | } |
| 354 | |
| 355 | bool MainWindowcxx . . $ MainWindow#::saveFileObjectcxx . . $ MainWindow#saveFileObject(e1defb592416720d).(const QStringcxx . . $ QString# &fileName) // Copied and pasted, change. |
| 356 | { |
| 357 | QFilecxx . . $ QFile# filecxx . . $ QFile#QFile(3520e46b33348bf6).(fileName); |
| 358 | if (!file.opencxx . . $ QFile#open(dca164408be960c8).(QFilecxx . . $ QFile#::WriteOnlycxx . . $ QIODevice#WriteOnly. |cxx . . $ `operator|`(c9e45f682471e48d). QFilecxx . . $ QFile#::Textcxx . . $ QIODevice#Text.)) { |
| 359 | QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(a9e3742e6f7b4147).(this, trcxx . . $ MainWindow#tr(75d9f1c324b4579d).("Application"), |
| 360 | trcxx . . $ MainWindow#tr(75d9f1c324b4579d).("Cannot write file %1:\n%2.") |
| 361 | .argcxx . . $ QString#arg(bc823072288cbbb5).(fileName) |
| 362 | .argcxx . . $ QString#arg(bc823072288cbbb5).(file.errorStringcxx . . $ QIODevice#errorString(6ef7b6c27b00b43d).())); |
| 363 | return false; |
| 364 | } |
| 365 | |
| 366 | QTextStreamcxx . . $ QTextStream# outcxx . . $ QTextStream#QTextStream(bebe8f2dee7f9e86).(&file); |
| 367 | out.setCodeccxx . . $ QTextStream#setCodec(1f30447839ed391).(QTextCodeccxx . . $ QTextCodec#::codecForNamecxx . . $ QTextCodec#codecForName(914382192c9ca379).("ISO 8859-1")); |
| 368 | QApplicationcxx . . $ QApplication#::setOverrideCursorcxx . . $ QGuiApplication#setOverrideCursor(abdcfda6ee8376ea).(Qtcxx . . $ QCursor#QCursor(1a9232e7b845eb22).::WaitCursorcxx . . $ Qt/WaitCursor.); |
| 369 | out <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). objectCodePanecxx . . $ MainWindow#objectCodePane.->toPlainTextcxx . . $ ObjectCodePane#toPlainText(4365c3963150523e).(); |
| 370 | QApplicationcxx . . $ QApplication#::restoreOverrideCursorcxx . . $ QGuiApplication#restoreOverrideCursor(49f6e7a06ebc5aa8).(); |
| 371 | |
| 372 | setCurrentFilecxx . . $ MainWindow#setCurrentFile(30e909e7afe2d54e).(fileName, Enucxx . . $ Enu/::EObjectcxx . . $ Enu/EObject.); |
| 373 | statusBarcxx . . $ QMainWindow#statusBar(422c485dd0fc791b).()->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("Object code saved"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 374 | return true; |
| 375 | } |
| 376 | |
| 377 | bool MainWindowcxx . . $ MainWindow#::saveFileListingcxx . . $ MainWindow#saveFileListing(e1defb592416720d).(const QStringcxx . . $ QString# &fileName) |
| 378 | { |
| 379 | QFilecxx . . $ QFile# filecxx . . $ QFile#QFile(3520e46b33348bf6).(fileName); |
| 380 | if (!file.opencxx . . $ QFile#open(dca164408be960c8).(QFilecxx . . $ QFile#::WriteOnlycxx . . $ QIODevice#WriteOnly. |cxx . . $ `operator|`(c9e45f682471e48d). QFilecxx . . $ QFile#::Textcxx . . $ QIODevice#Text.)) { |
| 381 | QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(a9e3742e6f7b4147).(this, trcxx . . $ MainWindow#tr(75d9f1c324b4579d).("Pep/8"), |
| 382 | trcxx . . $ MainWindow#tr(75d9f1c324b4579d).("Cannot write file %1:\n%2.") |
| 383 | .argcxx . . $ QString#arg(bc823072288cbbb5).(fileName) |
| 384 | .argcxx . . $ QString#arg(bc823072288cbbb5).(file.errorStringcxx . . $ QIODevice#errorString(6ef7b6c27b00b43d).())); |
| 385 | return false; |
| 386 | } |
| 387 | |
| 388 | QTextStreamcxx . . $ QTextStream# outcxx . . $ QTextStream#QTextStream(bebe8f2dee7f9e86).(&file); |
| 389 | out.setCodeccxx . . $ QTextStream#setCodec(1f30447839ed391).(QTextCodeccxx . . $ QTextCodec#::codecForNamecxx . . $ QTextCodec#codecForName(914382192c9ca379).("ISO 8859-1")); |
| 390 | QApplicationcxx . . $ QApplication#::setOverrideCursorcxx . . $ QGuiApplication#setOverrideCursor(abdcfda6ee8376ea).(Qtcxx . . $ QCursor#QCursor(1a9232e7b845eb22).::WaitCursorcxx . . $ Qt/WaitCursor.); |
| 391 | out <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). assemblerListingPanecxx . . $ MainWindow#assemblerListingPane.->toPlainTextcxx . . $ AssemblerListingPane#toPlainText(4365c3963150523e).(); |
| 392 | QApplicationcxx . . $ QApplication#::restoreOverrideCursorcxx . . $ QGuiApplication#restoreOverrideCursor(49f6e7a06ebc5aa8).(); |
| 393 | |
| 394 | setCurrentFilecxx . . $ MainWindow#setCurrentFile(30e909e7afe2d54e).(fileName, Enucxx . . $ Enu/::EListingcxx . . $ Enu/EListing.); |
| 395 | statusBarcxx . . $ QMainWindow#statusBar(422c485dd0fc791b).()->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("Assembler listing saved"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 396 | return true; |
| 397 | } |
| 398 | |
| 399 | void MainWindowcxx . . $ MainWindow#::setCurrentFilecxx . . $ MainWindow#setCurrentFile(30e909e7afe2d54e).(const QStringcxx . . $ QString# &fileName, Enucxx . . $ Enu/::EPanecxx . . $ Enu/EPane# pane) |
| 400 | { |
| 401 | if (pane == Enucxx . . $ Enu/::ESourcecxx . . $ Enu/ESource.) { |
| 402 | curSourceFilecxx . . $ MainWindow#curSourceFile. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). fileName; |
| 403 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->setModifiedFalsecxx . . $ SourceCodePane#setModifiedFalse(49f6e7a06ebc5aa8).(); |
| 404 | } |
| 405 | else if (pane == Enucxx . . $ Enu/::EObjectcxx . . $ Enu/EObject.) { |
| 406 | curObjectFilecxx . . $ MainWindow#curObjectFile. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). fileName; |
| 407 | objectCodePanecxx . . $ MainWindow#objectCodePane.->setModifiedFalsecxx . . $ ObjectCodePane#setModifiedFalse(49f6e7a06ebc5aa8).(); |
| 408 | } |
| 409 | else if (pane == Enucxx . . $ Enu/::EListingcxx . . $ Enu/EListing.) { |
| 410 | curListingFilecxx . . $ MainWindow#curListingFile. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). fileName; |
| 411 | } |
| 412 | |
| 413 | if (!fileName.isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) { |
| 414 | curPathcxx . . $ MainWindow#curPath. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QFileInfocxx . . $ QFileInfo#(fileName).pathcxx . . $ QFileInfo#path(6ef7b6c27b00b43d).(); |
| 415 | } |
| 416 | |
| 417 | QStringcxx . . $ QString# shownNamecxx . . $ QString#QString(ced63f7c635d850d).; |
| 418 | if (pane == Enucxx . . $ Enu/::ESourcecxx . . $ Enu/ESource.) { |
| 419 | if (curSourceFilecxx . . $ MainWindow#curSourceFile..isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) { |
| 420 | shownName =cxx . . $ QString#`operator=`(d02845eef0c33901). "untitled.pep"; |
| 421 | } |
| 422 | else { |
| 423 | shownName =cxx . . $ QString#`operator=`(4f35bf974e7f8568). strippedNamecxx . . $ MainWindow#strippedName(fd988a2ab94d906b).(curSourceFilecxx . . $ MainWindow#curSourceFile.); |
| 424 | } |
| 425 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->setCurrentFilecxx . . $ SourceCodePane#setCurrentFile(7df51288a9ebd664).(shownNamecxx . . $ QString#QString(132dd6869045752b).); |
| 426 | } |
| 427 | else if (pane == Enucxx . . $ Enu/::EObjectcxx . . $ Enu/EObject.) { |
| 428 | if (curObjectFilecxx . . $ MainWindow#curObjectFile..isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) { |
| 429 | shownName =cxx . . $ QString#`operator=`(d02845eef0c33901). "untitled.pepo"; |
| 430 | } |
| 431 | else { |
| 432 | shownName =cxx . . $ QString#`operator=`(4f35bf974e7f8568). strippedNamecxx . . $ MainWindow#strippedName(fd988a2ab94d906b).(curObjectFilecxx . . $ MainWindow#curObjectFile.); |
| 433 | } |
| 434 | objectCodePanecxx . . $ MainWindow#objectCodePane.->setCurrentFilecxx . . $ ObjectCodePane#setCurrentFile(7df51288a9ebd664).(shownNamecxx . . $ QString#QString(132dd6869045752b).); |
| 435 | } |
| 436 | else if (pane == Enucxx . . $ Enu/::EListingcxx . . $ Enu/EListing.) { |
| 437 | if (curListingFilecxx . . $ MainWindow#curListingFile..isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) { |
| 438 | shownName =cxx . . $ QString#`operator=`(d02845eef0c33901). "untitled.pepl"; |
| 439 | } |
| 440 | else { |
| 441 | shownName =cxx . . $ QString#`operator=`(4f35bf974e7f8568). strippedNamecxx . . $ MainWindow#strippedName(fd988a2ab94d906b).(curListingFilecxx . . $ MainWindow#curListingFile.); |
| 442 | } |
| 443 | assemblerListingPanecxx . . $ MainWindow#assemblerListingPane.->setCurrentFilecxx . . $ AssemblerListingPane#setCurrentFile(7df51288a9ebd664).(shownNamecxx . . $ QString#QString(132dd6869045752b).); |
| 444 | } |
| 445 | } |
| 446 | |
| 447 | QStringcxx . . $ QString# MainWindowcxx . . $ MainWindow#::strippedNamecxx . . $ MainWindow#strippedName(fd988a2ab94d906b).(const QStringcxx . . $ QString# &fullFileName) |
| 448 | { |
| 449 | return QFileInfocxx . . $ QFileInfo#(fullFileName).fileNamecxx . . $ QFileInfo#fileName(6ef7b6c27b00b43d).(); |
| 450 | } |
| 451 | |
| 452 | // Recent files: |
| 453 | void MainWindowcxx . . $ MainWindow#::updateRecentFileActionscxx . . $ MainWindow#updateRecentFileActions(49f6e7a06ebc5aa8).() |
| 454 | { |
| 455 | QSettingscxx . . $ QSettings# settingscxx . . $ QSettings#QSettings(b05324713c9ab95e).("Pep8"cxx . . $ QString#QString(85c52e162fed56f9)., "Recent Files"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 456 | QStringListcxx . . $ QStringList# files = settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("recentFileList"cxx . . $ QString#QString(85c52e162fed56f9).).toStringListcxx . . $ QVariant#toStringList(e1dbd5c4feadc8f5).(); |
| 457 | |
| 458 | int numRecentFiles = qMincxx . . $ qMin(2a338fce5842aa6a).(files.sizecxx . . $ QList#size(ea6fe5115c70a13f).(), (int)MaxRecentFilescxx . . $ MainWindow#MaxRecentFiles.); |
| 459 | |
| 460 | for (int i = 0; i < numRecentFiles; ++i) { |
| 461 | QStringcxx . . $ QString# text = trcxx . . $ MainWindow#tr(75d9f1c324b4579d).("&%1 %2").argcxx . . $ QString#arg(64ab2ed17cc11715).(i + 1).argcxx . . $ QString#arg(bc823072288cbbb5).(strippedNamecxx . . $ MainWindow#strippedName(fd988a2ab94d906b).(files[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i])); |
| 462 | recentFileActscxx . . $ MainWindow#recentFileActs.[i]->setTextcxx . . $ QAction#setText(3520e46b33348bf6).(text); |
| 463 | recentFileActscxx . . $ MainWindow#recentFileActs.[i]->setDatacxx . . $ QAction#setData(244511558b20107a).(filescxx . . $ QVariant#QVariant(3520e46b33348bf6).[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i]); |
| 464 | recentFileActscxx . . $ MainWindow#recentFileActs.[i]->setVisiblecxx . . $ QAction#setVisible(b45ddcbc8423892c).(true); |
| 465 | } |
| 466 | for (int j = numRecentFiles; j < MaxRecentFilescxx . . $ MainWindow#MaxRecentFiles.; ++j) |
| 467 | recentFileActscxx . . $ MainWindow#recentFileActs.[j]->setVisiblecxx . . $ QAction#setVisible(b45ddcbc8423892c).(false); |
| 468 | |
| 469 | separatorActcxx . . $ MainWindow#separatorAct.->setVisiblecxx . . $ QAction#setVisible(b45ddcbc8423892c).(numRecentFiles > 0); |
| 470 | } |
| 471 | |
| 472 | bool MainWindowcxx . . $ MainWindow#::assemblecxx . . $ MainWindow#assemble(c9857a73d68e59ba).() |
| 473 | { |
| 474 | Pepcxx . . $ Pep#::memAddrssToAssemblerListingcxx . . $ Pep#memAddrssToAssemblerListing. = &Pepcxx . . $ Pep#::memAddrssToAssemblerListingProgcxx . . $ Pep#memAddrssToAssemblerListingProg.; |
| 475 | Pepcxx . . $ Pep#::listingRowCheckedcxx . . $ Pep#listingRowChecked. = &Pepcxx . . $ Pep#::listingRowCheckedProgcxx . . $ Pep#listingRowCheckedProg.; |
| 476 | Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. = 0; |
| 477 | if (sourceCodePanecxx . . $ MainWindow#sourceCodePane.->assemblecxx . . $ SourceCodePane#assemble(c9857a73d68e59ba).()) { |
| 478 | if (Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. > 0) { |
| 479 | QStringcxx . . $ QString# errorString = ";ERROR: .BURN not allowed in program unless installing OS."cxx . . $ QString#QString(85c52e162fed56f9).; |
| 480 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->appendMessageInSourceCodePaneAtcxx . . $ SourceCodePane#appendMessageInSourceCodePaneAt(909c33aa10af95dd).(0, errorStringcxx . . $ QString#QString(132dd6869045752b).); |
| 481 | assemblerListingPanecxx . . $ MainWindow#assemblerListingPane.->clearAssemblerListingcxx . . $ AssemblerListingPane#clearAssemblerListing(49f6e7a06ebc5aa8).(); |
| 482 | objectCodePanecxx . . $ MainWindow#objectCodePane.->clearObjectCodecxx . . $ ObjectCodePane#clearObjectCode(49f6e7a06ebc5aa8).(); |
| 483 | listingTracePanecxx . . $ MainWindow#listingTracePane.->clearListingTracecxx . . $ ListingTracePane#clearListingTrace(49f6e7a06ebc5aa8).(); |
| 484 | uicxx . . $ MainWindow#ui.->pepCodeTraceTabcxx . . $ Ui_MainWindowClass#pepCodeTraceTab.->setCurrentIndexcxx . . $ QTabWidget#setCurrentIndex(d4f767463ce0a6b3).(0); // Make source code pane visible |
| 485 | return false; |
| 486 | } |
| 487 | else { |
| 488 | objectCodePanecxx . . $ MainWindow#objectCodePane.->setObjectCodecxx . . $ ObjectCodePane#setObjectCode(4bb6f0c1dbf41c14).(sourceCodePanecxx . . $ MainWindow#sourceCodePane.->getObjectCodecxx . . $ SourceCodePane#getObjectCode(9be6d6d0db5cf9a9).()); |
| 489 | assemblerListingPanecxx . . $ MainWindow#assemblerListingPane.->setAssemblerListingcxx . . $ AssemblerListingPane#setAssemblerListing(fc47db3ea09604d9).(sourceCodePanecxx . . $ MainWindow#sourceCodePane.->getAssemblerListingListcxx . . $ SourceCodePane#getAssemblerListingList(669a05bc42dd57cc).()); |
| 490 | listingTracePanecxx . . $ MainWindow#listingTracePane.->setListingTracecxx . . $ ListingTracePane#setListingTrace(fbf163fdf621be2d).(sourceCodePanecxx . . $ MainWindow#sourceCodePane.->getAssemblerListingListcxx . . $ SourceCodePane#getAssemblerListingList(669a05bc42dd57cc).(), sourceCodePanecxx . . $ MainWindow#sourceCodePane.->getHasCheckBoxcxx . . $ SourceCodePane#getHasCheckBox(901f99b7efa3626e).()); |
| 491 | memoryTracePanecxx . . $ MainWindow#memoryTracePane.->setMemoryTracecxx . . $ MemoryTracePane#setMemoryTrace(49f6e7a06ebc5aa8).(); |
| 492 | listingTracePanecxx . . $ MainWindow#listingTracePane.->showAssemblerListingcxx . . $ ListingTracePane#showAssemblerListing(49f6e7a06ebc5aa8).(); |
| 493 | |
| 494 | QStringcxx . . $ QString# temp = curSourceFilecxx . . $ QString#QString(132dd6869045752b).; |
| 495 | if (!curSourceFilecxx . . $ MainWindow#curSourceFile..isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) { |
| 496 | if (temp.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(".pep"cxx . . $ QString#QString(85c52e162fed56f9)., Qtcxx . . $ Qt/::CaseInsensitivecxx . . $ Qt/CaseInsensitive.) || temp.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(".txt"cxx . . $ QString#QString(85c52e162fed56f9)., Qtcxx . . $ Qt/::CaseInsensitivecxx . . $ Qt/CaseInsensitive.)) { |
| 497 | temp.chopcxx . . $ QString#chop(d4f767463ce0a6b3).(4); |
| 498 | } |
| 499 | temp.appendcxx . . $ QString#append(d02845eef0c33901).(".pepo"); |
| 500 | curObjectFilecxx . . $ MainWindow#curObjectFile. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). temp; |
| 501 | setCurrentFilecxx . . $ MainWindow#setCurrentFile(30e909e7afe2d54e).(curObjectFilecxx . . $ MainWindow#curObjectFile., Enucxx . . $ Enu/::EObjectcxx . . $ Enu/EObject.); |
| 502 | temp.chopcxx . . $ QString#chop(d4f767463ce0a6b3).(5); |
| 503 | temp.appendcxx . . $ QString#append(d02845eef0c33901).(".pepl"); |
| 504 | curListingFilecxx . . $ MainWindow#curListingFile. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). temp; |
| 505 | setCurrentFilecxx . . $ MainWindow#setCurrentFile(30e909e7afe2d54e).(curListingFilecxx . . $ MainWindow#curListingFile., Enucxx . . $ Enu/::EListingcxx . . $ Enu/EListing.); |
| 506 | } |
| 507 | else { |
| 508 | setCurrentFilecxx . . $ MainWindow#setCurrentFile(30e909e7afe2d54e).(""cxx . . $ QString#QString(85c52e162fed56f9)., Enucxx . . $ Enu/::EObjectcxx . . $ Enu/EObject.); |
| 509 | setCurrentFilecxx . . $ MainWindow#setCurrentFile(30e909e7afe2d54e).(""cxx . . $ QString#QString(85c52e162fed56f9)., Enucxx . . $ Enu/::EListingcxx . . $ Enu/EListing.); |
| 510 | } |
| 511 | uicxx . . $ MainWindow#ui.->actionEdit_Format_From_Listingcxx . . $ Ui_MainWindowClass#actionEdit_Format_From_Listing.->setEnabledcxx . . $ QAction#setEnabled(b45ddcbc8423892c).(true); |
| 512 | if (!Pepcxx . . $ Pep#::traceTagWarningcxx . . $ Pep#traceTagWarning. && !(Pepcxx . . $ Pep#::blockSymbolscxx . . $ Pep#blockSymbols..isEmptycxx . . $ QList#isEmpty(3482b152b9333168).() |
| 513 | && Pepcxx . . $ Pep#::equateSymbolscxx . . $ Pep#equateSymbols..isEmptycxx . . $ QList#isEmpty(3482b152b9333168).() |
| 514 | && Pepcxx . . $ Pep#::globalStructSymbolscxx . . $ Pep#globalStructSymbols..isEmptycxx . . $ QMap#isEmpty(50ce9a9e25b4a850).() |
| 515 | && Pepcxx . . $ Pep#::symbolFormatcxx . . $ Pep#symbolFormat..isEmptycxx . . $ QMap#isEmpty(50ce9a9e25b4a850).() |
| 516 | && Pepcxx . . $ Pep#::symbolFormatMultipliercxx . . $ Pep#symbolFormatMultiplier..isEmptycxx . . $ QMap#isEmpty(50ce9a9e25b4a850).())) { |
| 517 | memoryTracePanecxx . . $ MainWindow#memoryTracePane.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).(); |
| 518 | } |
| 519 | else { |
| 520 | memoryTracePanecxx . . $ MainWindow#memoryTracePane.->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).(); |
| 521 | } |
| 522 | uicxx . . $ MainWindow#ui.->actionBuild_Start_Debugging_Sourcecxx . . $ Ui_MainWindowClass#actionBuild_Start_Debugging_Source.->setEnabledcxx . . $ QAction#setEnabled(b45ddcbc8423892c).(true); |
| 523 | return true; |
| 524 | } |
| 525 | } |
| 526 | assemblerListingPanecxx . . $ MainWindow#assemblerListingPane.->clearAssemblerListingcxx . . $ AssemblerListingPane#clearAssemblerListing(49f6e7a06ebc5aa8).(); |
| 527 | objectCodePanecxx . . $ MainWindow#objectCodePane.->clearObjectCodecxx . . $ ObjectCodePane#clearObjectCode(49f6e7a06ebc5aa8).(); |
| 528 | listingTracePanecxx . . $ MainWindow#listingTracePane.->clearListingTracecxx . . $ ListingTracePane#clearListingTrace(49f6e7a06ebc5aa8).(); |
| 529 | uicxx . . $ MainWindow#ui.->pepCodeTraceTabcxx . . $ Ui_MainWindowClass#pepCodeTraceTab.->setCurrentIndexcxx . . $ QTabWidget#setCurrentIndex(d4f767463ce0a6b3).(0); // Make source code pane visible |
| 530 | return false; |
| 531 | } |
| 532 | |
| 533 | bool MainWindowcxx . . $ MainWindow#::loadcxx . . $ MainWindow#load(c9857a73d68e59ba).() |
| 534 | { |
| 535 | QListcxx . . $ QList#<int> objectCodeListcxx . . $ QList#QList(ced63f7c635d850d).; |
| 536 | if (objectCodePanecxx . . $ MainWindow#objectCodePane.->getObjectCodecxx . . $ ObjectCodePane#getObjectCode(5fdc15f27bb12933).(objectCodeList)) { |
| 537 | Simcxx . . $ Sim#::loadMemcxx . . $ Sim#loadMem(4bb6f0c1dbf41c14).(objectCodeListcxx . . $ QList#QList(3d2301cfd89f773a).); |
| 538 | memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->refreshMemoryLinescxx . . $ MemoryDumpPane#refreshMemoryLines(3e454b8ccf442868).(0, objectCodeList.sizecxx . . $ QList#size(ea6fe5115c70a13f).()); |
| 539 | return true; |
| 540 | } |
| 541 | return false; |
| 542 | } |
| 543 | |
| 544 | void MainWindowcxx . . $ MainWindow#::setDebugStatecxx . . $ MainWindow#setDebugState(b45ddcbc8423892c).(bool b) |
| 545 | { |
| 546 | uicxx . . $ MainWindow#ui.->actionFile_Newcxx . . $ Ui_MainWindowClass#actionFile_New.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(b); |
| 547 | uicxx . . $ MainWindow#ui.->actionFile_Opencxx . . $ Ui_MainWindowClass#actionFile_Open.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(b); |
| 548 | uicxx . . $ MainWindow#ui.->actionEdit_Format_From_Listingcxx . . $ Ui_MainWindowClass#actionEdit_Format_From_Listing.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(b); |
| 549 | uicxx . . $ MainWindow#ui.->actionEdit_Remove_Error_Messagescxx . . $ Ui_MainWindowClass#actionEdit_Remove_Error_Messages.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(b); |
| 550 | uicxx . . $ MainWindow#ui.->actionBuild_Assemblecxx . . $ Ui_MainWindowClass#actionBuild_Assemble.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(b); |
| 551 | uicxx . . $ MainWindow#ui.->actionBuild_Loadcxx . . $ Ui_MainWindowClass#actionBuild_Load.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(b); |
| 552 | uicxx . . $ MainWindow#ui.->actionBuild_Executecxx . . $ Ui_MainWindowClass#actionBuild_Execute.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(b); |
| 553 | uicxx . . $ MainWindow#ui.->actionBuild_Run_Sourcecxx . . $ Ui_MainWindowClass#actionBuild_Run_Source.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(b); |
| 554 | uicxx . . $ MainWindow#ui.->actionBuild_Start_Debugging_Sourcecxx . . $ Ui_MainWindowClass#actionBuild_Start_Debugging_Source.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(b); |
| 555 | uicxx . . $ MainWindow#ui.->actionBuild_Run_Objectcxx . . $ Ui_MainWindowClass#actionBuild_Run_Object.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(b); |
| 556 | uicxx . . $ MainWindow#ui.->actionBuild_Start_Debugging_Objectcxx . . $ Ui_MainWindowClass#actionBuild_Start_Debugging_Object.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(b); |
| 557 | uicxx . . $ MainWindow#ui.->actionBuild_Start_Debugging_Loadercxx . . $ Ui_MainWindowClass#actionBuild_Start_Debugging_Loader.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(b); |
| 558 | uicxx . . $ MainWindow#ui.->actionBuild_Stop_Debuggingcxx . . $ Ui_MainWindowClass#actionBuild_Stop_Debugging.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(!b); |
| 559 | uicxx . . $ MainWindow#ui.->actionBuild_Interrupt_Executioncxx . . $ Ui_MainWindowClass#actionBuild_Interrupt_Execution.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(!b); |
| 560 | uicxx . . $ MainWindow#ui.->actionSystem_Clear_Memorycxx . . $ Ui_MainWindowClass#actionSystem_Clear_Memory.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(b); |
| 561 | uicxx . . $ MainWindow#ui.->actionSystem_Redefine_Mnemonicscxx . . $ Ui_MainWindowClass#actionSystem_Redefine_Mnemonics.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(b); |
| 562 | uicxx . . $ MainWindow#ui.->actionSystem_Assemble_Install_New_OScxx . . $ Ui_MainWindowClass#actionSystem_Assemble_Install_New_OS.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(b); |
| 563 | uicxx . . $ MainWindow#ui.->actionSystem_Reinstall_Default_OScxx . . $ Ui_MainWindowClass#actionSystem_Reinstall_Default_OS.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(b); |
| 564 | inputPanecxx . . $ MainWindow#inputPane.->setReadOnlycxx . . $ InputPane#setReadOnly(b45ddcbc8423892c).(b); |
| 565 | cpuPanecxx . . $ MainWindow#cpuPane.->setDebugStatecxx . . $ CpuPane#setDebugState(b45ddcbc8423892c).(b); |
| 566 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->setReadOnlycxx . . $ SourceCodePane#setReadOnly(b45ddcbc8423892c).(b); |
| 567 | objectCodePanecxx . . $ MainWindow#objectCodePane.->setReadOnlycxx . . $ ObjectCodePane#setReadOnly(b45ddcbc8423892c).(b); |
| 568 | helpDialogcxx . . $ MainWindow#helpDialog.->setCopyButtonDisabledcxx . . $ HelpDialog#setCopyButtonDisabled(b45ddcbc8423892c).(b); |
| 569 | if (b) { |
| 570 | Pepcxx . . $ Pep#::memAddrssToAssemblerListingcxx . . $ Pep#memAddrssToAssemblerListing. = &Pepcxx . . $ Pep#::memAddrssToAssemblerListingProgcxx . . $ Pep#memAddrssToAssemblerListingProg.; |
| 571 | Pepcxx . . $ Pep#::listingRowCheckedcxx . . $ Pep#listingRowChecked. = &Pepcxx . . $ Pep#::listingRowCheckedProgcxx . . $ Pep#listingRowCheckedProg.; |
| 572 | } |
| 573 | else { |
| 574 | uicxx . . $ MainWindow#ui.->pepInputOutputTabcxx . . $ Ui_MainWindowClass#pepInputOutputTab.->setTabEnabledcxx . . $ QTabWidget#setTabEnabled(918ebd27a9ddbad3).(1, true); |
| 575 | uicxx . . $ MainWindow#ui.->pepInputOutputTabcxx . . $ Ui_MainWindowClass#pepInputOutputTab.->setTabEnabledcxx . . $ QTabWidget#setTabEnabled(918ebd27a9ddbad3).(0, true); |
| 576 | } |
| 577 | } |
| 578 | |
| 579 | bool MainWindowcxx . . $ MainWindow#::eventFiltercxx . . $ MainWindow#eventFilter(978aa4af1d030efa).(QObjectcxx . . $ QObject# *, QEventcxx . . $ QEvent# *event) |
| 580 | { |
| 581 | if (event->typecxx . . $ QEvent#type(916a8de57f4d422b).() == QEventcxx . . $ QEvent#::KeyPresscxx . . $ QEvent#KeyPress.) { |
| 582 | QKeyEventcxx . . $ QKeyEvent# *keyEvent = static_cast<QKeyEventcxx . . $ QKeyEvent# *>(event); |
| 583 | if ((keyEvent->modifierscxx . . $ QKeyEvent#modifiers(bf228902b3e5e63b).() &cxx . . $ QFlags#`operator&`(2cc1994e0be6f18e). Qtcxx . . $ Qt/::ControlModifiercxx . . $ Qt/ControlModifier.) && (keyEvent->keycxx . . $ QKeyEvent#key(455f465bc33b4cdf).() == Qtcxx . . $ Qt/::Key_Periodcxx . . $ Qt/Key_Period.)) { |
| 584 | on_actionBuild_Interrupt_Execution_triggeredcxx . . $ MainWindow#on_actionBuild_Interrupt_Execution_triggered(49f6e7a06ebc5aa8).(); |
| 585 | return true; |
| 586 | } |
| 587 | else if (keyEvent->keycxx . . $ QKeyEvent#key(455f465bc33b4cdf).() == Qtcxx . . $ Qt/::Key_Returncxx . . $ Qt/Key_Return. || keyEvent->keycxx . . $ QKeyEvent#key(455f465bc33b4cdf).() == Qtcxx . . $ Qt/::Key_Entercxx . . $ Qt/Key_Enter.) { |
| 588 | if (cpuPanecxx . . $ MainWindow#cpuPane.->singleStepHasFocuscxx . . $ CpuPane#singleStepHasFocus(c9857a73d68e59ba).()) { |
| 589 | if (cpuPanecxx . . $ MainWindow#cpuPane.->isSimulatingcxx . . $ CpuPane#isSimulating(c9857a73d68e59ba).()) { |
| 590 | return true; |
| 591 | } |
| 592 | singleStepButtonClickedcxx . . $ MainWindow#singleStepButtonClicked(49f6e7a06ebc5aa8).(); |
| 593 | return true; |
| 594 | } |
| 595 | else if ((listingTracePanecxx . . $ MainWindow#listingTracePane.->hasFocuscxx . . $ ListingTracePane#hasFocus(c9857a73d68e59ba).() || memoryTracePanecxx . . $ MainWindow#memoryTracePane.->hasFocuscxx . . $ MemoryTracePane#hasFocus(c9857a73d68e59ba).()) && uicxx . . $ MainWindow#ui.->actionBuild_Stop_Debuggingcxx . . $ Ui_MainWindowClass#actionBuild_Stop_Debugging.->isEnabledcxx . . $ QAction#isEnabled(50ce9a9e25b4a850).()) { |
| 596 | // listing trace or memory trace has focus, and we are debugging |
| 597 | cpuPanecxx . . $ MainWindow#cpuPane.->giveSingleStepFocuscxx . . $ CpuPane#giveSingleStepFocus(49f6e7a06ebc5aa8).(); |
| 598 | return true; |
| 599 | } |
| 600 | } |
| 601 | else if (keyEvent->keycxx . . $ QKeyEvent#key(455f465bc33b4cdf).() == Qtcxx . . $ Qt/::Key_Tabcxx . . $ Qt/Key_Tab.) { |
| 602 | if (inputPanecxx . . $ MainWindow#inputPane.->hasFocuscxx . . $ InputPane#hasFocus(c9857a73d68e59ba).()) { |
| 603 | inputPanecxx . . $ MainWindow#inputPane.->tabcxx . . $ InputPane#tab(49f6e7a06ebc5aa8).(); |
| 604 | return true; |
| 605 | } |
| 606 | else if (sourceCodePanecxx . . $ MainWindow#sourceCodePane.->hasFocuscxx . . $ SourceCodePane#hasFocus(c9857a73d68e59ba).()) { |
| 607 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->tabcxx . . $ SourceCodePane#tab(49f6e7a06ebc5aa8).(); |
| 608 | return true; |
| 609 | } |
| 610 | } |
| 611 | } |
| 612 | else if (event->typecxx . . $ QEvent#type(916a8de57f4d422b).() == QEventcxx . . $ QEvent#::FileOpencxx . . $ QEvent#FileOpen.) { |
| 613 | if (uicxx . . $ MainWindow#ui.->actionBuild_Stop_Debuggingcxx . . $ Ui_MainWindowClass#actionBuild_Stop_Debugging.->isEnabledcxx . . $ QAction#isEnabled(50ce9a9e25b4a850).()) { |
| 614 | uicxx . . $ MainWindow#ui.->statusbarcxx . . $ Ui_MainWindowClass#statusbar.->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("Open failed, currently debugging."cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 615 | return false; |
| 616 | } |
| 617 | loadFilecxx . . $ MainWindow#loadFile(3520e46b33348bf6).(static_cast<QFileOpenEventcxx . . $ QFileOpenEvent# *>(event)->filecxx . . $ QFileOpenEvent#file(6ef7b6c27b00b43d).()); |
| 618 | return true; |
| 619 | } |
| 620 | return false; |
| 621 | } |
| 622 | |
| 623 | // File MainWindow triggers |
| 624 | void MainWindowcxx . . $ MainWindow#::on_actionFile_New_triggeredcxx . . $ MainWindow#on_actionFile_New_triggered(49f6e7a06ebc5aa8).() |
| 625 | { |
| 626 | if (maybeSaveSourcecxx . . $ MainWindow#maybeSaveSource(c9857a73d68e59ba).() && maybeSaveObjectcxx . . $ MainWindow#maybeSaveObject(c9857a73d68e59ba).()) { |
| 627 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->clearSourceCodecxx . . $ SourceCodePane#clearSourceCode(49f6e7a06ebc5aa8).(); |
| 628 | objectCodePanecxx . . $ MainWindow#objectCodePane.->clearObjectCodecxx . . $ ObjectCodePane#clearObjectCode(49f6e7a06ebc5aa8).(); |
| 629 | assemblerListingPanecxx . . $ MainWindow#assemblerListingPane.->clearAssemblerListingcxx . . $ AssemblerListingPane#clearAssemblerListing(49f6e7a06ebc5aa8).(); |
| 630 | listingTracePanecxx . . $ MainWindow#listingTracePane.->clearListingTracecxx . . $ ListingTracePane#clearListingTrace(49f6e7a06ebc5aa8).(); |
| 631 | cpuPanecxx . . $ MainWindow#cpuPane.->clearCpucxx . . $ CpuPane#clearCpu(49f6e7a06ebc5aa8).(); |
| 632 | outputPanecxx . . $ MainWindow#outputPane.->clearOutputcxx . . $ OutputPane#clearOutput(49f6e7a06ebc5aa8).(); |
| 633 | uicxx . . $ MainWindow#ui.->pepCodeTraceTabcxx . . $ Ui_MainWindowClass#pepCodeTraceTab.->setCurrentIndexcxx . . $ QTabWidget#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 634 | setCurrentFilecxx . . $ MainWindow#setCurrentFile(30e909e7afe2d54e).(""cxx . . $ QString#QString(85c52e162fed56f9)., Enucxx . . $ Enu/::ESourcecxx . . $ Enu/ESource.); |
| 635 | setCurrentFilecxx . . $ MainWindow#setCurrentFile(30e909e7afe2d54e).(""cxx . . $ QString#QString(85c52e162fed56f9)., Enucxx . . $ Enu/::EObjectcxx . . $ Enu/EObject.); |
| 636 | setCurrentFilecxx . . $ MainWindow#setCurrentFile(30e909e7afe2d54e).(""cxx . . $ QString#QString(85c52e162fed56f9)., Enucxx . . $ Enu/::EListingcxx . . $ Enu/EListing.); |
| 637 | uicxx . . $ MainWindow#ui.->actionBuild_Start_Debugging_Sourcecxx . . $ Ui_MainWindowClass#actionBuild_Start_Debugging_Source.->setEnabledcxx . . $ QAction#setEnabled(b45ddcbc8423892c).(false); |
| 638 | } |
| 639 | } |
| 640 | |
| 641 | void MainWindowcxx . . $ MainWindow#::on_actionFile_Open_triggeredcxx . . $ MainWindow#on_actionFile_Open_triggered(49f6e7a06ebc5aa8).() |
| 642 | { |
| 643 | if (maybeSaveSourcecxx . . $ MainWindow#maybeSaveSource(c9857a73d68e59ba).()) { |
| 644 | QStringcxx . . $ QString# fileName = QFileDialogcxx . . $ QFileDialog#::getOpenFileNamecxx . . $ QFileDialog#getOpenFileName(a6b29be4bec65236).( |
| 645 | this, |
| 646 | "Open text file"cxx . . $ QString#QString(85c52e162fed56f9)., |
| 647 | curPathcxx . . $ MainWindow#curPath., |
| 648 | "Text files (*.pepo *.txt *.pep)"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 649 | if (!fileName.isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) { |
| 650 | loadFilecxx . . $ MainWindow#loadFile(3520e46b33348bf6).(fileName); |
| 651 | uicxx . . $ MainWindow#ui.->pepCodeTraceTabcxx . . $ Ui_MainWindowClass#pepCodeTraceTab.->setCurrentIndexcxx . . $ QTabWidget#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 652 | curPathcxx . . $ MainWindow#curPath. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QFileInfocxx . . $ QFileInfo#(fileName).pathcxx . . $ QFileInfo#path(6ef7b6c27b00b43d).(); |
| 653 | uicxx . . $ MainWindow#ui.->actionBuild_Start_Debugging_Sourcecxx . . $ Ui_MainWindowClass#actionBuild_Start_Debugging_Source.->setEnabledcxx . . $ QAction#setEnabled(b45ddcbc8423892c).(false); |
| 654 | } |
| 655 | } |
| 656 | } |
| 657 | |
| 658 | bool MainWindowcxx . . $ MainWindow#::on_actionFile_Save_Source_triggeredcxx . . $ MainWindow#on_actionFile_Save_Source_triggered(c9857a73d68e59ba).() |
| 659 | { |
| 660 | if (curSourceFilecxx . . $ MainWindow#curSourceFile..isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) { |
| 661 | return on_actionFile_Save_Source_As_triggeredcxx . . $ MainWindow#on_actionFile_Save_Source_As_triggered(c9857a73d68e59ba).(); |
| 662 | } |
| 663 | else { |
| 664 | return saveFileSourcecxx . . $ MainWindow#saveFileSource(e1defb592416720d).(curSourceFilecxx . . $ MainWindow#curSourceFile.); |
| 665 | } |
| 666 | } |
| 667 | |
| 668 | bool MainWindowcxx . . $ MainWindow#::on_actionFile_Save_Source_As_triggeredcxx . . $ MainWindow#on_actionFile_Save_Source_As_triggered(c9857a73d68e59ba).() |
| 669 | { |
| 670 | QStringcxx . . $ QString# fileName = QFileDialogcxx . . $ QFileDialog#::getSaveFileNamecxx . . $ QFileDialog#getSaveFileName(a6b29be4bec65236).( |
| 671 | this, |
| 672 | "Save Source Code"cxx . . $ QString#QString(85c52e162fed56f9)., |
| 673 | curSourceFilecxx . . $ MainWindow#curSourceFile..isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).() ? curPathcxx . . $ MainWindow#curPath. +cxx . . $ operator+(3d22f08efddf8107). "/untitled.pep" : curPathcxx . . $ MainWindow#curPath. +cxx . . $ operator+(3d22f08efddf8107). "/" +cxx . . $ operator+(fab9b4f80031f353). strippedNamecxx . . $ MainWindow#strippedName(fd988a2ab94d906b).(curSourceFilecxx . . $ MainWindow#curSourceFile.), |
| 674 | "Pep8 Source (*.pep *.txt)"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 675 | if (fileName.isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) |
| 676 | return false; |
| 677 | |
| 678 | QSettingscxx . . $ QSettings# settingscxx . . $ QSettings#QSettings(b05324713c9ab95e).("Pep8"cxx . . $ QString#QString(85c52e162fed56f9)., "Recent Files"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 679 | QStringListcxx . . $ QStringList# files = settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("recentFileList"cxx . . $ QString#QString(85c52e162fed56f9).).toStringListcxx . . $ QVariant#toStringList(e1dbd5c4feadc8f5).(); |
| 680 | files.removeAllcxx . . $ QList#removeAll(dd8e59d271e40448).(fileName); |
| 681 | files.prependcxx . . $ QList#prepend(77d9f17553126ecb).(fileName); |
| 682 | while (files.sizecxx . . $ QList#size(ea6fe5115c70a13f).() > MaxRecentFilescxx . . $ MainWindow#MaxRecentFiles.) |
| 683 | files.removeLastcxx . . $ QList#removeLast(49f6e7a06ebc5aa8).(); |
| 684 | |
| 685 | settings.setValuecxx . . $ QSettings#setValue(1c60a90c724e6bfb).("recentFileList"cxx . . $ QString#QString(85c52e162fed56f9)., filescxx . . $ QVariant#QVariant(631c0101495f0328).); |
| 686 | |
| 687 | foreachcxx . . $ `<external>/15045578679651060896/qglobal.h:1145:13`! (QWidget *widget, QApplication::topLevelWidgets()) { |
| 688 | MainWindowcxx . . $ MainWindow# *mainWin = qobject_castcxx . . $ qobject_cast(c988cfc0ca08742e).<MainWindowcxx . . $ MainWindow# *>(widget); |
| 689 | if (mainWin) |
| 690 | mainWin->updateRecentFileActionscxx . . $ MainWindow#updateRecentFileActions(49f6e7a06ebc5aa8).(); |
| 691 | } |
| 692 | |
| 693 | return saveFileSourcecxx . . $ MainWindow#saveFileSource(e1defb592416720d).(fileName); |
| 694 | } |
| 695 | |
| 696 | bool MainWindowcxx . . $ MainWindow#::on_actionFile_Save_Object_As_triggeredcxx . . $ MainWindow#on_actionFile_Save_Object_As_triggered(c9857a73d68e59ba).() |
| 697 | { |
| 698 | QStringcxx . . $ QString# fileName = QFileDialogcxx . . $ QFileDialog#::getSaveFileNamecxx . . $ QFileDialog#getSaveFileName(a6b29be4bec65236).( |
| 699 | this, |
| 700 | "Save Object Code"cxx . . $ QString#QString(85c52e162fed56f9)., |
| 701 | curObjectFilecxx . . $ MainWindow#curObjectFile..isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).() ? curPathcxx . . $ MainWindow#curPath. +cxx . . $ operator+(3d22f08efddf8107). "/untitled.pepo" : curPathcxx . . $ MainWindow#curPath. +cxx . . $ operator+(3d22f08efddf8107). "/" +cxx . . $ operator+(fab9b4f80031f353). strippedNamecxx . . $ MainWindow#strippedName(fd988a2ab94d906b).(curObjectFilecxx . . $ MainWindow#curObjectFile.), |
| 702 | "Pep8 Object (*.pepo *.txt)"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 703 | if (fileName.isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) |
| 704 | return false; |
| 705 | |
| 706 | QSettingscxx . . $ QSettings# settingscxx . . $ QSettings#QSettings(b05324713c9ab95e).("Pep8"cxx . . $ QString#QString(85c52e162fed56f9)., "Recent Files"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 707 | QStringListcxx . . $ QStringList# files = settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("recentFileList"cxx . . $ QString#QString(85c52e162fed56f9).).toStringListcxx . . $ QVariant#toStringList(e1dbd5c4feadc8f5).(); |
| 708 | files.removeAllcxx . . $ QList#removeAll(dd8e59d271e40448).(fileName); |
| 709 | files.prependcxx . . $ QList#prepend(77d9f17553126ecb).(fileName); |
| 710 | while (files.sizecxx . . $ QList#size(ea6fe5115c70a13f).() > MaxRecentFilescxx . . $ MainWindow#MaxRecentFiles.) |
| 711 | files.removeLastcxx . . $ QList#removeLast(49f6e7a06ebc5aa8).(); |
| 712 | |
| 713 | settings.setValuecxx . . $ QSettings#setValue(1c60a90c724e6bfb).("recentFileList"cxx . . $ QString#QString(85c52e162fed56f9)., filescxx . . $ QVariant#QVariant(631c0101495f0328).); |
| 714 | |
| 715 | foreachcxx . . $ `<external>/15045578679651060896/qglobal.h:1145:13`! (QWidget *widget, QApplication::topLevelWidgets()) { |
| 716 | MainWindowcxx . . $ MainWindow# *mainWin = qobject_castcxx . . $ qobject_cast(c988cfc0ca08742e).<MainWindowcxx . . $ MainWindow# *>(widget); |
| 717 | if (mainWin) |
| 718 | mainWin->updateRecentFileActionscxx . . $ MainWindow#updateRecentFileActions(49f6e7a06ebc5aa8).(); |
| 719 | } |
| 720 | |
| 721 | return saveFileObjectcxx . . $ MainWindow#saveFileObject(e1defb592416720d).(fileName); |
| 722 | } |
| 723 | |
| 724 | bool MainWindowcxx . . $ MainWindow#::on_actionFile_Save_Listing_As_triggeredcxx . . $ MainWindow#on_actionFile_Save_Listing_As_triggered(c9857a73d68e59ba).() |
| 725 | { |
| 726 | QStringcxx . . $ QString# fileName = QFileDialogcxx . . $ QFileDialog#::getSaveFileNamecxx . . $ QFileDialog#getSaveFileName(a6b29be4bec65236).( |
| 727 | this, |
| 728 | "Save Assembler Listing"cxx . . $ QString#QString(85c52e162fed56f9)., |
| 729 | curListingFilecxx . . $ MainWindow#curListingFile..isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).() ? curPathcxx . . $ MainWindow#curPath. +cxx . . $ operator+(3d22f08efddf8107). "/untitled.pepl" : curPathcxx . . $ MainWindow#curPath. +cxx . . $ operator+(3d22f08efddf8107). "/" +cxx . . $ operator+(fab9b4f80031f353). strippedNamecxx . . $ MainWindow#strippedName(fd988a2ab94d906b).(curListingFilecxx . . $ MainWindow#curListingFile.), |
| 730 | "Pep8 Listing (*.pepl)"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 731 | if (fileName.isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) { |
| 732 | return false; |
| 733 | } |
| 734 | return saveFileListingcxx . . $ MainWindow#saveFileListing(e1defb592416720d).(fileName); |
| 735 | } |
| 736 | |
| 737 | void MainWindowcxx . . $ MainWindow#::on_actionFile_Print_Source_triggeredcxx . . $ MainWindow#on_actionFile_Print_Source_triggered(49f6e7a06ebc5aa8).() |
| 738 | { |
| 739 | QTextDocumentcxx . . $ QTextDocument# documentcxx . . $ QTextDocument#QTextDocument(6b24f83d17022bd9).(sourceCodePanecxx . . $ MainWindow#sourceCodePane.->toPlainTextcxx . . $ SourceCodePane#toPlainText(4365c3963150523e).(), this); |
| 740 | document.setDefaultFontcxx . . $ QTextDocument#setDefaultFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).("Courier"cxx . . $ QString#QString(85c52e162fed56f9)., 10, -1)); |
| 741 | |
| 742 | QPrintercxx . . $ QPrinter# printercxx . . $ QPrinter#QPrinter(2a030365c79fc84d).(QPrintercxx . . $ QPrinter#::HighResolutioncxx . . $ QPrinter#HighResolution.); |
| 743 | |
| 744 | QPrintDialogcxx . . $ QPrintDialog# *dialog = new QPrintDialogcxx . . $ QPrintDialog#(&printer, this); |
| 745 | dialog->setWindowTitlecxx . . $ QWidget#setWindowTitle(3520e46b33348bf6).("Print Source Code"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 746 | if (dialog->execcxx . . $ QPrintDialog#exec(b126dc7c1de90089).() == QDialogcxx . . $ QDialog#::Acceptedcxx . . $ QDialog#Accepted.) { |
| 747 | document.printcxx . . $ QTextDocument#print(917856361d7925f9).(&printer); |
| 748 | } |
| 749 | } |
| 750 | |
| 751 | void MainWindowcxx . . $ MainWindow#::on_actionFile_Print_Object_triggeredcxx . . $ MainWindow#on_actionFile_Print_Object_triggered(49f6e7a06ebc5aa8).() |
| 752 | { |
| 753 | QTextDocumentcxx . . $ QTextDocument# documentcxx . . $ QTextDocument#QTextDocument(6b24f83d17022bd9).(objectCodePanecxx . . $ MainWindow#objectCodePane.->toPlainTextcxx . . $ ObjectCodePane#toPlainText(4365c3963150523e).(), this); |
| 754 | document.setDefaultFontcxx . . $ QTextDocument#setDefaultFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).("Courier"cxx . . $ QString#QString(85c52e162fed56f9)., 10, -1)); |
| 755 | |
| 756 | QPrintercxx . . $ QPrinter# printercxx . . $ QPrinter#QPrinter(2a030365c79fc84d).(QPrintercxx . . $ QPrinter#::HighResolutioncxx . . $ QPrinter#HighResolution.); |
| 757 | |
| 758 | QPrintDialogcxx . . $ QPrintDialog# *dialog = new QPrintDialogcxx . . $ QPrintDialog#(&printer, this); |
| 759 | dialog->setWindowTitlecxx . . $ QWidget#setWindowTitle(3520e46b33348bf6).("Print Object Code"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 760 | if (dialog->execcxx . . $ QPrintDialog#exec(b126dc7c1de90089).() == QDialogcxx . . $ QDialog#::Acceptedcxx . . $ QDialog#Accepted.) { |
| 761 | document.printcxx . . $ QTextDocument#print(917856361d7925f9).(&printer); |
| 762 | } |
| 763 | } |
| 764 | |
| 765 | void MainWindowcxx . . $ MainWindow#::on_actionFile_Print_Listing_triggeredcxx . . $ MainWindow#on_actionFile_Print_Listing_triggered(49f6e7a06ebc5aa8).() |
| 766 | { |
| 767 | QTextDocumentcxx . . $ QTextDocument# documentcxx . . $ QTextDocument#QTextDocument(6b24f83d17022bd9).(assemblerListingPanecxx . . $ MainWindow#assemblerListingPane.->toPlainTextcxx . . $ AssemblerListingPane#toPlainText(4365c3963150523e).(), this); |
| 768 | document.setDefaultFontcxx . . $ QTextDocument#setDefaultFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).("Courier"cxx . . $ QString#QString(85c52e162fed56f9)., 10, -1)); |
| 769 | |
| 770 | QPrintercxx . . $ QPrinter# printercxx . . $ QPrinter#QPrinter(2a030365c79fc84d).(QPrintercxx . . $ QPrinter#::HighResolutioncxx . . $ QPrinter#HighResolution.); |
| 771 | |
| 772 | QPrintDialogcxx . . $ QPrintDialog# *dialog = new QPrintDialogcxx . . $ QPrintDialog#(&printer, this); |
| 773 | dialog->setWindowTitlecxx . . $ QWidget#setWindowTitle(3520e46b33348bf6).("Print Assembler Listing"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 774 | if (dialog->execcxx . . $ QPrintDialog#exec(b126dc7c1de90089).() == QDialogcxx . . $ QDialog#::Acceptedcxx . . $ QDialog#Accepted.) { |
| 775 | document.printcxx . . $ QTextDocument#print(917856361d7925f9).(&printer); |
| 776 | } |
| 777 | |
| 778 | } |
| 779 | |
| 780 | // Edit MainWindow triggers |
| 781 | void MainWindowcxx . . $ MainWindow#::on_actionEdit_Undo_triggeredcxx . . $ MainWindow#on_actionEdit_Undo_triggered(49f6e7a06ebc5aa8).() |
| 782 | { |
| 783 | if (sourceCodePanecxx . . $ MainWindow#sourceCodePane.->hasFocuscxx . . $ SourceCodePane#hasFocus(c9857a73d68e59ba).()) { |
| 784 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->undocxx . . $ SourceCodePane#undo(49f6e7a06ebc5aa8).(); |
| 785 | } |
| 786 | else if (objectCodePanecxx . . $ MainWindow#objectCodePane.->hasFocuscxx . . $ ObjectCodePane#hasFocus(c9857a73d68e59ba).()) { |
| 787 | objectCodePanecxx . . $ MainWindow#objectCodePane.->undocxx . . $ ObjectCodePane#undo(49f6e7a06ebc5aa8).(); |
| 788 | } |
| 789 | else if (inputPanecxx . . $ MainWindow#inputPane.->hasFocuscxx . . $ InputPane#hasFocus(c9857a73d68e59ba).()) { |
| 790 | inputPanecxx . . $ MainWindow#inputPane.->undocxx . . $ InputPane#undo(49f6e7a06ebc5aa8).(); |
| 791 | } |
| 792 | } |
| 793 | |
| 794 | void MainWindowcxx . . $ MainWindow#::on_actionEdit_Redo_triggeredcxx . . $ MainWindow#on_actionEdit_Redo_triggered(49f6e7a06ebc5aa8).() |
| 795 | { |
| 796 | if (sourceCodePanecxx . . $ MainWindow#sourceCodePane.->hasFocuscxx . . $ SourceCodePane#hasFocus(c9857a73d68e59ba).()) { |
| 797 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->redocxx . . $ SourceCodePane#redo(49f6e7a06ebc5aa8).(); |
| 798 | } |
| 799 | else if (objectCodePanecxx . . $ MainWindow#objectCodePane.->hasFocuscxx . . $ ObjectCodePane#hasFocus(c9857a73d68e59ba).()) { |
| 800 | objectCodePanecxx . . $ MainWindow#objectCodePane.->redocxx . . $ ObjectCodePane#redo(49f6e7a06ebc5aa8).(); |
| 801 | } |
| 802 | else if (inputPanecxx . . $ MainWindow#inputPane.->hasFocuscxx . . $ InputPane#hasFocus(c9857a73d68e59ba).()) { |
| 803 | inputPanecxx . . $ MainWindow#inputPane.->redocxx . . $ InputPane#redo(49f6e7a06ebc5aa8).(); |
| 804 | } |
| 805 | } |
| 806 | |
| 807 | void MainWindowcxx . . $ MainWindow#::on_actionEdit_Cut_triggeredcxx . . $ MainWindow#on_actionEdit_Cut_triggered(49f6e7a06ebc5aa8).() |
| 808 | { |
| 809 | if (sourceCodePanecxx . . $ MainWindow#sourceCodePane.->hasFocuscxx . . $ SourceCodePane#hasFocus(c9857a73d68e59ba).()) { |
| 810 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->cutcxx . . $ SourceCodePane#cut(49f6e7a06ebc5aa8).(); |
| 811 | } |
| 812 | else if (objectCodePanecxx . . $ MainWindow#objectCodePane.->hasFocuscxx . . $ ObjectCodePane#hasFocus(c9857a73d68e59ba).()) { |
| 813 | objectCodePanecxx . . $ MainWindow#objectCodePane.->cutcxx . . $ ObjectCodePane#cut(49f6e7a06ebc5aa8).(); |
| 814 | } |
| 815 | else if (inputPanecxx . . $ MainWindow#inputPane.->hasFocuscxx . . $ InputPane#hasFocus(c9857a73d68e59ba).()) { |
| 816 | inputPanecxx . . $ MainWindow#inputPane.->cutcxx . . $ InputPane#cut(49f6e7a06ebc5aa8).(); |
| 817 | } |
| 818 | } |
| 819 | |
| 820 | void MainWindowcxx . . $ MainWindow#::on_actionEdit_Copy_triggeredcxx . . $ MainWindow#on_actionEdit_Copy_triggered(49f6e7a06ebc5aa8).() |
| 821 | { |
| 822 | if (sourceCodePanecxx . . $ MainWindow#sourceCodePane.->hasFocuscxx . . $ SourceCodePane#hasFocus(c9857a73d68e59ba).()) { |
| 823 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->copycxx . . $ SourceCodePane#copy(49f6e7a06ebc5aa8).(); |
| 824 | } |
| 825 | else if (objectCodePanecxx . . $ MainWindow#objectCodePane.->hasFocuscxx . . $ ObjectCodePane#hasFocus(c9857a73d68e59ba).()) { |
| 826 | objectCodePanecxx . . $ MainWindow#objectCodePane.->copycxx . . $ ObjectCodePane#copy(49f6e7a06ebc5aa8).(); |
| 827 | } |
| 828 | else if (assemblerListingPanecxx . . $ MainWindow#assemblerListingPane.->hasFocuscxx . . $ AssemblerListingPane#hasFocus(c9857a73d68e59ba).()) { |
| 829 | assemblerListingPanecxx . . $ MainWindow#assemblerListingPane.->copycxx . . $ AssemblerListingPane#copy(49f6e7a06ebc5aa8).(); |
| 830 | } |
| 831 | else if (inputPanecxx . . $ MainWindow#inputPane.->hasFocuscxx . . $ InputPane#hasFocus(c9857a73d68e59ba).()) { |
| 832 | inputPanecxx . . $ MainWindow#inputPane.->copycxx . . $ InputPane#copy(49f6e7a06ebc5aa8).(); |
| 833 | } |
| 834 | else if (outputPanecxx . . $ MainWindow#outputPane.->hasFocuscxx . . $ OutputPane#hasFocus(c9857a73d68e59ba).()) { |
| 835 | outputPanecxx . . $ MainWindow#outputPane.->copycxx . . $ OutputPane#copy(49f6e7a06ebc5aa8).(); |
| 836 | } |
| 837 | else if (terminalPanecxx . . $ MainWindow#terminalPane.->hasFocuscxx . . $ TerminalPane#hasFocus(c9857a73d68e59ba).()) { |
| 838 | terminalPanecxx . . $ MainWindow#terminalPane.->copycxx . . $ TerminalPane#copy(49f6e7a06ebc5aa8).(); |
| 839 | } |
| 840 | else if (memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->hasFocuscxx . . $ MemoryDumpPane#hasFocus(c9857a73d68e59ba).()) { |
| 841 | memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->copycxx . . $ MemoryDumpPane#copy(49f6e7a06ebc5aa8).(); |
| 842 | } |
| 843 | else if (helpDialogcxx . . $ MainWindow#helpDialog.->hasFocuscxx . . $ HelpDialog#hasFocus(c9857a73d68e59ba).()) { |
| 844 | helpDialogcxx . . $ MainWindow#helpDialog.->copycxx . . $ HelpDialog#copy(49f6e7a06ebc5aa8).(); |
| 845 | } |
| 846 | } |
| 847 | |
| 848 | void MainWindowcxx . . $ MainWindow#::on_actionEdit_Paste_triggeredcxx . . $ MainWindow#on_actionEdit_Paste_triggered(49f6e7a06ebc5aa8).() |
| 849 | { |
| 850 | if (sourceCodePanecxx . . $ MainWindow#sourceCodePane.->hasFocuscxx . . $ SourceCodePane#hasFocus(c9857a73d68e59ba).()) { |
| 851 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->pastecxx . . $ SourceCodePane#paste(49f6e7a06ebc5aa8).(); |
| 852 | } |
| 853 | else if (objectCodePanecxx . . $ MainWindow#objectCodePane.->hasFocuscxx . . $ ObjectCodePane#hasFocus(c9857a73d68e59ba).()) { |
| 854 | objectCodePanecxx . . $ MainWindow#objectCodePane.->pastecxx . . $ ObjectCodePane#paste(49f6e7a06ebc5aa8).(); |
| 855 | } |
| 856 | else if (inputPanecxx . . $ MainWindow#inputPane.->hasFocuscxx . . $ InputPane#hasFocus(c9857a73d68e59ba).()) { |
| 857 | inputPanecxx . . $ MainWindow#inputPane.->pastecxx . . $ InputPane#paste(49f6e7a06ebc5aa8).(); |
| 858 | } |
| 859 | } |
| 860 | |
| 861 | void MainWindowcxx . . $ MainWindow#::on_actionEdit_Format_From_Listing_triggeredcxx . . $ MainWindow#on_actionEdit_Format_From_Listing_triggered(49f6e7a06ebc5aa8).() |
| 862 | { |
| 863 | QStringListcxx . . $ QStringList# assemblerListingList = sourceCodePanecxx . . $ MainWindow#sourceCodePane.->getAssemblerListingListcxx . . $ SourceCodePane#getAssemblerListingList(669a05bc42dd57cc).(); |
| 864 | assemblerListingList.replaceInStringscxx . . $ QListSpecialMethods#replaceInStrings(87c35d00f6f8ccd6).(QRegExpcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).("^............."cxx . . $ QString#QString(85c52e162fed56f9).), ""cxx . . $ QString#QString(85c52e162fed56f9).); |
| 865 | assemblerListingList.removeAllcxx . . $ QList#removeAll(dd8e59d271e40448).(""cxx . . $ QString#QString(85c52e162fed56f9).); |
| 866 | if (!assemblerListingList.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) { |
| 867 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->setSourceCodePaneTextcxx . . $ SourceCodePane#setSourceCodePaneText(7df51288a9ebd664).(assemblerListingList.joincxx . . $ QListSpecialMethods#join(5555d9024dcf93fb).("\n"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 868 | } |
| 869 | } |
| 870 | void MainWindowcxx . . $ MainWindow#::on_actionReset_Fonts_to_Defaults_triggeredcxx . . $ MainWindow#on_actionReset_Fonts_to_Defaults_triggered(49f6e7a06ebc5aa8).() |
| 871 | { |
| 872 | codeFontcxx . . $ MainWindow#codeFont. =cxx . . $ QFont#`operator=`(d35b8cc88ecbd547). QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::codeFontcxx . . $ Pep#codeFont.,Pepcxx . . $ Pep#::codeFontSizecxx . . $ Pep#codeFontSize.); |
| 873 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! fontChangedcxx . . $ MainWindow#fontChanged(19c44da831d1de49).(codeFontcxx . . $ QFont#QFont(d0a4bd0c8524b912).); |
| 874 | } |
| 875 | |
| 876 | void MainWindowcxx . . $ MainWindow#::on_actionEdit_Font_triggeredcxx . . $ MainWindow#on_actionEdit_Font_triggered(49f6e7a06ebc5aa8).() |
| 877 | { |
| 878 | bool ok = false; |
| 879 | QFontcxx . . $ QFont# font = QFontDialogcxx . . $ QFontDialog#::getFontcxx . . $ QFontDialog#getFont(44300c95903bfe7b).(&ok, codeFontcxx . . $ MainWindow#codeFont., this, "Set Source Code Font"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 880 | if (ok) { |
| 881 | codeFontcxx . . $ MainWindow#codeFont. =cxx . . $ QFont#`operator=`(49a3a30190653d0b). font; |
| 882 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! fontChangedcxx . . $ MainWindow#fontChanged(19c44da831d1de49).(codeFontcxx . . $ QFont#QFont(d0a4bd0c8524b912).); |
| 883 | } |
| 884 | } |
| 885 | |
| 886 | void MainWindowcxx . . $ MainWindow#::on_actionEdit_Remove_Error_Messages_triggeredcxx . . $ MainWindow#on_actionEdit_Remove_Error_Messages_triggered(49f6e7a06ebc5aa8).() |
| 887 | { |
| 888 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->removeErrorMessagescxx . . $ SourceCodePane#removeErrorMessages(49f6e7a06ebc5aa8).(); |
| 889 | } |
| 890 | |
| 891 | // Build MainWindow triggers |
| 892 | void MainWindowcxx . . $ MainWindow#::on_actionBuild_Assemble_triggeredcxx . . $ MainWindow#on_actionBuild_Assemble_triggered(49f6e7a06ebc5aa8).() |
| 893 | { |
| 894 | if (assemblecxx . . $ MainWindow#assemble(c9857a73d68e59ba).()) { |
| 895 | uicxx . . $ MainWindow#ui.->statusbarcxx . . $ Ui_MainWindowClass#statusbar.->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("Assembly succeeded"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 896 | } |
| 897 | else { |
| 898 | uicxx . . $ MainWindow#ui.->statusbarcxx . . $ Ui_MainWindowClass#statusbar.->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("Assembly failed"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 899 | } |
| 900 | } |
| 901 | |
| 902 | void MainWindowcxx . . $ MainWindow#::on_actionBuild_Load_triggeredcxx . . $ MainWindow#on_actionBuild_Load_triggered(49f6e7a06ebc5aa8).() |
| 903 | { |
| 904 | if (loadcxx . . $ MainWindow#load(c9857a73d68e59ba).()) { |
| 905 | uicxx . . $ MainWindow#ui.->statusbarcxx . . $ Ui_MainWindowClass#statusbar.->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("Load succeeded"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 906 | } |
| 907 | else { |
| 908 | uicxx . . $ MainWindow#ui.->statusbarcxx . . $ Ui_MainWindowClass#statusbar.->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("Load failed"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 909 | } |
| 910 | } |
| 911 | |
| 912 | void MainWindowcxx . . $ MainWindow#::on_actionBuild_Execute_triggeredcxx . . $ MainWindow#on_actionBuild_Execute_triggered(49f6e7a06ebc5aa8).() |
| 913 | { |
| 914 | cpuPanecxx . . $ MainWindow#cpuPane.->clearCpucxx . . $ CpuPane#clearCpu(49f6e7a06ebc5aa8).(); |
| 915 | Simcxx . . $ Sim#::stackPointercxx . . $ Sim#stackPointer. = Simcxx . . $ Sim#::readWordcxx . . $ Sim#readWord(7864480464b09eea).(Pepcxx . . $ Pep#::dotBurnArgumentcxx . . $ Pep#dotBurnArgument. - 7); |
| 916 | Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter. = 0x0000; |
| 917 | setDebugStatecxx . . $ MainWindow#setDebugState(b45ddcbc8423892c).(true); |
| 918 | Simcxx . . $ Sim#::trappedcxx . . $ Sim#trapped. = false; |
| 919 | cpuPanecxx . . $ MainWindow#cpuPane.->runClickedcxx . . $ CpuPane#runClicked(49f6e7a06ebc5aa8).(); |
| 920 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->setReadOnlycxx . . $ SourceCodePane#setReadOnly(b45ddcbc8423892c).(true); |
| 921 | objectCodePanecxx . . $ MainWindow#objectCodePane.->setReadOnlycxx . . $ ObjectCodePane#setReadOnly(b45ddcbc8423892c).(true); |
| 922 | if (uicxx . . $ MainWindow#ui.->pepInputOutputTabcxx . . $ Ui_MainWindowClass#pepInputOutputTab.->currentIndexcxx . . $ QTabWidget#currentIndex(455f465bc33b4cdf).() == 0) { |
| 923 | uicxx . . $ MainWindow#ui.->pepInputOutputTabcxx . . $ Ui_MainWindowClass#pepInputOutputTab.->setTabEnabledcxx . . $ QTabWidget#setTabEnabled(918ebd27a9ddbad3).(1, false); |
| 924 | outputPanecxx . . $ MainWindow#outputPane.->clearOutputcxx . . $ OutputPane#clearOutput(49f6e7a06ebc5aa8).(); |
| 925 | QStringcxx . . $ QString# s = inputPanecxx . . $ MainWindow#inputPane.->toPlainTextcxx . . $ InputPane#toPlainText(4365c3963150523e).(); |
| 926 | if (!s.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).("\n"cxx . . $ QString#QString(85c52e162fed56f9).)) { |
| 927 | s.appendcxx . . $ QString#append(d02845eef0c33901).("\n"); |
| 928 | } |
| 929 | Simcxx . . $ Sim#::inputBuffercxx . . $ Sim#inputBuffer. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). s; |
| 930 | cpuPanecxx . . $ MainWindow#cpuPane.->runWithBatchcxx . . $ CpuPane#runWithBatch(49f6e7a06ebc5aa8).(); |
| 931 | } |
| 932 | else { |
| 933 | uicxx . . $ MainWindow#ui.->pepInputOutputTabcxx . . $ Ui_MainWindowClass#pepInputOutputTab.->setTabEnabledcxx . . $ QTabWidget#setTabEnabled(918ebd27a9ddbad3).(0, false); |
| 934 | Simcxx . . $ Sim#::inputBuffercxx . . $ Sim#inputBuffer..clearcxx . . $ QString#clear(49f6e7a06ebc5aa8).(); |
| 935 | terminalPanecxx . . $ MainWindow#terminalPane.->clearTerminalcxx . . $ TerminalPane#clearTerminal(49f6e7a06ebc5aa8).(); |
| 936 | cpuPanecxx . . $ MainWindow#cpuPane.->runWithTerminalcxx . . $ CpuPane#runWithTerminal(49f6e7a06ebc5aa8).(); |
| 937 | } |
| 938 | // Other things may go here. |
| 939 | } |
| 940 | |
| 941 | void MainWindowcxx . . $ MainWindow#::on_actionBuild_Run_Source_triggeredcxx . . $ MainWindow#on_actionBuild_Run_Source_triggered(49f6e7a06ebc5aa8).() |
| 942 | { |
| 943 | if (assemblecxx . . $ MainWindow#assemble(c9857a73d68e59ba).() && loadcxx . . $ MainWindow#load(c9857a73d68e59ba).()) { |
| 944 | on_actionBuild_Execute_triggeredcxx . . $ MainWindow#on_actionBuild_Execute_triggered(49f6e7a06ebc5aa8).(); |
| 945 | } |
| 946 | } |
| 947 | |
| 948 | void MainWindowcxx . . $ MainWindow#::on_actionBuild_Start_Debugging_Source_triggeredcxx . . $ MainWindow#on_actionBuild_Start_Debugging_Source_triggered(49f6e7a06ebc5aa8).() |
| 949 | { |
| 950 | if (!assemblerListingPanecxx . . $ MainWindow#assemblerListingPane.->isEmptycxx . . $ AssemblerListingPane#isEmpty(c9857a73d68e59ba).() && loadcxx . . $ MainWindow#load(c9857a73d68e59ba).()) { |
| 951 | uicxx . . $ MainWindow#ui.->statusbarcxx . . $ Ui_MainWindowClass#statusbar.->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("Load succeeded"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 952 | Simcxx . . $ Sim#::stackPointercxx . . $ Sim#stackPointer. = Simcxx . . $ Sim#::readWordcxx . . $ Sim#readWord(7864480464b09eea).(Pepcxx . . $ Pep#::dotBurnArgumentcxx . . $ Pep#dotBurnArgument. - 7); |
| 953 | Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter. = 0x0000; |
| 954 | |
| 955 | setDebugStatecxx . . $ MainWindow#setDebugState(b45ddcbc8423892c).(true); |
| 956 | Simcxx . . $ Sim#::trappedcxx . . $ Sim#trapped. = false; |
| 957 | |
| 958 | if (uicxx . . $ MainWindow#ui.->pepInputOutputTabcxx . . $ Ui_MainWindowClass#pepInputOutputTab.->currentIndexcxx . . $ QTabWidget#currentIndex(455f465bc33b4cdf).() == 0) { |
| 959 | uicxx . . $ MainWindow#ui.->pepInputOutputTabcxx . . $ Ui_MainWindowClass#pepInputOutputTab.->setTabEnabledcxx . . $ QTabWidget#setTabEnabled(918ebd27a9ddbad3).(1, false); |
| 960 | outputPanecxx . . $ MainWindow#outputPane.->clearOutputcxx . . $ OutputPane#clearOutput(49f6e7a06ebc5aa8).(); |
| 961 | QStringcxx . . $ QString# s = inputPanecxx . . $ MainWindow#inputPane.->toPlainTextcxx . . $ InputPane#toPlainText(4365c3963150523e).(); |
| 962 | if (!s.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).("\n"cxx . . $ QString#QString(85c52e162fed56f9).)) { |
| 963 | s.appendcxx . . $ QString#append(d02845eef0c33901).("\n"); |
| 964 | } |
| 965 | Simcxx . . $ Sim#::inputBuffercxx . . $ Sim#inputBuffer. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). s; |
| 966 | } |
| 967 | else { |
| 968 | uicxx . . $ MainWindow#ui.->pepInputOutputTabcxx . . $ Ui_MainWindowClass#pepInputOutputTab.->setTabEnabledcxx . . $ QTabWidget#setTabEnabled(918ebd27a9ddbad3).(0, false); |
| 969 | Simcxx . . $ Sim#::inputBuffercxx . . $ Sim#inputBuffer..clearcxx . . $ QString#clear(49f6e7a06ebc5aa8).(); |
| 970 | terminalPanecxx . . $ MainWindow#terminalPane.->clearTerminalcxx . . $ TerminalPane#clearTerminal(49f6e7a06ebc5aa8).(); |
| 971 | } |
| 972 | |
| 973 | uicxx . . $ MainWindow#ui.->pepCodeTraceTabcxx . . $ Ui_MainWindowClass#pepCodeTraceTab.->setCurrentIndexcxx . . $ QTabWidget#setCurrentIndex(d4f767463ce0a6b3).(1); // Make listing trace pane visible |
| 974 | |
| 975 | cpuPanecxx . . $ MainWindow#cpuPane.->updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).(); |
| 976 | listingTracePanecxx . . $ MainWindow#listingTracePane.->setDebuggingStatecxx . . $ ListingTracePane#setDebuggingState(b45ddcbc8423892c).(true); |
| 977 | cpuPanecxx . . $ MainWindow#cpuPane.->setButtonsEnabledcxx . . $ CpuPane#setButtonsEnabled(b45ddcbc8423892c).(true); |
| 978 | |
| 979 | if (!memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->isHiddencxx . . $ QWidget#isHidden(50ce9a9e25b4a850).()) { |
| 980 | memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->highlightMemorycxx . . $ MemoryDumpPane#highlightMemory(b45ddcbc8423892c).(true); |
| 981 | } |
| 982 | if (!memoryTracePanecxx . . $ MainWindow#memoryTracePane.->isHiddencxx . . $ QWidget#isHidden(50ce9a9e25b4a850).()) { |
| 983 | memoryTracePanecxx . . $ MainWindow#memoryTracePane.->setMemoryTracecxx . . $ MemoryTracePane#setMemoryTrace(49f6e7a06ebc5aa8).(); |
| 984 | } |
| 985 | } |
| 986 | else { |
| 987 | if (assemblerListingPanecxx . . $ MainWindow#assemblerListingPane.->isEmptycxx . . $ AssemblerListingPane#isEmpty(c9857a73d68e59ba).()) { |
| 988 | uicxx . . $ MainWindow#ui.->statusbarcxx . . $ Ui_MainWindowClass#statusbar.->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("No assembler listing, cannot debug source"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 989 | } |
| 990 | else { |
| 991 | uicxx . . $ MainWindow#ui.->statusbarcxx . . $ Ui_MainWindowClass#statusbar.->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("Load failed"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 992 | } |
| 993 | } |
| 994 | } |
| 995 | |
| 996 | void MainWindowcxx . . $ MainWindow#::on_actionBuild_Run_Object_triggeredcxx . . $ MainWindow#on_actionBuild_Run_Object_triggered(49f6e7a06ebc5aa8).() |
| 997 | { |
| 998 | if (loadcxx . . $ MainWindow#load(c9857a73d68e59ba).()) { |
| 999 | uicxx . . $ MainWindow#ui.->statusbarcxx . . $ Ui_MainWindowClass#statusbar.->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("Load succeeded"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 1000 | on_actionBuild_Execute_triggeredcxx . . $ MainWindow#on_actionBuild_Execute_triggered(49f6e7a06ebc5aa8).(); |
| 1001 | } |
| 1002 | else { |
| 1003 | uicxx . . $ MainWindow#ui.->statusbarcxx . . $ Ui_MainWindowClass#statusbar.->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("Load failed"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 1004 | } |
| 1005 | } |
| 1006 | |
| 1007 | void MainWindowcxx . . $ MainWindow#::on_actionBuild_Start_Debugging_Object_triggeredcxx . . $ MainWindow#on_actionBuild_Start_Debugging_Object_triggered(49f6e7a06ebc5aa8).() |
| 1008 | { |
| 1009 | if (loadcxx . . $ MainWindow#load(c9857a73d68e59ba).()) { |
| 1010 | Simcxx . . $ Sim#::stackPointercxx . . $ Sim#stackPointer. = Simcxx . . $ Sim#::readWordcxx . . $ Sim#readWord(7864480464b09eea).(Pepcxx . . $ Pep#::dotBurnArgumentcxx . . $ Pep#dotBurnArgument. - 7); |
| 1011 | Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter. = 0x0000; |
| 1012 | |
| 1013 | setDebugStatecxx . . $ MainWindow#setDebugState(b45ddcbc8423892c).(true); |
| 1014 | Simcxx . . $ Sim#::trappedcxx . . $ Sim#trapped. = false; |
| 1015 | |
| 1016 | uicxx . . $ MainWindow#ui.->statusbarcxx . . $ Ui_MainWindowClass#statusbar.->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("Load succeeded"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 1017 | cpuPanecxx . . $ MainWindow#cpuPane.->updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).(); |
| 1018 | listingTracePanecxx . . $ MainWindow#listingTracePane.->setDebuggingStatecxx . . $ ListingTracePane#setDebuggingState(b45ddcbc8423892c).(true); |
| 1019 | if (uicxx . . $ MainWindow#ui.->pepInputOutputTabcxx . . $ Ui_MainWindowClass#pepInputOutputTab.->currentIndexcxx . . $ QTabWidget#currentIndex(455f465bc33b4cdf).() == 0) { |
| 1020 | uicxx . . $ MainWindow#ui.->pepInputOutputTabcxx . . $ Ui_MainWindowClass#pepInputOutputTab.->setTabEnabledcxx . . $ QTabWidget#setTabEnabled(918ebd27a9ddbad3).(1, false); |
| 1021 | outputPanecxx . . $ MainWindow#outputPane.->clearOutputcxx . . $ OutputPane#clearOutput(49f6e7a06ebc5aa8).(); |
| 1022 | QStringcxx . . $ QString# s = inputPanecxx . . $ MainWindow#inputPane.->toPlainTextcxx . . $ InputPane#toPlainText(4365c3963150523e).(); |
| 1023 | if (!s.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).("\n"cxx . . $ QString#QString(85c52e162fed56f9).)) { |
| 1024 | s.appendcxx . . $ QString#append(d02845eef0c33901).("\n"); |
| 1025 | } |
| 1026 | Simcxx . . $ Sim#::inputBuffercxx . . $ Sim#inputBuffer. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). s; |
| 1027 | } |
| 1028 | else { |
| 1029 | uicxx . . $ MainWindow#ui.->pepInputOutputTabcxx . . $ Ui_MainWindowClass#pepInputOutputTab.->setTabEnabledcxx . . $ QTabWidget#setTabEnabled(918ebd27a9ddbad3).(0, false); |
| 1030 | Simcxx . . $ Sim#::inputBuffercxx . . $ Sim#inputBuffer..clearcxx . . $ QString#clear(49f6e7a06ebc5aa8).(); |
| 1031 | terminalPanecxx . . $ MainWindow#terminalPane.->clearTerminalcxx . . $ TerminalPane#clearTerminal(49f6e7a06ebc5aa8).(); |
| 1032 | } |
| 1033 | |
| 1034 | cpuPanecxx . . $ MainWindow#cpuPane.->setButtonsEnabledcxx . . $ CpuPane#setButtonsEnabled(b45ddcbc8423892c).(true); |
| 1035 | |
| 1036 | if (!memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->isHiddencxx . . $ QWidget#isHidden(50ce9a9e25b4a850).()) { |
| 1037 | memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->highlightMemorycxx . . $ MemoryDumpPane#highlightMemory(b45ddcbc8423892c).(true); |
| 1038 | } |
| 1039 | } |
| 1040 | else { |
| 1041 | uicxx . . $ MainWindow#ui.->statusbarcxx . . $ Ui_MainWindowClass#statusbar.->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("Load failed"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 1042 | } |
| 1043 | } |
| 1044 | |
| 1045 | void MainWindowcxx . . $ MainWindow#::on_actionBuild_Start_Debugging_Loader_triggeredcxx . . $ MainWindow#on_actionBuild_Start_Debugging_Loader_triggered(49f6e7a06ebc5aa8).() |
| 1046 | { |
| 1047 | Simcxx . . $ Sim#::stackPointercxx . . $ Sim#stackPointer. = Simcxx . . $ Sim#::readWordcxx . . $ Sim#readWord(7864480464b09eea).(Pepcxx . . $ Pep#::dotBurnArgumentcxx . . $ Pep#dotBurnArgument. - 5); |
| 1048 | // 5 is the vector offset from the last byte of the OS for the System stack pointer |
| 1049 | Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter. = Simcxx . . $ Sim#::readWordcxx . . $ Sim#readWord(7864480464b09eea).(Pepcxx . . $ Pep#::dotBurnArgumentcxx . . $ Pep#dotBurnArgument. - 3); |
| 1050 | // 3 is the vector offset from the last byte of the OS for the Loader program counter |
| 1051 | |
| 1052 | Pepcxx . . $ Pep#::memAddrssToAssemblerListingcxx . . $ Pep#memAddrssToAssemblerListing. = &Pepcxx . . $ Pep#::memAddrssToAssemblerListingOScxx . . $ Pep#memAddrssToAssemblerListingOS.; |
| 1053 | Pepcxx . . $ Pep#::listingRowCheckedcxx . . $ Pep#listingRowChecked. = &Pepcxx . . $ Pep#::listingRowCheckedOScxx . . $ Pep#listingRowCheckedOS.; |
| 1054 | Simcxx . . $ Sim#::trappedcxx . . $ Sim#trapped. = true; |
| 1055 | |
| 1056 | Simcxx . . $ Sim#::inputBuffercxx . . $ Sim#inputBuffer. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). objectCodePanecxx . . $ MainWindow#objectCodePane.->toPlainTextcxx . . $ ObjectCodePane#toPlainText(4365c3963150523e).(); |
| 1057 | inputPanecxx . . $ MainWindow#inputPane.->setTextcxx . . $ InputPane#setText(7df51288a9ebd664).(objectCodePanecxx . . $ MainWindow#objectCodePane.->toPlainTextcxx . . $ ObjectCodePane#toPlainText(4365c3963150523e).()); |
| 1058 | uicxx . . $ MainWindow#ui.->pepInputOutputTabcxx . . $ Ui_MainWindowClass#pepInputOutputTab.->setCurrentIndexcxx . . $ QTabWidget#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 1059 | uicxx . . $ MainWindow#ui.->pepCodeTraceTabcxx . . $ Ui_MainWindowClass#pepCodeTraceTab.->setCurrentIndexcxx . . $ QTabWidget#setCurrentIndex(d4f767463ce0a6b3).(1); |
| 1060 | |
| 1061 | uicxx . . $ MainWindow#ui.->actionFile_Newcxx . . $ Ui_MainWindowClass#actionFile_New.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1062 | uicxx . . $ MainWindow#ui.->actionFile_Opencxx . . $ Ui_MainWindowClass#actionFile_Open.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1063 | uicxx . . $ MainWindow#ui.->actionEdit_Format_From_Listingcxx . . $ Ui_MainWindowClass#actionEdit_Format_From_Listing.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1064 | uicxx . . $ MainWindow#ui.->actionBuild_Assemblecxx . . $ Ui_MainWindowClass#actionBuild_Assemble.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1065 | uicxx . . $ MainWindow#ui.->actionBuild_Loadcxx . . $ Ui_MainWindowClass#actionBuild_Load.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1066 | uicxx . . $ MainWindow#ui.->actionBuild_Executecxx . . $ Ui_MainWindowClass#actionBuild_Execute.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1067 | uicxx . . $ MainWindow#ui.->actionBuild_Run_Sourcecxx . . $ Ui_MainWindowClass#actionBuild_Run_Source.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1068 | uicxx . . $ MainWindow#ui.->actionBuild_Start_Debugging_Sourcecxx . . $ Ui_MainWindowClass#actionBuild_Start_Debugging_Source.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1069 | uicxx . . $ MainWindow#ui.->actionBuild_Run_Objectcxx . . $ Ui_MainWindowClass#actionBuild_Run_Object.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1070 | uicxx . . $ MainWindow#ui.->actionBuild_Start_Debugging_Objectcxx . . $ Ui_MainWindowClass#actionBuild_Start_Debugging_Object.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1071 | uicxx . . $ MainWindow#ui.->actionBuild_Start_Debugging_Loadercxx . . $ Ui_MainWindowClass#actionBuild_Start_Debugging_Loader.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1072 | uicxx . . $ MainWindow#ui.->actionBuild_Stop_Debuggingcxx . . $ Ui_MainWindowClass#actionBuild_Stop_Debugging.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(false); |
| 1073 | uicxx . . $ MainWindow#ui.->actionBuild_Interrupt_Executioncxx . . $ Ui_MainWindowClass#actionBuild_Interrupt_Execution.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(false); |
| 1074 | uicxx . . $ MainWindow#ui.->actionEdit_Remove_Error_Messagescxx . . $ Ui_MainWindowClass#actionEdit_Remove_Error_Messages.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1075 | inputPanecxx . . $ MainWindow#inputPane.->setReadOnlycxx . . $ InputPane#setReadOnly(b45ddcbc8423892c).(true); |
| 1076 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->setReadOnlycxx . . $ SourceCodePane#setReadOnly(b45ddcbc8423892c).(true); |
| 1077 | objectCodePanecxx . . $ MainWindow#objectCodePane.->setReadOnlycxx . . $ ObjectCodePane#setReadOnly(b45ddcbc8423892c).(true); |
| 1078 | cpuPanecxx . . $ MainWindow#cpuPane.->traceTrapscxx . . $ CpuPane#traceTraps(b45ddcbc8423892c).(true); |
| 1079 | cpuPanecxx . . $ MainWindow#cpuPane.->setDebugStatecxx . . $ CpuPane#setDebugState(b45ddcbc8423892c).(true); |
| 1080 | cpuPanecxx . . $ MainWindow#cpuPane.->setButtonsEnabledcxx . . $ CpuPane#setButtonsEnabled(b45ddcbc8423892c).(true); |
| 1081 | if (!memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->isHiddencxx . . $ QWidget#isHidden(50ce9a9e25b4a850).()) { |
| 1082 | memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->highlightMemorycxx . . $ MemoryDumpPane#highlightMemory(b45ddcbc8423892c).(true); |
| 1083 | } |
| 1084 | listingTracePanecxx . . $ MainWindow#listingTracePane.->setDebuggingStatecxx . . $ ListingTracePane#setDebuggingState(b45ddcbc8423892c).(true); |
| 1085 | |
| 1086 | cpuPanecxx . . $ MainWindow#cpuPane.->updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).(); |
| 1087 | } |
| 1088 | |
| 1089 | void MainWindowcxx . . $ MainWindow#::on_actionBuild_Stop_Debugging_triggeredcxx . . $ MainWindow#on_actionBuild_Stop_Debugging_triggered(49f6e7a06ebc5aa8).() |
| 1090 | { |
| 1091 | cpuPanecxx . . $ MainWindow#cpuPane.->interruptExecutioncxx . . $ CpuPane#interruptExecution(49f6e7a06ebc5aa8).(); |
| 1092 | cpuPanecxx . . $ MainWindow#cpuPane.->updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).(); |
| 1093 | listingTracePanecxx . . $ MainWindow#listingTracePane.->updateListingTracecxx . . $ ListingTracePane#updateListingTrace(49f6e7a06ebc5aa8).(); |
| 1094 | if (cpuPanecxx . . $ MainWindow#cpuPane.->singleStepHasFocuscxx . . $ CpuPane#singleStepHasFocus(c9857a73d68e59ba).()) { |
| 1095 | if (uicxx . . $ MainWindow#ui.->pepCodeTraceTabcxx . . $ Ui_MainWindowClass#pepCodeTraceTab.->currentIndexcxx . . $ QTabWidget#currentIndex(455f465bc33b4cdf).() == 0) { |
| 1096 | assemblerListingPanecxx . . $ MainWindow#assemblerListingPane.->setFocuscxx . . $ AssemblerListingPane#setFocus(49f6e7a06ebc5aa8).(); |
| 1097 | } |
| 1098 | else { |
| 1099 | if (!memoryTracePanecxx . . $ MainWindow#memoryTracePane.->isHiddencxx . . $ QWidget#isHidden(50ce9a9e25b4a850).()) { |
| 1100 | memoryTracePanecxx . . $ MainWindow#memoryTracePane.->setFocuscxx . . $ MemoryTracePane#setFocus(49f6e7a06ebc5aa8).(); |
| 1101 | } |
| 1102 | else { |
| 1103 | listingTracePanecxx . . $ MainWindow#listingTracePane.->setFocuscxx . . $ ListingTracePane#setFocus(49f6e7a06ebc5aa8).(); |
| 1104 | } |
| 1105 | } |
| 1106 | } |
| 1107 | setDebugStatecxx . . $ MainWindow#setDebugState(b45ddcbc8423892c).(false); |
| 1108 | listingTracePanecxx . . $ MainWindow#listingTracePane.->setDebuggingStatecxx . . $ ListingTracePane#setDebuggingState(b45ddcbc8423892c).(false); |
| 1109 | cpuPanecxx . . $ MainWindow#cpuPane.->setButtonsEnabledcxx . . $ CpuPane#setButtonsEnabled(b45ddcbc8423892c).(false); |
| 1110 | memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->highlightMemorycxx . . $ MemoryDumpPane#highlightMemory(b45ddcbc8423892c).(false); |
| 1111 | |
| 1112 | mainWindowUtilitiescxx . . $ MainWindow#mainWindowUtilities(84f7ac92c52de9f6).(0, 0); |
| 1113 | } |
| 1114 | |
| 1115 | void MainWindowcxx . . $ MainWindow#::on_actionBuild_Interrupt_Execution_triggeredcxx . . $ MainWindow#on_actionBuild_Interrupt_Execution_triggered(49f6e7a06ebc5aa8).() |
| 1116 | { |
| 1117 | cpuPanecxx . . $ MainWindow#cpuPane.->interruptExecutioncxx . . $ CpuPane#interruptExecution(49f6e7a06ebc5aa8).(); |
| 1118 | setDebugStatecxx . . $ MainWindow#setDebugState(b45ddcbc8423892c).(true); |
| 1119 | cpuPanecxx . . $ MainWindow#cpuPane.->updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).(); |
| 1120 | cpuPanecxx . . $ MainWindow#cpuPane.->setButtonsEnabledcxx . . $ CpuPane#setButtonsEnabled(b45ddcbc8423892c).(true); |
| 1121 | if (!memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->isHiddencxx . . $ QWidget#isHidden(50ce9a9e25b4a850).()) { |
| 1122 | memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->highlightMemorycxx . . $ MemoryDumpPane#highlightMemory(b45ddcbc8423892c).(true); |
| 1123 | } |
| 1124 | |
| 1125 | listingTracePanecxx . . $ MainWindow#listingTracePane.->updateListingTracecxx . . $ ListingTracePane#updateListingTrace(49f6e7a06ebc5aa8).(); |
| 1126 | } |
| 1127 | |
| 1128 | // View MainWindow triggers |
| 1129 | void MainWindowcxx . . $ MainWindow#::on_actionView_Code_Only_triggeredcxx . . $ MainWindow#on_actionView_Code_Only_triggered(49f6e7a06ebc5aa8).() |
| 1130 | { |
| 1131 | uicxx . . $ MainWindow#ui.->horizontalSplittercxx . . $ Ui_MainWindowClass#horizontalSplitter.->widgetcxx . . $ QSplitter#widget(6d79a97041fa24a7).(0)->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).(); |
| 1132 | uicxx . . $ MainWindow#ui.->horizontalSplittercxx . . $ Ui_MainWindowClass#horizontalSplitter.->widgetcxx . . $ QSplitter#widget(6d79a97041fa24a7).(1)->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).(); |
| 1133 | uicxx . . $ MainWindow#ui.->horizontalSplittercxx . . $ Ui_MainWindowClass#horizontalSplitter.->widgetcxx . . $ QSplitter#widget(6d79a97041fa24a7).(2)->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).(); |
| 1134 | uicxx . . $ MainWindow#ui.->actionView_Code_Onlycxx . . $ Ui_MainWindowClass#actionView_Code_Only.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1135 | uicxx . . $ MainWindow#ui.->actionView_Code_CPUcxx . . $ Ui_MainWindowClass#actionView_Code_CPU.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(false); |
| 1136 | uicxx . . $ MainWindow#ui.->actionView_Code_CPU_Memorycxx . . $ Ui_MainWindowClass#actionView_Code_CPU_Memory.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(false); |
| 1137 | } |
| 1138 | |
| 1139 | void MainWindowcxx . . $ MainWindow#::on_actionView_Code_CPU_triggeredcxx . . $ MainWindow#on_actionView_Code_CPU_triggered(49f6e7a06ebc5aa8).() |
| 1140 | { |
| 1141 | uicxx . . $ MainWindow#ui.->horizontalSplittercxx . . $ Ui_MainWindowClass#horizontalSplitter.->widgetcxx . . $ QSplitter#widget(6d79a97041fa24a7).(0)->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).(); |
| 1142 | uicxx . . $ MainWindow#ui.->horizontalSplittercxx . . $ Ui_MainWindowClass#horizontalSplitter.->widgetcxx . . $ QSplitter#widget(6d79a97041fa24a7).(1)->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).(); |
| 1143 | uicxx . . $ MainWindow#ui.->horizontalSplittercxx . . $ Ui_MainWindowClass#horizontalSplitter.->widgetcxx . . $ QSplitter#widget(6d79a97041fa24a7).(2)->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).(); |
| 1144 | uicxx . . $ MainWindow#ui.->actionView_Code_Onlycxx . . $ Ui_MainWindowClass#actionView_Code_Only.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(false); |
| 1145 | uicxx . . $ MainWindow#ui.->actionView_Code_CPUcxx . . $ Ui_MainWindowClass#actionView_Code_CPU.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1146 | uicxx . . $ MainWindow#ui.->actionView_Code_CPU_Memorycxx . . $ Ui_MainWindowClass#actionView_Code_CPU_Memory.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(false); |
| 1147 | QListcxx . . $ QList#<int> listcxx . . $ QList#QList(ced63f7c635d850d).; |
| 1148 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(3000); |
| 1149 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(1); |
| 1150 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(1); |
| 1151 | uicxx . . $ MainWindow#ui.->horizontalSplittercxx . . $ Ui_MainWindowClass#horizontalSplitter.->setSizescxx . . $ QSplitter#setSizes(27380459aebc118).(list); |
| 1152 | } |
| 1153 | |
| 1154 | void MainWindowcxx . . $ MainWindow#::on_actionView_Code_CPU_Memory_triggeredcxx . . $ MainWindow#on_actionView_Code_CPU_Memory_triggered(49f6e7a06ebc5aa8).() |
| 1155 | { |
| 1156 | memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->updateMemorycxx . . $ MemoryDumpPane#updateMemory(49f6e7a06ebc5aa8).(); |
| 1157 | memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->highlightMemorycxx . . $ MemoryDumpPane#highlightMemory(b45ddcbc8423892c).(uicxx . . $ MainWindow#ui.->actionBuild_Stop_Debuggingcxx . . $ Ui_MainWindowClass#actionBuild_Stop_Debugging.->isEnabledcxx . . $ QAction#isEnabled(50ce9a9e25b4a850).()); |
| 1158 | if (uicxx . . $ MainWindow#ui.->horizontalSplittercxx . . $ Ui_MainWindowClass#horizontalSplitter.->widgetcxx . . $ QSplitter#widget(6d79a97041fa24a7).(2)->isHiddencxx . . $ QWidget#isHidden(50ce9a9e25b4a850).()) { |
| 1159 | memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->scrollToTopcxx . . $ MemoryDumpPane#scrollToTop(49f6e7a06ebc5aa8).(); |
| 1160 | } |
| 1161 | uicxx . . $ MainWindow#ui.->horizontalSplittercxx . . $ Ui_MainWindowClass#horizontalSplitter.->widgetcxx . . $ QSplitter#widget(6d79a97041fa24a7).(0)->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).(); |
| 1162 | uicxx . . $ MainWindow#ui.->horizontalSplittercxx . . $ Ui_MainWindowClass#horizontalSplitter.->widgetcxx . . $ QSplitter#widget(6d79a97041fa24a7).(1)->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).(); |
| 1163 | uicxx . . $ MainWindow#ui.->horizontalSplittercxx . . $ Ui_MainWindowClass#horizontalSplitter.->widgetcxx . . $ QSplitter#widget(6d79a97041fa24a7).(2)->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).(); |
| 1164 | uicxx . . $ MainWindow#ui.->actionView_Code_Onlycxx . . $ Ui_MainWindowClass#actionView_Code_Only.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(false); |
| 1165 | uicxx . . $ MainWindow#ui.->actionView_Code_CPUcxx . . $ Ui_MainWindowClass#actionView_Code_CPU.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(false); |
| 1166 | uicxx . . $ MainWindow#ui.->actionView_Code_CPU_Memorycxx . . $ Ui_MainWindowClass#actionView_Code_CPU_Memory.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1167 | memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->setMaximumWidthcxx . . $ QWidget#setMaximumWidth(d4f767463ce0a6b3).(memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->memoryDumpWidthcxx . . $ MemoryDumpPane#memoryDumpWidth(b126dc7c1de90089).()); |
| 1168 | QListcxx . . $ QList#<int> listcxx . . $ QList#QList(ced63f7c635d850d).; |
| 1169 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(3000); |
| 1170 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(1); |
| 1171 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(3000); |
| 1172 | uicxx . . $ MainWindow#ui.->horizontalSplittercxx . . $ Ui_MainWindowClass#horizontalSplitter.->setSizescxx . . $ QSplitter#setSizes(27380459aebc118).(list); |
| 1173 | |
| 1174 | } |
| 1175 | |
| 1176 | void MainWindowcxx . . $ MainWindow#::on_actionView_Code_Tab_triggeredcxx . . $ MainWindow#on_actionView_Code_Tab_triggered(49f6e7a06ebc5aa8).() |
| 1177 | { |
| 1178 | uicxx . . $ MainWindow#ui.->pepCodeTraceTabcxx . . $ Ui_MainWindowClass#pepCodeTraceTab.->setCurrentIndexcxx . . $ QTabWidget#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 1179 | } |
| 1180 | |
| 1181 | void MainWindowcxx . . $ MainWindow#::on_actionView_Trace_Tab_triggeredcxx . . $ MainWindow#on_actionView_Trace_Tab_triggered(49f6e7a06ebc5aa8).() |
| 1182 | { |
| 1183 | uicxx . . $ MainWindow#ui.->pepCodeTraceTabcxx . . $ Ui_MainWindowClass#pepCodeTraceTab.->setCurrentIndexcxx . . $ QTabWidget#setCurrentIndex(d4f767463ce0a6b3).(1); |
| 1184 | } |
| 1185 | |
| 1186 | void MainWindowcxx . . $ MainWindow#::on_actionView_Batch_I_O_Tab_triggeredcxx . . $ MainWindow#on_actionView_Batch_I_O_Tab_triggered(49f6e7a06ebc5aa8).() |
| 1187 | { |
| 1188 | uicxx . . $ MainWindow#ui.->pepInputOutputTabcxx . . $ Ui_MainWindowClass#pepInputOutputTab.->setCurrentIndexcxx . . $ QTabWidget#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 1189 | if (uicxx . . $ MainWindow#ui.->horizontalSplittercxx . . $ Ui_MainWindowClass#horizontalSplitter.->widgetcxx . . $ QSplitter#widget(6d79a97041fa24a7).(1)->isHiddencxx . . $ QWidget#isHidden(50ce9a9e25b4a850).()) { |
| 1190 | on_actionView_Code_CPU_triggeredcxx . . $ MainWindow#on_actionView_Code_CPU_triggered(49f6e7a06ebc5aa8).(); |
| 1191 | } |
| 1192 | } |
| 1193 | |
| 1194 | void MainWindowcxx . . $ MainWindow#::on_actionView_Terminal_Tab_triggeredcxx . . $ MainWindow#on_actionView_Terminal_Tab_triggered(49f6e7a06ebc5aa8).() |
| 1195 | { |
| 1196 | uicxx . . $ MainWindow#ui.->pepInputOutputTabcxx . . $ Ui_MainWindowClass#pepInputOutputTab.->setCurrentIndexcxx . . $ QTabWidget#setCurrentIndex(d4f767463ce0a6b3).(1); |
| 1197 | if (uicxx . . $ MainWindow#ui.->horizontalSplittercxx . . $ Ui_MainWindowClass#horizontalSplitter.->widgetcxx . . $ QSplitter#widget(6d79a97041fa24a7).(1)->isHiddencxx . . $ QWidget#isHidden(50ce9a9e25b4a850).()) { |
| 1198 | on_actionView_Code_CPU_triggeredcxx . . $ MainWindow#on_actionView_Code_CPU_triggered(49f6e7a06ebc5aa8).(); |
| 1199 | } |
| 1200 | } |
| 1201 | |
| 1202 | // System MainWindow triggers |
| 1203 | |
| 1204 | void MainWindowcxx . . $ MainWindow#::on_actionSystem_Clear_Memory_triggeredcxx . . $ MainWindow#on_actionSystem_Clear_Memory_triggered(49f6e7a06ebc5aa8).() |
| 1205 | { |
| 1206 | for (int i = 0; i < Pepcxx . . $ Pep#::romStartAddresscxx . . $ Pep#romStartAddress.; i++) { |
| 1207 | Simcxx . . $ Sim#::Memcxx . . $ Sim#Mem.[cxx . . $ QVector#`operator[]`(7a0ef1c7079e8533).i] = 0; |
| 1208 | } |
| 1209 | cpuPanecxx . . $ MainWindow#cpuPane.->clearCpucxx . . $ CpuPane#clearCpu(49f6e7a06ebc5aa8).(); |
| 1210 | memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->refreshMemorycxx . . $ MemoryDumpPane#refreshMemory(49f6e7a06ebc5aa8).(); |
| 1211 | } |
| 1212 | |
| 1213 | void MainWindowcxx . . $ MainWindow#::on_actionSystem_Redefine_Mnemonics_triggeredcxx . . $ MainWindow#on_actionSystem_Redefine_Mnemonics_triggered(49f6e7a06ebc5aa8).() |
| 1214 | { |
| 1215 | redefineMnemonicsDialogcxx . . $ MainWindow#redefineMnemonicsDialog.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).(); |
| 1216 | } |
| 1217 | |
| 1218 | void MainWindowcxx . . $ MainWindow#::on_actionSystem_Assemble_Install_New_OS_triggeredcxx . . $ MainWindow#on_actionSystem_Assemble_Install_New_OS_triggered(49f6e7a06ebc5aa8).() |
| 1219 | { |
| 1220 | Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. = 0; |
| 1221 | Pepcxx . . $ Pep#::memAddrssToAssemblerListingcxx . . $ Pep#memAddrssToAssemblerListing. = &Pepcxx . . $ Pep#::memAddrssToAssemblerListingOScxx . . $ Pep#memAddrssToAssemblerListingOS.; |
| 1222 | Pepcxx . . $ Pep#::listingRowCheckedcxx . . $ Pep#listingRowChecked. = &Pepcxx . . $ Pep#::listingRowCheckedOScxx . . $ Pep#listingRowCheckedOS.; |
| 1223 | if (sourceCodePanecxx . . $ MainWindow#sourceCodePane.->assemblecxx . . $ SourceCodePane#assemble(c9857a73d68e59ba).()) { |
| 1224 | if (Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 0) { |
| 1225 | QStringcxx . . $ QString# errorString = ";ERROR: .BURN required to install OS."cxx . . $ QString#QString(85c52e162fed56f9).; |
| 1226 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->appendMessageInSourceCodePaneAtcxx . . $ SourceCodePane#appendMessageInSourceCodePaneAt(909c33aa10af95dd).(0, errorStringcxx . . $ QString#QString(132dd6869045752b).); |
| 1227 | assemblerListingPanecxx . . $ MainWindow#assemblerListingPane.->clearAssemblerListingcxx . . $ AssemblerListingPane#clearAssemblerListing(49f6e7a06ebc5aa8).(); |
| 1228 | objectCodePanecxx . . $ MainWindow#objectCodePane.->clearObjectCodecxx . . $ ObjectCodePane#clearObjectCode(49f6e7a06ebc5aa8).(); |
| 1229 | listingTracePanecxx . . $ MainWindow#listingTracePane.->clearListingTracecxx . . $ ListingTracePane#clearListingTrace(49f6e7a06ebc5aa8).(); |
| 1230 | uicxx . . $ MainWindow#ui.->statusbarcxx . . $ Ui_MainWindowClass#statusbar.->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("Assembly failed"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 1231 | } |
| 1232 | else if (Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. > 1) { |
| 1233 | QStringcxx . . $ QString# errorString = ";ERROR: Program contain more than one .BURN."cxx . . $ QString#QString(85c52e162fed56f9).; |
| 1234 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->appendMessageInSourceCodePaneAtcxx . . $ SourceCodePane#appendMessageInSourceCodePaneAt(909c33aa10af95dd).(0, errorStringcxx . . $ QString#QString(132dd6869045752b).); |
| 1235 | assemblerListingPanecxx . . $ MainWindow#assemblerListingPane.->clearAssemblerListingcxx . . $ AssemblerListingPane#clearAssemblerListing(49f6e7a06ebc5aa8).(); |
| 1236 | objectCodePanecxx . . $ MainWindow#objectCodePane.->clearObjectCodecxx . . $ ObjectCodePane#clearObjectCode(49f6e7a06ebc5aa8).(); |
| 1237 | listingTracePanecxx . . $ MainWindow#listingTracePane.->clearListingTracecxx . . $ ListingTracePane#clearListingTrace(49f6e7a06ebc5aa8).(); |
| 1238 | uicxx . . $ MainWindow#ui.->statusbarcxx . . $ Ui_MainWindowClass#statusbar.->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("Assembly failed"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 1239 | } |
| 1240 | else { |
| 1241 | // Adjust for .BURN |
| 1242 | int addressDelta = Pepcxx . . $ Pep#::dotBurnArgumentcxx . . $ Pep#dotBurnArgument. - Pepcxx . . $ Pep#::byteCountcxx . . $ Pep#byteCount. + 1; |
| 1243 | QMutableMapIteratorcxx . . $ QMutableMapIterator# <QStringcxx . . $ QString#, int> icxx . . $ QMutableMapIterator#QMutableMapIterator(881fa6995fc49359).(Pepcxx . . $ Pep#::symbolTablecxx . . $ Pep#symbolTable.); |
| 1244 | while (i.hasNextcxx . . $ QMutableMapIterator#hasNext(50ce9a9e25b4a850).()) { |
| 1245 | i.nextcxx . . $ QMutableMapIterator#next(18bea9d7d3fabb8c).(); |
| 1246 | if (Pepcxx . . $ Pep#::adjustSymbolValueForBurncxx . . $ Pep#adjustSymbolValueForBurn..valuecxx . . $ QMap#value(866b0a4e5fb46e14).(i.keycxx . . $ QMutableMapIterator#key(ea465e50d690edfe).())) { |
| 1247 | i.setValuecxx . . $ QMutableMapIterator#setValue(3496de05b827211c).(i.valuecxx . . $ QMutableMapIterator#value(bef0f7a998e0139b).() + addressDelta); |
| 1248 | } |
| 1249 | } |
| 1250 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->adjustCodeListcxx . . $ SourceCodePane#adjustCodeList(d4f767463ce0a6b3).(addressDelta); |
| 1251 | Pepcxx . . $ Pep#::romStartAddresscxx . . $ Pep#romStartAddress. += addressDelta; |
| 1252 | objectCodePanecxx . . $ MainWindow#objectCodePane.->setObjectCodecxx . . $ ObjectCodePane#setObjectCode(4bb6f0c1dbf41c14).(sourceCodePanecxx . . $ MainWindow#sourceCodePane.->getObjectCodecxx . . $ SourceCodePane#getObjectCode(9be6d6d0db5cf9a9).()); |
| 1253 | assemblerListingPanecxx . . $ MainWindow#assemblerListingPane.->setAssemblerListingcxx . . $ AssemblerListingPane#setAssemblerListing(fc47db3ea09604d9).(sourceCodePanecxx . . $ MainWindow#sourceCodePane.->getAssemblerListingListcxx . . $ SourceCodePane#getAssemblerListingList(669a05bc42dd57cc).()); |
| 1254 | listingTracePanecxx . . $ MainWindow#listingTracePane.->setListingTracecxx . . $ ListingTracePane#setListingTrace(fbf163fdf621be2d).(sourceCodePanecxx . . $ MainWindow#sourceCodePane.->getAssemblerListingListcxx . . $ SourceCodePane#getAssemblerListingList(669a05bc42dd57cc).(), sourceCodePanecxx . . $ MainWindow#sourceCodePane.->getHasCheckBoxcxx . . $ SourceCodePane#getHasCheckBox(901f99b7efa3626e).()); |
| 1255 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->installOScxx . . $ SourceCodePane#installOS(49f6e7a06ebc5aa8).(); |
| 1256 | memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->refreshMemorycxx . . $ MemoryDumpPane#refreshMemory(49f6e7a06ebc5aa8).(); |
| 1257 | uicxx . . $ MainWindow#ui.->statusbarcxx . . $ Ui_MainWindowClass#statusbar.->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("Assembly succeeded, OS installed"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 1258 | } |
| 1259 | } |
| 1260 | else { |
| 1261 | assemblerListingPanecxx . . $ MainWindow#assemblerListingPane.->clearAssemblerListingcxx . . $ AssemblerListingPane#clearAssemblerListing(49f6e7a06ebc5aa8).(); |
| 1262 | objectCodePanecxx . . $ MainWindow#objectCodePane.->clearObjectCodecxx . . $ ObjectCodePane#clearObjectCode(49f6e7a06ebc5aa8).(); |
| 1263 | listingTracePanecxx . . $ MainWindow#listingTracePane.->clearListingTracecxx . . $ ListingTracePane#clearListingTrace(49f6e7a06ebc5aa8).(); |
| 1264 | uicxx . . $ MainWindow#ui.->statusbarcxx . . $ Ui_MainWindowClass#statusbar.->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("Assembly failed"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 1265 | } |
| 1266 | } |
| 1267 | |
| 1268 | void MainWindowcxx . . $ MainWindow#::on_actionSystem_Reinstall_Default_OS_triggeredcxx . . $ MainWindow#on_actionSystem_Reinstall_Default_OS_triggered(49f6e7a06ebc5aa8).() |
| 1269 | { |
| 1270 | Pepcxx . . $ Pep#::memAddrssToAssemblerListingcxx . . $ Pep#memAddrssToAssemblerListing. = &Pepcxx . . $ Pep#::memAddrssToAssemblerListingOScxx . . $ Pep#memAddrssToAssemblerListingOS.; |
| 1271 | Pepcxx . . $ Pep#::listingRowCheckedcxx . . $ Pep#listingRowChecked. = &Pepcxx . . $ Pep#::listingRowCheckedOScxx . . $ Pep#listingRowCheckedOS.; |
| 1272 | if (sourceCodePanecxx . . $ MainWindow#sourceCodePane.->installDefaultOscxx . . $ SourceCodePane#installDefaultOs(c9857a73d68e59ba).()) { |
| 1273 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->getAssemblerListingListcxx . . $ SourceCodePane#getAssemblerListingList(669a05bc42dd57cc).(); |
| 1274 | listingTracePanecxx . . $ MainWindow#listingTracePane.->setListingTracecxx . . $ ListingTracePane#setListingTrace(fbf163fdf621be2d).(sourceCodePanecxx . . $ MainWindow#sourceCodePane.->getAssemblerListingListcxx . . $ SourceCodePane#getAssemblerListingList(669a05bc42dd57cc).(), sourceCodePanecxx . . $ MainWindow#sourceCodePane.->getHasCheckBoxcxx . . $ SourceCodePane#getHasCheckBox(901f99b7efa3626e).()); |
| 1275 | uicxx . . $ MainWindow#ui.->statusbarcxx . . $ Ui_MainWindowClass#statusbar.->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("OS installed"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 1276 | } |
| 1277 | else { |
| 1278 | uicxx . . $ MainWindow#ui.->statusbarcxx . . $ Ui_MainWindowClass#statusbar.->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("OS assembly failed"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 1279 | } |
| 1280 | } |
| 1281 | |
| 1282 | // Help MainWindow triggers |
| 1283 | void MainWindowcxx . . $ MainWindow#::on_actionHelp_triggeredcxx . . $ MainWindow#on_actionHelp_triggered(49f6e7a06ebc5aa8).() |
| 1284 | { |
| 1285 | if (helpDialogcxx . . $ MainWindow#helpDialog.->isHiddencxx . . $ QWidget#isHidden(50ce9a9e25b4a850).()) { |
| 1286 | helpDialogcxx . . $ MainWindow#helpDialog.->setHiddencxx . . $ QWidget#setHidden(b45ddcbc8423892c).(false); |
| 1287 | } |
| 1288 | else { |
| 1289 | helpDialogcxx . . $ MainWindow#helpDialog.->raisecxx . . $ QWidget#raise(49f6e7a06ebc5aa8).(); |
| 1290 | helpDialogcxx . . $ MainWindow#helpDialog.->activateWindowcxx . . $ QWidget#activateWindow(49f6e7a06ebc5aa8).(); |
| 1291 | } |
| 1292 | } |
| 1293 | |
| 1294 | void MainWindowcxx . . $ MainWindow#::on_actionHelp_Check_for_updates_triggeredcxx . . $ MainWindow#on_actionHelp_Check_for_updates_triggered(49f6e7a06ebc5aa8).() |
| 1295 | { |
| 1296 | QDesktopServicescxx . . $ QDesktopServices#::openUrlcxx . . $ QDesktopServices#openUrl(3c1e6c2c1d0bcefc).(QUrlcxx . . $ QUrl#QUrl(ea1f3831e370f1cb).("http://code.google.com/p/pep8-1/"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 1297 | } |
| 1298 | |
| 1299 | void MainWindowcxx . . $ MainWindow#::on_actionHelp_Machine_Language_triggeredcxx . . $ MainWindow#on_actionHelp_Machine_Language_triggered(49f6e7a06ebc5aa8).() |
| 1300 | { |
| 1301 | helpDialogcxx . . $ MainWindow#helpDialog.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).(); |
| 1302 | helpDialogcxx . . $ MainWindow#helpDialog.->machineLanguageClickedcxx . . $ HelpDialog#machineLanguageClicked(49f6e7a06ebc5aa8).(); |
| 1303 | } |
| 1304 | |
| 1305 | void MainWindowcxx . . $ MainWindow#::on_actionHelp_Assembly_Language_triggeredcxx . . $ MainWindow#on_actionHelp_Assembly_Language_triggered(49f6e7a06ebc5aa8).() |
| 1306 | { |
| 1307 | helpDialogcxx . . $ MainWindow#helpDialog.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).(); |
| 1308 | helpDialogcxx . . $ MainWindow#helpDialog.->assemblyLanguageClickedcxx . . $ HelpDialog#assemblyLanguageClicked(49f6e7a06ebc5aa8).(); |
| 1309 | } |
| 1310 | |
| 1311 | void MainWindowcxx . . $ MainWindow#::on_actionHelp_Debugging_Programs_triggeredcxx . . $ MainWindow#on_actionHelp_Debugging_Programs_triggered(49f6e7a06ebc5aa8).() |
| 1312 | { |
| 1313 | helpDialogcxx . . $ MainWindow#helpDialog.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).(); |
| 1314 | helpDialogcxx . . $ MainWindow#helpDialog.->debuggingProgramsClickedcxx . . $ HelpDialog#debuggingProgramsClicked(49f6e7a06ebc5aa8).(); |
| 1315 | } |
| 1316 | |
| 1317 | void MainWindowcxx . . $ MainWindow#::on_actionHelp_Writing_Trap_Handlers_triggeredcxx . . $ MainWindow#on_actionHelp_Writing_Trap_Handlers_triggered(49f6e7a06ebc5aa8).() |
| 1318 | { |
| 1319 | helpDialogcxx . . $ MainWindow#helpDialog.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).(); |
| 1320 | helpDialogcxx . . $ MainWindow#helpDialog.->writingTrapHandlersClickedcxx . . $ HelpDialog#writingTrapHandlersClicked(49f6e7a06ebc5aa8).(); |
| 1321 | } |
| 1322 | |
| 1323 | void MainWindowcxx . . $ MainWindow#::on_actionHelp_Pep_8_Reference_triggeredcxx . . $ MainWindow#on_actionHelp_Pep_8_Reference_triggered(49f6e7a06ebc5aa8).() |
| 1324 | { |
| 1325 | helpDialogcxx . . $ MainWindow#helpDialog.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).(); |
| 1326 | helpDialogcxx . . $ MainWindow#helpDialog.->pep8ReferenceClickedcxx . . $ HelpDialog#pep8ReferenceClicked(49f6e7a06ebc5aa8).(); |
| 1327 | } |
| 1328 | |
| 1329 | void MainWindowcxx . . $ MainWindow#::on_actionHelp_Examples_triggeredcxx . . $ MainWindow#on_actionHelp_Examples_triggered(49f6e7a06ebc5aa8).() |
| 1330 | { |
| 1331 | helpDialogcxx . . $ MainWindow#helpDialog.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).(); |
| 1332 | helpDialogcxx . . $ MainWindow#helpDialog.->examplesClickedcxx . . $ HelpDialog#examplesClicked(49f6e7a06ebc5aa8).(); |
| 1333 | } |
| 1334 | |
| 1335 | void MainWindowcxx . . $ MainWindow#::on_actionHelp_Pep_8_Operating_System_triggeredcxx . . $ MainWindow#on_actionHelp_Pep_8_Operating_System_triggered(49f6e7a06ebc5aa8).() |
| 1336 | { |
| 1337 | helpDialogcxx . . $ MainWindow#helpDialog.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).(); |
| 1338 | helpDialogcxx . . $ MainWindow#helpDialog.->operatingSystemClickedcxx . . $ HelpDialog#operatingSystemClicked(49f6e7a06ebc5aa8).(); |
| 1339 | } |
| 1340 | |
| 1341 | void MainWindowcxx . . $ MainWindow#::on_actionAbout_Pep8_triggeredcxx . . $ MainWindow#on_actionAbout_Pep8_triggered(49f6e7a06ebc5aa8).() |
| 1342 | { |
| 1343 | aboutPepDialogcxx . . $ MainWindow#aboutPepDialog.->execcxx . . $ QDialog#exec(b126dc7c1de90089).(); |
| 1344 | } |
| 1345 | |
| 1346 | void MainWindowcxx . . $ MainWindow#::helpCopyToSourceButtonClickedcxx . . $ MainWindow#helpCopyToSourceButtonClicked(49f6e7a06ebc5aa8).() |
| 1347 | { |
| 1348 | helpDialogcxx . . $ MainWindow#helpDialog.->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).(); |
| 1349 | if (uicxx . . $ MainWindow#ui.->actionBuild_Stop_Debuggingcxx . . $ Ui_MainWindowClass#actionBuild_Stop_Debugging.->isEnabledcxx . . $ QAction#isEnabled(50ce9a9e25b4a850).()) { // Leaving this here to safeguard. |
| 1350 | uicxx . . $ MainWindow#ui.->statusbarcxx . . $ Ui_MainWindowClass#statusbar.->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("Copy to source failed, in debugging mode"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 1351 | return; |
| 1352 | } |
| 1353 | Enucxx . . $ Enu/::EPanecxx . . $ Enu/EPane# destPane; |
| 1354 | Enucxx . . $ Enu/::EPanecxx . . $ Enu/EPane# inputDest; |
| 1355 | QStringcxx . . $ QString# input = ""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 1356 | QStringcxx . . $ QString# code = helpDialogcxx . . $ MainWindow#helpDialog.->getCodecxx . . $ HelpDialog#getCode(6214456c4041c138).(destPane, inputDest, input); |
| 1357 | outputPanecxx . . $ MainWindow#outputPane.->clearOutputcxx . . $ OutputPane#clearOutput(49f6e7a06ebc5aa8).(); |
| 1358 | inputPanecxx . . $ MainWindow#inputPane.->setTextcxx . . $ InputPane#setText(7df51288a9ebd664).(""cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1359 | uicxx . . $ MainWindow#ui.->pepCodeTraceTabcxx . . $ Ui_MainWindowClass#pepCodeTraceTab.->setCurrentIndexcxx . . $ QTabWidget#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 1360 | if (destPane == Enucxx . . $ Enu/::ESourcecxx . . $ Enu/ESource.) { |
| 1361 | if (maybeSaveSourcecxx . . $ MainWindow#maybeSaveSource(c9857a73d68e59ba).()) { |
| 1362 | setCurrentFilecxx . . $ MainWindow#setCurrentFile(30e909e7afe2d54e).(""cxx . . $ QString#QString(85c52e162fed56f9)., Enucxx . . $ Enu/::ESourcecxx . . $ Enu/ESource.); |
| 1363 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->setSourceCodePaneTextcxx . . $ SourceCodePane#setSourceCodePaneText(7df51288a9ebd664).(codecxx . . $ QString#QString(132dd6869045752b).); |
| 1364 | assemblerListingPanecxx . . $ MainWindow#assemblerListingPane.->clearAssemblerListingcxx . . $ AssemblerListingPane#clearAssemblerListing(49f6e7a06ebc5aa8).(); |
| 1365 | objectCodePanecxx . . $ MainWindow#objectCodePane.->clearObjectCodecxx . . $ ObjectCodePane#clearObjectCode(49f6e7a06ebc5aa8).(); |
| 1366 | listingTracePanecxx . . $ MainWindow#listingTracePane.->clearListingTracecxx . . $ ListingTracePane#clearListingTrace(49f6e7a06ebc5aa8).(); |
| 1367 | statusBarcxx . . $ QMainWindow#statusBar(422c485dd0fc791b).()->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("Copied to source"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 1368 | uicxx . . $ MainWindow#ui.->actionBuild_Start_Debugging_Sourcecxx . . $ Ui_MainWindowClass#actionBuild_Start_Debugging_Source.->setEnabledcxx . . $ QAction#setEnabled(b45ddcbc8423892c).(false); |
| 1369 | } |
| 1370 | } |
| 1371 | else if (maybeSaveObjectcxx . . $ MainWindow#maybeSaveObject(c9857a73d68e59ba).()) { |
| 1372 | setCurrentFilecxx . . $ MainWindow#setCurrentFile(30e909e7afe2d54e).(""cxx . . $ QString#QString(85c52e162fed56f9)., Enucxx . . $ Enu/::EObjectcxx . . $ Enu/EObject.); |
| 1373 | objectCodePanecxx . . $ MainWindow#objectCodePane.->setObjectCodePaneTextcxx . . $ ObjectCodePane#setObjectCodePaneText(7df51288a9ebd664).(codecxx . . $ QString#QString(132dd6869045752b).); |
| 1374 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->clearSourceCodecxx . . $ SourceCodePane#clearSourceCode(49f6e7a06ebc5aa8).(); |
| 1375 | assemblerListingPanecxx . . $ MainWindow#assemblerListingPane.->clearAssemblerListingcxx . . $ AssemblerListingPane#clearAssemblerListing(49f6e7a06ebc5aa8).(); |
| 1376 | listingTracePanecxx . . $ MainWindow#listingTracePane.->clearListingTracecxx . . $ ListingTracePane#clearListingTrace(49f6e7a06ebc5aa8).(); |
| 1377 | statusBarcxx . . $ QMainWindow#statusBar(422c485dd0fc791b).()->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).("Copied to object"cxx . . $ QString#QString(85c52e162fed56f9)., 4000); |
| 1378 | uicxx . . $ MainWindow#ui.->actionBuild_Start_Debugging_Sourcecxx . . $ Ui_MainWindowClass#actionBuild_Start_Debugging_Source.->setEnabledcxx . . $ QAction#setEnabled(b45ddcbc8423892c).(false); |
| 1379 | } |
| 1380 | if (inputDest == Enucxx . . $ Enu/::ETerminalcxx . . $ Enu/ETerminal.) { |
| 1381 | uicxx . . $ MainWindow#ui.->pepInputOutputTabcxx . . $ Ui_MainWindowClass#pepInputOutputTab.->setCurrentIndexcxx . . $ QTabWidget#setCurrentIndex(d4f767463ce0a6b3).(1); |
| 1382 | } |
| 1383 | else { |
| 1384 | if (!input.isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) { |
| 1385 | inputPanecxx . . $ MainWindow#inputPane.->setTextcxx . . $ InputPane#setText(7df51288a9ebd664).(inputcxx . . $ QString#QString(132dd6869045752b).); |
| 1386 | uicxx . . $ MainWindow#ui.->pepInputOutputTabcxx . . $ Ui_MainWindowClass#pepInputOutputTab.->setCurrentIndexcxx . . $ QTabWidget#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 1387 | outputPanecxx . . $ MainWindow#outputPane.->clearOutputcxx . . $ OutputPane#clearOutput(49f6e7a06ebc5aa8).(); |
| 1388 | } |
| 1389 | } |
| 1390 | } |
| 1391 | |
| 1392 | void MainWindowcxx . . $ MainWindow#::on_actionAbout_Qt_triggeredcxx . . $ MainWindow#on_actionAbout_Qt_triggered(49f6e7a06ebc5aa8).() |
| 1393 | { |
| 1394 | QDesktopServicescxx . . $ QDesktopServices#::openUrlcxx . . $ QDesktopServices#openUrl(3c1e6c2c1d0bcefc).(QUrlcxx . . $ QUrl#QUrl(ea1f3831e370f1cb).("http://qt.nokia.com/"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 1395 | } |
| 1396 | |
| 1397 | void MainWindowcxx . . $ MainWindow#::slotByteConverterDecEditedcxx . . $ MainWindow#slotByteConverterDecEdited(3520e46b33348bf6).(const QStringcxx . . $ QString# &str) |
| 1398 | { |
| 1399 | if (str.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) { |
| 1400 | bool ok; |
| 1401 | int data = str.toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&ok, 10); |
| 1402 | byteConverterHexcxx . . $ MainWindow#byteConverterHex.->setValuecxx . . $ ByteConverterHex#setValue(d4f767463ce0a6b3).(data); |
| 1403 | byteConverterBincxx . . $ MainWindow#byteConverterBin.->setValuecxx . . $ ByteConverterBin#setValue(d4f767463ce0a6b3).(data); |
| 1404 | byteConverterCharcxx . . $ MainWindow#byteConverterChar.->setValuecxx . . $ ByteConverterChar#setValue(d4f767463ce0a6b3).(data); |
| 1405 | byteConverterInstrcxx . . $ MainWindow#byteConverterInstr.->setValuecxx . . $ ByteConverterInstr#setValue(d4f767463ce0a6b3).(data); |
| 1406 | } |
| 1407 | } |
| 1408 | |
| 1409 | void MainWindowcxx . . $ MainWindow#::slotByteConverterHexEditedcxx . . $ MainWindow#slotByteConverterHexEdited(3520e46b33348bf6).(const QStringcxx . . $ QString# &str) |
| 1410 | { |
| 1411 | if (str.lengthcxx . . $ QString#length(455f465bc33b4cdf).() >= 2) { |
| 1412 | if (str.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("0x"cxx . . $ QString#QString(85c52e162fed56f9).)) { |
| 1413 | QStringcxx . . $ QString# hexPart = strcxx . . $ QString#QString(132dd6869045752b).; |
| 1414 | hexPart.removecxx . . $ QString#remove(6483560ce2afa901).(0, 2); |
| 1415 | if (hexPart.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) { |
| 1416 | bool ok; |
| 1417 | int data = hexPart.toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&ok, 16); |
| 1418 | byteConverterDeccxx . . $ MainWindow#byteConverterDec.->setValuecxx . . $ ByteConverterDec#setValue(d4f767463ce0a6b3).(data); |
| 1419 | byteConverterBincxx . . $ MainWindow#byteConverterBin.->setValuecxx . . $ ByteConverterBin#setValue(d4f767463ce0a6b3).(data); |
| 1420 | byteConverterCharcxx . . $ MainWindow#byteConverterChar.->setValuecxx . . $ ByteConverterChar#setValue(d4f767463ce0a6b3).(data); |
| 1421 | byteConverterInstrcxx . . $ MainWindow#byteConverterInstr.->setValuecxx . . $ ByteConverterInstr#setValue(d4f767463ce0a6b3).(data); |
| 1422 | } |
| 1423 | else { |
| 1424 | // Exactly "0x" remains, so do nothing |
| 1425 | } |
| 1426 | } |
| 1427 | else { |
| 1428 | // Prefix "0x" was mangled |
| 1429 | byteConverterHexcxx . . $ MainWindow#byteConverterHex.->setValuecxx . . $ ByteConverterHex#setValue(d4f767463ce0a6b3).(-1); |
| 1430 | } |
| 1431 | } |
| 1432 | else { |
| 1433 | // Prefix "0x" was shortened |
| 1434 | byteConverterHexcxx . . $ MainWindow#byteConverterHex.->setValuecxx . . $ ByteConverterHex#setValue(d4f767463ce0a6b3).(-1); |
| 1435 | } |
| 1436 | } |
| 1437 | |
| 1438 | void MainWindowcxx . . $ MainWindow#::slotByteConverterBinEditedcxx . . $ MainWindow#slotByteConverterBinEdited(3520e46b33348bf6).(const QStringcxx . . $ QString# &str) |
| 1439 | { |
| 1440 | if (str.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) { |
| 1441 | bool ok; |
| 1442 | int data = str.toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&ok, 2); |
| 1443 | byteConverterDeccxx . . $ MainWindow#byteConverterDec.->setValuecxx . . $ ByteConverterDec#setValue(d4f767463ce0a6b3).(data); |
| 1444 | byteConverterHexcxx . . $ MainWindow#byteConverterHex.->setValuecxx . . $ ByteConverterHex#setValue(d4f767463ce0a6b3).(data); |
| 1445 | byteConverterCharcxx . . $ MainWindow#byteConverterChar.->setValuecxx . . $ ByteConverterChar#setValue(d4f767463ce0a6b3).(data); |
| 1446 | byteConverterInstrcxx . . $ MainWindow#byteConverterInstr.->setValuecxx . . $ ByteConverterInstr#setValue(d4f767463ce0a6b3).(data); |
| 1447 | } |
| 1448 | } |
| 1449 | |
| 1450 | void MainWindowcxx . . $ MainWindow#::slotByteConverterCharEditedcxx . . $ MainWindow#slotByteConverterCharEdited(3520e46b33348bf6).(const QStringcxx . . $ QString# &str) |
| 1451 | { |
| 1452 | if (str.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) { |
| 1453 | int data = (int)str[cxx . . $ QString#`operator[]`(13af7ae5a875439e).0].toLatin1cxx . . $ QChar#toLatin1(a33b425be6aff8f0).(); |
| 1454 | byteConverterDeccxx . . $ MainWindow#byteConverterDec.->setValuecxx . . $ ByteConverterDec#setValue(d4f767463ce0a6b3).(data); |
| 1455 | byteConverterHexcxx . . $ MainWindow#byteConverterHex.->setValuecxx . . $ ByteConverterHex#setValue(d4f767463ce0a6b3).(data); |
| 1456 | byteConverterBincxx . . $ MainWindow#byteConverterBin.->setValuecxx . . $ ByteConverterBin#setValue(d4f767463ce0a6b3).(data); |
| 1457 | byteConverterInstrcxx . . $ MainWindow#byteConverterInstr.->setValuecxx . . $ ByteConverterInstr#setValue(d4f767463ce0a6b3).(data); |
| 1458 | } |
| 1459 | } |
| 1460 | |
| 1461 | // Focus Coloring. Activates and deactivates undo/redo/cut/copy/paste actions contextually |
| 1462 | void MainWindowcxx . . $ MainWindow#::mainWindowUtilitiescxx . . $ MainWindow#mainWindowUtilities(84f7ac92c52de9f6).(QWidgetcxx . . $ QWidget# *, QWidgetcxx . . $ QWidget# *) |
| 1463 | { |
| 1464 | sourceCodePanecxx . . $ MainWindow#sourceCodePane.->highlightOnFocuscxx . . $ SourceCodePane#highlightOnFocus(49f6e7a06ebc5aa8).(); |
| 1465 | objectCodePanecxx . . $ MainWindow#objectCodePane.->highlightOnFocuscxx . . $ ObjectCodePane#highlightOnFocus(49f6e7a06ebc5aa8).(); |
| 1466 | assemblerListingPanecxx . . $ MainWindow#assemblerListingPane.->highlightOnFocuscxx . . $ AssemblerListingPane#highlightOnFocus(49f6e7a06ebc5aa8).(); |
| 1467 | listingTracePanecxx . . $ MainWindow#listingTracePane.->highlightOnFocuscxx . . $ ListingTracePane#highlightOnFocus(49f6e7a06ebc5aa8).(); |
| 1468 | memoryTracePanecxx . . $ MainWindow#memoryTracePane.->highlightOnFocuscxx . . $ MemoryTracePane#highlightOnFocus(49f6e7a06ebc5aa8).(); |
| 1469 | cpuPanecxx . . $ MainWindow#cpuPane.->highlightOnFocuscxx . . $ CpuPane#highlightOnFocus(49f6e7a06ebc5aa8).(); |
| 1470 | inputPanecxx . . $ MainWindow#inputPane.->highlightOnFocuscxx . . $ InputPane#highlightOnFocus(49f6e7a06ebc5aa8).(); |
| 1471 | outputPanecxx . . $ MainWindow#outputPane.->highlightOnFocuscxx . . $ OutputPane#highlightOnFocus(49f6e7a06ebc5aa8).(); |
| 1472 | terminalPanecxx . . $ MainWindow#terminalPane.->highlightOnFocuscxx . . $ TerminalPane#highlightOnFocus(49f6e7a06ebc5aa8).(); |
| 1473 | memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->highlightOnFocuscxx . . $ MemoryDumpPane#highlightOnFocus(49f6e7a06ebc5aa8).(); |
| 1474 | |
| 1475 | // we use the stop debugging menu item to determine if we're currently debugging, and set action availability accordingly |
| 1476 | if (sourceCodePanecxx . . $ MainWindow#sourceCodePane.->hasFocuscxx . . $ SourceCodePane#hasFocus(c9857a73d68e59ba).()) { |
| 1477 | uicxx . . $ MainWindow#ui.->actionEdit_Undocxx . . $ Ui_MainWindowClass#actionEdit_Undo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(uicxx . . $ MainWindow#ui.->actionBuild_Stop_Debuggingcxx . . $ Ui_MainWindowClass#actionBuild_Stop_Debugging.->isEnabledcxx . . $ QAction#isEnabled(50ce9a9e25b4a850).() || !sourceCodePanecxx . . $ MainWindow#sourceCodePane.->isUndoablecxx . . $ SourceCodePane#isUndoable(c9857a73d68e59ba).()); |
| 1478 | uicxx . . $ MainWindow#ui.->actionEdit_Redocxx . . $ Ui_MainWindowClass#actionEdit_Redo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(uicxx . . $ MainWindow#ui.->actionBuild_Stop_Debuggingcxx . . $ Ui_MainWindowClass#actionBuild_Stop_Debugging.->isEnabledcxx . . $ QAction#isEnabled(50ce9a9e25b4a850).() || !sourceCodePanecxx . . $ MainWindow#sourceCodePane.->isRedoablecxx . . $ SourceCodePane#isRedoable(c9857a73d68e59ba).()); |
| 1479 | uicxx . . $ MainWindow#ui.->actionEdit_Cutcxx . . $ Ui_MainWindowClass#actionEdit_Cut.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(uicxx . . $ MainWindow#ui.->actionBuild_Stop_Debuggingcxx . . $ Ui_MainWindowClass#actionBuild_Stop_Debugging.->isEnabledcxx . . $ QAction#isEnabled(50ce9a9e25b4a850).()); |
| 1480 | uicxx . . $ MainWindow#ui.->actionEdit_Copycxx . . $ Ui_MainWindowClass#actionEdit_Copy.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(false); |
| 1481 | uicxx . . $ MainWindow#ui.->actionEdit_Pastecxx . . $ Ui_MainWindowClass#actionEdit_Paste.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(uicxx . . $ MainWindow#ui.->actionBuild_Stop_Debuggingcxx . . $ Ui_MainWindowClass#actionBuild_Stop_Debugging.->isEnabledcxx . . $ QAction#isEnabled(50ce9a9e25b4a850).()); |
| 1482 | } |
| 1483 | else if (objectCodePanecxx . . $ MainWindow#objectCodePane.->hasFocuscxx . . $ ObjectCodePane#hasFocus(c9857a73d68e59ba).()) { |
| 1484 | uicxx . . $ MainWindow#ui.->actionEdit_Undocxx . . $ Ui_MainWindowClass#actionEdit_Undo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(uicxx . . $ MainWindow#ui.->actionBuild_Stop_Debuggingcxx . . $ Ui_MainWindowClass#actionBuild_Stop_Debugging.->isEnabledcxx . . $ QAction#isEnabled(50ce9a9e25b4a850).() || !objectCodePanecxx . . $ MainWindow#objectCodePane.->isUndoablecxx . . $ ObjectCodePane#isUndoable(c9857a73d68e59ba).()); |
| 1485 | uicxx . . $ MainWindow#ui.->actionEdit_Redocxx . . $ Ui_MainWindowClass#actionEdit_Redo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(uicxx . . $ MainWindow#ui.->actionBuild_Stop_Debuggingcxx . . $ Ui_MainWindowClass#actionBuild_Stop_Debugging.->isEnabledcxx . . $ QAction#isEnabled(50ce9a9e25b4a850).() || !objectCodePanecxx . . $ MainWindow#objectCodePane.->isRedoablecxx . . $ ObjectCodePane#isRedoable(c9857a73d68e59ba).()); |
| 1486 | uicxx . . $ MainWindow#ui.->actionEdit_Cutcxx . . $ Ui_MainWindowClass#actionEdit_Cut.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(uicxx . . $ MainWindow#ui.->actionBuild_Stop_Debuggingcxx . . $ Ui_MainWindowClass#actionBuild_Stop_Debugging.->isEnabledcxx . . $ QAction#isEnabled(50ce9a9e25b4a850).()); |
| 1487 | uicxx . . $ MainWindow#ui.->actionEdit_Copycxx . . $ Ui_MainWindowClass#actionEdit_Copy.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(false); |
| 1488 | uicxx . . $ MainWindow#ui.->actionEdit_Pastecxx . . $ Ui_MainWindowClass#actionEdit_Paste.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(uicxx . . $ MainWindow#ui.->actionBuild_Stop_Debuggingcxx . . $ Ui_MainWindowClass#actionBuild_Stop_Debugging.->isEnabledcxx . . $ QAction#isEnabled(50ce9a9e25b4a850).()); |
| 1489 | } |
| 1490 | else if (assemblerListingPanecxx . . $ MainWindow#assemblerListingPane.->hasFocuscxx . . $ AssemblerListingPane#hasFocus(c9857a73d68e59ba).()) { |
| 1491 | uicxx . . $ MainWindow#ui.->actionEdit_Undocxx . . $ Ui_MainWindowClass#actionEdit_Undo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1492 | uicxx . . $ MainWindow#ui.->actionEdit_Redocxx . . $ Ui_MainWindowClass#actionEdit_Redo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1493 | uicxx . . $ MainWindow#ui.->actionEdit_Cutcxx . . $ Ui_MainWindowClass#actionEdit_Cut.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1494 | uicxx . . $ MainWindow#ui.->actionEdit_Copycxx . . $ Ui_MainWindowClass#actionEdit_Copy.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(false); |
| 1495 | uicxx . . $ MainWindow#ui.->actionEdit_Pastecxx . . $ Ui_MainWindowClass#actionEdit_Paste.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1496 | } |
| 1497 | else if (listingTracePanecxx . . $ MainWindow#listingTracePane.->hasFocuscxx . . $ ListingTracePane#hasFocus(c9857a73d68e59ba).()) { |
| 1498 | uicxx . . $ MainWindow#ui.->actionEdit_Undocxx . . $ Ui_MainWindowClass#actionEdit_Undo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1499 | uicxx . . $ MainWindow#ui.->actionEdit_Redocxx . . $ Ui_MainWindowClass#actionEdit_Redo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1500 | uicxx . . $ MainWindow#ui.->actionEdit_Cutcxx . . $ Ui_MainWindowClass#actionEdit_Cut.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1501 | uicxx . . $ MainWindow#ui.->actionEdit_Copycxx . . $ Ui_MainWindowClass#actionEdit_Copy.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1502 | uicxx . . $ MainWindow#ui.->actionEdit_Pastecxx . . $ Ui_MainWindowClass#actionEdit_Paste.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1503 | } |
| 1504 | else if (memoryTracePanecxx . . $ MainWindow#memoryTracePane.->hasFocuscxx . . $ MemoryTracePane#hasFocus(c9857a73d68e59ba).()) { |
| 1505 | uicxx . . $ MainWindow#ui.->actionEdit_Undocxx . . $ Ui_MainWindowClass#actionEdit_Undo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1506 | uicxx . . $ MainWindow#ui.->actionEdit_Redocxx . . $ Ui_MainWindowClass#actionEdit_Redo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1507 | uicxx . . $ MainWindow#ui.->actionEdit_Cutcxx . . $ Ui_MainWindowClass#actionEdit_Cut.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1508 | uicxx . . $ MainWindow#ui.->actionEdit_Copycxx . . $ Ui_MainWindowClass#actionEdit_Copy.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1509 | uicxx . . $ MainWindow#ui.->actionEdit_Pastecxx . . $ Ui_MainWindowClass#actionEdit_Paste.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1510 | } |
| 1511 | else if (cpuPanecxx . . $ MainWindow#cpuPane.->hasFocuscxx . . $ CpuPane#hasFocus(c9857a73d68e59ba).()) { |
| 1512 | uicxx . . $ MainWindow#ui.->actionEdit_Undocxx . . $ Ui_MainWindowClass#actionEdit_Undo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1513 | uicxx . . $ MainWindow#ui.->actionEdit_Redocxx . . $ Ui_MainWindowClass#actionEdit_Redo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1514 | uicxx . . $ MainWindow#ui.->actionEdit_Cutcxx . . $ Ui_MainWindowClass#actionEdit_Cut.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1515 | uicxx . . $ MainWindow#ui.->actionEdit_Copycxx . . $ Ui_MainWindowClass#actionEdit_Copy.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1516 | uicxx . . $ MainWindow#ui.->actionEdit_Pastecxx . . $ Ui_MainWindowClass#actionEdit_Paste.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1517 | } |
| 1518 | else if (inputPanecxx . . $ MainWindow#inputPane.->hasFocuscxx . . $ InputPane#hasFocus(c9857a73d68e59ba).()) { |
| 1519 | uicxx . . $ MainWindow#ui.->actionEdit_Undocxx . . $ Ui_MainWindowClass#actionEdit_Undo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(uicxx . . $ MainWindow#ui.->actionBuild_Stop_Debuggingcxx . . $ Ui_MainWindowClass#actionBuild_Stop_Debugging.->isEnabledcxx . . $ QAction#isEnabled(50ce9a9e25b4a850).() || !inputPanecxx . . $ MainWindow#inputPane.->isUndoablecxx . . $ InputPane#isUndoable(c9857a73d68e59ba).()); |
| 1520 | uicxx . . $ MainWindow#ui.->actionEdit_Redocxx . . $ Ui_MainWindowClass#actionEdit_Redo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(uicxx . . $ MainWindow#ui.->actionBuild_Stop_Debuggingcxx . . $ Ui_MainWindowClass#actionBuild_Stop_Debugging.->isEnabledcxx . . $ QAction#isEnabled(50ce9a9e25b4a850).() || !inputPanecxx . . $ MainWindow#inputPane.->isRedoablecxx . . $ InputPane#isRedoable(c9857a73d68e59ba).()); |
| 1521 | uicxx . . $ MainWindow#ui.->actionEdit_Cutcxx . . $ Ui_MainWindowClass#actionEdit_Cut.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(uicxx . . $ MainWindow#ui.->actionBuild_Stop_Debuggingcxx . . $ Ui_MainWindowClass#actionBuild_Stop_Debugging.->isEnabledcxx . . $ QAction#isEnabled(50ce9a9e25b4a850).()); |
| 1522 | uicxx . . $ MainWindow#ui.->actionEdit_Copycxx . . $ Ui_MainWindowClass#actionEdit_Copy.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(false); |
| 1523 | uicxx . . $ MainWindow#ui.->actionEdit_Pastecxx . . $ Ui_MainWindowClass#actionEdit_Paste.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(uicxx . . $ MainWindow#ui.->actionBuild_Stop_Debuggingcxx . . $ Ui_MainWindowClass#actionBuild_Stop_Debugging.->isEnabledcxx . . $ QAction#isEnabled(50ce9a9e25b4a850).()); |
| 1524 | } |
| 1525 | else if (outputPanecxx . . $ MainWindow#outputPane.->hasFocuscxx . . $ OutputPane#hasFocus(c9857a73d68e59ba).()) { |
| 1526 | uicxx . . $ MainWindow#ui.->actionEdit_Undocxx . . $ Ui_MainWindowClass#actionEdit_Undo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1527 | uicxx . . $ MainWindow#ui.->actionEdit_Redocxx . . $ Ui_MainWindowClass#actionEdit_Redo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1528 | uicxx . . $ MainWindow#ui.->actionEdit_Cutcxx . . $ Ui_MainWindowClass#actionEdit_Cut.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1529 | uicxx . . $ MainWindow#ui.->actionEdit_Copycxx . . $ Ui_MainWindowClass#actionEdit_Copy.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(false); |
| 1530 | uicxx . . $ MainWindow#ui.->actionEdit_Pastecxx . . $ Ui_MainWindowClass#actionEdit_Paste.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1531 | } |
| 1532 | else if (terminalPanecxx . . $ MainWindow#terminalPane.->hasFocuscxx . . $ TerminalPane#hasFocus(c9857a73d68e59ba).()) { |
| 1533 | uicxx . . $ MainWindow#ui.->actionEdit_Undocxx . . $ Ui_MainWindowClass#actionEdit_Undo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1534 | uicxx . . $ MainWindow#ui.->actionEdit_Redocxx . . $ Ui_MainWindowClass#actionEdit_Redo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1535 | uicxx . . $ MainWindow#ui.->actionEdit_Cutcxx . . $ Ui_MainWindowClass#actionEdit_Cut.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1536 | uicxx . . $ MainWindow#ui.->actionEdit_Copycxx . . $ Ui_MainWindowClass#actionEdit_Copy.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(false); |
| 1537 | uicxx . . $ MainWindow#ui.->actionEdit_Pastecxx . . $ Ui_MainWindowClass#actionEdit_Paste.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1538 | } |
| 1539 | else if (memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->hasFocuscxx . . $ MemoryDumpPane#hasFocus(c9857a73d68e59ba).()) { |
| 1540 | uicxx . . $ MainWindow#ui.->actionEdit_Undocxx . . $ Ui_MainWindowClass#actionEdit_Undo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1541 | uicxx . . $ MainWindow#ui.->actionEdit_Redocxx . . $ Ui_MainWindowClass#actionEdit_Redo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1542 | uicxx . . $ MainWindow#ui.->actionEdit_Cutcxx . . $ Ui_MainWindowClass#actionEdit_Cut.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1543 | uicxx . . $ MainWindow#ui.->actionEdit_Copycxx . . $ Ui_MainWindowClass#actionEdit_Copy.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(false); |
| 1544 | uicxx . . $ MainWindow#ui.->actionEdit_Pastecxx . . $ Ui_MainWindowClass#actionEdit_Paste.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1545 | } |
| 1546 | else if (helpDialogcxx . . $ MainWindow#helpDialog.->hasFocuscxx . . $ HelpDialog#hasFocus(c9857a73d68e59ba).()) { |
| 1547 | uicxx . . $ MainWindow#ui.->actionEdit_Undocxx . . $ Ui_MainWindowClass#actionEdit_Undo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1548 | uicxx . . $ MainWindow#ui.->actionEdit_Redocxx . . $ Ui_MainWindowClass#actionEdit_Redo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1549 | uicxx . . $ MainWindow#ui.->actionEdit_Cutcxx . . $ Ui_MainWindowClass#actionEdit_Cut.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1550 | uicxx . . $ MainWindow#ui.->actionEdit_Copycxx . . $ Ui_MainWindowClass#actionEdit_Copy.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(false); |
| 1551 | uicxx . . $ MainWindow#ui.->actionEdit_Pastecxx . . $ Ui_MainWindowClass#actionEdit_Paste.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(true); |
| 1552 | } |
| 1553 | } |
| 1554 | |
| 1555 | void MainWindowcxx . . $ MainWindow#::setUndoabilitycxx . . $ MainWindow#setUndoability(b45ddcbc8423892c).(bool b) |
| 1556 | { |
| 1557 | if (sourceCodePanecxx . . $ MainWindow#sourceCodePane.->hasFocuscxx . . $ SourceCodePane#hasFocus(c9857a73d68e59ba).()) { |
| 1558 | uicxx . . $ MainWindow#ui.->actionEdit_Undocxx . . $ Ui_MainWindowClass#actionEdit_Undo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(!b); |
| 1559 | } |
| 1560 | else if (objectCodePanecxx . . $ MainWindow#objectCodePane.->hasFocuscxx . . $ ObjectCodePane#hasFocus(c9857a73d68e59ba).()) { |
| 1561 | uicxx . . $ MainWindow#ui.->actionEdit_Undocxx . . $ Ui_MainWindowClass#actionEdit_Undo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(!b); |
| 1562 | } |
| 1563 | else if (inputPanecxx . . $ MainWindow#inputPane.->hasFocuscxx . . $ InputPane#hasFocus(c9857a73d68e59ba).()) { |
| 1564 | uicxx . . $ MainWindow#ui.->actionEdit_Undocxx . . $ Ui_MainWindowClass#actionEdit_Undo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(!b); |
| 1565 | } |
| 1566 | else if (terminalPanecxx . . $ MainWindow#terminalPane.->hasFocuscxx . . $ TerminalPane#hasFocus(c9857a73d68e59ba).()) { |
| 1567 | uicxx . . $ MainWindow#ui.->actionEdit_Undocxx . . $ Ui_MainWindowClass#actionEdit_Undo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(!b); |
| 1568 | } |
| 1569 | } |
| 1570 | |
| 1571 | void MainWindowcxx . . $ MainWindow#::setRedoabilitycxx . . $ MainWindow#setRedoability(b45ddcbc8423892c).(bool b) |
| 1572 | { |
| 1573 | if (sourceCodePanecxx . . $ MainWindow#sourceCodePane.->hasFocuscxx . . $ SourceCodePane#hasFocus(c9857a73d68e59ba).()) { |
| 1574 | uicxx . . $ MainWindow#ui.->actionEdit_Redocxx . . $ Ui_MainWindowClass#actionEdit_Redo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(!b); |
| 1575 | } |
| 1576 | else if (objectCodePanecxx . . $ MainWindow#objectCodePane.->hasFocuscxx . . $ ObjectCodePane#hasFocus(c9857a73d68e59ba).()) { |
| 1577 | uicxx . . $ MainWindow#ui.->actionEdit_Redocxx . . $ Ui_MainWindowClass#actionEdit_Redo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(!b); |
| 1578 | } |
| 1579 | else if (inputPanecxx . . $ MainWindow#inputPane.->hasFocuscxx . . $ InputPane#hasFocus(c9857a73d68e59ba).()) { |
| 1580 | uicxx . . $ MainWindow#ui.->actionEdit_Redocxx . . $ Ui_MainWindowClass#actionEdit_Redo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(!b); |
| 1581 | } |
| 1582 | else if (terminalPanecxx . . $ MainWindow#terminalPane.->hasFocuscxx . . $ TerminalPane#hasFocus(c9857a73d68e59ba).()) { |
| 1583 | uicxx . . $ MainWindow#ui.->actionEdit_Redocxx . . $ Ui_MainWindowClass#actionEdit_Redo.->setDisabledcxx . . $ QAction#setDisabled(b45ddcbc8423892c).(!b); |
| 1584 | } |
| 1585 | } |
| 1586 | |
| 1587 | void MainWindowcxx . . $ MainWindow#::doubleClickedCodeLabelcxx . . $ MainWindow#doubleClickedCodeLabel(d9b7ee7ebef3c77).(Enucxx . . $ Enu/::EPanecxx . . $ Enu/EPane# pane) |
| 1588 | { |
| 1589 | QListcxx . . $ QList#<int> listcxx . . $ QList#QList(ced63f7c635d850d).; |
| 1590 | if (pane == Enucxx . . $ Enu/::ESourcecxx . . $ Enu/ESource.) { |
| 1591 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(3000); |
| 1592 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(1); |
| 1593 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(1); |
| 1594 | uicxx . . $ MainWindow#ui.->codeSplittercxx . . $ Ui_MainWindowClass#codeSplitter.->setSizescxx . . $ QSplitter#setSizes(27380459aebc118).(list); |
| 1595 | } |
| 1596 | else if (pane == Enucxx . . $ Enu/::EObjectcxx . . $ Enu/EObject.) { |
| 1597 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(1); |
| 1598 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(3000); |
| 1599 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(1); |
| 1600 | uicxx . . $ MainWindow#ui.->codeSplittercxx . . $ Ui_MainWindowClass#codeSplitter.->setSizescxx . . $ QSplitter#setSizes(27380459aebc118).(list); |
| 1601 | } |
| 1602 | else if (pane == Enucxx . . $ Enu/::EListingcxx . . $ Enu/EListing.) { |
| 1603 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(1); |
| 1604 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(1); |
| 1605 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(3000); |
| 1606 | uicxx . . $ MainWindow#ui.->codeSplittercxx . . $ Ui_MainWindowClass#codeSplitter.->setSizescxx . . $ QSplitter#setSizes(27380459aebc118).(list); |
| 1607 | } |
| 1608 | else if (pane == Enucxx . . $ Enu/::EListingTracecxx . . $ Enu/EListingTrace.) { |
| 1609 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(3000); |
| 1610 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(1); |
| 1611 | uicxx . . $ MainWindow#ui.->traceSplittercxx . . $ Ui_MainWindowClass#traceSplitter.->setSizescxx . . $ QSplitter#setSizes(27380459aebc118).(list); |
| 1612 | } |
| 1613 | else if (pane == Enucxx . . $ Enu/::EMemoryTracecxx . . $ Enu/EMemoryTrace.) { |
| 1614 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(1); |
| 1615 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(3000); |
| 1616 | uicxx . . $ MainWindow#ui.->traceSplittercxx . . $ Ui_MainWindowClass#traceSplitter.->setSizescxx . . $ QSplitter#setSizes(27380459aebc118).(list); |
| 1617 | } |
| 1618 | } |
| 1619 | |
| 1620 | //void MainWindow::resizeDocWidth(int, int) |
| 1621 | //{ |
| 1622 | // listingTracePane->resizeDocWidth(); |
| 1623 | //} |
| 1624 | |
| 1625 | void MainWindowcxx . . $ MainWindow#::updateSimulationViewcxx . . $ MainWindow#updateSimulationView(49f6e7a06ebc5aa8).() |
| 1626 | { |
| 1627 | listingTracePanecxx . . $ MainWindow#listingTracePane.->updateListingTracecxx . . $ ListingTracePane#updateListingTrace(49f6e7a06ebc5aa8).(); |
| 1628 | if (!memoryTracePanecxx . . $ MainWindow#memoryTracePane.->isHiddencxx . . $ QWidget#isHidden(50ce9a9e25b4a850).()) { |
| 1629 | memoryTracePanecxx . . $ MainWindow#memoryTracePane.->updateMemoryTracecxx . . $ MemoryTracePane#updateMemoryTrace(49f6e7a06ebc5aa8).(); |
| 1630 | } |
| 1631 | if (!memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->isHiddencxx . . $ QWidget#isHidden(50ce9a9e25b4a850).()) { |
| 1632 | memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->updateMemorycxx . . $ MemoryDumpPane#updateMemory(49f6e7a06ebc5aa8).(); |
| 1633 | memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->highlightMemorycxx . . $ MemoryDumpPane#highlightMemory(b45ddcbc8423892c).(true); |
| 1634 | } |
| 1635 | } |
| 1636 | |
| 1637 | void MainWindowcxx . . $ MainWindow#::vonNeumannSteppedcxx . . $ MainWindow#vonNeumannStepped(49f6e7a06ebc5aa8).() |
| 1638 | { |
| 1639 | memoryDumpPanecxx . . $ MainWindow#memoryDumpPane.->cacheModifiedBytescxx . . $ MemoryDumpPane#cacheModifiedBytes(49f6e7a06ebc5aa8).(); |
| 1640 | if (!memoryTracePanecxx . . $ MainWindow#memoryTracePane.->isHiddencxx . . $ QWidget#isHidden(50ce9a9e25b4a850).()) { |
| 1641 | memoryTracePanecxx . . $ MainWindow#memoryTracePane.->cacheChangescxx . . $ MemoryTracePane#cacheChanges(49f6e7a06ebc5aa8).(); |
| 1642 | memoryTracePanecxx . . $ MainWindow#memoryTracePane.->cacheStackChangescxx . . $ MemoryTracePane#cacheStackChanges(49f6e7a06ebc5aa8).(); |
| 1643 | memoryTracePanecxx . . $ MainWindow#memoryTracePane.->cacheHeapChangescxx . . $ MemoryTracePane#cacheHeapChanges(49f6e7a06ebc5aa8).(); |
| 1644 | } |
| 1645 | } |
| 1646 | |
| 1647 | void MainWindowcxx . . $ MainWindow#::appendOutputcxx . . $ MainWindow#appendOutput(7df51288a9ebd664).(QStringcxx . . $ QString# str) |
| 1648 | { |
| 1649 | if (uicxx . . $ MainWindow#ui.->pepInputOutputTabcxx . . $ Ui_MainWindowClass#pepInputOutputTab.->currentIndexcxx . . $ QTabWidget#currentIndex(455f465bc33b4cdf).() == 0) { // batch output |
| 1650 | outputPanecxx . . $ MainWindow#outputPane.->appendOutputcxx . . $ OutputPane#appendOutput(7df51288a9ebd664).(strcxx . . $ QString#QString(132dd6869045752b).); |
| 1651 | } |
| 1652 | else { // terminal output |
| 1653 | terminalPanecxx . . $ MainWindow#terminalPane.->appendOutputcxx . . $ TerminalPane#appendOutput(7df51288a9ebd664).(strcxx . . $ QString#QString(132dd6869045752b).); |
| 1654 | } |
| 1655 | } |
| 1656 | |
| 1657 | // Recent files |
| 1658 | void MainWindowcxx . . $ MainWindow#::openRecentFilecxx . . $ MainWindow#openRecentFile(49f6e7a06ebc5aa8).() |
| 1659 | { |
| 1660 | QActioncxx . . $ QAction# *action = qobject_castcxx . . $ qobject_cast(c988cfc0ca08742e).<QActioncxx . . $ QAction# *>(sendercxx . . $ QObject#sender(2dbb680a34285c44).()); |
| 1661 | if (action) |
| 1662 | loadFilecxx . . $ MainWindow#loadFile(3520e46b33348bf6).(action->datacxx . . $ QAction#data(23280f95d1ccaa1f).().toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()); |
| 1663 | } |
| 1664 | |
| 1665 | void MainWindowcxx . . $ MainWindow#::waitingForInputcxx . . $ MainWindow#waitingForInput(49f6e7a06ebc5aa8).() |
| 1666 | { |
| 1667 | terminalPanecxx . . $ MainWindow#terminalPane.->waitingForInputcxx . . $ TerminalPane#waitingForInput(49f6e7a06ebc5aa8).(); |
| 1668 | mainWindowUtilitiescxx . . $ MainWindow#mainWindowUtilities(84f7ac92c52de9f6).(0, 0); |
| 1669 | } |
| 1670 | |
| 1671 | void MainWindowcxx . . $ MainWindow#::inputReceivedcxx . . $ MainWindow#inputReceived(49f6e7a06ebc5aa8).() |
| 1672 | { |
| 1673 | if (cpuPanecxx . . $ MainWindow#cpuPane.->waitingStatecxx . . $ CpuPane#waitingState(1652806ed471b963).() == Enucxx . . $ Enu/::EDebugSSWaitingcxx . . $ Enu/EDebugSSWaiting.) { |
| 1674 | cpuPanecxx . . $ MainWindow#cpuPane.->setButtonsEnabledcxx . . $ CpuPane#setButtonsEnabled(b45ddcbc8423892c).(true); |
| 1675 | cpuPanecxx . . $ MainWindow#cpuPane.->singleStepWithTerminalcxx . . $ CpuPane#singleStepWithTerminal(49f6e7a06ebc5aa8).(); |
| 1676 | } |
| 1677 | else if (cpuPanecxx . . $ MainWindow#cpuPane.->waitingStatecxx . . $ CpuPane#waitingState(1652806ed471b963).() == Enucxx . . $ Enu/::EDebugResumeWaitingcxx . . $ Enu/EDebugResumeWaiting.) { |
| 1678 | cpuPanecxx . . $ MainWindow#cpuPane.->setButtonsEnabledcxx . . $ CpuPane#setButtonsEnabled(b45ddcbc8423892c).(true); |
| 1679 | cpuPanecxx . . $ MainWindow#cpuPane.->resumeWithTerminalcxx . . $ CpuPane#resumeWithTerminal(49f6e7a06ebc5aa8).(); |
| 1680 | } |
| 1681 | else if (cpuPanecxx . . $ MainWindow#cpuPane.->waitingStatecxx . . $ CpuPane#waitingState(1652806ed471b963).() == Enucxx . . $ Enu/::ERunWaitingcxx . . $ Enu/ERunWaiting.) { |
| 1682 | cpuPanecxx . . $ MainWindow#cpuPane.->runWithTerminalcxx . . $ CpuPane#runWithTerminal(49f6e7a06ebc5aa8).(); |
| 1683 | } |
| 1684 | } |
| 1685 | |
| 1686 | void MainWindowcxx . . $ MainWindow#::resumeButtonClickedcxx . . $ MainWindow#resumeButtonClicked(49f6e7a06ebc5aa8).() |
| 1687 | { |
| 1688 | if (uicxx . . $ MainWindow#ui.->pepInputOutputTabcxx . . $ Ui_MainWindowClass#pepInputOutputTab.->currentIndexcxx . . $ QTabWidget#currentIndex(455f465bc33b4cdf).() == 0) { // batch input |
| 1689 | cpuPanecxx . . $ MainWindow#cpuPane.->resumeWithBatchcxx . . $ CpuPane#resumeWithBatch(49f6e7a06ebc5aa8).(); |
| 1690 | } |
| 1691 | else { // terminal input |
| 1692 | cpuPanecxx . . $ MainWindow#cpuPane.->resumeWithTerminalcxx . . $ CpuPane#resumeWithTerminal(49f6e7a06ebc5aa8).(); |
| 1693 | } |
| 1694 | } |
| 1695 | |
| 1696 | void MainWindowcxx . . $ MainWindow#::singleStepButtonClickedcxx . . $ MainWindow#singleStepButtonClicked(49f6e7a06ebc5aa8).() |
| 1697 | { |
| 1698 | if (uicxx . . $ MainWindow#ui.->pepInputOutputTabcxx . . $ Ui_MainWindowClass#pepInputOutputTab.->currentIndexcxx . . $ QTabWidget#currentIndex(455f465bc33b4cdf).() == 0) { // batch input |
| 1699 | cpuPanecxx . . $ MainWindow#cpuPane.->singleStepWithBatchcxx . . $ CpuPane#singleStepWithBatch(49f6e7a06ebc5aa8).(); |
| 1700 | } |
| 1701 | else { // terminal input |
| 1702 | cpuPanecxx . . $ MainWindow#cpuPane.->singleStepWithTerminalcxx . . $ CpuPane#singleStepWithTerminal(49f6e7a06ebc5aa8).(); |
| 1703 | } |
| 1704 | } |
| 1705 |