| 1 | // File: listingtracepane.cppcxx . . $ `<file>/listingtracepane.cpp`/ |
| 2 | /* |
| 3 | Pep8-1 is a virtual machine for writing machine language and assembly |
| 4 | language programs. |
| 5 | |
| 6 | Copyright (C) 2009 J. Stanley Warford, Pepperdine University |
| 7 | |
| 8 | This program is free software: you can redistribute it and/or modify |
| 9 | it under the terms of the GNU General Public License as published by |
| 10 | the Free Software Foundation, either version 3 of the License, or |
| 11 | (at your option) any later version. |
| 12 | |
| 13 | This program is distributed in the hope that it will be useful, |
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | GNU General Public License for more details. |
| 17 | |
| 18 | You should have received a copy of the GNU General Public License |
| 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 | */ |
| 21 | #include <QFontDialog> |
| 22 | #include <QScrollBar> |
| 23 | #include "listingtracepane.h"cxx . . $ `<file>/listingtracepane.h`/ |
| 24 | #include "ui_listingtracepane.h"cxx . . $ `<file>/ui_listingtracepane.h`/ |
| 25 | #include "sim.h"cxx . . $ `<file>/sim.h`/ |
| 26 | #include "pep.h"cxx . . $ `<file>/pep.h`/ |
| 27 | |
| 28 | // #include <QDebug> |
| 29 | |
| 30 | ListingTracePanecxx . . $ ListingTracePane#::ListingTracePanecxx . . $ ListingTracePane#ListingTracePane(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent) : |
| 31 | QWidgetcxx . . $ QWidget#QWidget(872e7b0c281abd8d).(parent), |
| 32 | uicxx . . $ ListingTracePane#ui.(new Uicxx . . $ Ui/::ListingTracePanecxx . . $ Ui/ListingTracePane#) |
| 33 | { |
| 34 | uicxx . . $ ListingTracePane#ui.->setupUicxx . . $ Ui_ListingTracePane#setupUi(108f35f7aa7f3cf9).(this); |
| 35 | |
| 36 | uicxx . . $ ListingTracePane#ui.->listingPepOsTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingPepOsTraceTableWidget.->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).(); |
| 37 | |
| 38 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(itemClicked(QTableWidgetItem*)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(updateIsCheckedTable(QTableWidgetItem*))); |
| 39 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ ListingTracePane#ui.->listingPepOsTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingPepOsTraceTableWidget., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(itemClicked(QTableWidgetItem*)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(updateIsCheckedTable(QTableWidgetItem*))); |
| 40 | |
| 41 | // programDocWidth = 0; |
| 42 | // osDocWidth = 0; |
| 43 | |
| 44 | uicxx . . $ ListingTracePane#ui.->labelcxx . . $ Ui_ListingTracePane#label.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont., Pepcxx . . $ Pep#::labelFontSizecxx . . $ Pep#labelFontSize.)); |
| 45 | uicxx . . $ ListingTracePane#ui.->listingPepOsTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingPepOsTraceTableWidget.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::codeFontcxx . . $ Pep#codeFont., Pepcxx . . $ Pep#::codeFontSizecxx . . $ Pep#codeFontSize.)); |
| 46 | uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::codeFontcxx . . $ Pep#codeFont., Pepcxx . . $ Pep#::codeFontSizecxx . . $ Pep#codeFontSize.)); |
| 47 | } |
| 48 | |
| 49 | ListingTracePanecxx . . $ ListingTracePane#::~cxx . . $ ListingTracePane#`~ListingTracePane`(ced63f7c635d850d).ListingTracePanecxx . . $ ListingTracePane#() |
| 50 | { |
| 51 | delete uicxx . . $ ListingTracePane#ui.; |
| 52 | } |
| 53 | |
| 54 | void ListingTracePanecxx . . $ ListingTracePane#::setListingTracecxx . . $ ListingTracePane#setListingTrace(fbf163fdf621be2d).(QStringListcxx . . $ QStringList# listingTraceList, QListcxx . . $ QList#<bool> hasCheckBox) |
| 55 | { |
| 56 | // tableWidget depends on whether we are assembling the OS or a program |
| 57 | QTableWidgetcxx . . $ QTableWidget# *tableWidget; |
| 58 | if (Pepcxx . . $ Pep#::memAddrssToAssemblerListingcxx . . $ Pep#memAddrssToAssemblerListing. == &Pepcxx . . $ Pep#::memAddrssToAssemblerListingProgcxx . . $ Pep#memAddrssToAssemblerListingProg.) { |
| 59 | tableWidget = uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget.; |
| 60 | } |
| 61 | else { |
| 62 | tableWidget = uicxx . . $ ListingTracePane#ui.->listingPepOsTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingPepOsTraceTableWidget.; |
| 63 | } |
| 64 | QTableWidgetItemcxx . . $ QTableWidgetItem# *item; |
| 65 | int numRows = listingTraceList.sizecxx . . $ QList#size(ea6fe5115c70a13f).(); |
| 66 | tableWidget->setRowCountcxx . . $ QTableWidget#setRowCount(d4f767463ce0a6b3).(numRows); |
| 67 | for (int i = 0; i < numRows; i++) { |
| 68 | item = new QTableWidgetItemcxx . . $ QTableWidgetItem#(listingTraceList[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i]); |
| 69 | tableWidget->setItemcxx . . $ QTableWidget#setItem(786223559052ea9b).(i, 1, item); |
| 70 | } |
| 71 | for (int i = 0; i < numRows; i++) { |
| 72 | item = new QTableWidgetItemcxx . . $ QTableWidgetItem#(); |
| 73 | if (hasCheckBox[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i]) { |
| 74 | item->setFlagscxx . . $ QTableWidgetItem#setFlags(dc1db7281029bd82).(Qtcxx . . $ Qt/::ItemIsEnabledcxx . . $ Qt/ItemIsEnabled. |cxx . . $ Qt/`operator|`(bcda3d535fff4cd0). Qtcxx . . $ Qt/::ItemIsUserCheckablecxx . . $ Qt/ItemIsUserCheckable.); |
| 75 | item->setCheckStatecxx . . $ QTableWidgetItem#setCheckState(537692883700039).(Qtcxx . . $ Qt/::Uncheckedcxx . . $ Qt/Unchecked.); |
| 76 | } |
| 77 | else { |
| 78 | item->setFlagscxx . . $ QTableWidgetItem#setFlags(dc1db7281029bd82).(Qtcxx . . $ QFlags#QFlags(93d577a3e9528307).::NoItemFlagscxx . . $ Qt/NoItemFlags.); |
| 79 | } |
| 80 | tableWidget->setItemcxx . . $ QTableWidget#setItem(786223559052ea9b).(i, 0, item); |
| 81 | } |
| 82 | tableWidget->resizeColumnsToContentscxx . . $ QTableView#resizeColumnsToContents(49f6e7a06ebc5aa8).(); |
| 83 | uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget.->widthcxx . . $ QWidget#width(455f465bc33b4cdf).(); |
| 84 | tableWidget->resizeRowsToContentscxx . . $ QTableView#resizeRowsToContents(49f6e7a06ebc5aa8).(); |
| 85 | // if (Pep::memAddrssToAssemblerListing == &Pep::memAddrssToAssemblerListingProg) { |
| 86 | // programDocWidth = tableWidget->columnWidth(1); |
| 87 | // } |
| 88 | // else { |
| 89 | // osDocWidth = tableWidget->columnWidth(1); |
| 90 | // } |
| 91 | // resizeDocWidth(); |
| 92 | tableWidget->horizontalScrollBarcxx . . $ QAbstractScrollArea#horizontalScrollBar(49d9510c6adf8c19).()->setValuecxx . . $ QAbstractSlider#setValue(d4f767463ce0a6b3).(tableWidget->horizontalScrollBarcxx . . $ QAbstractScrollArea#horizontalScrollBar(49d9510c6adf8c19).()->minimumcxx . . $ QAbstractSlider#minimum(455f465bc33b4cdf).()); |
| 93 | } |
| 94 | |
| 95 | void ListingTracePanecxx . . $ ListingTracePane#::clearListingTracecxx . . $ ListingTracePane#clearListingTrace(49f6e7a06ebc5aa8).() |
| 96 | { |
| 97 | for (int i = 0; i < uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget.->rowCountcxx . . $ QTableWidget#rowCount(455f465bc33b4cdf).(); i++) { |
| 98 | delete uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget.->itemAtcxx . . $ QTableWidget#itemAt(e78ccbf9c1467f73).(i, 0); |
| 99 | delete uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget.->itemAtcxx . . $ QTableWidget#itemAt(e78ccbf9c1467f73).(i, 1); |
| 100 | } |
| 101 | uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget.->setRowCountcxx . . $ QTableWidget#setRowCount(d4f767463ce0a6b3).(0); |
| 102 | } |
| 103 | |
| 104 | void ListingTracePanecxx . . $ ListingTracePane#::updateListingTracecxx . . $ ListingTracePane#updateListingTrace(49f6e7a06ebc5aa8).() |
| 105 | { |
| 106 | // tableWidget depends on whether we are in the OS or a program |
| 107 | QTableWidgetcxx . . $ QTableWidget# *tableWidget; |
| 108 | if (Simcxx . . $ Sim#::trappedcxx . . $ Sim#trapped.) { |
| 109 | tableWidget = uicxx . . $ ListingTracePane#ui.->listingPepOsTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingPepOsTraceTableWidget.; |
| 110 | uicxx . . $ ListingTracePane#ui.->listingPepOsTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingPepOsTraceTableWidget.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).(); |
| 111 | uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget.->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).(); |
| 112 | } |
| 113 | else { |
| 114 | tableWidget = uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget.; |
| 115 | uicxx . . $ ListingTracePane#ui.->listingPepOsTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingPepOsTraceTableWidget.->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).(); |
| 116 | uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).(); |
| 117 | } |
| 118 | |
| 119 | for (int i = highlightedItemListcxx . . $ ListingTracePane#highlightedItemList..sizecxx . . $ QList#size(ea6fe5115c70a13f).() - 1; i >= 0; i--) { |
| 120 | highlightedItemListcxx . . $ ListingTracePane#highlightedItemList..atcxx . . $ QList#at(e2681f9bb6b2f357).(i)->setBackgroundColorcxx . . $ QTableWidgetItem#setBackgroundColor(129a55e114526ad3).(Qtcxx . . $ QColor#QColor(408ec4d5924bfb00).::whitecxx . . $ Qt/white.); |
| 121 | highlightedItemListcxx . . $ ListingTracePane#highlightedItemList..atcxx . . $ QList#at(e2681f9bb6b2f357).(i)->setTextColorcxx . . $ QTableWidgetItem#setTextColor(129a55e114526ad3).(Qtcxx . . $ QColor#QColor(408ec4d5924bfb00).::blackcxx . . $ Qt/black.); |
| 122 | highlightedItemListcxx . . $ ListingTracePane#highlightedItemList..removeLastcxx . . $ QList#removeLast(49f6e7a06ebc5aa8).(); |
| 123 | } |
| 124 | if (Pepcxx . . $ Pep#::memAddrssToAssemblerListingcxx . . $ Pep#memAddrssToAssemblerListing.->containscxx . . $ QMap#contains(8877ebe272b9620d).(Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter.)) { |
| 125 | QTableWidgetItemcxx . . $ QTableWidgetItem# *highlightedItem = tableWidget->itemcxx . . $ QTableWidget#item(e78ccbf9c1467f73).(Pepcxx . . $ Pep#::memAddrssToAssemblerListingcxx . . $ Pep#memAddrssToAssemblerListing.->valuecxx . . $ QMap#value(866b0a4e5fb46e14).(Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter.), 1); |
| 126 | highlightedItem->setBackgroundColorcxx . . $ QTableWidgetItem#setBackgroundColor(129a55e114526ad3).(QColorcxx . . $ QColor#QColor(2261ffe5112eab06).(56, 117, 215)); |
| 127 | highlightedItem->setTextColorcxx . . $ QTableWidgetItem#setTextColor(129a55e114526ad3).(Qtcxx . . $ QColor#QColor(408ec4d5924bfb00).::whitecxx . . $ Qt/white.); |
| 128 | highlightedItemListcxx . . $ ListingTracePane#highlightedItemList..appendcxx . . $ QList#append(77d9f17553126ecb).(highlightedItem); |
| 129 | |
| 130 | tableWidget->scrollToItemcxx . . $ QTableWidget#scrollToItem(7e014f1c95d482b8).(highlightedItem); |
| 131 | } |
| 132 | tableWidget->horizontalScrollBarcxx . . $ QAbstractScrollArea#horizontalScrollBar(49d9510c6adf8c19).()->setValuecxx . . $ QAbstractSlider#setValue(d4f767463ce0a6b3).(tableWidget->horizontalScrollBarcxx . . $ QAbstractScrollArea#horizontalScrollBar(49d9510c6adf8c19).()->minimumcxx . . $ QAbstractSlider#minimum(455f465bc33b4cdf).()); |
| 133 | } |
| 134 | |
| 135 | void ListingTracePanecxx . . $ ListingTracePane#::setDebuggingStatecxx . . $ ListingTracePane#setDebuggingState(b45ddcbc8423892c).(bool b) |
| 136 | { |
| 137 | QTableWidgetcxx . . $ QTableWidget# *tableWidget; |
| 138 | if (Simcxx . . $ Sim#::trappedcxx . . $ Sim#trapped.) { |
| 139 | tableWidget = uicxx . . $ ListingTracePane#ui.->listingPepOsTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingPepOsTraceTableWidget.; |
| 140 | uicxx . . $ ListingTracePane#ui.->listingPepOsTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingPepOsTraceTableWidget.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).(); |
| 141 | uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget.->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).(); |
| 142 | } |
| 143 | else { |
| 144 | tableWidget = uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget.; |
| 145 | uicxx . . $ ListingTracePane#ui.->listingPepOsTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingPepOsTraceTableWidget.->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).(); |
| 146 | uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).(); |
| 147 | } |
| 148 | |
| 149 | for (int i = 0; i < tableWidget->rowCountcxx . . $ QTableWidget#rowCount(455f465bc33b4cdf).(); i++) { |
| 150 | tableWidget->itemcxx . . $ QTableWidget#item(e78ccbf9c1467f73).(i, 1)->setBackgroundColorcxx . . $ QTableWidgetItem#setBackgroundColor(129a55e114526ad3).(Qtcxx . . $ QColor#QColor(408ec4d5924bfb00).::whitecxx . . $ Qt/white.); |
| 151 | tableWidget->itemcxx . . $ QTableWidget#item(e78ccbf9c1467f73).(i, 1)->setTextColorcxx . . $ QTableWidgetItem#setTextColor(129a55e114526ad3).(Qtcxx . . $ QColor#QColor(408ec4d5924bfb00).::blackcxx . . $ Qt/black.); |
| 152 | } |
| 153 | highlightedItemListcxx . . $ ListingTracePane#highlightedItemList..clearcxx . . $ QList#clear(49f6e7a06ebc5aa8).(); |
| 154 | |
| 155 | if (b && Pepcxx . . $ Pep#::memAddrssToAssemblerListingcxx . . $ Pep#memAddrssToAssemblerListing.->containscxx . . $ QMap#contains(8877ebe272b9620d).(Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter.)) { |
| 156 | QTableWidgetItemcxx . . $ QTableWidgetItem# *highlightedItem = tableWidget->itemcxx . . $ QTableWidget#item(e78ccbf9c1467f73).(Pepcxx . . $ Pep#::memAddrssToAssemblerListingcxx . . $ Pep#memAddrssToAssemblerListing.->valuecxx . . $ QMap#value(866b0a4e5fb46e14).(Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter.), 1); |
| 157 | highlightedItem->setBackgroundColorcxx . . $ QTableWidgetItem#setBackgroundColor(129a55e114526ad3).(QColorcxx . . $ QColor#QColor(2261ffe5112eab06).(56, 117, 215)); |
| 158 | highlightedItem->setTextColorcxx . . $ QTableWidgetItem#setTextColor(129a55e114526ad3).(Qtcxx . . $ QColor#QColor(408ec4d5924bfb00).::whitecxx . . $ Qt/white.); |
| 159 | highlightedItemListcxx . . $ ListingTracePane#highlightedItemList..appendcxx . . $ QList#append(77d9f17553126ecb).(highlightedItem); |
| 160 | |
| 161 | tableWidget->scrollToItemcxx . . $ QTableWidget#scrollToItem(7e014f1c95d482b8).(highlightedItem); |
| 162 | } |
| 163 | tableWidget->horizontalScrollBarcxx . . $ QAbstractScrollArea#horizontalScrollBar(49d9510c6adf8c19).()->setValuecxx . . $ QAbstractSlider#setValue(d4f767463ce0a6b3).(tableWidget->horizontalScrollBarcxx . . $ QAbstractScrollArea#horizontalScrollBar(49d9510c6adf8c19).()->minimumcxx . . $ QAbstractSlider#minimum(455f465bc33b4cdf).()); |
| 164 | // resizeDocWidth(); |
| 165 | } |
| 166 | |
| 167 | void ListingTracePanecxx . . $ ListingTracePane#::showAssemblerListingcxx . . $ ListingTracePane#showAssemblerListing(49f6e7a06ebc5aa8).() |
| 168 | { |
| 169 | uicxx . . $ ListingTracePane#ui.->listingPepOsTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingPepOsTraceTableWidget.->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).(); |
| 170 | uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).(); |
| 171 | } |
| 172 | |
| 173 | void ListingTracePanecxx . . $ ListingTracePane#::highlightOnFocuscxx . . $ ListingTracePane#highlightOnFocus(49f6e7a06ebc5aa8).() |
| 174 | { |
| 175 | if (uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget.->hasFocuscxx . . $ QWidget#hasFocus(50ce9a9e25b4a850).() || uicxx . . $ ListingTracePane#ui.->listingPepOsTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingPepOsTraceTableWidget.->hasFocuscxx . . $ QWidget#hasFocus(50ce9a9e25b4a850).()) { |
| 176 | uicxx . . $ ListingTracePane#ui.->labelcxx . . $ Ui_ListingTracePane#label.->setAutoFillBackgroundcxx . . $ QWidget#setAutoFillBackground(b45ddcbc8423892c).(true); |
| 177 | } |
| 178 | else { |
| 179 | uicxx . . $ ListingTracePane#ui.->labelcxx . . $ Ui_ListingTracePane#label.->setAutoFillBackgroundcxx . . $ QWidget#setAutoFillBackground(b45ddcbc8423892c).(false); |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | bool ListingTracePanecxx . . $ ListingTracePane#::hasFocuscxx . . $ ListingTracePane#hasFocus(c9857a73d68e59ba).() |
| 184 | { |
| 185 | return uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget.->hasFocuscxx . . $ QWidget#hasFocus(50ce9a9e25b4a850).() || uicxx . . $ ListingTracePane#ui.->listingPepOsTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingPepOsTraceTableWidget.->hasFocuscxx . . $ QWidget#hasFocus(50ce9a9e25b4a850).(); |
| 186 | } |
| 187 | |
| 188 | void ListingTracePanecxx . . $ ListingTracePane#::setFocuscxx . . $ ListingTracePane#setFocus(49f6e7a06ebc5aa8).() |
| 189 | { |
| 190 | uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget.->isHiddencxx . . $ QWidget#isHidden(50ce9a9e25b4a850).() ? uicxx . . $ ListingTracePane#ui.->listingPepOsTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingPepOsTraceTableWidget.->setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).() : uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget.->setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).(); |
| 191 | } |
| 192 | |
| 193 | void ListingTracePanecxx . . $ ListingTracePane#::onFontChangedcxx . . $ ListingTracePane#onFontChanged(19c44da831d1de49).(QFontcxx . . $ QFont# font) |
| 194 | { |
| 195 | uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(font); |
| 196 | uicxx . . $ ListingTracePane#ui.->listingPepOsTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingPepOsTraceTableWidget.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(font); |
| 197 | uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget.->resizeColumnsToContentscxx . . $ QTableView#resizeColumnsToContents(49f6e7a06ebc5aa8).(); |
| 198 | uicxx . . $ ListingTracePane#ui.->listingPepOsTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingPepOsTraceTableWidget.->resizeColumnsToContentscxx . . $ QTableView#resizeColumnsToContents(49f6e7a06ebc5aa8).(); |
| 199 | } |
| 200 | |
| 201 | //void ListingTracePane::resizeDocWidth() |
| 202 | //{ |
| 203 | // int column0 = ui->listingTraceTableWidget->columnWidth(0); |
| 204 | // if (ui->listingTraceTableWidget->width() > programDocWidth + column0 + 5) { // + 5 for breathing room |
| 205 | // ui->listingTraceTableWidget->setColumnWidth(1, ui->listingTraceTableWidget->viewport()->width() - column0); |
| 206 | // } |
| 207 | // else { |
| 208 | // ui->listingTraceTableWidget->setColumnWidth(1, programDocWidth); |
| 209 | // } |
| 210 | // if (ui->listingPepOsTraceTableWidget->width() > osDocWidth + column0 + 5) { // + 5 for breathing room |
| 211 | // ui->listingPepOsTraceTableWidget->setColumnWidth(1, ui->listingPepOsTraceTableWidget->viewport()->width() - column0); |
| 212 | // } |
| 213 | // else { |
| 214 | // ui->listingPepOsTraceTableWidget->setColumnWidth(1, osDocWidth); |
| 215 | // } |
| 216 | //} |
| 217 | |
| 218 | void ListingTracePanecxx . . $ ListingTracePane#::mouseReleaseEventcxx . . $ ListingTracePane#mouseReleaseEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent# *) |
| 219 | { |
| 220 | QTableWidgetcxx . . $ QTableWidget# *tableWidget; |
| 221 | if (!uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget.->isHiddencxx . . $ QWidget#isHidden(50ce9a9e25b4a850).()) { |
| 222 | tableWidget = uicxx . . $ ListingTracePane#ui.->listingTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingTraceTableWidget.; |
| 223 | } |
| 224 | else { |
| 225 | tableWidget = uicxx . . $ ListingTracePane#ui.->listingPepOsTraceTableWidgetcxx . . $ Ui_ListingTracePane#listingPepOsTraceTableWidget.; |
| 226 | } |
| 227 | tableWidget->setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).(); |
| 228 | } |
| 229 | |
| 230 | void ListingTracePanecxx . . $ ListingTracePane#::updateIsCheckedTablecxx . . $ ListingTracePane#updateIsCheckedTable(554f3a74aaf98b06).(QTableWidgetItemcxx . . $ QTableWidgetItem# *item) |
| 231 | { |
| 232 | Pepcxx . . $ Pep#::listingRowCheckedcxx . . $ Pep#listingRowChecked.->insertcxx . . $ QMap#insert(929a1ed410fe8423).(item->rowcxx . . $ QTableWidgetItem#row(455f465bc33b4cdf).(), item->checkStatecxx . . $ QTableWidgetItem#checkState(94511a6609c7e4a7).()); |
| 233 | } |
| 234 | |
| 235 | void ListingTracePanecxx . . $ ListingTracePane#::mouseDoubleClickEventcxx . . $ ListingTracePane#mouseDoubleClickEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent# *) |
| 236 | { |
| 237 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! labelDoubleClickedcxx . . $ ListingTracePane#labelDoubleClicked(d9b7ee7ebef3c77).(Enucxx . . $ Enu/::EListingTracecxx . . $ Enu/EListingTrace.); |
| 238 | } |