| 1 | #cxx . . $ `<file>/src/SymbolManager.cpp`/include "SymbolManager.h"cxx . . $ `<file>/src/SymbolManager.h`/ |
| 2 | #include "SymbolTable.h"cxx . . $ `<file>/src/SymbolTable.h`/ |
| 3 | #include "Settings.h"cxx . . $ `<file>/src/Settings.h`/ |
| 4 | #include "Convert.h"cxx . . $ `<file>/src/Convert.h`/ |
| 5 | #include <QComboBox> |
| 6 | #include <QFileDialog> |
| 7 | #include <QMessageBox> |
| 8 | #include <QHeaderView> |
| 9 | |
| 10 | SymbolManagercxx . . $ SymbolManager#::SymbolManagercxx . . $ SymbolManager#SymbolManager(6ddf2fc889b17c30).(SymbolTablecxx . . $ SymbolTable#& symtable, QWidgetcxx . . $ QWidget#* parent) |
| 11 | : QDialogcxx . . $ QDialog#QDialog(872e7b0c281abd8d).(parent), symTablecxx . . $ SymbolManager#symTable.(symtable) |
| 12 | { |
| 13 | setupUicxx . . $ Ui_SymbolManager#setupUi(d194de0c0f68c28b).(this); |
| 14 | |
| 15 | // restore layout |
| 16 | Settingscxx . . $ Settings#& s = Settingscxx . . $ Settings#::getcxx . . $ Settings#get(493e506a9691bc24).(); |
| 17 | restoreGeometrycxx . . $ QWidget#restoreGeometry(544790aa27d183a0).(s.valuecxx . . $ QSettings#value(12a1b1749da49362).("SymbolManager/WindowGeometry"cxx . . $ QString#QString(85c52e162fed56f9)., saveGeometrycxx . . $ QVariant#QVariant(45672f3c6961a244).()).toByteArraycxx . . $ QVariant#toByteArray(a96750bfbcb1fbe9).()); |
| 18 | treeFilescxx . . $ Ui_SymbolManager#treeFiles.->headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->restoreStatecxx . . $ QHeaderView#restoreState(544790aa27d183a0).(s.valuecxx . . $ QSettings#value(12a1b1749da49362).("SymbolManager/HeaderFiles"cxx . . $ QString#QString(85c52e162fed56f9)., |
| 19 | treeFilescxx . . $ QVariant#QVariant(45672f3c6961a244).->headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->saveStatecxx . . $ QHeaderView#saveState(a96750bfbcb1fbe9).()).toByteArraycxx . . $ QVariant#toByteArray(a96750bfbcb1fbe9).()); |
| 20 | treeLabelscxx . . $ Ui_SymbolManager#treeLabels.->headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->restoreStatecxx . . $ QHeaderView#restoreState(544790aa27d183a0).(s.valuecxx . . $ QSettings#value(12a1b1749da49362).("SymbolManager/HeaderSymbols"cxx . . $ QString#QString(85c52e162fed56f9)., |
| 21 | treeLabelscxx . . $ QVariant#QVariant(45672f3c6961a244).->headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->saveStatecxx . . $ QHeaderView#saveState(a96750bfbcb1fbe9).()).toByteArraycxx . . $ QVariant#toByteArray(a96750bfbcb1fbe9).()); |
| 22 | |
| 23 | treeLabelsUpdateCountcxx . . $ SymbolManager#treeLabelsUpdateCount. = 0; |
| 24 | editColumncxx . . $ SymbolManager#editColumn. = -1; |
| 25 | |
| 26 | // put slot checkboxes in a convenience array |
| 27 | chkSlotscxx . . $ SymbolManager#chkSlots.[ 0] = chk00cxx . . $ Ui_SymbolManager#chk00.; chkSlotscxx . . $ SymbolManager#chkSlots.[ 1] = chk01cxx . . $ Ui_SymbolManager#chk01.; chkSlotscxx . . $ SymbolManager#chkSlots.[ 2] = chk02cxx . . $ Ui_SymbolManager#chk02.; chkSlotscxx . . $ SymbolManager#chkSlots.[ 3] = chk03cxx . . $ Ui_SymbolManager#chk03.; |
| 28 | chkSlotscxx . . $ SymbolManager#chkSlots.[ 4] = chk10cxx . . $ Ui_SymbolManager#chk10.; chkSlotscxx . . $ SymbolManager#chkSlots.[ 5] = chk11cxx . . $ Ui_SymbolManager#chk11.; chkSlotscxx . . $ SymbolManager#chkSlots.[ 6] = chk12cxx . . $ Ui_SymbolManager#chk12.; chkSlotscxx . . $ SymbolManager#chkSlots.[ 7] = chk13cxx . . $ Ui_SymbolManager#chk13.; |
| 29 | chkSlotscxx . . $ SymbolManager#chkSlots.[ 8] = chk20cxx . . $ Ui_SymbolManager#chk20.; chkSlotscxx . . $ SymbolManager#chkSlots.[ 9] = chk21cxx . . $ Ui_SymbolManager#chk21.; chkSlotscxx . . $ SymbolManager#chkSlots.[10] = chk22cxx . . $ Ui_SymbolManager#chk22.; chkSlotscxx . . $ SymbolManager#chkSlots.[11] = chk23cxx . . $ Ui_SymbolManager#chk23.; |
| 30 | chkSlotscxx . . $ SymbolManager#chkSlots.[12] = chk30cxx . . $ Ui_SymbolManager#chk30.; chkSlotscxx . . $ SymbolManager#chkSlots.[13] = chk31cxx . . $ Ui_SymbolManager#chk31.; chkSlotscxx . . $ SymbolManager#chkSlots.[14] = chk32cxx . . $ Ui_SymbolManager#chk32.; chkSlotscxx . . $ SymbolManager#chkSlots.[15] = chk33cxx . . $ Ui_SymbolManager#chk33.; |
| 31 | chkRegscxx . . $ SymbolManager#chkRegs.[ 0] = chkRegAcxx . . $ Ui_SymbolManager#chkRegA.; chkRegscxx . . $ SymbolManager#chkRegs.[ 1] = chkRegBcxx . . $ Ui_SymbolManager#chkRegB.; chkRegscxx . . $ SymbolManager#chkRegs.[ 2] = chkRegCcxx . . $ Ui_SymbolManager#chkRegC.; chkRegscxx . . $ SymbolManager#chkRegs.[ 3] = chkRegDcxx . . $ Ui_SymbolManager#chkRegD.; |
| 32 | chkRegscxx . . $ SymbolManager#chkRegs.[ 4] = chkRegEcxx . . $ Ui_SymbolManager#chkRegE.; chkRegscxx . . $ SymbolManager#chkRegs.[ 5] = chkRegHcxx . . $ Ui_SymbolManager#chkRegH.; chkRegscxx . . $ SymbolManager#chkRegs.[ 6] = chkRegLcxx . . $ Ui_SymbolManager#chkRegL.; chkRegscxx . . $ SymbolManager#chkRegs.[ 7] = chkRegBCcxx . . $ Ui_SymbolManager#chkRegBC.; |
| 33 | chkRegscxx . . $ SymbolManager#chkRegs.[ 8] = chkRegDEcxx . . $ Ui_SymbolManager#chkRegDE.; chkRegscxx . . $ SymbolManager#chkRegs.[ 9] = chkRegHLcxx . . $ Ui_SymbolManager#chkRegHL.; chkRegscxx . . $ SymbolManager#chkRegs.[10] = chkRegIXcxx . . $ Ui_SymbolManager#chkRegIX.; chkRegscxx . . $ SymbolManager#chkRegs.[11] = chkRegIYcxx . . $ Ui_SymbolManager#chkRegIY.; |
| 34 | chkRegscxx . . $ SymbolManager#chkRegs.[12] = chkRegIXLcxx . . $ Ui_SymbolManager#chkRegIXL.;chkRegscxx . . $ SymbolManager#chkRegs.[13] = chkRegIXHcxx . . $ Ui_SymbolManager#chkRegIXH.;chkRegscxx . . $ SymbolManager#chkRegs.[14] = chkRegIYLcxx . . $ Ui_SymbolManager#chkRegIYL.;chkRegscxx . . $ SymbolManager#chkRegs.[15] = chkRegIYHcxx . . $ Ui_SymbolManager#chkRegIYH.; |
| 35 | chkRegscxx . . $ SymbolManager#chkRegs.[16] = chkRegOffsetcxx . . $ Ui_SymbolManager#chkRegOffset.; chkRegscxx . . $ SymbolManager#chkRegs.[17] = chkRegIcxx . . $ Ui_SymbolManager#chkRegI.; |
| 36 | |
| 37 | connectcxx . . $ QObject#connect(835f87066c895669).(treeFilescxx . . $ Ui_SymbolManager#treeFiles., &QTreeWidgetcxx . . $ QTreeWidget#::itemSelectionChangedcxx . . $ QTreeWidget#itemSelectionChanged(49f6e7a06ebc5aa8)., this, &SymbolManagercxx . . $ SymbolManager#::fileSelectionChangecxx . . $ SymbolManager#fileSelectionChange(49f6e7a06ebc5aa8).); |
| 38 | connectcxx . . $ QObject#connect(835f87066c895669).(btnAddFilecxx . . $ Ui_SymbolManager#btnAddFile., &QPushButtoncxx . . $ QPushButton#::clickedcxx . . $ QAbstractButton#clicked(b45ddcbc8423892c)., this, &SymbolManagercxx . . $ SymbolManager#::addFilecxx . . $ SymbolManager#addFile(49f6e7a06ebc5aa8).); |
| 39 | connectcxx . . $ QObject#connect(835f87066c895669).(btnRemoveFilecxx . . $ Ui_SymbolManager#btnRemoveFile., &QPushButtoncxx . . $ QPushButton#::clickedcxx . . $ QAbstractButton#clicked(b45ddcbc8423892c)., this, &SymbolManagercxx . . $ SymbolManager#::removeFilecxx . . $ SymbolManager#removeFile(49f6e7a06ebc5aa8).); |
| 40 | connectcxx . . $ QObject#connect(835f87066c895669).(btnReloadFilescxx . . $ Ui_SymbolManager#btnReloadFiles., &QPushButtoncxx . . $ QPushButton#::clickedcxx . . $ QAbstractButton#clicked(b45ddcbc8423892c)., this, &SymbolManagercxx . . $ SymbolManager#::reloadFilescxx . . $ SymbolManager#reloadFiles(49f6e7a06ebc5aa8).); |
| 41 | connectcxx . . $ QObject#connect(835f87066c895669).(treeLabelscxx . . $ Ui_SymbolManager#treeLabels., &QTreeWidgetcxx . . $ QTreeWidget#::itemSelectionChangedcxx . . $ QTreeWidget#itemSelectionChanged(49f6e7a06ebc5aa8)., this, &SymbolManagercxx . . $ SymbolManager#::labelSelectionChangedcxx . . $ SymbolManager#labelSelectionChanged(49f6e7a06ebc5aa8).); |
| 42 | connectcxx . . $ QObject#connect(835f87066c895669).(treeLabelscxx . . $ Ui_SymbolManager#treeLabels., &QTreeWidgetcxx . . $ QTreeWidget#::itemDoubleClickedcxx . . $ QTreeWidget#itemDoubleClicked(abbf99ae0f1fc9f0)., this, &SymbolManagercxx . . $ SymbolManager#::labelEditcxx . . $ SymbolManager#labelEdit(abbf99ae0f1fc9f0).); |
| 43 | connectcxx . . $ QObject#connect(835f87066c895669).(treeLabelscxx . . $ Ui_SymbolManager#treeLabels., &QTreeWidgetcxx . . $ QTreeWidget#::itemChangedcxx . . $ QTreeWidget#itemChanged(abbf99ae0f1fc9f0)., this, &SymbolManagercxx . . $ SymbolManager#::labelChangedcxx . . $ SymbolManager#labelChanged(abbf99ae0f1fc9f0).); |
| 44 | connectcxx . . $ QObject#connect(835f87066c895669).(btnAddSymbolcxx . . $ Ui_SymbolManager#btnAddSymbol., &QPushButtoncxx . . $ QPushButton#::clickedcxx . . $ QAbstractButton#clicked(b45ddcbc8423892c)., this, &SymbolManagercxx . . $ SymbolManager#::addLabelcxx . . $ SymbolManager#addLabel(49f6e7a06ebc5aa8).); |
| 45 | connectcxx . . $ QObject#connect(835f87066c895669).(btnRemoveSymbolcxx . . $ Ui_SymbolManager#btnRemoveSymbol., &QPushButtoncxx . . $ QPushButton#::clickedcxx . . $ QAbstractButton#clicked(b45ddcbc8423892c)., this, &SymbolManagercxx . . $ SymbolManager#::removeLabelcxx . . $ SymbolManager#removeLabel(49f6e7a06ebc5aa8).); |
| 46 | connectcxx . . $ QObject#connect(835f87066c895669).(radJumpcxx . . $ Ui_SymbolManager#radJump., &QRadioButtoncxx . . $ QRadioButton#::toggledcxx . . $ QAbstractButton#toggled(b45ddcbc8423892c)., this, &SymbolManagercxx . . $ SymbolManager#::changeTypecxx . . $ SymbolManager#changeType(b45ddcbc8423892c).); |
| 47 | connectcxx . . $ QObject#connect(835f87066c895669).(radVarcxx . . $ Ui_SymbolManager#radVar., &QRadioButtoncxx . . $ QRadioButton#::toggledcxx . . $ QAbstractButton#toggled(b45ddcbc8423892c)., this, &SymbolManagercxx . . $ SymbolManager#::changeTypecxx . . $ SymbolManager#changeType(b45ddcbc8423892c).); |
| 48 | connectcxx . . $ QObject#connect(835f87066c895669).(radValuecxx . . $ Ui_SymbolManager#radValue., &QRadioButtoncxx . . $ QRadioButton#::toggledcxx . . $ QAbstractButton#toggled(b45ddcbc8423892c)., this, &SymbolManagercxx . . $ SymbolManager#::changeTypecxx . . $ SymbolManager#changeType(b45ddcbc8423892c).); |
| 49 | connectcxx . . $ QObject#connect(835f87066c895669).(chk00cxx . . $ Ui_SymbolManager#chk00., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeSlot00cxx . . $ SymbolManager#changeSlot00(d4f767463ce0a6b3).); |
| 50 | connectcxx . . $ QObject#connect(835f87066c895669).(chk01cxx . . $ Ui_SymbolManager#chk01., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeSlot01cxx . . $ SymbolManager#changeSlot01(d4f767463ce0a6b3).); |
| 51 | connectcxx . . $ QObject#connect(835f87066c895669).(chk02cxx . . $ Ui_SymbolManager#chk02., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeSlot02cxx . . $ SymbolManager#changeSlot02(d4f767463ce0a6b3).); |
| 52 | connectcxx . . $ QObject#connect(835f87066c895669).(chk03cxx . . $ Ui_SymbolManager#chk03., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeSlot03cxx . . $ SymbolManager#changeSlot03(d4f767463ce0a6b3).); |
| 53 | connectcxx . . $ QObject#connect(835f87066c895669).(chk10cxx . . $ Ui_SymbolManager#chk10., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeSlot10cxx . . $ SymbolManager#changeSlot10(d4f767463ce0a6b3).); |
| 54 | connectcxx . . $ QObject#connect(835f87066c895669).(chk11cxx . . $ Ui_SymbolManager#chk11., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeSlot11cxx . . $ SymbolManager#changeSlot11(d4f767463ce0a6b3).); |
| 55 | connectcxx . . $ QObject#connect(835f87066c895669).(chk12cxx . . $ Ui_SymbolManager#chk12., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeSlot12cxx . . $ SymbolManager#changeSlot12(d4f767463ce0a6b3).); |
| 56 | connectcxx . . $ QObject#connect(835f87066c895669).(chk13cxx . . $ Ui_SymbolManager#chk13., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeSlot13cxx . . $ SymbolManager#changeSlot13(d4f767463ce0a6b3).); |
| 57 | connectcxx . . $ QObject#connect(835f87066c895669).(chk20cxx . . $ Ui_SymbolManager#chk20., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeSlot20cxx . . $ SymbolManager#changeSlot20(d4f767463ce0a6b3).); |
| 58 | connectcxx . . $ QObject#connect(835f87066c895669).(chk21cxx . . $ Ui_SymbolManager#chk21., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeSlot21cxx . . $ SymbolManager#changeSlot21(d4f767463ce0a6b3).); |
| 59 | connectcxx . . $ QObject#connect(835f87066c895669).(chk22cxx . . $ Ui_SymbolManager#chk22., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeSlot22cxx . . $ SymbolManager#changeSlot22(d4f767463ce0a6b3).); |
| 60 | connectcxx . . $ QObject#connect(835f87066c895669).(chk23cxx . . $ Ui_SymbolManager#chk23., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeSlot23cxx . . $ SymbolManager#changeSlot23(d4f767463ce0a6b3).); |
| 61 | connectcxx . . $ QObject#connect(835f87066c895669).(chk30cxx . . $ Ui_SymbolManager#chk30., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeSlot30cxx . . $ SymbolManager#changeSlot30(d4f767463ce0a6b3).); |
| 62 | connectcxx . . $ QObject#connect(835f87066c895669).(chk31cxx . . $ Ui_SymbolManager#chk31., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeSlot31cxx . . $ SymbolManager#changeSlot31(d4f767463ce0a6b3).); |
| 63 | connectcxx . . $ QObject#connect(835f87066c895669).(chk32cxx . . $ Ui_SymbolManager#chk32., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeSlot32cxx . . $ SymbolManager#changeSlot32(d4f767463ce0a6b3).); |
| 64 | connectcxx . . $ QObject#connect(835f87066c895669).(chk33cxx . . $ Ui_SymbolManager#chk33., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeSlot33cxx . . $ SymbolManager#changeSlot33(d4f767463ce0a6b3).); |
| 65 | connectcxx . . $ QObject#connect(835f87066c895669).(chkRegAcxx . . $ Ui_SymbolManager#chkRegA., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeRegisterAcxx . . $ SymbolManager#changeRegisterA(d4f767463ce0a6b3).); |
| 66 | connectcxx . . $ QObject#connect(835f87066c895669).(chkRegBcxx . . $ Ui_SymbolManager#chkRegB., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeRegisterBcxx . . $ SymbolManager#changeRegisterB(d4f767463ce0a6b3).); |
| 67 | connectcxx . . $ QObject#connect(835f87066c895669).(chkRegCcxx . . $ Ui_SymbolManager#chkRegC., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeRegisterCcxx . . $ SymbolManager#changeRegisterC(d4f767463ce0a6b3).); |
| 68 | connectcxx . . $ QObject#connect(835f87066c895669).(chkRegDcxx . . $ Ui_SymbolManager#chkRegD., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeRegisterDcxx . . $ SymbolManager#changeRegisterD(d4f767463ce0a6b3).); |
| 69 | connectcxx . . $ QObject#connect(835f87066c895669).(chkRegEcxx . . $ Ui_SymbolManager#chkRegE., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeRegisterEcxx . . $ SymbolManager#changeRegisterE(d4f767463ce0a6b3).); |
| 70 | connectcxx . . $ QObject#connect(835f87066c895669).(chkRegHcxx . . $ Ui_SymbolManager#chkRegH., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeRegisterHcxx . . $ SymbolManager#changeRegisterH(d4f767463ce0a6b3).); |
| 71 | connectcxx . . $ QObject#connect(835f87066c895669).(chkRegLcxx . . $ Ui_SymbolManager#chkRegL., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeRegisterLcxx . . $ SymbolManager#changeRegisterL(d4f767463ce0a6b3).); |
| 72 | connectcxx . . $ QObject#connect(835f87066c895669).(chkRegBCcxx . . $ Ui_SymbolManager#chkRegBC., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeRegisterBCcxx . . $ SymbolManager#changeRegisterBC(d4f767463ce0a6b3).); |
| 73 | connectcxx . . $ QObject#connect(835f87066c895669).(chkRegDEcxx . . $ Ui_SymbolManager#chkRegDE., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeRegisterDEcxx . . $ SymbolManager#changeRegisterDE(d4f767463ce0a6b3).); |
| 74 | connectcxx . . $ QObject#connect(835f87066c895669).(chkRegHLcxx . . $ Ui_SymbolManager#chkRegHL., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeRegisterHLcxx . . $ SymbolManager#changeRegisterHL(d4f767463ce0a6b3).); |
| 75 | connectcxx . . $ QObject#connect(835f87066c895669).(chkRegIXcxx . . $ Ui_SymbolManager#chkRegIX., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeRegisterIXcxx . . $ SymbolManager#changeRegisterIX(d4f767463ce0a6b3).); |
| 76 | connectcxx . . $ QObject#connect(835f87066c895669).(chkRegIYcxx . . $ Ui_SymbolManager#chkRegIY., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeRegisterIYcxx . . $ SymbolManager#changeRegisterIY(d4f767463ce0a6b3).); |
| 77 | connectcxx . . $ QObject#connect(835f87066c895669).(chkRegIXLcxx . . $ Ui_SymbolManager#chkRegIXL., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeRegisterIXLcxx . . $ SymbolManager#changeRegisterIXL(d4f767463ce0a6b3).); |
| 78 | connectcxx . . $ QObject#connect(835f87066c895669).(chkRegIXHcxx . . $ Ui_SymbolManager#chkRegIXH., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeRegisterIXHcxx . . $ SymbolManager#changeRegisterIXH(d4f767463ce0a6b3).); |
| 79 | connectcxx . . $ QObject#connect(835f87066c895669).(chkRegIYLcxx . . $ Ui_SymbolManager#chkRegIYL., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeRegisterIYLcxx . . $ SymbolManager#changeRegisterIYL(d4f767463ce0a6b3).); |
| 80 | connectcxx . . $ QObject#connect(835f87066c895669).(chkRegIYHcxx . . $ Ui_SymbolManager#chkRegIYH., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeRegisterIYHcxx . . $ SymbolManager#changeRegisterIYH(d4f767463ce0a6b3).); |
| 81 | connectcxx . . $ QObject#connect(835f87066c895669).(chkRegOffsetcxx . . $ Ui_SymbolManager#chkRegOffset., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeRegisterOffsetcxx . . $ SymbolManager#changeRegisterOffset(d4f767463ce0a6b3).); |
| 82 | connectcxx . . $ QObject#connect(835f87066c895669).(chkRegIcxx . . $ Ui_SymbolManager#chkRegI., &QCheckBoxcxx . . $ QCheckBox#::stateChangedcxx . . $ QCheckBox#stateChanged(d4f767463ce0a6b3)., this, &SymbolManagercxx . . $ SymbolManager#::changeRegisterIcxx . . $ SymbolManager#changeRegisterI(d4f767463ce0a6b3).); |
| 83 | |
| 84 | groupSlotscxx . . $ Ui_SymbolManager#groupSlots.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false); |
| 85 | groupSegmentscxx . . $ Ui_SymbolManager#groupSegments.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false); |
| 86 | btnRemoveFilecxx . . $ Ui_SymbolManager#btnRemoveFile.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false); |
| 87 | btnRemoveSymbolcxx . . $ Ui_SymbolManager#btnRemoveSymbol.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false); |
| 88 | |
| 89 | initFileListcxx . . $ SymbolManager#initFileList(49f6e7a06ebc5aa8).(); |
| 90 | initSymbolListcxx . . $ SymbolManager#initSymbolList(49f6e7a06ebc5aa8).(); |
| 91 | } |
| 92 | |
| 93 | void SymbolManagercxx . . $ SymbolManager#::closeEventcxx . . $ SymbolManager#closeEvent(642e80679aeb34f8).(QCloseEventcxx . . $ QCloseEvent#* e) |
| 94 | { |
| 95 | // store layout |
| 96 | Settingscxx . . $ Settings#& s = Settingscxx . . $ Settings#::getcxx . . $ Settings#get(493e506a9691bc24).(); |
| 97 | s.setValuecxx . . $ QSettings#setValue(1c60a90c724e6bfb).("SymbolManager/WindowGeometry"cxx . . $ QString#QString(85c52e162fed56f9)., saveGeometrycxx . . $ QVariant#QVariant(45672f3c6961a244).()); |
| 98 | s.setValuecxx . . $ QSettings#setValue(1c60a90c724e6bfb).("SymbolManager/HeaderFiles"cxx . . $ QString#QString(85c52e162fed56f9)., treeFilescxx . . $ QVariant#QVariant(45672f3c6961a244).->headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->saveStatecxx . . $ QHeaderView#saveState(a96750bfbcb1fbe9).()); |
| 99 | s.setValuecxx . . $ QSettings#setValue(1c60a90c724e6bfb).("SymbolManager/HeaderSymbols"cxx . . $ QString#QString(85c52e162fed56f9)., treeLabelscxx . . $ QVariant#QVariant(45672f3c6961a244).->headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->saveStatecxx . . $ QHeaderView#saveState(a96750bfbcb1fbe9).()); |
| 100 | QDialogcxx . . $ QDialog#::closeEventcxx . . $ QDialog#closeEvent(642e80679aeb34f8).(e); |
| 101 | } |
| 102 | |
| 103 | void SymbolManagercxx . . $ SymbolManager#::refreshcxx . . $ SymbolManager#refresh(49f6e7a06ebc5aa8).() |
| 104 | { |
| 105 | initSymbolListcxx . . $ SymbolManager#initSymbolList(49f6e7a06ebc5aa8).(); |
| 106 | } |
| 107 | |
| 108 | /* |
| 109 | * File list support functions |
| 110 | */ |
| 111 | |
| 112 | enum TableColumnscxx . . $ TableColumns# { |
| 113 | FILENAMEcxx . . $ FILENAME. = 0, |
| 114 | DESTINATION_SLOTcxx . . $ DESTINATION_SLOT., |
| 115 | LAST_REFRESHcxx . . $ LAST_REFRESH., |
| 116 | }; |
| 117 | |
| 118 | void SymbolManagercxx . . $ SymbolManager#::initFileListcxx . . $ SymbolManager#initFileList(49f6e7a06ebc5aa8).() |
| 119 | { |
| 120 | treeFilescxx . . $ Ui_SymbolManager#treeFiles.->clearcxx . . $ QTreeWidget#clear(49f6e7a06ebc5aa8).(); |
| 121 | for (int i = 0; i < symTablecxx . . $ SymbolManager#symTable..symbolFilesSizecxx . . $ SymbolTable#symbolFilesSize(455f465bc33b4cdf).(); ++i) { |
| 122 | auto* item = new QTreeWidgetItemcxx . . $ QTreeWidgetItem#QTreeWidgetItem(a0da2fa5542f28a7).(treeFilescxx . . $ Ui_SymbolManager#treeFiles.); |
| 123 | QFileInfocxx . . $ QFileInfo# infocxx . . $ QFileInfo#QFileInfo(3520e46b33348bf6).(symTablecxx . . $ SymbolManager#symTable..symbolFilecxx . . $ SymbolTable#symbolFile(16cc9d170214b96a).(i)); |
| 124 | item->setTextcxx . . $ QTreeWidgetItem#setText(4b11a7293b4ed91c).(FILENAMEcxx . . $ FILENAME., info.fileNamecxx . . $ QFileInfo#fileName(6ef7b6c27b00b43d).()); |
| 125 | item->setToolTipcxx . . $ QTreeWidgetItem#setToolTip(4b11a7293b4ed91c).(FILENAMEcxx . . $ FILENAME., symTablecxx . . $ SymbolManager#symTable..symbolFilecxx . . $ SymbolTable#symbolFile(16cc9d170214b96a).(i)); |
| 126 | auto fmt = QLocalecxx . . $ QLocale#QLocale(49f6e7a06ebc5aa8).().dateTimeFormatcxx . . $ QLocale#dateTimeFormat(d669fe637b82c0d4).(QLocalecxx . . $ QLocale#::ShortFormatcxx . . $ QLocale#ShortFormat.); |
| 127 | createComboBoxcxx . . $ SymbolManager#createComboBox(d4f767463ce0a6b3).(i); |
| 128 | item->setTextcxx . . $ QTreeWidgetItem#setText(4b11a7293b4ed91c).(LAST_REFRESHcxx . . $ LAST_REFRESH., symTablecxx . . $ SymbolManager#symTable..symbolFileRefreshcxx . . $ SymbolTable#symbolFileRefresh(8d59ec49d27552dc).(i).toStringcxx . . $ QDateTime#toString(5555d9024dcf93fb).(fmt)); |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | static const char* destinationLabelscxx . . $ destinationLabels.[] = { |
| 133 | "All", |
| 134 | "0-0", "0-1", "0-2", "0-3", |
| 135 | "1-0", "1-1", "1-2", "1-3", |
| 136 | "2-0", "2-1", "2-2", "2-3", |
| 137 | "3-0", "3-1", "3-2", "3-3", |
| 138 | }; |
| 139 | |
| 140 | void SymbolManagercxx . . $ SymbolManager#::createComboBoxcxx . . $ SymbolManager#createComboBox(d4f767463ce0a6b3).(int row) |
| 141 | { |
| 142 | auto* combo = new QComboBoxcxx . . $ QComboBox#QComboBox(108f35f7aa7f3cf9).(); |
| 143 | combo->setEditablecxx . . $ QComboBox#setEditable(b45ddcbc8423892c).(false); |
| 144 | combo->insertItemscxx . . $ QComboBox#insertItems(c6059507b8fd4559).(0, QStringListcxx . . $ QStringList#QStringList(249673c20e2b8d5).(stdcxx . . $ std/::begincxx . . $ std/begin(a8ca795d3c997dbe).(destinationLabelscxx . . $ destinationLabels.), stdcxx . . $ std/::endcxx . . $ std/end(a8ca795d3c997dbe).(destinationLabelscxx . . $ destinationLabels.))); |
| 145 | combo->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 146 | |
| 147 | auto* model = treeFilescxx . . $ Ui_SymbolManager#treeFiles.->modelcxx . . $ QAbstractItemView#model(c9c1e11e7bd96493).(); |
| 148 | auto index = model->indexcxx . . $ QAbstractItemModel#index(37dbccf64c4e392).(row, DESTINATION_SLOTcxx . . $ DESTINATION_SLOT.); |
| 149 | |
| 150 | treeFilescxx . . $ Ui_SymbolManager#treeFiles.->setIndexWidgetcxx . . $ QAbstractItemView#setIndexWidget(954d28fe21aaf364).(index, combo); |
| 151 | |
| 152 | connectcxx . . $ QObject#connect(799f219bacec96aa).(combo, qOverloadcxx . . $ qOverload.<int>(cxx . . $ QNonConstOverload#`operator()`(a8f97e06674de5d1).&QComboBoxcxx . . $ QComboBox#::currentIndexChangedcxx . . $ QComboBox#currentIndexChanged(d4f767463ce0a6b3).), |
| 153 | [this, row](int index){ addSymbolFileDestinationcxx . . $ SymbolManager#addSymbolFileDestination(3e454b8ccf442868).(row, index - 1); }); |
| 154 | } |
| 155 | |
| 156 | void SymbolManagercxx . . $ SymbolManager#::addFilecxx . . $ SymbolManager#addFile(49f6e7a06ebc5aa8).() |
| 157 | { |
| 158 | // create dialog |
| 159 | auto* d = new QFileDialogcxx . . $ QFileDialog#(this); |
| 160 | QStringListcxx . . $ QStringList# typescxx . . $ QStringList#QStringList(ced63f7c635d850d).; |
| 161 | types <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "All supported files (*.omds *.sym *.map *.noi *.symbol *.publics *.sys)"cxx . . $ QString#QString(85c52e162fed56f9). |
| 162 | <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "OpenMSX Debugger session files (*.omds)"cxx . . $ QString#QString(85c52e162fed56f9). |
| 163 | <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "tniASM 0.x symbol files (*.sym)"cxx . . $ QString#QString(85c52e162fed56f9). |
| 164 | <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "tniASM 1.x symbol files (*.sym)"cxx . . $ QString#QString(85c52e162fed56f9). |
| 165 | <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "asMSX 0.x symbol files (*.sym)"cxx . . $ QString#QString(85c52e162fed56f9). |
| 166 | <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "HiTech C symbol files (*.sym)"cxx . . $ QString#QString(85c52e162fed56f9). |
| 167 | <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "HiTech C link map files (*.map)"cxx . . $ QString#QString(85c52e162fed56f9). |
| 168 | <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "NoICE command files (*.noi)"cxx . . $ QString#QString(85c52e162fed56f9). |
| 169 | <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "pasmo symbol files (*.symbol *.publics *.sys)"cxx . . $ QString#QString(85c52e162fed56f9). |
| 170 | <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "vasm symbol files (*.sym)"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 171 | d->setNameFilterscxx . . $ QFileDialog#setNameFilters(631c0101495f0328).(types); |
| 172 | d->setAcceptModecxx . . $ QFileDialog#setAcceptMode(6f58cf79553d7077).(QFileDialogcxx . . $ QFileDialog#::AcceptOpencxx . . $ QFileDialog#AcceptOpen.); |
| 173 | d->setFileModecxx . . $ QFileDialog#setFileMode(508d43a8df9137e8).(QFileDialogcxx . . $ QFileDialog#::ExistingFilecxx . . $ QFileDialog#ExistingFile.); |
| 174 | // set default directory |
| 175 | d->setDirectorycxx . . $ QFileDialog#setDirectory(3520e46b33348bf6).(Settingscxx . . $ Settings#::getcxx . . $ Settings#get(493e506a9691bc24).().valuecxx . . $ QSettings#value(12a1b1749da49362).("SymbolManager/OpenDir"cxx . . $ QString#QString(85c52e162fed56f9)., QDircxx . . $ QVariant#QVariant(3520e46b33348bf6).::currentPathcxx . . $ QDir#currentPath(4365c3963150523e).()).toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()); |
| 176 | // run |
| 177 | if (d->execcxx . . $ QDialog#exec(b126dc7c1de90089).()) { |
| 178 | QStringcxx . . $ QString# f = d->selectedNameFiltercxx . . $ QFileDialog#selectedNameFilter(6ef7b6c27b00b43d).(); |
| 179 | QStringcxx . . $ QString# n = dcxx . . $ QString#QString(132dd6869045752b).->selectedFilescxx . . $ QFileDialog#selectedFiles(e1dbd5c4feadc8f5).().atcxx . . $ QList#at(e2681f9bb6b2f357).(0); |
| 180 | // load file from the correct type |
| 181 | bool read = false; |
| 182 | if (f.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("OpenMSX Debugger session"cxx . . $ QString#QString(85c52e162fed56f9).)) { |
| 183 | read = symTablecxx . . $ SymbolManager#symTable..readFilecxx . . $ SymbolTable#readFile(a6376190b25aca40).(n, SymbolTablecxx . . $ SymbolTable#::OMDS_FILEcxx . . $ SymbolTable#OMDS_FILE.); |
| 184 | } else if (f.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("tniASM 0"cxx . . $ QString#QString(85c52e162fed56f9).)) { |
| 185 | read = symTablecxx . . $ SymbolManager#symTable..readFilecxx . . $ SymbolTable#readFile(a6376190b25aca40).(n, SymbolTablecxx . . $ SymbolTable#::TNIASM0_FILEcxx . . $ SymbolTable#TNIASM0_FILE.); |
| 186 | } else if (f.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("tniASM 1"cxx . . $ QString#QString(85c52e162fed56f9).)) { |
| 187 | read = symTablecxx . . $ SymbolManager#symTable..readFilecxx . . $ SymbolTable#readFile(a6376190b25aca40).(n, SymbolTablecxx . . $ SymbolTable#::TNIASM1_FILEcxx . . $ SymbolTable#TNIASM1_FILE.); |
| 188 | } else if (f.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("asMSX"cxx . . $ QString#QString(85c52e162fed56f9).)) { |
| 189 | read = symTablecxx . . $ SymbolManager#symTable..readFilecxx . . $ SymbolTable#readFile(a6376190b25aca40).(n, SymbolTablecxx . . $ SymbolTable#::ASMSX_FILEcxx . . $ SymbolTable#ASMSX_FILE.); |
| 190 | } else if (f.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("HiTech C symbol"cxx . . $ QString#QString(85c52e162fed56f9).)) { |
| 191 | read = symTablecxx . . $ SymbolManager#symTable..readFilecxx . . $ SymbolTable#readFile(a6376190b25aca40).(n, SymbolTablecxx . . $ SymbolTable#::HTC_FILEcxx . . $ SymbolTable#HTC_FILE.); |
| 192 | } else if (f.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("HiTech C link"cxx . . $ QString#QString(85c52e162fed56f9).)) { |
| 193 | read = symTablecxx . . $ SymbolManager#symTable..readFilecxx . . $ SymbolTable#readFile(a6376190b25aca40).(n, SymbolTablecxx . . $ SymbolTable#::LINKMAP_FILEcxx . . $ SymbolTable#LINKMAP_FILE.); |
| 194 | } else if (f.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("NoICE"cxx . . $ QString#QString(85c52e162fed56f9).)) { |
| 195 | read = symTablecxx . . $ SymbolManager#symTable..readFilecxx . . $ SymbolTable#readFile(a6376190b25aca40).(n, SymbolTablecxx . . $ SymbolTable#::NOICE_FILEcxx . . $ SymbolTable#NOICE_FILE.); |
| 196 | } else if (f.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("pasmo"cxx . . $ QString#QString(85c52e162fed56f9).)) { |
| 197 | read = symTablecxx . . $ SymbolManager#symTable..readFilecxx . . $ SymbolTable#readFile(a6376190b25aca40).(n, SymbolTablecxx . . $ SymbolTable#::PASMO_FILEcxx . . $ SymbolTable#PASMO_FILE.); |
| 198 | } else if (f.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("vasm"cxx . . $ QString#QString(85c52e162fed56f9).)) { |
| 199 | read = symTablecxx . . $ SymbolManager#symTable..readFilecxx . . $ SymbolTable#readFile(a6376190b25aca40).(n, SymbolTablecxx . . $ SymbolTable#::VASM_FILEcxx . . $ SymbolTable#VASM_FILE.); |
| 200 | } else { |
| 201 | read = symTablecxx . . $ SymbolManager#symTable..readFilecxx . . $ SymbolTable#readFile(a6376190b25aca40).(n); |
| 202 | } |
| 203 | // if read succesful, add it to the list |
| 204 | if (read) { |
| 205 | initFileListcxx . . $ SymbolManager#initFileList(49f6e7a06ebc5aa8).(); |
| 206 | initSymbolListcxx . . $ SymbolManager#initSymbolList(49f6e7a06ebc5aa8).(); |
| 207 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! symbolTableChangedcxx . . $ SymbolManager#symbolTableChanged(49f6e7a06ebc5aa8).(); |
| 208 | } |
| 209 | } |
| 210 | // store last used path |
| 211 | Settingscxx . . $ Settings#::getcxx . . $ Settings#get(493e506a9691bc24).().setValuecxx . . $ QSettings#setValue(1c60a90c724e6bfb).("SymbolManager/OpenDir"cxx . . $ QString#QString(85c52e162fed56f9)., dcxx . . $ QVariant#QVariant(3520e46b33348bf6).->directorycxx . . $ QFileDialog#directory(ac6552cf9b6b4ed1).().absolutePathcxx . . $ QDir#absolutePath(6ef7b6c27b00b43d).()); |
| 212 | } |
| 213 | |
| 214 | void SymbolManagercxx . . $ SymbolManager#::removeFilecxx . . $ SymbolManager#removeFile(49f6e7a06ebc5aa8).() |
| 215 | { |
| 216 | int r = QMessageBoxcxx . . $ QMessageBox#::questioncxx . . $ QMessageBox#question(9d6e770a9571b95d).( |
| 217 | this, |
| 218 | trcxx . . $ SymbolManager#tr(75d9f1c324b4579d).("Remove symbol file(s)"), |
| 219 | trcxx . . $ SymbolManager#tr(75d9f1c324b4579d).("When removing the symbol file(s), do you want keep or " |
| 220 | "delete the attached symbols?"), |
| 221 | "Keep symbols"cxx . . $ QString#QString(85c52e162fed56f9)., "Delete symbols"cxx . . $ QString#QString(85c52e162fed56f9)., "Cancel"cxx . . $ QString#QString(85c52e162fed56f9)., 1, 2); |
| 222 | if (r == 2) return; |
| 223 | |
| 224 | for (int i = 0; i < treeFilescxx . . $ Ui_SymbolManager#treeFiles.->selectedItemscxx . . $ QTreeWidget#selectedItems(e591029002818eb9).().sizecxx . . $ QList#size(ea6fe5115c70a13f).(); ++i) { |
| 225 | symTablecxx . . $ SymbolManager#symTable..unloadFilecxx . . $ SymbolTable#unloadFile(37c160c81b6367f7).(treeFilescxx . . $ Ui_SymbolManager#treeFiles.->selectedItemscxx . . $ QTreeWidget#selectedItems(e591029002818eb9).().atcxx . . $ QList#at(e2681f9bb6b2f357).(i)->toolTipcxx . . $ QTreeWidgetItem#toolTip(3f3c3d0e9c0eb37f).(0), r == 0); |
| 226 | } |
| 227 | |
| 228 | initFileListcxx . . $ SymbolManager#initFileList(49f6e7a06ebc5aa8).(); |
| 229 | initSymbolListcxx . . $ SymbolManager#initSymbolList(49f6e7a06ebc5aa8).(); |
| 230 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! symbolTableChangedcxx . . $ SymbolManager#symbolTableChanged(49f6e7a06ebc5aa8).(); |
| 231 | } |
| 232 | |
| 233 | void SymbolManagercxx . . $ SymbolManager#::reloadFilescxx . . $ SymbolManager#reloadFiles(49f6e7a06ebc5aa8).() |
| 234 | { |
| 235 | symTablecxx . . $ SymbolManager#symTable..reloadFilescxx . . $ SymbolTable#reloadFiles(49f6e7a06ebc5aa8).(); |
| 236 | initFileListcxx . . $ SymbolManager#initFileList(49f6e7a06ebc5aa8).(); |
| 237 | initSymbolListcxx . . $ SymbolManager#initSymbolList(49f6e7a06ebc5aa8).(); |
| 238 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! symbolTableChangedcxx . . $ SymbolManager#symbolTableChanged(49f6e7a06ebc5aa8).(); |
| 239 | } |
| 240 | |
| 241 | void SymbolManagercxx . . $ SymbolManager#::addSymbolFileDestinationcxx . . $ SymbolManager#addSymbolFileDestination(3e454b8ccf442868).(int fileIndex, int slotIndex) |
| 242 | { |
| 243 | for (Symbolcxx . . $ Symbol#* sym = symTablecxx . . $ SymbolManager#symTable..findFirstAddressSymbolcxx . . $ SymbolTable#findFirstAddressSymbol(6425489d2f72da67).(0); |
| 244 | sym != nullptr; |
| 245 | sym = symTablecxx . . $ SymbolManager#symTable..findNextAddressSymbolcxx . . $ SymbolTable#findNextAddressSymbol(fd05edddcc119593).()) { |
| 246 | if (sym->sourcecxx . . $ Symbol#source(88f341a3c13628a).() == &symTablecxx . . $ SymbolManager#symTable..symbolFilecxx . . $ SymbolTable#symbolFile(16cc9d170214b96a).(fileIndex)) { |
| 247 | sym->setValidSlotscxx . . $ Symbol#setValidSlots(ed53e3bbd3fa2f69).(slotIndex == -1 ? 0xFFFF : 0xFFFF & (1 << slotIndex)); |
| 248 | } |
| 249 | } |
| 250 | |
| 251 | refreshcxx . . $ SymbolManager#refresh(49f6e7a06ebc5aa8).(); |
| 252 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! symbolTableChangedcxx . . $ SymbolManager#symbolTableChanged(49f6e7a06ebc5aa8).(); |
| 253 | wipeSelectedItemcxx . . $ SymbolManager#wipeSelectedItem(49f6e7a06ebc5aa8).(); |
| 254 | } |
| 255 | |
| 256 | void SymbolManagercxx . . $ SymbolManager#::fileSelectionChangecxx . . $ SymbolManager#fileSelectionChange(49f6e7a06ebc5aa8).() |
| 257 | { |
| 258 | btnRemoveFilecxx . . $ Ui_SymbolManager#btnRemoveFile.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(!treeFilescxx . . $ Ui_SymbolManager#treeFiles.->selectedItemscxx . . $ QTreeWidget#selectedItems(e591029002818eb9).().emptycxx . . $ QList#empty(50ce9a9e25b4a850).()); |
| 259 | } |
| 260 | |
| 261 | void SymbolManagercxx . . $ SymbolManager#::labelEditcxx . . $ SymbolManager#labelEdit(abbf99ae0f1fc9f0).(QTreeWidgetItemcxx . . $ QTreeWidgetItem#* item, int column) |
| 262 | { |
| 263 | // only symbol name and value are editable |
| 264 | if (column == 0 || column == 2) { |
| 265 | // open editor if manually added symbol |
| 266 | auto* sym = reinterpret_cast<Symbolcxx . . $ Symbol#*>(item->datacxx . . $ QTreeWidgetItem#data(db8258505c7ad0b0).(0, Qtcxx . . $ Qt/::UserRolecxx . . $ Qt/UserRole.).valuecxx . . $ QVariant#value(8f5363d873dd4781).<quintptrcxx . . $ quintptr#>()); |
| 267 | if (!sym->sourcecxx . . $ Symbol#source(88f341a3c13628a).()) { |
| 268 | // first close possible existing editor |
| 269 | closeEditorcxx . . $ SymbolManager#closeEditor(49f6e7a06ebc5aa8).(); |
| 270 | // open new editor |
| 271 | treeLabelscxx . . $ Ui_SymbolManager#treeLabels.->openPersistentEditorcxx . . $ QTreeWidget#openPersistentEditor(abbf99ae0f1fc9f0).(item, column); |
| 272 | editItemcxx . . $ SymbolManager#editItem. = item; |
| 273 | editColumncxx . . $ SymbolManager#editColumn. = column; |
| 274 | } |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | /* |
| 279 | * Symbol support functions |
| 280 | */ |
| 281 | |
| 282 | void SymbolManagercxx . . $ SymbolManager#::initSymbolListcxx . . $ SymbolManager#initSymbolList(49f6e7a06ebc5aa8).() |
| 283 | { |
| 284 | treeLabelscxx . . $ Ui_SymbolManager#treeLabels.->clearcxx . . $ QTreeWidget#clear(49f6e7a06ebc5aa8).(); |
| 285 | beginTreeLabelsUpdatecxx . . $ SymbolManager#beginTreeLabelsUpdate(49f6e7a06ebc5aa8).(); |
| 286 | for (Symbolcxx . . $ Symbol#* sym = symTablecxx . . $ SymbolManager#symTable..findFirstAddressSymbolcxx . . $ SymbolTable#findFirstAddressSymbol(6425489d2f72da67).(0); |
| 287 | sym != nullptr; |
| 288 | sym = symTablecxx . . $ SymbolManager#symTable..findNextAddressSymbolcxx . . $ SymbolTable#findNextAddressSymbol(fd05edddcc119593).()) { |
| 289 | auto* item = new QTreeWidgetItemcxx . . $ QTreeWidgetItem#QTreeWidgetItem(a0da2fa5542f28a7).(treeLabelscxx . . $ Ui_SymbolManager#treeLabels.); |
| 290 | // attach a pointer to the symbol object to the tree item |
| 291 | item->setDatacxx . . $ QTreeWidgetItem#setData(6591095c404f2e76).(0L, Qtcxx . . $ Qt/::UserRolecxx . . $ Qt/UserRole., quintptrcxx . . $ QVariant#QVariant(891dc3055356b409).(sym)); |
| 292 | // update columns |
| 293 | updateItemNamecxx . . $ SymbolManager#updateItemName(7332f4628c1d1841).(item); |
| 294 | updateItemTypecxx . . $ SymbolManager#updateItemType(7332f4628c1d1841).(item); |
| 295 | updateItemValuecxx . . $ SymbolManager#updateItemValue(7332f4628c1d1841).(item); |
| 296 | updateItemSlotscxx . . $ SymbolManager#updateItemSlots(7332f4628c1d1841).(item); |
| 297 | updateItemSegmentscxx . . $ SymbolManager#updateItemSegments(7332f4628c1d1841).(item); |
| 298 | updateItemRegisterscxx . . $ SymbolManager#updateItemRegisters(7332f4628c1d1841).(item); |
| 299 | } |
| 300 | endTreeLabelsUpdatecxx . . $ SymbolManager#endTreeLabelsUpdate(49f6e7a06ebc5aa8).(); |
| 301 | } |
| 302 | |
| 303 | void SymbolManagercxx . . $ SymbolManager#::beginTreeLabelsUpdatecxx . . $ SymbolManager#beginTreeLabelsUpdate(49f6e7a06ebc5aa8).() |
| 304 | { |
| 305 | ++treeLabelsUpdateCountcxx . . $ SymbolManager#treeLabelsUpdateCount.; |
| 306 | } |
| 307 | |
| 308 | void SymbolManagercxx . . $ SymbolManager#::endTreeLabelsUpdatecxx . . $ SymbolManager#endTreeLabelsUpdate(49f6e7a06ebc5aa8).() |
| 309 | { |
| 310 | if (treeLabelsUpdateCountcxx . . $ SymbolManager#treeLabelsUpdateCount. > 0) { |
| 311 | --treeLabelsUpdateCountcxx . . $ SymbolManager#treeLabelsUpdateCount.; |
| 312 | } |
| 313 | } |
| 314 | |
| 315 | void SymbolManagercxx . . $ SymbolManager#::closeEditorcxx . . $ SymbolManager#closeEditor(49f6e7a06ebc5aa8).() |
| 316 | { |
| 317 | if (editColumncxx . . $ SymbolManager#editColumn. >= 0) { |
| 318 | treeLabelscxx . . $ Ui_SymbolManager#treeLabels.->closePersistentEditorcxx . . $ QTreeWidget#closePersistentEditor(abbf99ae0f1fc9f0).(editItemcxx . . $ SymbolManager#editItem., editColumncxx . . $ SymbolManager#editColumn.); |
| 319 | editColumncxx . . $ SymbolManager#editColumn. = -1; |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | void SymbolManagercxx . . $ SymbolManager#::addLabelcxx . . $ SymbolManager#addLabel(49f6e7a06ebc5aa8).() |
| 324 | { |
| 325 | // create an empty symbol |
| 326 | auto* sym = symTablecxx . . $ SymbolManager#symTable..addcxx . . $ SymbolTable#add(c241dcc49dd75ec1).(stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<Symbolcxx . . $ Symbol#>(trcxx . . $ SymbolManager#tr(75d9f1c324b4579d).("New symbol"), 0)); |
| 327 | |
| 328 | beginTreeLabelsUpdatecxx . . $ SymbolManager#beginTreeLabelsUpdate(49f6e7a06ebc5aa8).(); |
| 329 | auto* item = new QTreeWidgetItemcxx . . $ QTreeWidgetItem#QTreeWidgetItem(a0da2fa5542f28a7).(treeLabelscxx . . $ Ui_SymbolManager#treeLabels.); |
| 330 | item->setDatacxx . . $ QTreeWidgetItem#setData(6591095c404f2e76).(0, Qtcxx . . $ Qt/::UserRolecxx . . $ Qt/UserRole., quintptrcxx . . $ QVariant#QVariant(891dc3055356b409).(sym)); |
| 331 | updateItemNamecxx . . $ SymbolManager#updateItemName(7332f4628c1d1841).(item); |
| 332 | updateItemTypecxx . . $ SymbolManager#updateItemType(7332f4628c1d1841).(item); |
| 333 | updateItemValuecxx . . $ SymbolManager#updateItemValue(7332f4628c1d1841).(item); |
| 334 | updateItemSlotscxx . . $ SymbolManager#updateItemSlots(7332f4628c1d1841).(item); |
| 335 | updateItemSegmentscxx . . $ SymbolManager#updateItemSegments(7332f4628c1d1841).(item); |
| 336 | updateItemRegisterscxx . . $ SymbolManager#updateItemRegisters(7332f4628c1d1841).(item); |
| 337 | endTreeLabelsUpdatecxx . . $ SymbolManager#endTreeLabelsUpdate(49f6e7a06ebc5aa8).(); |
| 338 | closeEditorcxx . . $ SymbolManager#closeEditor(49f6e7a06ebc5aa8).(); |
| 339 | treeLabelscxx . . $ Ui_SymbolManager#treeLabels.->setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).(); |
| 340 | treeLabelscxx . . $ Ui_SymbolManager#treeLabels.->setCurrentItemcxx . . $ QTreeWidget#setCurrentItem(abbf99ae0f1fc9f0).(item, 0); |
| 341 | treeLabelscxx . . $ Ui_SymbolManager#treeLabels.->scrollToItemcxx . . $ QTreeWidget#scrollToItem(49c6117030e9f883).(item); |
| 342 | treeLabelscxx . . $ Ui_SymbolManager#treeLabels.->openPersistentEditorcxx . . $ QTreeWidget#openPersistentEditor(abbf99ae0f1fc9f0).(item, 0); |
| 343 | editItemcxx . . $ SymbolManager#editItem. = item; |
| 344 | editColumncxx . . $ SymbolManager#editColumn. = 0; |
| 345 | |
| 346 | // emit notification that something has changed |
| 347 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! symbolTableChangedcxx . . $ SymbolManager#symbolTableChanged(49f6e7a06ebc5aa8).(); |
| 348 | } |
| 349 | |
| 350 | void SymbolManagercxx . . $ SymbolManager#::removeLabelcxx . . $ SymbolManager#removeLabel(49f6e7a06ebc5aa8).() |
| 351 | { |
| 352 | QListcxx . . $ QList#<QTreeWidgetItemcxx . . $ QTreeWidgetItem#*> selection = treeLabelscxx . . $ Ui_SymbolManager#treeLabels.->selectedItemscxx . . $ QTreeWidget#selectedItems(e591029002818eb9).(); |
| 353 | // check for selection |
| 354 | if (selection.emptycxx . . $ QList#empty(50ce9a9e25b4a850).()) return; |
| 355 | // remove selected items |
| 356 | bool deleted = false; |
| 357 | for (auto* sel : selection) { |
| 358 | // get symbol |
| 359 | Symbolcxx . . $ Symbol#* sym = reinterpret_cast<Symbolcxx . . $ Symbol#*>(sel->datacxx . . $ QTreeWidgetItem#data(db8258505c7ad0b0).(0, Qtcxx . . $ Qt/::UserRolecxx . . $ Qt/UserRole.).valuecxx . . $ QVariant#value(8f5363d873dd4781).<quintptrcxx . . $ quintptr#>()); |
| 360 | // check if symbol is from symbol file |
| 361 | if (!sym->sourcecxx . . $ Symbol#source(88f341a3c13628a).()) { |
| 362 | // remove from table |
| 363 | symTablecxx . . $ SymbolManager#symTable..removecxx . . $ SymbolTable#remove(de12313ba27c44a5).(sym); |
| 364 | deleted = true; |
| 365 | } |
| 366 | } |
| 367 | if (deleted) { |
| 368 | // refresh tree |
| 369 | initSymbolListcxx . . $ SymbolManager#initSymbolList(49f6e7a06ebc5aa8).(); |
| 370 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! symbolTableChangedcxx . . $ SymbolManager#symbolTableChanged(49f6e7a06ebc5aa8).(); |
| 371 | } |
| 372 | } |
| 373 | |
| 374 | void SymbolManagercxx . . $ SymbolManager#::labelChangedcxx . . $ SymbolManager#labelChanged(abbf99ae0f1fc9f0).(QTreeWidgetItemcxx . . $ QTreeWidgetItem#* item, int column) |
| 375 | { |
| 376 | if (!treeLabelsUpdateCountcxx . . $ SymbolManager#treeLabelsUpdateCount.) { |
| 377 | auto* sym = reinterpret_cast<Symbolcxx . . $ Symbol#*>(item->datacxx . . $ QTreeWidgetItem#data(db8258505c7ad0b0).(0, Qtcxx . . $ Qt/::UserRolecxx . . $ Qt/UserRole.).valuecxx . . $ QVariant#value(8f5363d873dd4781).<quintptrcxx . . $ quintptr#>()); |
| 378 | // Set symbol text from tree item if any |
| 379 | QStringcxx . . $ QString# symText = item->textcxx . . $ QTreeWidgetItem#text(3f3c3d0e9c0eb37f).(0).trimmedcxx . . $ QString#trimmed(30b3b70527b1c61a).(); |
| 380 | if (symText.isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) symText =cxx . . $ QString#`operator=`(d02845eef0c33901). "[unnamed]"; |
| 381 | sym->setTextcxx . . $ Symbol#setText(3520e46b33348bf6).(symText); |
| 382 | // set value TODO: proper decoding of value |
| 383 | auto value = stringToValuecxx . . $ stringToValue(e8c2a6ba39be27fd).<uint16_tcxx . . $ uint16_t#>(item->textcxx . . $ QTreeWidgetItem#text(3f3c3d0e9c0eb37f).(2)); |
| 384 | if (value) sym->setValuecxx . . $ Symbol#setValue(d4f767463ce0a6b3).(*cxx . . $ std/optional#`operator*`(47e1a15210ec6306).value); |
| 385 | treeLabelscxx . . $ Ui_SymbolManager#treeLabels.->closePersistentEditorcxx . . $ QTreeWidget#closePersistentEditor(abbf99ae0f1fc9f0).(item, column); |
| 386 | editColumncxx . . $ SymbolManager#editColumn. = -1; |
| 387 | // update item name and value |
| 388 | beginTreeLabelsUpdatecxx . . $ SymbolManager#beginTreeLabelsUpdate(49f6e7a06ebc5aa8).(); |
| 389 | updateItemNamecxx . . $ SymbolManager#updateItemName(7332f4628c1d1841).(item); |
| 390 | updateItemValuecxx . . $ SymbolManager#updateItemValue(7332f4628c1d1841).(item); |
| 391 | endTreeLabelsUpdatecxx . . $ SymbolManager#endTreeLabelsUpdate(49f6e7a06ebc5aa8).(); |
| 392 | // notify change |
| 393 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! symbolTableChangedcxx . . $ SymbolManager#symbolTableChanged(49f6e7a06ebc5aa8).(); |
| 394 | } |
| 395 | } |
| 396 | |
| 397 | void SymbolManagercxx . . $ SymbolManager#::wipeSelectedItemcxx . . $ SymbolManager#wipeSelectedItem(49f6e7a06ebc5aa8).() |
| 398 | { |
| 399 | for (int index = 0; index < vbox0cxx . . $ Ui_SymbolManager#vbox0.->countcxx . . $ QBoxLayout#count(455f465bc33b4cdf).(); ++index) { |
| 400 | static_cast<QCheckBoxcxx . . $ QCheckBox#*>(vbox0cxx . . $ Ui_SymbolManager#vbox0.->itemAtcxx . . $ QBoxLayout#itemAt(8e5f6cab8cd411bf).(index)->widgetcxx . . $ QLayoutItem#widget(9b769eeb00a33a04).())->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(false); |
| 401 | } |
| 402 | for (int index = 0; index < vbox1cxx . . $ Ui_SymbolManager#vbox1.->countcxx . . $ QBoxLayout#count(455f465bc33b4cdf).(); ++index) { |
| 403 | static_cast<QCheckBoxcxx . . $ QCheckBox#*>(vbox1cxx . . $ Ui_SymbolManager#vbox1.->itemAtcxx . . $ QBoxLayout#itemAt(8e5f6cab8cd411bf).(index)->widgetcxx . . $ QLayoutItem#widget(9b769eeb00a33a04).())->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(false); |
| 404 | } |
| 405 | for (int index = 0; index < vbox2cxx . . $ Ui_SymbolManager#vbox2.->countcxx . . $ QBoxLayout#count(455f465bc33b4cdf).(); ++index) { |
| 406 | static_cast<QCheckBoxcxx . . $ QCheckBox#*>(vbox2cxx . . $ Ui_SymbolManager#vbox2.->itemAtcxx . . $ QBoxLayout#itemAt(8e5f6cab8cd411bf).(index)->widgetcxx . . $ QLayoutItem#widget(9b769eeb00a33a04).())->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(false); |
| 407 | } |
| 408 | for (int index = 0; index < vbox3cxx . . $ Ui_SymbolManager#vbox3.->countcxx . . $ QBoxLayout#count(455f465bc33b4cdf).(); ++index) { |
| 409 | static_cast<QCheckBoxcxx . . $ QCheckBox#*>(vbox3cxx . . $ Ui_SymbolManager#vbox3.->itemAtcxx . . $ QBoxLayout#itemAt(8e5f6cab8cd411bf).(index)->widgetcxx . . $ QLayoutItem#widget(9b769eeb00a33a04).())->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(false); |
| 410 | } |
| 411 | for (int index = 0; index < gridRegs8cxx . . $ Ui_SymbolManager#gridRegs8.->countcxx . . $ QGridLayout#count(455f465bc33b4cdf).(); ++index) { |
| 412 | static_cast<QCheckBoxcxx . . $ QCheckBox#*>(gridRegs8cxx . . $ Ui_SymbolManager#gridRegs8.->itemAtcxx . . $ QGridLayout#itemAt(8e5f6cab8cd411bf).(index)->widgetcxx . . $ QLayoutItem#widget(9b769eeb00a33a04).())->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(false); |
| 413 | } |
| 414 | for (int index = 0; index < gridRegs16cxx . . $ Ui_SymbolManager#gridRegs16.->countcxx . . $ QGridLayout#count(455f465bc33b4cdf).(); ++index) { |
| 415 | static_cast<QCheckBoxcxx . . $ QCheckBox#*>(gridRegs16cxx . . $ Ui_SymbolManager#gridRegs16.->itemAtcxx . . $ QGridLayout#itemAt(8e5f6cab8cd411bf).(index)->widgetcxx . . $ QLayoutItem#widget(9b769eeb00a33a04).())->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(false); |
| 416 | } |
| 417 | for (int index = 0; index < vboxSymbolTypecxx . . $ Ui_SymbolManager#vboxSymbolType.->countcxx . . $ QBoxLayout#count(455f465bc33b4cdf).(); ++index) { |
| 418 | auto radio = static_cast<QRadioButtoncxx . . $ QRadioButton#*>(vboxSymbolTypecxx . . $ Ui_SymbolManager#vboxSymbolType.->itemAtcxx . . $ QBoxLayout#itemAt(8e5f6cab8cd411bf).(index)->widgetcxx . . $ QLayoutItem#widget(9b769eeb00a33a04).()); |
| 419 | radio->setAutoExclusivecxx . . $ QAbstractButton#setAutoExclusive(b45ddcbc8423892c).(false); |
| 420 | radio->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(false); |
| 421 | radio->setAutoExclusivecxx . . $ QAbstractButton#setAutoExclusive(b45ddcbc8423892c).(true); |
| 422 | } |
| 423 | |
| 424 | txtSegmentscxx . . $ Ui_SymbolManager#txtSegments.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).); |
| 425 | treeLabelscxx . . $ Ui_SymbolManager#treeLabels.->setCurrentItemcxx . . $ QTreeWidget#setCurrentItem(7332f4628c1d1841).(nullptr); |
| 426 | } |
| 427 | |
| 428 | void SymbolManagercxx . . $ SymbolManager#::labelSelectionChangedcxx . . $ SymbolManager#labelSelectionChanged(49f6e7a06ebc5aa8).() |
| 429 | { |
| 430 | // remove possible editor |
| 431 | closeEditorcxx . . $ SymbolManager#closeEditor(49f6e7a06ebc5aa8).(); |
| 432 | |
| 433 | QListcxx . . $ QList#<QTreeWidgetItemcxx . . $ QTreeWidgetItem#*> selection = treeLabelscxx . . $ Ui_SymbolManager#treeLabels.->selectedItemscxx . . $ QTreeWidget#selectedItems(e591029002818eb9).(); |
| 434 | // check if is available at all |
| 435 | if (selection.emptycxx . . $ QList#empty(50ce9a9e25b4a850).()) { |
| 436 | wipeSelectedItemcxx . . $ SymbolManager#wipeSelectedItem(49f6e7a06ebc5aa8).(); |
| 437 | // disable everything |
| 438 | btnRemoveSymbolcxx . . $ Ui_SymbolManager#btnRemoveSymbol.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false); |
| 439 | groupSlotscxx . . $ Ui_SymbolManager#groupSlots.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false); |
| 440 | groupSegmentscxx . . $ Ui_SymbolManager#groupSegments.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false); |
| 441 | groupTypecxx . . $ Ui_SymbolManager#groupType.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false); |
| 442 | groupRegs8cxx . . $ Ui_SymbolManager#groupRegs8.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false); |
| 443 | groupRegs16cxx . . $ Ui_SymbolManager#groupRegs16.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false); |
| 444 | return; |
| 445 | } |
| 446 | // check selection for "manual insertion", identical slot mask, |
| 447 | // identical register mask, identical types and value size |
| 448 | bool removeButActive = true; |
| 449 | bool anyEight = false; |
| 450 | bool sameType = true; |
| 451 | Symbolcxx . . $ Symbol#::SymbolTypecxx . . $ Symbol#SymbolType# type; |
| 452 | int slotMask, slotMaskMultiple = 0; |
| 453 | int regMask, regMaskMultiple = 0; |
| 454 | for (auto selit = selection.begincxx . . $ QList#begin(ca2520f641887418).(); selit !=cxx . . $ QList#iterator#`operator!=`(afde28160b321935). selection.endcxx . . $ QList#end(ca2520f641887418).(); ++cxx . . $ QList#iterator#operator++(c343742bd746e713).selit) { |
| 455 | // get symbol |
| 456 | auto* sym = reinterpret_cast<Symbolcxx . . $ Symbol#*>((*cxx . . $ QList#iterator#`operator*`(c93303b41ac66b6d).selit)->datacxx . . $ QTreeWidgetItem#data(db8258505c7ad0b0).(0, Qtcxx . . $ Qt/::UserRolecxx . . $ Qt/UserRole.).valuecxx . . $ QVariant#value(8f5363d873dd4781).<quintptrcxx . . $ quintptr#>()); |
| 457 | // check if symbol is from symbol file |
| 458 | if (sym->sourcecxx . . $ Symbol#source(88f341a3c13628a).()) removeButActive = false; |
| 459 | |
| 460 | if (selit ==cxx . . $ QList#iterator#`operator==`(afde28160b321935). selection.begincxx . . $ QList#begin(ca2520f641887418).()) { |
| 461 | // first item, reference for slotMask and regMask |
| 462 | slotMask = sym->validSlotscxx . . $ Symbol#validSlots(72085aa11f4b6e09).(); |
| 463 | regMask = sym->validRegisterscxx . . $ Symbol#validRegisters(455f465bc33b4cdf).(); |
| 464 | type = sym->typecxx . . $ Symbol#type(4ac61bd11a1ab7d9).(); |
| 465 | } else { |
| 466 | // other, set all different bits |
| 467 | slotMaskMultiple |= slotMask ^ sym->validSlotscxx . . $ Symbol#validSlots(72085aa11f4b6e09).(); |
| 468 | regMaskMultiple |= regMask ^ sym->validRegisterscxx . . $ Symbol#validRegisters(455f465bc33b4cdf).(); |
| 469 | // check for different type |
| 470 | if (type != sym->typecxx . . $ Symbol#type(4ac61bd11a1ab7d9).()) sameType = false; |
| 471 | } |
| 472 | |
| 473 | // check for 8 bit values |
| 474 | if ((sym->valuecxx . . $ Symbol#value(455f465bc33b4cdf).() & 0xFF00) == 0) { |
| 475 | anyEight = true; |
| 476 | } |
| 477 | } |
| 478 | |
| 479 | btnRemoveSymbolcxx . . $ Ui_SymbolManager#btnRemoveSymbol.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(removeButActive); |
| 480 | groupSlotscxx . . $ Ui_SymbolManager#groupSlots.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(true); |
| 481 | groupTypecxx . . $ Ui_SymbolManager#groupType.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(true); |
| 482 | groupRegs8cxx . . $ Ui_SymbolManager#groupRegs8.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(anyEight); |
| 483 | groupRegs16cxx . . $ Ui_SymbolManager#groupRegs16.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(true); |
| 484 | beginTreeLabelsUpdatecxx . . $ SymbolManager#beginTreeLabelsUpdate(49f6e7a06ebc5aa8).(); |
| 485 | |
| 486 | // set slot selection |
| 487 | for (auto* chkSlot : chkSlotscxx . . $ SymbolManager#chkSlots.) { |
| 488 | chkSlot->setTristatecxx . . $ QCheckBox#setTristate(b45ddcbc8423892c).(false); |
| 489 | if (slotMaskMultiple & 1) { |
| 490 | chkSlot->setCheckStatecxx . . $ QCheckBox#setCheckState(537692883700039).(Qtcxx . . $ Qt/::PartiallyCheckedcxx . . $ Qt/PartiallyChecked.); |
| 491 | } else if (slotMask & 1) { |
| 492 | chkSlot->setCheckStatecxx . . $ QCheckBox#setCheckState(537692883700039).(Qtcxx . . $ Qt/::Checkedcxx . . $ Qt/Checked.); |
| 493 | } else { |
| 494 | chkSlot->setCheckStatecxx . . $ QCheckBox#setCheckState(537692883700039).(Qtcxx . . $ Qt/::Uncheckedcxx . . $ Qt/Unchecked.); |
| 495 | } |
| 496 | slotMask >>= 1; |
| 497 | slotMaskMultiple >>= 1; |
| 498 | } |
| 499 | // set register selection |
| 500 | for (auto* chkReg : chkRegscxx . . $ SymbolManager#chkRegs.) { |
| 501 | chkReg->setTristatecxx . . $ QCheckBox#setTristate(b45ddcbc8423892c).(false); |
| 502 | if (regMaskMultiple & 1) { |
| 503 | chkReg->setCheckStatecxx . . $ QCheckBox#setCheckState(537692883700039).(Qtcxx . . $ Qt/::PartiallyCheckedcxx . . $ Qt/PartiallyChecked.); |
| 504 | } else if (regMask & 1) { |
| 505 | chkReg->setCheckStatecxx . . $ QCheckBox#setCheckState(537692883700039).(Qtcxx . . $ Qt/::Checkedcxx . . $ Qt/Checked.); |
| 506 | } else { |
| 507 | chkReg->setCheckStatecxx . . $ QCheckBox#setCheckState(537692883700039).(Qtcxx . . $ Qt/::Uncheckedcxx . . $ Qt/Unchecked.); |
| 508 | } |
| 509 | regMask >>= 1; |
| 510 | regMaskMultiple >>= 1; |
| 511 | } |
| 512 | |
| 513 | // temporarily disable exclusive radiobuttons to be able to |
| 514 | // deselect them all. |
| 515 | radJumpcxx . . $ Ui_SymbolManager#radJump.->setAutoExclusivecxx . . $ QAbstractButton#setAutoExclusive(b45ddcbc8423892c). (false); |
| 516 | radVarcxx . . $ Ui_SymbolManager#radVar.->setAutoExclusivecxx . . $ QAbstractButton#setAutoExclusive(b45ddcbc8423892c). (false); |
| 517 | radValuecxx . . $ Ui_SymbolManager#radValue.->setAutoExclusivecxx . . $ QAbstractButton#setAutoExclusive(b45ddcbc8423892c).(false); |
| 518 | // set type radio buttons |
| 519 | radJumpcxx . . $ Ui_SymbolManager#radJump.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (sameType && type == Symbolcxx . . $ Symbol#::JUMPLABELcxx . . $ Symbol#JUMPLABEL.); |
| 520 | radVarcxx . . $ Ui_SymbolManager#radVar.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c). (sameType && type == Symbolcxx . . $ Symbol#::VARIABLELABELcxx . . $ Symbol#VARIABLELABEL.); |
| 521 | radValuecxx . . $ Ui_SymbolManager#radValue.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(sameType && type == Symbolcxx . . $ Symbol#::VALUEcxx . . $ Symbol#VALUE.); |
| 522 | // enable exclusive radiobuttons (this won't immediately activate |
| 523 | // one if none are active). |
| 524 | radJumpcxx . . $ Ui_SymbolManager#radJump.->setAutoExclusivecxx . . $ QAbstractButton#setAutoExclusive(b45ddcbc8423892c). (true); |
| 525 | radVarcxx . . $ Ui_SymbolManager#radVar.->setAutoExclusivecxx . . $ QAbstractButton#setAutoExclusive(b45ddcbc8423892c). (true); |
| 526 | radValuecxx . . $ Ui_SymbolManager#radValue.->setAutoExclusivecxx . . $ QAbstractButton#setAutoExclusive(b45ddcbc8423892c).(true); |
| 527 | endTreeLabelsUpdatecxx . . $ SymbolManager#endTreeLabelsUpdate(49f6e7a06ebc5aa8).(); |
| 528 | } |
| 529 | |
| 530 | void SymbolManagercxx . . $ SymbolManager#::changeSlotcxx . . $ SymbolManager#changeSlot(3e454b8ccf442868).(int id, int state) |
| 531 | { |
| 532 | if (treeLabelsUpdateCountcxx . . $ SymbolManager#treeLabelsUpdateCount.) return; |
| 533 | |
| 534 | // disallow another tristate selection |
| 535 | chkSlotscxx . . $ SymbolManager#chkSlots.[id]->setTristatecxx . . $ QCheckBox#setTristate(b45ddcbc8423892c).(false); |
| 536 | // get selected items |
| 537 | QListcxx . . $ QList#<QTreeWidgetItemcxx . . $ QTreeWidgetItem#*> selection = treeLabelscxx . . $ Ui_SymbolManager#treeLabels.->selectedItemscxx . . $ QTreeWidget#selectedItems(e591029002818eb9).(); |
| 538 | |
| 539 | // update items |
| 540 | beginTreeLabelsUpdatecxx . . $ SymbolManager#beginTreeLabelsUpdate(49f6e7a06ebc5aa8).(); |
| 541 | int bit = 1 << id; |
| 542 | for (auto* sel : selection) { |
| 543 | auto* sym = reinterpret_cast<Symbolcxx . . $ Symbol#*>(sel->datacxx . . $ QTreeWidgetItem#data(db8258505c7ad0b0).(0, Qtcxx . . $ Qt/::UserRolecxx . . $ Qt/UserRole.).valuecxx . . $ QVariant#value(8f5363d873dd4781).<quintptrcxx . . $ quintptr#>()); |
| 544 | // set or clear bit |
| 545 | if (state == Qtcxx . . $ Qt/::Checkedcxx . . $ Qt/Checked.) { |
| 546 | sym->setValidSlotscxx . . $ Symbol#setValidSlots(ed53e3bbd3fa2f69).(sym->validSlotscxx . . $ Symbol#validSlots(72085aa11f4b6e09).() | bit); |
| 547 | } else { |
| 548 | sym->setValidSlotscxx . . $ Symbol#setValidSlots(ed53e3bbd3fa2f69).(sym->validSlotscxx . . $ Symbol#validSlots(72085aa11f4b6e09).() & ~bit); |
| 549 | } |
| 550 | // update item in treewidget |
| 551 | updateItemSlotscxx . . $ SymbolManager#updateItemSlots(7332f4628c1d1841).(sel); |
| 552 | } |
| 553 | endTreeLabelsUpdatecxx . . $ SymbolManager#endTreeLabelsUpdate(49f6e7a06ebc5aa8).(); |
| 554 | // notify change |
| 555 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! symbolTableChangedcxx . . $ SymbolManager#symbolTableChanged(49f6e7a06ebc5aa8).(); |
| 556 | } |
| 557 | |
| 558 | void SymbolManagercxx . . $ SymbolManager#::changeRegistercxx . . $ SymbolManager#changeRegister(3e454b8ccf442868).(int id, int state) |
| 559 | { |
| 560 | if (treeLabelsUpdateCountcxx . . $ SymbolManager#treeLabelsUpdateCount.) return; |
| 561 | |
| 562 | // disallow another tristate selection |
| 563 | chkRegscxx . . $ SymbolManager#chkRegs.[id]->setTristatecxx . . $ QCheckBox#setTristate(b45ddcbc8423892c).(false); |
| 564 | // get selected items |
| 565 | QListcxx . . $ QList#<QTreeWidgetItemcxx . . $ QTreeWidgetItem#*> selection = treeLabelscxx . . $ Ui_SymbolManager#treeLabels.->selectedItemscxx . . $ QTreeWidget#selectedItems(e591029002818eb9).(); |
| 566 | |
| 567 | // update items |
| 568 | beginTreeLabelsUpdatecxx . . $ SymbolManager#beginTreeLabelsUpdate(49f6e7a06ebc5aa8).(); |
| 569 | int bit = 1 << id; |
| 570 | for (auto* sel : selection) { |
| 571 | auto* sym = reinterpret_cast<Symbolcxx . . $ Symbol#*>(sel->datacxx . . $ QTreeWidgetItem#data(db8258505c7ad0b0).(0, Qtcxx . . $ Qt/::UserRolecxx . . $ Qt/UserRole.).valuecxx . . $ QVariant#value(8f5363d873dd4781).<quintptrcxx . . $ quintptr#>()); |
| 572 | // set or clear bit |
| 573 | if (state == Qtcxx . . $ Qt/::Checkedcxx . . $ Qt/Checked.) { |
| 574 | sym->setValidRegisterscxx . . $ Symbol#setValidRegisters(d4f767463ce0a6b3).(sym->validRegisterscxx . . $ Symbol#validRegisters(455f465bc33b4cdf).() | bit); |
| 575 | } else { |
| 576 | sym->setValidRegisterscxx . . $ Symbol#setValidRegisters(d4f767463ce0a6b3).(sym->validRegisterscxx . . $ Symbol#validRegisters(455f465bc33b4cdf).() & ~bit); |
| 577 | } |
| 578 | // update item in treewidget |
| 579 | updateItemRegisterscxx . . $ SymbolManager#updateItemRegisters(7332f4628c1d1841).(sel); |
| 580 | } |
| 581 | endTreeLabelsUpdatecxx . . $ SymbolManager#endTreeLabelsUpdate(49f6e7a06ebc5aa8).(); |
| 582 | // notify change |
| 583 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! symbolTableChangedcxx . . $ SymbolManager#symbolTableChanged(49f6e7a06ebc5aa8).(); |
| 584 | } |
| 585 | |
| 586 | void SymbolManagercxx . . $ SymbolManager#::changeTypecxx . . $ SymbolManager#changeType(b45ddcbc8423892c).(bool /*checked*/) |
| 587 | { |
| 588 | if (treeLabelsUpdateCountcxx . . $ SymbolManager#treeLabelsUpdateCount.) return; |
| 589 | |
| 590 | // determine selected type |
| 591 | Symbolcxx . . $ Symbol#::SymbolTypecxx . . $ Symbol#SymbolType# newType = Symbolcxx . . $ Symbol#::JUMPLABELcxx . . $ Symbol#JUMPLABEL.; |
| 592 | if (radVarcxx . . $ Ui_SymbolManager#radVar.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) { |
| 593 | newType = Symbolcxx . . $ Symbol#::VARIABLELABELcxx . . $ Symbol#VARIABLELABEL.; |
| 594 | } else if (radValuecxx . . $ Ui_SymbolManager#radValue.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) { |
| 595 | newType = Symbolcxx . . $ Symbol#::VALUEcxx . . $ Symbol#VALUE.; |
| 596 | } |
| 597 | |
| 598 | // get selected items |
| 599 | QListcxx . . $ QList#<QTreeWidgetItemcxx . . $ QTreeWidgetItem#*> selection = treeLabelscxx . . $ Ui_SymbolManager#treeLabels.->selectedItemscxx . . $ QTreeWidget#selectedItems(e591029002818eb9).(); |
| 600 | |
| 601 | // update items |
| 602 | beginTreeLabelsUpdatecxx . . $ SymbolManager#beginTreeLabelsUpdate(49f6e7a06ebc5aa8).(); |
| 603 | for (auto* sel : selection) { |
| 604 | auto* sym = reinterpret_cast<Symbolcxx . . $ Symbol#*>(sel->datacxx . . $ QTreeWidgetItem#data(db8258505c7ad0b0).(0, Qtcxx . . $ Qt/::UserRolecxx . . $ Qt/UserRole.).valuecxx . . $ QVariant#value(8f5363d873dd4781).<quintptrcxx . . $ quintptr#>()); |
| 605 | sym->setTypecxx . . $ Symbol#setType(940f9e37a621fd9).(newType); |
| 606 | updateItemTypecxx . . $ SymbolManager#updateItemType(7332f4628c1d1841).(sel); |
| 607 | } |
| 608 | endTreeLabelsUpdatecxx . . $ SymbolManager#endTreeLabelsUpdate(49f6e7a06ebc5aa8).(); |
| 609 | // notify change |
| 610 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! symbolTableChangedcxx . . $ SymbolManager#symbolTableChanged(49f6e7a06ebc5aa8).(); |
| 611 | } |
| 612 | |
| 613 | |
| 614 | /* |
| 615 | * Symbol tree layout functions |
| 616 | */ |
| 617 | |
| 618 | void SymbolManagercxx . . $ SymbolManager#::updateItemNamecxx . . $ SymbolManager#updateItemName(7332f4628c1d1841).(QTreeWidgetItemcxx . . $ QTreeWidgetItem#* item) |
| 619 | { |
| 620 | auto* sym = reinterpret_cast<Symbolcxx . . $ Symbol#*>(item->datacxx . . $ QTreeWidgetItem#data(db8258505c7ad0b0).(0, Qtcxx . . $ Qt/::UserRolecxx . . $ Qt/UserRole.).valuecxx . . $ QVariant#value(8f5363d873dd4781).<quintptrcxx . . $ quintptr#>()); |
| 621 | // set text and icon |
| 622 | item->setTextcxx . . $ QTreeWidgetItem#setText(4b11a7293b4ed91c).(0, sym->textcxx . . $ Symbol#text(a2fb7a6ce195d51).()); |
| 623 | if (sym->sourcecxx . . $ Symbol#source(88f341a3c13628a).()) { |
| 624 | item->setIconcxx . . $ QTreeWidgetItem#setIcon(40a39523e9ce8b1e).(0, QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/icons/symfil.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 625 | item->setTextcxx . . $ QTreeWidgetItem#setText(4b11a7293b4ed91c).(6, *sym->sourcecxx . . $ Symbol#source(88f341a3c13628a).()); |
| 626 | } else { |
| 627 | item->setIconcxx . . $ QTreeWidgetItem#setIcon(40a39523e9ce8b1e).(0, QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/icons/symman.png"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 628 | } |
| 629 | // set color based on status as well as status in 2nd column |
| 630 | switch (sym->statuscxx . . $ Symbol#status(71980a2ae356e487).()) { |
| 631 | case Symbolcxx . . $ Symbol#::HIDDENcxx . . $ Symbol#HIDDEN.: |
| 632 | item->setForegroundcxx . . $ QTreeWidgetItem#setForeground(5d5d909b94e7ae19).(0, QColorcxx . . $ QBrush#QBrush(b50947b0752ea6ac).(128, 128, 128)); |
| 633 | break; |
| 634 | case Symbolcxx . . $ Symbol#::LOSTcxx . . $ Symbol#LOST.: |
| 635 | item->setForegroundcxx . . $ QTreeWidgetItem#setForeground(5d5d909b94e7ae19).(0, QColorcxx . . $ QBrush#QBrush(b50947b0752ea6ac).(128, 0, 0)); |
| 636 | break; |
| 637 | default: |
| 638 | break; |
| 639 | } |
| 640 | } |
| 641 | |
| 642 | void SymbolManagercxx . . $ SymbolManager#::updateItemTypecxx . . $ SymbolManager#updateItemType(7332f4628c1d1841).(QTreeWidgetItemcxx . . $ QTreeWidgetItem#* item) |
| 643 | { |
| 644 | auto* sym = reinterpret_cast<Symbolcxx . . $ Symbol#*>(item->datacxx . . $ QTreeWidgetItem#data(db8258505c7ad0b0).(0, Qtcxx . . $ Qt/::UserRolecxx . . $ Qt/UserRole.).valuecxx . . $ QVariant#value(8f5363d873dd4781).<quintptrcxx . . $ quintptr#>()); |
| 645 | // set symbol type in 2nd column |
| 646 | switch (sym->typecxx . . $ Symbol#type(4ac61bd11a1ab7d9).()) { |
| 647 | case Symbolcxx . . $ Symbol#::JUMPLABELcxx . . $ Symbol#JUMPLABEL.: |
| 648 | item->setTextcxx . . $ QTreeWidgetItem#setText(4b11a7293b4ed91c).(1, trcxx . . $ SymbolManager#tr(75d9f1c324b4579d).("Jump label")); |
| 649 | break; |
| 650 | case Symbolcxx . . $ Symbol#::VARIABLELABELcxx . . $ Symbol#VARIABLELABEL.: |
| 651 | item->setTextcxx . . $ QTreeWidgetItem#setText(4b11a7293b4ed91c).(1, trcxx . . $ SymbolManager#tr(75d9f1c324b4579d).("Variable label")); |
| 652 | break; |
| 653 | case Symbolcxx . . $ Symbol#::VALUEcxx . . $ Symbol#VALUE.: |
| 654 | item->setTextcxx . . $ QTreeWidgetItem#setText(4b11a7293b4ed91c).(1, trcxx . . $ SymbolManager#tr(75d9f1c324b4579d).("Value")); |
| 655 | break; |
| 656 | } |
| 657 | } |
| 658 | |
| 659 | void SymbolManagercxx . . $ SymbolManager#::updateItemValuecxx . . $ SymbolManager#updateItemValue(7332f4628c1d1841).(QTreeWidgetItemcxx . . $ QTreeWidgetItem#* item) |
| 660 | { |
| 661 | auto* sym = reinterpret_cast<Symbolcxx . . $ Symbol#*>(item->datacxx . . $ QTreeWidgetItem#data(db8258505c7ad0b0).(0, Qtcxx . . $ Qt/::UserRolecxx . . $ Qt/UserRole.).valuecxx . . $ QVariant#value(8f5363d873dd4781).<quintptrcxx . . $ quintptr#>()); |
| 662 | |
| 663 | // symbol value in 3rd column |
| 664 | item->setTextcxx . . $ QTreeWidgetItem#setText(4b11a7293b4ed91c).(2, hexValuecxx . . $ hexValue(f4fd9db251ca774b).(sym->valuecxx . . $ Symbol#value(455f465bc33b4cdf).(), 4)); |
| 665 | } |
| 666 | |
| 667 | void SymbolManagercxx . . $ SymbolManager#::updateItemSlotscxx . . $ SymbolManager#updateItemSlots(7332f4628c1d1841).(QTreeWidgetItemcxx . . $ QTreeWidgetItem#* item) |
| 668 | { |
| 669 | auto* sym = reinterpret_cast<Symbolcxx . . $ Symbol#*>(item->datacxx . . $ QTreeWidgetItem#data(db8258505c7ad0b0).(0, Qtcxx . . $ Qt/::UserRolecxx . . $ Qt/UserRole.).valuecxx . . $ QVariant#value(8f5363d873dd4781).<quintptrcxx . . $ quintptr#>()); |
| 670 | |
| 671 | QStringcxx . . $ QString# slotTextcxx . . $ QString#QString(ced63f7c635d850d).; |
| 672 | int slotmask = sym->validSlotscxx . . $ Symbol#validSlots(72085aa11f4b6e09).(); |
| 673 | // value represents 16 bits for 4 subslots in 4 slots |
| 674 | if (slotmask == 0xFFFF) { |
| 675 | slotText =cxx . . $ QString#`operator=`(4f35bf974e7f8568). trcxx . . $ SymbolManager#tr(75d9f1c324b4579d).("All"); |
| 676 | } else if (slotmask == 0) { |
| 677 | slotText =cxx . . $ QString#`operator=`(4f35bf974e7f8568). trcxx . . $ SymbolManager#tr(75d9f1c324b4579d).("None"); |
| 678 | } else { |
| 679 | // create a list of valid slots |
| 680 | // loop over all primary slots |
| 681 | for (int ps = 0; ps < 4; ++ps) { |
| 682 | QStringcxx . . $ QString# subTextcxx . . $ QString#QString(ced63f7c635d850d).; |
| 683 | int subslots = (slotmask >> (4 * ps)) & 15; |
| 684 | if (subslots == 15) { |
| 685 | // all subslots are ok |
| 686 | subText =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1-*").argcxx . . $ QString#arg(64ab2ed17cc11715).(ps); |
| 687 | } else if (subslots) { |
| 688 | // some subslots are ok |
| 689 | if (subslots & 1) subText +=cxx . . $ QString#`operator+=`(d02845eef0c33901). "/0"; |
| 690 | if (subslots & 2) subText +=cxx . . $ QString#`operator+=`(d02845eef0c33901). "/1"; |
| 691 | if (subslots & 4) subText +=cxx . . $ QString#`operator+=`(d02845eef0c33901). "/2"; |
| 692 | if (subslots & 8) subText +=cxx . . $ QString#`operator+=`(d02845eef0c33901). "/3"; |
| 693 | subText =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1-").argcxx . . $ QString#arg(64ab2ed17cc11715).(ps) +cxx . . $ operator+(fab9b4f80031f353). subText.midcxx . . $ QString#mid(44b7563da18aea72).(1); |
| 694 | } |
| 695 | // add to string if any subslots were ok |
| 696 | if (!subText.isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) { |
| 697 | if (!slotText.isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) slotText +=cxx . . $ QString#`operator+=`(d02845eef0c33901). ", "; |
| 698 | slotText +=cxx . . $ QString#`operator+=`(6a89d0b7f4d2681c). subText; |
| 699 | } |
| 700 | } |
| 701 | } |
| 702 | |
| 703 | // valid slots in 4th column |
| 704 | item->setTextcxx . . $ QTreeWidgetItem#setText(4b11a7293b4ed91c).(3, slotText); |
| 705 | } |
| 706 | |
| 707 | void SymbolManagercxx . . $ SymbolManager#::updateItemSegmentscxx . . $ SymbolManager#updateItemSegments(7332f4628c1d1841).(QTreeWidgetItemcxx . . $ QTreeWidgetItem#* item) |
| 708 | { |
| 709 | item->datacxx . . $ QTreeWidgetItem#data(db8258505c7ad0b0).(0, Qtcxx . . $ Qt/::UserRolecxx . . $ Qt/UserRole.).valuecxx . . $ QVariant#value(8f5363d873dd4781).<quintptrcxx . . $ quintptr#>(); |
| 710 | } |
| 711 | |
| 712 | void SymbolManagercxx . . $ SymbolManager#::updateItemRegisterscxx . . $ SymbolManager#updateItemRegisters(7332f4628c1d1841).(QTreeWidgetItemcxx . . $ QTreeWidgetItem#* item) |
| 713 | { |
| 714 | auto* sym = reinterpret_cast<Symbolcxx . . $ Symbol#*>(item->datacxx . . $ QTreeWidgetItem#data(db8258505c7ad0b0).(0, Qtcxx . . $ Qt/::UserRolecxx . . $ Qt/UserRole.).valuecxx . . $ QVariant#value(8f5363d873dd4781).<quintptrcxx . . $ quintptr#>()); |
| 715 | |
| 716 | QStringcxx . . $ QString# regTextcxx . . $ QString#QString(ced63f7c635d850d).; |
| 717 | int regmask = sym->validRegisterscxx . . $ Symbol#validRegisters(455f465bc33b4cdf).(); |
| 718 | // value represents 16 bits for 4 subslots in 4 slots |
| 719 | if (regmask == 0x3FFFF) { |
| 720 | regText =cxx . . $ QString#`operator=`(4f35bf974e7f8568). trcxx . . $ SymbolManager#tr(75d9f1c324b4579d).("All"); |
| 721 | } else if (regmask == 0) { |
| 722 | regText =cxx . . $ QString#`operator=`(4f35bf974e7f8568). trcxx . . $ SymbolManager#tr(75d9f1c324b4579d).("None"); |
| 723 | } else { |
| 724 | if ((regmask & Symbolcxx . . $ Symbol#::REG_ALL8cxx . . $ Symbol#REG_ALL8.) == Symbolcxx . . $ Symbol#::REG_ALL8cxx . . $ Symbol#REG_ALL8.) { |
| 725 | // all 8 bit registers selected |
| 726 | regText =cxx . . $ QString#`operator=`(d02845eef0c33901). "All 8 bit, "; |
| 727 | regmask ^= Symbolcxx . . $ Symbol#::REG_ALL8cxx . . $ Symbol#REG_ALL8.; |
| 728 | } else if ((regmask & Symbolcxx . . $ Symbol#::REG_ALL16cxx . . $ Symbol#REG_ALL16.) == Symbolcxx . . $ Symbol#::REG_ALL16cxx . . $ Symbol#REG_ALL16.) { |
| 729 | // all 16 bit registers selected |
| 730 | regText =cxx . . $ QString#`operator=`(d02845eef0c33901). "All 16 bit, "; |
| 731 | regmask ^= Symbolcxx . . $ Symbol#::REG_ALL16cxx . . $ Symbol#REG_ALL16.; |
| 732 | } |
| 733 | // register list for remaining registers |
| 734 | static const char* const registers[] = { |
| 735 | "A", "B", "C", "D", "E", "H", "L", "BC", "DE", "HL", |
| 736 | "IX", "IY", "IXL", "IXH", "IYL", "IYH", "Offset", "I" |
| 737 | }; |
| 738 | for (const char* reg : registers) { |
| 739 | if (regmask & 1) { |
| 740 | regText +=cxx . . $ QString#`operator+=`(6a89d0b7f4d2681c). QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1, ").argcxx . . $ QString#arg(bc823072288cbbb5).(regcxx . . $ QString#QString(85c52e162fed56f9).); |
| 741 | } |
| 742 | regmask >>= 1; |
| 743 | } |
| 744 | regText.chopcxx . . $ QString#chop(d4f767463ce0a6b3).(2); |
| 745 | } |
| 746 | |
| 747 | // valid slots in 4th column |
| 748 | item->setTextcxx . . $ QTreeWidgetItem#setText(4b11a7293b4ed91c).(5, regText); |
| 749 | } |
| 750 | |
| 751 | |
| 752 | // load of functions that shouldn't really be necessary |
| 753 | void SymbolManagercxx . . $ SymbolManager#::changeSlot00cxx . . $ SymbolManager#changeSlot00(d4f767463ce0a6b3).(int state) |
| 754 | { |
| 755 | changeSlotcxx . . $ SymbolManager#changeSlot(3e454b8ccf442868).(0, state); |
| 756 | } |
| 757 | void SymbolManagercxx . . $ SymbolManager#::changeSlot01cxx . . $ SymbolManager#changeSlot01(d4f767463ce0a6b3).(int state) |
| 758 | { |
| 759 | changeSlotcxx . . $ SymbolManager#changeSlot(3e454b8ccf442868).(1, state); |
| 760 | } |
| 761 | void SymbolManagercxx . . $ SymbolManager#::changeSlot02cxx . . $ SymbolManager#changeSlot02(d4f767463ce0a6b3).(int state) |
| 762 | { |
| 763 | changeSlotcxx . . $ SymbolManager#changeSlot(3e454b8ccf442868).(2, state); |
| 764 | } |
| 765 | void SymbolManagercxx . . $ SymbolManager#::changeSlot03cxx . . $ SymbolManager#changeSlot03(d4f767463ce0a6b3).(int state) |
| 766 | { |
| 767 | changeSlotcxx . . $ SymbolManager#changeSlot(3e454b8ccf442868).(3, state); |
| 768 | } |
| 769 | void SymbolManagercxx . . $ SymbolManager#::changeSlot10cxx . . $ SymbolManager#changeSlot10(d4f767463ce0a6b3).(int state) |
| 770 | { |
| 771 | changeSlotcxx . . $ SymbolManager#changeSlot(3e454b8ccf442868).(4, state); |
| 772 | } |
| 773 | void SymbolManagercxx . . $ SymbolManager#::changeSlot11cxx . . $ SymbolManager#changeSlot11(d4f767463ce0a6b3).(int state) |
| 774 | { |
| 775 | changeSlotcxx . . $ SymbolManager#changeSlot(3e454b8ccf442868).(5, state); |
| 776 | } |
| 777 | void SymbolManagercxx . . $ SymbolManager#::changeSlot12cxx . . $ SymbolManager#changeSlot12(d4f767463ce0a6b3).(int state) |
| 778 | { |
| 779 | changeSlotcxx . . $ SymbolManager#changeSlot(3e454b8ccf442868).(6, state); |
| 780 | } |
| 781 | void SymbolManagercxx . . $ SymbolManager#::changeSlot13cxx . . $ SymbolManager#changeSlot13(d4f767463ce0a6b3).(int state) |
| 782 | { |
| 783 | changeSlotcxx . . $ SymbolManager#changeSlot(3e454b8ccf442868).(7, state); |
| 784 | } |
| 785 | void SymbolManagercxx . . $ SymbolManager#::changeSlot20cxx . . $ SymbolManager#changeSlot20(d4f767463ce0a6b3).(int state) |
| 786 | { |
| 787 | changeSlotcxx . . $ SymbolManager#changeSlot(3e454b8ccf442868).(8, state); |
| 788 | } |
| 789 | void SymbolManagercxx . . $ SymbolManager#::changeSlot21cxx . . $ SymbolManager#changeSlot21(d4f767463ce0a6b3).(int state) |
| 790 | { |
| 791 | changeSlotcxx . . $ SymbolManager#changeSlot(3e454b8ccf442868).(9, state); |
| 792 | } |
| 793 | void SymbolManagercxx . . $ SymbolManager#::changeSlot22cxx . . $ SymbolManager#changeSlot22(d4f767463ce0a6b3).(int state) |
| 794 | { |
| 795 | changeSlotcxx . . $ SymbolManager#changeSlot(3e454b8ccf442868).(10, state); |
| 796 | } |
| 797 | void SymbolManagercxx . . $ SymbolManager#::changeSlot23cxx . . $ SymbolManager#changeSlot23(d4f767463ce0a6b3).(int state) |
| 798 | { |
| 799 | changeSlotcxx . . $ SymbolManager#changeSlot(3e454b8ccf442868).(11, state); |
| 800 | } |
| 801 | void SymbolManagercxx . . $ SymbolManager#::changeSlot30cxx . . $ SymbolManager#changeSlot30(d4f767463ce0a6b3).(int state) |
| 802 | { |
| 803 | changeSlotcxx . . $ SymbolManager#changeSlot(3e454b8ccf442868).(12, state); |
| 804 | } |
| 805 | void SymbolManagercxx . . $ SymbolManager#::changeSlot31cxx . . $ SymbolManager#changeSlot31(d4f767463ce0a6b3).(int state) |
| 806 | { |
| 807 | changeSlotcxx . . $ SymbolManager#changeSlot(3e454b8ccf442868).(13, state); |
| 808 | } |
| 809 | void SymbolManagercxx . . $ SymbolManager#::changeSlot32cxx . . $ SymbolManager#changeSlot32(d4f767463ce0a6b3).(int state) |
| 810 | { |
| 811 | changeSlotcxx . . $ SymbolManager#changeSlot(3e454b8ccf442868).(14, state); |
| 812 | } |
| 813 | void SymbolManagercxx . . $ SymbolManager#::changeSlot33cxx . . $ SymbolManager#changeSlot33(d4f767463ce0a6b3).(int state) |
| 814 | { |
| 815 | changeSlotcxx . . $ SymbolManager#changeSlot(3e454b8ccf442868).(15, state); |
| 816 | } |
| 817 | void SymbolManagercxx . . $ SymbolManager#::changeRegisterAcxx . . $ SymbolManager#changeRegisterA(d4f767463ce0a6b3).(int state) |
| 818 | { |
| 819 | changeRegistercxx . . $ SymbolManager#changeRegister(3e454b8ccf442868).(0, state); |
| 820 | } |
| 821 | void SymbolManagercxx . . $ SymbolManager#::changeRegisterBcxx . . $ SymbolManager#changeRegisterB(d4f767463ce0a6b3).(int state) |
| 822 | { |
| 823 | changeRegistercxx . . $ SymbolManager#changeRegister(3e454b8ccf442868).(1, state); |
| 824 | } |
| 825 | void SymbolManagercxx . . $ SymbolManager#::changeRegisterCcxx . . $ SymbolManager#changeRegisterC(d4f767463ce0a6b3).(int state) |
| 826 | { |
| 827 | changeRegistercxx . . $ SymbolManager#changeRegister(3e454b8ccf442868).(2, state); |
| 828 | } |
| 829 | void SymbolManagercxx . . $ SymbolManager#::changeRegisterDcxx . . $ SymbolManager#changeRegisterD(d4f767463ce0a6b3).(int state) |
| 830 | { |
| 831 | changeRegistercxx . . $ SymbolManager#changeRegister(3e454b8ccf442868).(3, state); |
| 832 | } |
| 833 | void SymbolManagercxx . . $ SymbolManager#::changeRegisterEcxx . . $ SymbolManager#changeRegisterE(d4f767463ce0a6b3).(int state) |
| 834 | { |
| 835 | changeRegistercxx . . $ SymbolManager#changeRegister(3e454b8ccf442868).(4, state); |
| 836 | } |
| 837 | void SymbolManagercxx . . $ SymbolManager#::changeRegisterHcxx . . $ SymbolManager#changeRegisterH(d4f767463ce0a6b3).(int state) |
| 838 | { |
| 839 | changeRegistercxx . . $ SymbolManager#changeRegister(3e454b8ccf442868).(5, state); |
| 840 | } |
| 841 | void SymbolManagercxx . . $ SymbolManager#::changeRegisterLcxx . . $ SymbolManager#changeRegisterL(d4f767463ce0a6b3).(int state) |
| 842 | { |
| 843 | changeRegistercxx . . $ SymbolManager#changeRegister(3e454b8ccf442868).(6, state); |
| 844 | } |
| 845 | void SymbolManagercxx . . $ SymbolManager#::changeRegisterBCcxx . . $ SymbolManager#changeRegisterBC(d4f767463ce0a6b3).(int state) |
| 846 | { |
| 847 | changeRegistercxx . . $ SymbolManager#changeRegister(3e454b8ccf442868).(7, state); |
| 848 | } |
| 849 | void SymbolManagercxx . . $ SymbolManager#::changeRegisterDEcxx . . $ SymbolManager#changeRegisterDE(d4f767463ce0a6b3).(int state) |
| 850 | { |
| 851 | changeRegistercxx . . $ SymbolManager#changeRegister(3e454b8ccf442868).(8, state); |
| 852 | } |
| 853 | void SymbolManagercxx . . $ SymbolManager#::changeRegisterHLcxx . . $ SymbolManager#changeRegisterHL(d4f767463ce0a6b3).(int state) |
| 854 | { |
| 855 | changeRegistercxx . . $ SymbolManager#changeRegister(3e454b8ccf442868).(9, state); |
| 856 | } |
| 857 | void SymbolManagercxx . . $ SymbolManager#::changeRegisterIXcxx . . $ SymbolManager#changeRegisterIX(d4f767463ce0a6b3).(int state) |
| 858 | { |
| 859 | changeRegistercxx . . $ SymbolManager#changeRegister(3e454b8ccf442868).(10, state); |
| 860 | } |
| 861 | void SymbolManagercxx . . $ SymbolManager#::changeRegisterIYcxx . . $ SymbolManager#changeRegisterIY(d4f767463ce0a6b3).(int state) |
| 862 | { |
| 863 | changeRegistercxx . . $ SymbolManager#changeRegister(3e454b8ccf442868).(11, state); |
| 864 | } |
| 865 | void SymbolManagercxx . . $ SymbolManager#::changeRegisterIXLcxx . . $ SymbolManager#changeRegisterIXL(d4f767463ce0a6b3).(int state) |
| 866 | { |
| 867 | changeRegistercxx . . $ SymbolManager#changeRegister(3e454b8ccf442868).(12, state); |
| 868 | } |
| 869 | void SymbolManagercxx . . $ SymbolManager#::changeRegisterIXHcxx . . $ SymbolManager#changeRegisterIXH(d4f767463ce0a6b3).(int state) |
| 870 | { |
| 871 | changeRegistercxx . . $ SymbolManager#changeRegister(3e454b8ccf442868).(13, state); |
| 872 | } |
| 873 | void SymbolManagercxx . . $ SymbolManager#::changeRegisterIYLcxx . . $ SymbolManager#changeRegisterIYL(d4f767463ce0a6b3).(int state) |
| 874 | { |
| 875 | changeRegistercxx . . $ SymbolManager#changeRegister(3e454b8ccf442868).(14, state); |
| 876 | } |
| 877 | void SymbolManagercxx . . $ SymbolManager#::changeRegisterIYHcxx . . $ SymbolManager#changeRegisterIYH(d4f767463ce0a6b3).(int state) |
| 878 | { |
| 879 | changeRegistercxx . . $ SymbolManager#changeRegister(3e454b8ccf442868).(15, state); |
| 880 | } |
| 881 | void SymbolManagercxx . . $ SymbolManager#::changeRegisterOffsetcxx . . $ SymbolManager#changeRegisterOffset(d4f767463ce0a6b3).(int state) |
| 882 | { |
| 883 | changeRegistercxx . . $ SymbolManager#changeRegister(3e454b8ccf442868).(16, state); |
| 884 | } |
| 885 | void SymbolManagercxx . . $ SymbolManager#::changeRegisterIcxx . . $ SymbolManager#changeRegisterI(d4f767463ce0a6b3).(int state) |
| 886 | { |
| 887 | changeRegistercxx . . $ SymbolManager#changeRegister(3e454b8ccf442868).(17, state); |
| 888 | } |