| 1 | /* |
| 2 | * File: MainPanelModern.cpp |
| 3 | * |
| 4 | * Author: Jacob Dekel |
| 5 | * Created on: Oct 28, 2010 |
| 6 | * |
| 7 | * Copyright (c) 2009-2013 Jacob Dekel |
| 8 | * $Id: MainPanel.cpp 67 2010-09-13 14:06:31Z dekeljacob $ |
| 9 | * |
| 10 | * This program is free software: you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License as published by |
| 12 | * the Free Software Foundation, either version 3 of the License, or |
| 13 | * (at your option) any later version. |
| 14 | * |
| 15 | * This program is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. |
| 19 | * |
| 20 | * You should have received a copy of the GNU General Public License |
| 21 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 22 | * |
| 23 | */ |
| 24 | |
| 25 | #include "HerculesStudio.h"cxx . . $ `<file>/HercStudio/HerculesStudio.h`/ |
| 26 | #include "MainPanelModern.h"cxx . . $ `<file>/HercStudio/MainPanelModern.h`/ |
| 27 | #include "Environment.h"cxx . . $ `<file>/HercStudio/Environment.h`/ |
| 28 | #include "PanelButton.h"cxx . . $ `<file>/HercStudio/PanelButton.h`/ |
| 29 | #include "Preferences.h"cxx . . $ `<file>/HercStudio/Preferences.h`/ |
| 30 | #include "MipsLed.h"cxx . . $ `<file>/HercStudio/MipsLed.h`/ |
| 31 | #include "MipsGauge.h"cxx . . $ `<file>/HercStudio/MipsGauge.h`/ |
| 32 | #include "ConfigurationEditor.h"cxx . . $ `<file>/HercConfiguration/ConfigurationEditor.h`/ |
| 33 | #include "Preferences.h"cxx . . $ `<file>/HercStudio/Preferences.h`/ |
| 34 | |
| 35 | #include <sstream> |
| 36 | |
| 37 | |
| 38 | MainPanelModerncxx . . $ MainPanelModern#::MainPanelModerncxx . . $ MainPanelModern#MainPanelModern(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent) |
| 39 | : MainPanelcxx . . $ MainPanel#MainPanel(108f35f7aa7f3cf9).(parent) |
| 40 | { |
| 41 | setupUicxx . . $ MainPanelModern#setupUi(108f35f7aa7f3cf9).(parent); |
| 42 | mLcd0cxx . . $ MainPanel#mLcd0. = new QLCDNumbercxx . . $ QLCDNumber#(1,this); mLcd0cxx . . $ MainPanel#mLcd0.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 43 | mLcd1cxx . . $ MainPanel#mLcd1. = new QLCDNumbercxx . . $ QLCDNumber#(1,this); mLcd1cxx . . $ MainPanel#mLcd1.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 44 | mLcd2cxx . . $ MainPanel#mLcd2. = new QLCDNumbercxx . . $ QLCDNumber#(1,this); mLcd2cxx . . $ MainPanel#mLcd2.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 45 | mLcd3cxx . . $ MainPanel#mLcd3. = new QLCDNumbercxx . . $ QLCDNumber#(1,this); mLcd3cxx . . $ MainPanel#mLcd3.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); |
| 46 | mStoppedcxx . . $ MainPanel#mStopped.=true; |
| 47 | doConnectcxx . . $ MainPanel#doConnect(49f6e7a06ebc5aa8).(); |
| 48 | } |
| 49 | |
| 50 | MainPanelModerncxx . . $ MainPanelModern#::~cxx . . $ MainPanelModern#`~MainPanelModern`(49f6e7a06ebc5aa8).MainPanelModerncxx . . $ MainPanelModern#() |
| 51 | { |
| 52 | delete mMipscxx . . $ MainPanelModern#mMips.; |
| 53 | delete mYellowLowcxx . . $ MainPanel#mYellowLow.; |
| 54 | delete mYellowHighcxx . . $ MainPanel#mYellowHigh.; |
| 55 | } |
| 56 | |
| 57 | void MainPanelModerncxx . . $ MainPanelModern#::setupUicxx . . $ MainPanelModern#setupUi(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *) |
| 58 | { |
| 59 | const QColorcxx . . $ QColor# blackcxx . . $ QColor#QColor(748afa4755bc9595).(70,70,70); |
| 60 | const QColorcxx . . $ QColor# whitecxx . . $ QColor#QColor(748afa4755bc9595).(255,255,20); |
| 61 | QBrushcxx . . $ QBrush# blackBrushcxx . . $ QBrush#QBrush(b50947b0752ea6ac).(black); |
| 62 | QPalettecxx . . $ QPalette# blackPalettecxx . . $ QPalette#QPalette(a3063a2ee868ceb).(white, black); |
| 63 | this->setPalettecxx . . $ QWidget#setPalette(f826ed73d5553cd5).(blackPalette); |
| 64 | this->setAutoFillBackgroundcxx . . $ QWidget#setAutoFillBackground(b45ddcbc8423892c).(true); |
| 65 | |
| 66 | QStringcxx . . $ QString# iconsPathcxx . . $ QString#QString(e1217c004a86c950). = Environmentcxx . . $ QString#QString(85c52e162fed56f9).::getIconsPathcxx . . $ Environment#getIconsPath(75da78375bc7a3dd).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).() ; |
| 67 | hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(3,"icons path:'" << iconsPath.toStdString() << "'"); |
| 68 | |
| 69 | setButtoncxx . . $ MainPanelModern#setButton(582beeb951a242d6).(mPowerOnButtoncxx . . $ MainPanelModern#mPowerOnButton., QStringcxx . . $ QString#QString(e1217c004a86c950).("Power\nOn"), QIconcxx . . $ QIcon#QIcon(47c487586538d025).(iconsPath +cxx . . $ operator+(3d22f08efddf8107). "/modern/Play-icon.png")); |
| 70 | setButtoncxx . . $ MainPanelModern#setButton(582beeb951a242d6).(mPowerOffButtoncxx . . $ MainPanelModern#mPowerOffButton., QStringcxx . . $ QString#QString(e1217c004a86c950).("Power\nOff"), QIconcxx . . $ QIcon#QIcon(47c487586538d025).(iconsPath +cxx . . $ operator+(3d22f08efddf8107). "/modern/Stop-icon.png")); |
| 71 | setButtoncxx . . $ MainPanelModern#setButton(582beeb951a242d6).(mStopButtoncxx . . $ MainPanelModern#mStopButton., QStringcxx . . $ QString#QString(e1217c004a86c950).("Stop"), QIconcxx . . $ QIcon#QIcon(47c487586538d025).(iconsPath +cxx . . $ operator+(3d22f08efddf8107). "/modern/Pause.png")); |
| 72 | setButtoncxx . . $ MainPanelModern#setButton(582beeb951a242d6).(mInterruptButtoncxx . . $ MainPanelModern#mInterruptButton., QStringcxx . . $ QString#QString(e1217c004a86c950).("Interrupt"), QIconcxx . . $ QIcon#QIcon(47c487586538d025).(iconsPath +cxx . . $ operator+(3d22f08efddf8107). "/modern/interrupt.png")); |
| 73 | setButtoncxx . . $ MainPanelModern#setButton(582beeb951a242d6).(mLoadButtoncxx . . $ MainPanelModern#mLoadButton., QStringcxx . . $ QString#QString(e1217c004a86c950).("IPL\n(Boot)"), QIconcxx . . $ QIcon#QIcon(47c487586538d025).(iconsPath +cxx . . $ operator+(3d22f08efddf8107). "/modern/load.png")); |
| 74 | |
| 75 | mRestartButtoncxx . . $ MainPanel#mRestartButton. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 76 | mStoreButtoncxx . . $ MainPanel#mStoreButton. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 77 | mStartButtoncxx . . $ MainPanel#mStartButton. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 78 | |
| 79 | mPowerOnButtoncxx . . $ MainPanelModern#mPowerOnButton.->setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).("Power On"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 80 | mPowerOffButtoncxx . . $ MainPanelModern#mPowerOffButton.->setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).("Power Off"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 81 | mInterruptButtoncxx . . $ MainPanelModern#mInterruptButton.->setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).("Interrupt"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 82 | mLoadButtoncxx . . $ MainPanelModern#mLoadButton.->setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).("Load (IPL)"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 83 | mStopButtoncxx . . $ MainPanelModern#mStopButton.->setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).("Stop all CPUs"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 84 | |
| 85 | QFontcxx . . $ QFont# fontcxx . . $ QFont#QFont(49f6e7a06ebc5aa8).; |
| 86 | font.setPointSizecxx . . $ QFont#setPointSize(d4f767463ce0a6b3).(6); |
| 87 | |
| 88 | mPSWcxx . . $ MainPanelModern#mPSW. = new QLabelcxx . . $ QLabel#(this); |
| 89 | QFontcxx . . $ QFont# pswFontcxx . . $ QFont#QFont(7ae16150a604556).("Mono"cxx . . $ QString#QString(85c52e162fed56f9)., 10); |
| 90 | mPSWcxx . . $ MainPanelModern#mPSW.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(pswFont); |
| 91 | |
| 92 | if (Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().mipsAsGaugecxx . . $ Preferences#mipsAsGauge(50ce9a9e25b4a850).()) |
| 93 | mMipscxx . . $ MainPanelModern#mMips. = new MipsGaugecxx . . $ MipsGauge#(this); |
| 94 | else |
| 95 | mMipscxx . . $ MainPanelModern#mMips. = new MipsLedcxx . . $ MipsLed#(this); |
| 96 | mMipscxx . . $ MainPanelModern#mMips.->setActivecxx . . $ Mips#setActive(b45ddcbc8423892c).(false); |
| 97 | } |
| 98 | |
| 99 | void MainPanelModerncxx . . $ MainPanelModern#::setButtoncxx . . $ MainPanelModern#setButton(582beeb951a242d6).(QToolButtoncxx . . $ QToolButton#*& button, QStringcxx . . $ QString# text, QIconcxx . . $ QIcon# icon) |
| 100 | { |
| 101 | button = new QToolButtoncxx . . $ QToolButton#(this); |
| 102 | button->resizecxx . . $ QWidget#resize(3e454b8ccf442868).(60,70); |
| 103 | button->setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).(text); |
| 104 | button->setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(icon); |
| 105 | button->setStyleSheetcxx . . $ QWidget#setStyleSheet(3520e46b33348bf6).("QToolButton {background: rgb(50,50,50); color: white; }"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 106 | button->setToolButtonStylecxx . . $ QToolButton#setToolButtonStyle(8088b2ce57f6b5f3).(Qtcxx . . $ Qt/::ToolButtonTextUnderIconcxx . . $ Qt/ToolButtonTextUnderIcon.); |
| 107 | } |
| 108 | |
| 109 | void MainPanelModerncxx . . $ MainPanelModern#::resizeEventcxx . . $ MainPanelModern#resizeEvent(eeeec21cf8dc0387).(QResizeEventcxx . . $ QResizeEvent# * ) |
| 110 | { |
| 111 | int width = this->sizecxx . . $ QWidget#size(4b3b776e5ee2b367).().rwidthcxx . . $ QSize#rwidth(ffa05e89dbf2c50f).(); |
| 112 | mPowerOnButtoncxx . . $ MainPanelModern#mPowerOnButton.->movecxx . . $ QWidget#move(3e454b8ccf442868).(10,20); |
| 113 | mPowerOffButtoncxx . . $ MainPanelModern#mPowerOffButton.->movecxx . . $ QWidget#move(3e454b8ccf442868).(70,20); |
| 114 | mStopButtoncxx . . $ MainPanelModern#mStopButton.->movecxx . . $ QWidget#move(3e454b8ccf442868).(130,20); |
| 115 | mInterruptButtoncxx . . $ MainPanelModern#mInterruptButton.->movecxx . . $ QWidget#move(3e454b8ccf442868).(190,20); |
| 116 | mLoadButtoncxx . . $ MainPanelModern#mLoadButton.->movecxx . . $ QWidget#move(3e454b8ccf442868).(250,20); |
| 117 | mMipscxx . . $ MainPanelModern#mMips.->movecxx . . $ Mips#move(3e454b8ccf442868).(320,20); |
| 118 | |
| 119 | mPSWcxx . . $ MainPanelModern#mPSW.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(width-550,110,48*12,12); |
| 120 | } |
| 121 | |
| 122 | void MainPanelModerncxx . . $ MainPanelModern#::setDormantcxx . . $ MainPanelModern#setDormant(49f6e7a06ebc5aa8).() |
| 123 | { |
| 124 | if (!mStopButtoncxx . . $ MainPanelModern#mStopButton.->textcxx . . $ QAbstractButton#text(6ef7b6c27b00b43d).().containscxx . . $ QString#contains(8cce4688c16f48f3).("Stop"cxx . . $ QString#QString(85c52e162fed56f9)., Qtcxx . . $ Qt/::CaseSensitivecxx . . $ Qt/CaseSensitive.)) |
| 125 | { |
| 126 | stopClickedSlotcxx . . $ MainPanelModern#stopClickedSlot(49f6e7a06ebc5aa8).(); |
| 127 | } |
| 128 | |
| 129 | mMipscxx . . $ MainPanelModern#mMips.->setActivecxx . . $ Mips#setActive(b45ddcbc8423892c).(false); |
| 130 | } |
| 131 | |
| 132 | void MainPanelModerncxx . . $ MainPanelModern#::standbycxx . . $ MainPanelModern#standby(49f6e7a06ebc5aa8).() |
| 133 | { |
| 134 | mMipscxx . . $ MainPanelModern#mMips.->setActivecxx . . $ Mips#setActive(b45ddcbc8423892c).(true); |
| 135 | |
| 136 | const QColorcxx . . $ QColor# blackcxx . . $ QColor#QColor(748afa4755bc9595).(50,50,50); |
| 137 | const QColorcxx . . $ QColor# whitecxx . . $ QColor#QColor(748afa4755bc9595).(255,255,255); |
| 138 | QBrushcxx . . $ QBrush# blackBrushcxx . . $ QBrush#QBrush(b50947b0752ea6ac).(black); |
| 139 | QBrushcxx . . $ QBrush# whiteBrushcxx . . $ QBrush#QBrush(b50947b0752ea6ac).(black); |
| 140 | QPalettecxx . . $ QPalette# blackPalettecxx . . $ QPalette#QPalette(a3063a2ee868ceb).(white, black); |
| 141 | QPalettecxx . . $ QPalette# whitePalettecxx . . $ QPalette#QPalette(a3063a2ee868ceb).(white, white); |
| 142 | this->setPalettecxx . . $ QWidget#setPalette(f826ed73d5553cd5).(whitePalette); |
| 143 | this->setAutoFillBackgroundcxx . . $ QWidget#setAutoFillBackground(b45ddcbc8423892c).(true); |
| 144 | this->repaintcxx . . $ QWidget#repaint(49f6e7a06ebc5aa8).(); |
| 145 | this->setPalettecxx . . $ QWidget#setPalette(f826ed73d5553cd5).(blackPalette); |
| 146 | } |
| 147 | |
| 148 | bool MainPanelModerncxx . . $ MainPanelModern#::notifycxx . . $ MainPanelModern#notify(544790aa27d183a0).(const QByteArraycxx . . $ QByteArray#& statusLine) |
| 149 | { |
| 150 | bool ret = true; |
| 151 | if (statusLine.startsWithcxx . . $ QByteArray#startsWith(7d4bdb1abc417636).("MIPS=")) |
| 152 | { |
| 153 | double d = atof(statusLine.datacxx . . $ QByteArray#data(a9f41ea0e82d88cf).()+5); |
| 154 | if (d > mMipsHWMcxx . . $ MainPanel#mMipsHWM.) |
| 155 | { |
| 156 | mMipsHWMcxx . . $ MainPanel#mMipsHWM. = d; |
| 157 | stdcxx . . $ std/::stringstreamcxx . . $ std/stringstream# sscxx . . $ std/__cxx11/basic_stringstream#basic_stringstream(49f6e7a06ebc5aa8).; |
| 158 | ss <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "High Water Mark:" <<cxx . . $ std/basic_ostream#`operator<<`(968942d578224538). d; |
| 159 | mMipscxx . . $ MainPanelModern#mMips.->setToolTipcxx . . $ Mips#setToolTip(3520e46b33348bf6).(sscxx . . $ QString#QString(85c52e162fed56f9)..strcxx . . $ std/__cxx11/basic_stringstream#str(d33e1a6fd36255f7).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 160 | } |
| 161 | mMipscxx . . $ MainPanelModern#mMips.->displaycxx . . $ Mips#display(ba8836b59fb42830).(d); |
| 162 | } |
| 163 | //3.07 :STATUS=CPU0000 PSW=00000000 00000000 0000000000000000 M....... instcount=0 |
| 164 | else ret = false; |
| 165 | |
| 166 | return ret; |
| 167 | } |
| 168 | |
| 169 | void MainPanelModerncxx . . $ MainPanelModern#::switchMipscxx . . $ MainPanelModern#switchMips(49f6e7a06ebc5aa8).() |
| 170 | { |
| 171 | bool updated = false; |
| 172 | bool visible = mMipscxx . . $ MainPanelModern#mMips.->isVisiblecxx . . $ Mips#isVisible(c9857a73d68e59ba).(); |
| 173 | if (Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().mipsAsGaugecxx . . $ Preferences#mipsAsGauge(50ce9a9e25b4a850).()) |
| 174 | { |
| 175 | MipsLedcxx . . $ MipsLed# * oldMips = dynamic_cast<MipsLedcxx . . $ MipsLed# *>(mMipscxx . . $ MainPanelModern#mMips.); |
| 176 | if (oldMips != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) |
| 177 | { |
| 178 | Mipscxx . . $ Mips# * gauge = new MipsGaugecxx . . $ MipsGauge#(this); |
| 179 | mMipscxx . . $ MainPanelModern#mMips. = gauge; |
| 180 | mMipscxx . . $ MainPanelModern#mMips.->setToolTipcxx . . $ Mips#setToolTip(3520e46b33348bf6).(oldMips->toolTipcxx . . $ QWidget#toolTip(6ef7b6c27b00b43d).()); |
| 181 | oldMips->deleteLatercxx . . $ MipsLed#deleteLater(49f6e7a06ebc5aa8).(); |
| 182 | updated = true; |
| 183 | } |
| 184 | } |
| 185 | else |
| 186 | { |
| 187 | MipsGaugecxx . . $ MipsGauge# * oldMips = dynamic_cast<MipsGaugecxx . . $ MipsGauge# *>(mMipscxx . . $ MainPanelModern#mMips.); |
| 188 | if (oldMips != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) |
| 189 | { |
| 190 | Mipscxx . . $ Mips# * lcd = new MipsLedcxx . . $ MipsLed#(this); |
| 191 | mMipscxx . . $ MainPanelModern#mMips. = lcd; |
| 192 | mMipscxx . . $ MainPanelModern#mMips.->setToolTipcxx . . $ Mips#setToolTip(3520e46b33348bf6).(oldMips->toolTipcxx . . $ QWidget#toolTip(6ef7b6c27b00b43d).()); |
| 193 | oldMips->deleteLatercxx . . $ MipsGauge#deleteLater(49f6e7a06ebc5aa8).(); |
| 194 | updated = true; |
| 195 | } |
| 196 | } |
| 197 | if (updated) |
| 198 | { |
| 199 | mMipscxx . . $ MainPanelModern#mMips.->setActivecxx . . $ Mips#setActive(b45ddcbc8423892c).(visible); |
| 200 | int width = this->sizecxx . . $ QWidget#size(4b3b776e5ee2b367).().rwidthcxx . . $ QSize#rwidth(ffa05e89dbf2c50f).(); |
| 201 | mMipscxx . . $ MainPanelModern#mMips.->movecxx . . $ Mips#move(3e454b8ccf442868).(width-680,20); |
| 202 | } |
| 203 | |
| 204 | } |
| 205 | |
| 206 | QSizecxx . . $ QSize# MainPanelModerncxx . . $ MainPanelModern#::sizeHintcxx . . $ MainPanelModern#sizeHint(4b3b776e5ee2b367).() const |
| 207 | { |
| 208 | return QSizecxx . . $ QSize#QSize(3e454b8ccf442868).(100, 100); |
| 209 | } |
| 210 | |
| 211 | void MainPanelModerncxx . . $ MainPanelModern#::stopClickedSlotcxx . . $ MainPanelModern#stopClickedSlot(49f6e7a06ebc5aa8).() |
| 212 | { |
| 213 | if (!mMipscxx . . $ MainPanelModern#mMips.->isVisiblecxx . . $ Mips#isVisible(c9857a73d68e59ba).()) // actually: is hercules running |
| 214 | return; |
| 215 | if (mStopButtoncxx . . $ MainPanelModern#mStopButton.->textcxx . . $ QAbstractButton#text(6ef7b6c27b00b43d).().containscxx . . $ QString#contains(8cce4688c16f48f3).("Stop"cxx . . $ QString#QString(85c52e162fed56f9)., Qtcxx . . $ Qt/::CaseSensitivecxx . . $ Qt/CaseSensitive.)) |
| 216 | { |
| 217 | delete mStopButtoncxx . . $ MainPanelModern#mStopButton.; |
| 218 | setButtoncxx . . $ MainPanelModern#setButton(582beeb951a242d6).(mStopButtoncxx . . $ MainPanelModern#mStopButton., QStringcxx . . $ QString#QString(e1217c004a86c950).("Resume"), QIconcxx . . $ QIcon#QIcon(47c487586538d025).(QStringcxx . . $ QString#QString(85c52e162fed56f9).(Environmentcxx . . $ Environment#::getIconsPathcxx . . $ Environment#getIconsPath(75da78375bc7a3dd).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()) +cxx . . $ operator+(3d22f08efddf8107). "/modern/Resume.png")); |
| 219 | mStoppedcxx . . $ MainPanel#mStopped.=true; |
| 220 | } |
| 221 | else |
| 222 | { |
| 223 | delete mStopButtoncxx . . $ MainPanelModern#mStopButton.; |
| 224 | setButtoncxx . . $ MainPanelModern#setButton(582beeb951a242d6).(mStopButtoncxx . . $ MainPanelModern#mStopButton., QStringcxx . . $ QString#QString(e1217c004a86c950).("Stop"), QIconcxx . . $ QIcon#QIcon(47c487586538d025).(QStringcxx . . $ QString#QString(85c52e162fed56f9).(Environmentcxx . . $ Environment#::getIconsPathcxx . . $ Environment#getIconsPath(75da78375bc7a3dd).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()) +cxx . . $ operator+(3d22f08efddf8107). "/modern/Pause.png")); |
| 225 | mStoppedcxx . . $ MainPanel#mStopped.=false; |
| 226 | } |
| 227 | resizeEventcxx . . $ MainPanelModern#resizeEvent(eeeec21cf8dc0387).(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 228 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(stopButtoncxx . . $ MainPanelModern#stopButton(aa0e4e1b7d59b5f2).(), SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this , SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(stopClickedSlot())); |
| 229 | mStopButtoncxx . . $ MainPanelModern#mStopButton.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(true); |
| 230 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! stopClickedcxx . . $ MainPanel#stopClicked(49f6e7a06ebc5aa8).(); |
| 231 | } |
| 232 | |
| 233 | template<class T> void MainPanelModerncxx . . $ MainPanelModern#::animateOnecxx . . $ MainPanelModern#animateOne(fc28a385ebf3f439).(int x, int y, T* button, int step) |
| 234 | { |
| 235 | for (int i = this->widthcxx . . $ QWidget#width(455f465bc33b4cdf).(); i>=x; i-=step) |
| 236 | { |
| 237 | button->move(i,y); |
| 238 | this->repaintcxx . . $ QWidget#repaint(49f6e7a06ebc5aa8).(); |
| 239 | } |
| 240 | } |
| 241 | |
| 242 | void MainPanelModerncxx . . $ MainPanelModern#::animatecxx . . $ MainPanelModern#animate(49f6e7a06ebc5aa8).() |
| 243 | { |
| 244 | int width = this->widthcxx . . $ QWidget#width(455f465bc33b4cdf).(); |
| 245 | mPowerOnButtoncxx . . $ MainPanelModern#mPowerOnButton.->movecxx . . $ QWidget#move(3e454b8ccf442868).(width,20); |
| 246 | mPowerOffButtoncxx . . $ MainPanelModern#mPowerOffButton.->movecxx . . $ QWidget#move(3e454b8ccf442868).(width,20); |
| 247 | mStopButtoncxx . . $ MainPanelModern#mStopButton.->movecxx . . $ QWidget#move(3e454b8ccf442868).(width,20); |
| 248 | mInterruptButtoncxx . . $ MainPanelModern#mInterruptButton.->movecxx . . $ QWidget#move(3e454b8ccf442868).(width,20); |
| 249 | mLoadButtoncxx . . $ MainPanelModern#mLoadButton.->movecxx . . $ QWidget#move(3e454b8ccf442868).(width,20); |
| 250 | mMipscxx . . $ MainPanelModern#mMips.->movecxx . . $ Mips#move(3e454b8ccf442868).(width,20); |
| 251 | |
| 252 | animateOnecxx . . $ MainPanelModern#animateOne(fc28a385ebf3f439).(10,20,mPowerOnButtoncxx . . $ MainPanelModern#mPowerOnButton., 5); |
| 253 | animateOnecxx . . $ MainPanelModern#animateOne(fc28a385ebf3f439).(70,20,mPowerOffButtoncxx . . $ MainPanelModern#mPowerOffButton., 5); |
| 254 | animateOnecxx . . $ MainPanelModern#animateOne(fc28a385ebf3f439).(130,20,mStopButtoncxx . . $ MainPanelModern#mStopButton., 10); |
| 255 | animateOnecxx . . $ MainPanelModern#animateOne(fc28a385ebf3f439).(190,20,mInterruptButtoncxx . . $ MainPanelModern#mInterruptButton., 10); |
| 256 | animateOnecxx . . $ MainPanelModern#animateOne(fc28a385ebf3f439).(250,20,mLoadButtoncxx . . $ MainPanelModern#mLoadButton., 15); |
| 257 | animateOnecxx . . $ MainPanelModern#animateOne(fc28a385ebf3f439).(320,20,mMipscxx . . $ MainPanelModern#mMips.,5); |
| 258 | } |