Debian Codegraph @

HercConfiguration/DevicesPane.cpp

raw symbols SCIP
1 /*
2 * File: DevicesPane.cpp
3 *
4 * Author: Jacob Dekel
5 * Created on: Aug 7, 2009
6 *
7 * Copyright (c) 2009-2013 Jacob Dekel
8 * $Id$
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 "DevicesPane.h"cxx . . $ `<file>/HercConfiguration/DevicesPane.h`/
26 #include "DevicesRename.h"cxx . . $ `<file>/HercConfiguration/DevicesRename.h`/
27 #include "MainWindow.h"cxx . . $ `<file>/HercStudio/MainWindow.h`/
28 #include "VisualizedDeviceEntry.h"cxx . . $ `<file>/HercConfiguration/VisualizedDeviceEntry.h`/
29 #include "Environment.h"cxx . . $ `<file>/HercStudio/Environment.h`/
30 #include "HerculesStudio.h"cxx . . $ `<file>/HercStudio/HerculesStudio.h`/
31 #include "GenericDeviceProperties.h"cxx . . $ `<file>/HercConfiguration/GenericDeviceProperties.h`/
32 #include "StringTokenizer.h"cxx . . $ `<file>/HercStudio/StringTokenizer.h`/
33
34 #include <QBitmap>
35 #include <QString>
36 #include <iostream>
37 #include <string>
38 #include <sstream>
39 #include <cstdio>
40
41 DevicesPanecxx . . $ DevicesPane#::DevicesPanecxx . . $ DevicesPane#DevicesPane(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent)
42 : DeviceMenuProcessorcxx . . $ DeviceMenuProcessor#(parent),
43 StatusUpdateCollectorcxx . . $ StatusUpdateCollector#(),
44 mLayoutcxx . . $ DevicesPane#mLayout.(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!),
45 mListViewcxx . . $ DevicesPane#mListView.(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!),
46 mModelcxx . . $ DevicesPane#mModel.(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!),
47 mRenameDlgcxx . . $ DevicesPane#mRenameDlg.(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!),
48 mOldDevNumcxx . . $ DevicesPane#mOldDevNum.(-1)
49 {
50 uicxx . . $ DevicesPane#ui..setupUicxx . . $ Ui_DevicesClass#setupUi(108f35f7aa7f3cf9).(this);
51 stdcxx . . $ std/::stringcxx . . $ std/string# iconsPath = Environmentcxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f).::getIconsPathcxx . . $ Environment#getIconsPath(75da78375bc7a3dd).() +cxx . . $ std/operator+(40fc1db9226233c6). "/yellow.png";
52 mYellowIconcxx . . $ DevicesPane#mYellowIcon. = new QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(iconsPathcxx . . $ QString#QString(85c52e162fed56f9)..c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).());
53 iconsPath =cxx . . $ std/__cxx11/basic_string#`operator=`(706c69e8c742c906). Environmentcxx . . $ Environment#::getIconsPathcxx . . $ Environment#getIconsPath(75da78375bc7a3dd).() +cxx . . $ std/operator+(40fc1db9226233c6). "/yellowhigh.png";
54 mYellowHighIconcxx . . $ DevicesPane#mYellowHighIcon. = new QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(iconsPathcxx . . $ QString#QString(85c52e162fed56f9)..c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).());
55 mMainWindowcxx . . $ DevicesPane#mMainWindow. = dynamic_cast<MainWindowcxx . . $ MainWindow# *>(parent);
56 }
57
58 DevicesPanecxx . . $ DevicesPane#::~cxx . . $ DevicesPane#`~DevicesPane`(49f6e7a06ebc5aa8).DevicesPanecxx . . $ DevicesPane#()
59 {
60 delete mYellowIconcxx . . $ DevicesPane#mYellowIcon.;
61 delete mYellowHighIconcxx . . $ DevicesPane#mYellowHighIcon.;
62 delete mListViewcxx . . $ DevicesPane#mListView.;
63 mDevicescxx . . $ DevicesPane#mDevices..clearcxx . . $ std/map#clear(49f6e7a06ebc5aa8).();
64 }
65
66 bool DevicesPanecxx . . $ DevicesPane#::notifycxx . . $ DevicesPane#notify(544790aa27d183a0).(const QByteArraycxx . . $ QByteArray#& statusLine)
67 {
68 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(1,"devices notify:" << statusLine.data() << ".");
69 const struct DynDeviceLinecxx . . $ DynDeviceLine# * line = reinterpret_cast<const DynDeviceLinecxx . . $ DynDeviceLine# *>(statusLine.datacxx . . $ QByteArray#data(a9f41ea0e82d88cf).());
70 int devNo;
71 VisualizedDeviceEntrycxx . . $ VisualizedDeviceEntry# deviceEntrycxx . . $ VisualizedDeviceEntry#VisualizedDeviceEntry(49f6e7a06ebc5aa8).;
72 bool deviceAdded = false;
73 if (strncmp(line->DEVcxx . . $ DynDeviceLine#DEV.,"DEV",3) == 0)
74 {
75 DeviceTypescxx . . $ DeviceTypes#::Typecxx . . $ DeviceTypes#Type# devType = DeviceTypescxx . . $ DeviceTypes#::Othercxx . . $ DeviceTypes#Other.;
76 switch (line->actioncxx . . $ DynDeviceLine#action.)
77 {
78 case('A'):
79 if (strncmp(line->devTypecxx . . $ DynDeviceLine#devType.,"DASD",4)==0)
80 devType= DeviceTypescxx . . $ DeviceTypes#::DASDcxx . . $ DeviceTypes#DASD.;
81 else if (strncmp(line->devTypecxx . . $ DynDeviceLine#devType.,"CTC",3)==0)
82 devType= DeviceTypescxx . . $ DeviceTypes#::CTCcxx . . $ DeviceTypes#CTC.;
83 else if (strncmp(line->devTypecxx . . $ DynDeviceLine#devType.,"OSA",3)==0)
84 devType= DeviceTypescxx . . $ DeviceTypes#::Commcxx . . $ DeviceTypes#Comm.;
85 else if (strncmp(line->devTypecxx . . $ DynDeviceLine#devType.,"QETH",4)==0)
86 devType= DeviceTypescxx . . $ DeviceTypes#::Commcxx . . $ DeviceTypes#Comm.;
87 else if (strncmp(line->devTypecxx . . $ DynDeviceLine#devType.,"RDR ",4)==0)
88 devType= DeviceTypescxx . . $ DeviceTypes#::CardReadercxx . . $ DeviceTypes#CardReader.;
89 else if (strncmp(line->devTypecxx . . $ DynDeviceLine#devType.,"PCH ",4)==0)
90 devType= DeviceTypescxx . . $ DeviceTypes#::CardReadercxx . . $ DeviceTypes#CardReader.;
91 else if (strncmp(line->devTypecxx . . $ DynDeviceLine#devType.,"PRT ",4)==0)
92 devType= DeviceTypescxx . . $ DeviceTypes#::Printercxx . . $ DeviceTypes#Printer.;
93 else if (strncmp(line->devTypecxx . . $ DynDeviceLine#devType.,"DSP ",4)==0)
94 devType= DeviceTypescxx . . $ DeviceTypes#::Terminalcxx . . $ DeviceTypes#Terminal.;
95 else if (strncmp(line->devTypecxx . . $ DynDeviceLine#devType.,"TAPE",4)==0)
96 devType= DeviceTypescxx . . $ DeviceTypes#::Tapecxx . . $ DeviceTypes#Tape.;
97 else if (strncmp(line->devTypecxx . . $ DynDeviceLine#devType.,"CON",3)==0)
98 devType= DeviceTypescxx . . $ DeviceTypes#::Consolecxx . . $ DeviceTypes#Console.;
99
100 devNo = strtolcxx . . $ strtol(44bbb87609b212fc).(line->devNocxx . . $ DynDeviceLine#devNo., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 16);
101 {
102 VisualizedDeviceEntrycxx . . $ VisualizedDeviceEntry# deviceEntryPtrcxx . . $ VisualizedDeviceEntry#VisualizedDeviceEntry(8e755de9e6fc2093).(devNo, devType, statusLinecxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..datacxx . . $ QByteArray#data(a9f41ea0e82d88cf).());
103 stdcxx . . $ std/::paircxx . . $ std/pair#<int,VisualizedDeviceEntrycxx . . $ VisualizedDeviceEntry#> toinsertcxx . . $ std/pair#pair(14d64bafa7379ebc).(devNo, deviceEntryPtr);
104 mDevicescxx . . $ DevicesPane#mDevices..insertcxx . . $ std/map#insert(92111883a3599ede).(toinsert);
105 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5, "to be added:" << statusLine.data() << " " << (devNo !=0 ? "added" : "NOT ADDED")) ;
106 if (devNo !=0) deviceAdded = true; // after disconnect and attach, herculess starts sending DEVA instead of DEVC
107 }
108
109 break;
110 case('C'):
111 devNo = strtolcxx . . $ strtol(44bbb87609b212fc).(line->devNocxx . . $ DynDeviceLine#devNo., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 16);
112 if (mDevicescxx . . $ DevicesPane#mDevices..findcxx . . $ std/map#find(36f8d56706583706).(devNo) !=cxx . . $ std/`operator!=`(84f83906d8995b82). mDevicescxx . . $ DevicesPane#mDevices..endcxx . . $ std/map#end(fbe2f8c57595edf).())
113 {
114 deviceEntry =cxx . . $ VisualizedDeviceEntry#`operator=`(27409f287f5ccd2f). mDevicescxx . . $ DevicesPane#mDevices.[cxx . . $ std/map#`operator[]`(bbd415b616967878).devNo];
115
116 if (deviceEntry.getItemcxx . . $ VisualizedDeviceEntry#getItem(25c2a1f916e09d5f).() != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
117 {
118 if (line->statusBytescxx . . $ DynDeviceLine#statusBytes.[1] == '1')
119 {
120 deviceEntry.getItemcxx . . $ VisualizedDeviceEntry#getItem(25c2a1f916e09d5f).()->setIconcxx . . $ QStandardItem#setIcon(71dcdac178620ed6).(*mYellowHighIconcxx . . $ DevicesPane#mYellowHighIcon.);
121 }
122 else
123 {
124 deviceEntry.getItemcxx . . $ VisualizedDeviceEntry#getItem(25c2a1f916e09d5f).()->setIconcxx . . $ QStandardItem#setIcon(71dcdac178620ed6).(*mYellowIconcxx . . $ DevicesPane#mYellowIcon.);
125 }
126 }
127 }
128 else
129 {
130 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(1,"sending restart");
131 mDevicescxx . . $ DevicesPane#mDevices..clearcxx . . $ std/map#clear(49f6e7a06ebc5aa8).();
132 //emit restartDevices();
133 }
134 break;
135 case('D'):
136 {
137 devNo = strtolcxx . . $ strtol(44bbb87609b212fc).(line->devNocxx . . $ DynDeviceLine#devNo., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 16);
138 stdcxx . . $ std/::mapcxx . . $ std/map# <int,VisualizedDeviceEntry>::iteratorcxx . . $ std/map#iterator# it = mDevicescxx . . $ DevicesPane#mDevices..findcxx . . $ std/map#find(36f8d56706583706).(devNo);
139 if (it !=cxx . . $ std/`operator!=`(84f83906d8995b82). mDevicescxx . . $ DevicesPane#mDevices..endcxx . . $ std/map#end(fbe2f8c57595edf).())
140 {
141 mDevicescxx . . $ DevicesPane#mDevices..erasecxx . . $ std/map#erase(9238c2f1608b9ba6).(it);
142 deviceAdded = true;
143 }
144 }
145 break;
146 default:
147 break;
148 }
149 }
150
151 if (deviceAdded)
152 {
153 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(3,mDevices.size() << " Devices.");
154 if (mModelcxx . . $ DevicesPane#mModel. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) mModelcxx . . $ DevicesPane#mModel. = new QStandardItemModelcxx . . $ QStandardItemModel#QStandardItemModel(749de1b6ae65bddd).();
155 mModelcxx . . $ DevicesPane#mModel.->clearcxx . . $ QStandardItemModel#clear(49f6e7a06ebc5aa8).();
156 QStandardItemcxx . . $ QStandardItem# *parentItem = mModelcxx . . $ DevicesPane#mModel.->invisibleRootItemcxx . . $ QStandardItemModel#invisibleRootItem(c0cc2a7c3bad46fb).();
157 int currLine = 0;
158
159 stdcxx . . $ std/::mapcxx . . $ std/map#<int, VisualizedDeviceEntry>::iteratorcxx . . $ std/map#iterator# itcxx . . $ std/_Rb_tree_iterator#_Rb_tree_iterator(49f6e7a06ebc5aa8).;
160 for (int curDev=0; curDev<=DeviceTypescxx . . $ DeviceTypes#::Commcxx . . $ DeviceTypes#Comm.; curDev++ )
161 {
162 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5,"curDev:" << curDev);
163 bool titleDevAdded = false;
164 for (it =cxx . . $ std/_Rb_tree_iterator#`operator=`(f470332fbadc85f2). mDevicescxx . . $ DevicesPane#mDevices..begincxx . . $ std/map#begin(fbe2f8c57595edf).(); it !=cxx . . $ std/`operator!=`(84f83906d8995b82). mDevicescxx . . $ DevicesPane#mDevices..endcxx . . $ std/map#end(fbe2f8c57595edf).(); it++cxx . . $ std/_Rb_tree_iterator#operator++(7587129c02834edc).)
165 {
166 VisualizedDeviceEntrycxx . . $ VisualizedDeviceEntry#& ent = it->cxx . . $ std/_Rb_tree_iterator#`operator->`(5a2a78a048fb49a8).secondcxx . . $ std/pair#second.;
167 if (ent.getTypecxx . . $ VisualizedDeviceEntry#getType(a0a69dd96b2ea7a3).() == curDev)
168 {
169 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5,"ent:" << ent.getDeviceNumber()<<" "<<DeviceTypes::instance().getName(ent.getType()));
170 if (!titleDevAdded)
171 {
172 stdcxx . . $ std/::stringcxx . . $ std/string# iconPath = Environmentcxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f).::getIconsPathcxx . . $ Environment#getIconsPath(75da78375bc7a3dd).() +cxx . . $ std/operator+(40fc1db9226233c6).
173 DeviceTypescxx . . $ DeviceTypes#::instancecxx . . $ DeviceTypes#instance(c065a99473e12f8e).().getNamecxx . . $ DeviceTypes#getName(22828f0427237af0).(ent.getTypecxx . . $ VisualizedDeviceEntry#getType(a0a69dd96b2ea7a3).());
174 const QIconcxx . . $ QIcon#& ic = DeviceTypescxx . . $ DeviceTypes#::instancecxx . . $ DeviceTypes#instance(c065a99473e12f8e).().getIconcxx . . $ DeviceTypes#getIcon(bb7825627a920bdb).(ent.getTypecxx . . $ VisualizedDeviceEntry#getType(a0a69dd96b2ea7a3).());
175 QStandardItemcxx . . $ QStandardItem# *item = new QStandardItemcxx . . $ QStandardItem#(ic, DeviceTypescxx . . $ QString#QString(85c52e162fed56f9).::instancecxx . . $ DeviceTypes#instance(c065a99473e12f8e).().getNamecxx . . $ DeviceTypes#getName(22828f0427237af0).(ent.getTypecxx . . $ VisualizedDeviceEntry#getType(a0a69dd96b2ea7a3).()));
176 item->setEditablecxx . . $ QStandardItem#setEditable(b45ddcbc8423892c).(false);
177 parentItem->appendRowcxx . . $ QStandardItem#appendRow(317b3a1fa3b6b2ce).(item);
178 currLine++;
179 titleDevAdded=true;
180 }
181 char ss[255];
182 stdcxx . . $ std/::stringcxx . . $ std/string# def = entcxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f)..getDefinitioncxx . . $ VisualizedDeviceEntry#getDefinition(efd28698952f529a).();
183 size_t pos=def.findcxx . . $ std/__cxx11/basic_string#find(625b4b37461b5dfd).('\r');
184 while (pos != stdcxx . . $ std/::stringcxx . . $ std/string#::nposcxx . . $ std/__cxx11/basic_string#npos.)
185 {
186 def.replacecxx . . $ std/__cxx11/basic_string#replace(5a2f4129e55e86e6).(pos,def.sizecxx . . $ std/__cxx11/basic_string#size(48278e53df7b52a5).()," ");
187 pos = def.findcxx . . $ std/__cxx11/basic_string#find(625b4b37461b5dfd).('\r');
188 }
189 sprintf(ss,"%4.4X %s",ent.getDeviceNumbercxx . . $ VisualizedDeviceEntry#getDeviceNumber(b126dc7c1de90089).(), def.substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(25).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).());
190 if (ent.getIconcxx . . $ VisualizedDeviceEntry#getIcon(b0cfac7c344a0278).() == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
191 {
192 ent.setIconcxx . . $ VisualizedDeviceEntry#setIcon(7fb35e6139239c1e).(mYellowIconcxx . . $ DevicesPane#mYellowIcon.);
193 }
194 ent.setItemcxx . . $ VisualizedDeviceEntry#setItem(317b3a1fa3b6b2ce).(new QStandardItemcxx . . $ QStandardItem#(*ent.getIconcxx . . $ VisualizedDeviceEntry#getIcon(b0cfac7c344a0278).(), sscxx . . $ QString#QString(85c52e162fed56f9).));
195 ent.getItemcxx . . $ VisualizedDeviceEntry#getItem(25c2a1f916e09d5f).()->setEditablecxx . . $ QStandardItem#setEditable(b45ddcbc8423892c).(false);
196 stdcxx . . $ std/::stringcxx . . $ std/string# ttcxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f). = entcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..getDefinitioncxx . . $ VisualizedDeviceEntry#getDefinition(efd28698952f529a).().substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(10,10).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).() ;
197 tt +=cxx . . $ std/__cxx11/basic_string#`operator+=`(978ca1133b5f6e74). ent.getDefinitioncxx . . $ VisualizedDeviceEntry#getDefinition(efd28698952f529a).().substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(25).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).();
198 ent.getItemcxx . . $ VisualizedDeviceEntry#getItem(25c2a1f916e09d5f).()->setToolTipcxx . . $ QStandardItem#setToolTip(3520e46b33348bf6).(ttcxx . . $ QString#QString(85c52e162fed56f9)..c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).());
199 ent.setLineNumbercxx . . $ VisualizedDeviceEntry#setLineNumber(d4f767463ce0a6b3).(currLine++);
200 parentItem->appendRowcxx . . $ QStandardItem#appendRow(317b3a1fa3b6b2ce).(ent.getItemcxx . . $ VisualizedDeviceEntry#getItem(25c2a1f916e09d5f).());
201 }
202 }
203 }
204 if (mListViewcxx . . $ DevicesPane#mListView. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
205 {
206 mListViewcxx . . $ DevicesPane#mListView.->closecxx . . $ QWidget#close(c9857a73d68e59ba).();
207 delete mListViewcxx . . $ DevicesPane#mListView.;
208 mListViewcxx . . $ DevicesPane#mListView. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
209 }
210 mListViewcxx . . $ DevicesPane#mListView. = new DeviceListViewcxx . . $ DeviceListView#(this);
211 mListViewcxx . . $ DevicesPane#mListView.->setModelcxx . . $ QAbstractItemView#setModel(c6e1f1e42522b780).(mModelcxx . . $ DevicesPane#mModel.);
212 mListViewcxx . . $ DevicesPane#mListView.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(true);
213 adjustSizecxx . . $ DevicesPane#adjustSize(49f6e7a06ebc5aa8).();
214 connectcxx . . $ QObject#connect(158df1d9a01a3410).(mListViewcxx . . $ DevicesPane#mListView., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(pressed(QModelIndex)),this,SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(mousePressed(QModelIndex)));
215 connectcxx . . $ QObject#connect(158df1d9a01a3410).(mListViewcxx . . $ DevicesPane#mListView., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(deviceClick(QMouseEvent *)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(devicesClick(QMouseEvent *)));
216 return true;
217 }
218 else
219 {
220 return false;
221 }
222 }
223
224 void DevicesPanecxx . . $ DevicesPane#::mousePressedcxx . . $ DevicesPane#mousePressed(58b98458fece0954).(const QModelIndexcxx . . $ QModelIndex# index)
225 {
226 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(1,"pressed " << index.row());
227 mClickRowcxx . . $ DeviceMenuProcessor#mClickRow. = index.rowcxx . . $ QModelIndex#row(455f465bc33b4cdf).();
228 }
229
230 void DevicesPanecxx . . $ DevicesPane#::adjustSizecxx . . $ DevicesPane#adjustSize(49f6e7a06ebc5aa8).()
231 {
232 if (mListViewcxx . . $ DevicesPane#mListView. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
233 mListViewcxx . . $ DevicesPane#mListView.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(0,0,this->sizecxx . . $ QWidget#size(4b3b776e5ee2b367).().widthcxx . . $ QSize#width(455f465bc33b4cdf).()-10,this->sizecxx . . $ QWidget#size(4b3b776e5ee2b367).().heightcxx . . $ QSize#height(455f465bc33b4cdf).()-10);
234 }
235
236 void DevicesPanecxx . . $ DevicesPane#::resizeEventcxx . . $ DevicesPane#resizeEvent(eeeec21cf8dc0387). ( QResizeEventcxx . . $ QResizeEvent# * )
237 {
238 adjustSizecxx . . $ DevicesPane#adjustSize(49f6e7a06ebc5aa8).();
239 }
240
241 QSizecxx . . $ QSize# DevicesPanecxx . . $ DevicesPane#::sizeHintcxx . . $ DevicesPane#sizeHint(4b3b776e5ee2b367).() const
242 {
243 return QSizecxx . . $ QSize#QSize(3e454b8ccf442868).(160, 100);
244 }
245
246 void DevicesPanecxx . . $ DevicesPane#::clearcxx . . $ DevicesPane#clear(49f6e7a06ebc5aa8).()
247 {
248 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(1,"DevicesPane clear");
249 mDevicescxx . . $ DevicesPane#mDevices..clearcxx . . $ std/map#clear(49f6e7a06ebc5aa8).();
250 if (mModelcxx . . $ DevicesPane#mModel. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
251 mModelcxx . . $ DevicesPane#mModel.->clearcxx . . $ QStandardItemModel#clear(49f6e7a06ebc5aa8).();
252 if (mListViewcxx . . $ DevicesPane#mListView. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
253 return;
254 adjustSizecxx . . $ DevicesPane#adjustSize(49f6e7a06ebc5aa8).();
255 }
256
257 bool DevicesPanecxx . . $ DevicesPane#::isRealDevcxx . . $ DevicesPane#isRealDev(83c267b20bac841a).(int lineNumber)
258 {
259 stdcxx . . $ std/::mapcxx . . $ std/map#<int, VisualizedDeviceEntry>::iteratorcxx . . $ std/map#iterator# itcxx . . $ std/_Rb_tree_iterator#_Rb_tree_iterator(49f6e7a06ebc5aa8).;
260 for (it =cxx . . $ std/_Rb_tree_iterator#`operator=`(f470332fbadc85f2). mDevicescxx . . $ DevicesPane#mDevices..begincxx . . $ std/map#begin(fbe2f8c57595edf).(); it !=cxx . . $ std/`operator!=`(84f83906d8995b82). mDevicescxx . . $ DevicesPane#mDevices..endcxx . . $ std/map#end(fbe2f8c57595edf).(); it++cxx . . $ std/_Rb_tree_iterator#operator++(7587129c02834edc).)
261 {
262 VisualizedDeviceEntrycxx . . $ VisualizedDeviceEntry#& ent = it->cxx . . $ std/_Rb_tree_iterator#`operator->`(5a2a78a048fb49a8).secondcxx . . $ std/pair#second.;
263 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5,"compare: " << ent.getLineNumber() << " with " << lineNumber);
264 if (ent.getLineNumbercxx . . $ VisualizedDeviceEntry#getLineNumber(b126dc7c1de90089).() == lineNumber) return true;
265 }
266 return false;
267 }
268
269 DeviceTypescxx . . $ DeviceTypes#::Typecxx . . $ DeviceTypes#Type# DevicesPanecxx . . $ DevicesPane#::getTypecxx . . $ DevicesPane#getType(cc50a7541878da72).(int lineNumber)
270 {
271 stdcxx . . $ std/::mapcxx . . $ std/map#<int, VisualizedDeviceEntry>::iteratorcxx . . $ std/map#iterator# itcxx . . $ std/_Rb_tree_iterator#_Rb_tree_iterator(49f6e7a06ebc5aa8).;
272 for (it =cxx . . $ std/_Rb_tree_iterator#`operator=`(f470332fbadc85f2). mDevicescxx . . $ DevicesPane#mDevices..begincxx . . $ std/map#begin(fbe2f8c57595edf).(); it !=cxx . . $ std/`operator!=`(84f83906d8995b82). mDevicescxx . . $ DevicesPane#mDevices..endcxx . . $ std/map#end(fbe2f8c57595edf).(); it++cxx . . $ std/_Rb_tree_iterator#operator++(7587129c02834edc).)
273 {
274 VisualizedDeviceEntrycxx . . $ VisualizedDeviceEntry#& ent = it->cxx . . $ std/_Rb_tree_iterator#`operator->`(5a2a78a048fb49a8).secondcxx . . $ std/pair#second.;
275 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5,"compare: " << ent.getLineNumber() << " with " << lineNumber);
276 if (ent.getLineNumbercxx . . $ VisualizedDeviceEntry#getLineNumber(b126dc7c1de90089).() == lineNumber) return ent.getTypecxx . . $ VisualizedDeviceEntry#getType(a0a69dd96b2ea7a3).();
277 }
278 return DeviceTypescxx . . $ DeviceTypes#::Othercxx . . $ DeviceTypes#Other.;
279 }
280
281 bool DevicesPanecxx . . $ DevicesPane#::canAddSYSGcxx . . $ DevicesPane#canAddSYSG(c9857a73d68e59ba).()
282 {
283 return false;
284 }
285
286 bool DevicesPanecxx . . $ DevicesPane#::realDevicecxx . . $ DevicesPane#realDevice(c9857a73d68e59ba).()
287 {
288 return (isRealDevcxx . . $ DevicesPane#isRealDev(83c267b20bac841a).(mClickRowcxx . . $ DeviceMenuProcessor#mClickRow.));
289 }
290
291 void DevicesPanecxx . . $ DevicesPane#::doAddDevicecxx . . $ DevicesPane#doAddDevice(b45ddcbc8423892c).(bool)
292 {
293 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(2,mCandidateLine->getLine());
294 stdcxx . . $ std/::stringcxx . . $ std/string# command = mCandidateLinecxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5).->getLinecxx . . $ ConfigLine#getLine(f4fff0029955a25f).();
295 if (command.lengthcxx . . $ std/__cxx11/basic_string#length(48278e53df7b52a5).() == 0) return;
296 command =cxx . . $ std/__cxx11/basic_string#`operator=`(706c69e8c742c906). "attach " +cxx . . $ std/operator+(42c652dfebe55ad7). command ;
297
298 mMainWindowcxx . . $ DevicesPane#mMainWindow.->issueCommandcxx . . $ MainWindow#issueCommand(7c222eea44a24d43).(command);
299 mClickRowcxx . . $ DeviceMenuProcessor#mClickRow. = -1;
300 }
301
302 void DevicesPanecxx . . $ DevicesPane#::menuRenamecxx . . $ DevicesPane#menuRename(49f6e7a06ebc5aa8).()
303 {
304 stdcxx . . $ std/::mapcxx . . $ std/map#<int, VisualizedDeviceEntry>::iteratorcxx . . $ std/map#iterator# it = mDevicescxx . . $ DevicesPane#mDevices..begincxx . . $ std/map#begin(fbe2f8c57595edf).();
305 while(it !=cxx . . $ std/`operator!=`(84f83906d8995b82). mDevicescxx . . $ DevicesPane#mDevices..endcxx . . $ std/map#end(fbe2f8c57595edf).())
306 {
307 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(2, "rename " << mLastClick << " " << it->second.getDeviceNumber()
308 << " " << it->second.getLineNumber());
309 if (it->cxx . . $ std/_Rb_tree_iterator#`operator->`(5a2a78a048fb49a8).secondcxx . . $ std/pair#second..getLineNumbercxx . . $ VisualizedDeviceEntry#getLineNumber(b126dc7c1de90089).() == mLastClickcxx . . $ DeviceMenuProcessor#mLastClick.)
310 {
311 int devno = it->cxx . . $ std/_Rb_tree_iterator#`operator->`(5a2a78a048fb49a8).secondcxx . . $ std/pair#second..getDeviceNumbercxx . . $ VisualizedDeviceEntry#getDeviceNumber(b126dc7c1de90089).();
312 mRenameDlgcxx . . $ DevicesPane#mRenameDlg. = new DevicesRenamecxx . . $ DevicesRename#DevicesRename(5c6be43de4524796).(devno, getNextDevcxx . . $ DevicesPane#getNextDev(3d2d665ba51516).(it), this);
313 connectcxx . . $ QObject#connect(158df1d9a01a3410). (mRenameDlgcxx . . $ DevicesPane#mRenameDlg.,SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(accepted(QString, QString)),this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(doRename(QString, QString)));
314 connectcxx . . $ QObject#connect(158df1d9a01a3410). (mRenameDlgcxx . . $ DevicesPane#mRenameDlg.,SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(rejected()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(rejected()));
315 mRenameDlgcxx . . $ DevicesPane#mRenameDlg.->execcxx . . $ QDialog#exec(b126dc7c1de90089).();
316 break;
317 }
318 it++cxx . . $ std/_Rb_tree_iterator#operator++(7587129c02834edc).;
319 }
320 mClickRowcxx . . $ DeviceMenuProcessor#mClickRow.=-1;
321 }
322
323 void DevicesPanecxx . . $ DevicesPane#::doRenamecxx . . $ DevicesPane#doRename(3458fe3960d5051).(QStringcxx . . $ QString# oldDevNum, QStringcxx . . $ QString# newDevNum)
324 {
325 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(2, "rename " << oldDevNum.toStdString() << " " << newDevNum.toStdString());
326 mOldDevNumcxx . . $ DevicesPane#mOldDevNum. = ConfigurationEditorcxx . . $ ConfigurationEditor#::parseNumcxx . . $ ConfigurationEditor#parseNum(7b1020165ab78f0a).(oldDevNum.toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(), 16);
327 stdcxx . . $ std/::stringstreamcxx . . $ std/stringstream# commandcxx . . $ std/__cxx11/basic_stringstream#basic_stringstream(49f6e7a06ebc5aa8).;
328 command <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "define " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). oldDevNum.toStdStringcxx . . $ QString#toStdString(219584694fe2b248).() <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). newDevNum.toStdStringcxx . . $ QString#toStdString(219584694fe2b248).() ;
329 mMainWindowcxx . . $ DevicesPane#mMainWindow.->issueCommandcxx . . $ MainWindow#issueCommand(7c222eea44a24d43).(command.strcxx . . $ std/__cxx11/basic_stringstream#str(d33e1a6fd36255f7).());
330 disconnectcxx . . $ QObject#disconnect(cc30ff19c637f8ed).(mRenameDlgcxx . . $ DevicesPane#mRenameDlg.,0,0,0);
331 mRenameDlgcxx . . $ DevicesPane#mRenameDlg.->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).();
332 }
333
334 int DevicesPanecxx . . $ DevicesPane#::getNextDevcxx . . $ DevicesPane#getNextDev(3d2d665ba51516).(stdcxx . . $ std/::mapcxx . . $ std/map#<int, VisualizedDeviceEntry>::iteratorcxx . . $ std/map#iterator# it) const
335 {
336 int ret = it->cxx . . $ std/_Rb_tree_iterator#`operator->`(5a2a78a048fb49a8).secondcxx . . $ std/pair#second..getDeviceNumbercxx . . $ VisualizedDeviceEntry#getDeviceNumber(b126dc7c1de90089).()+1;
337 ++cxx . . $ std/_Rb_tree_iterator#operator++(9461e5518c11c498).it;
338 while (itcxx . . $ std/_Rb_tree_const_iterator#_Rb_tree_const_iterator(d7e6c315c70879e2). !=cxx . . $ std/`operator!=`(7e1308a0738ea758). mDevicescxx . . $ DevicesPane#mDevices..endcxx . . $ std/map#end(646659518938a4d6).())
339 {
340 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5,"examining ret=" << ret << " to:" << it->second.getDeviceNumber());
341 if (it->cxx . . $ std/_Rb_tree_iterator#`operator->`(5a2a78a048fb49a8).secondcxx . . $ std/pair#second..getDeviceNumbercxx . . $ VisualizedDeviceEntry#getDeviceNumber(b126dc7c1de90089).() != ret)
342 return ret;
343 else
344 ret = it->cxx . . $ std/_Rb_tree_iterator#`operator->`(5a2a78a048fb49a8).secondcxx . . $ std/pair#second..getDeviceNumbercxx . . $ VisualizedDeviceEntry#getDeviceNumber(b126dc7c1de90089).()+1;
345 ++cxx . . $ std/_Rb_tree_iterator#operator++(9461e5518c11c498).it;
346 }
347 return ret;
348 }
349
350 void DevicesPanecxx . . $ DevicesPane#::rejectedcxx . . $ DevicesPane#rejected(49f6e7a06ebc5aa8).()
351 {
352 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(3, "rejected");
353 disconnectcxx . . $ QObject#disconnect(cc30ff19c637f8ed).(mRenameDlgcxx . . $ DevicesPane#mRenameDlg.,0,0,0);
354 mRenameDlgcxx . . $ DevicesPane#mRenameDlg.->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).();
355 }
356
357 void DevicesPanecxx . . $ DevicesPane#::menuDeletecxx . . $ DevicesPane#menuDelete(49f6e7a06ebc5aa8).()
358 {
359 VisualizedDeviceEntrycxx . . $ VisualizedDeviceEntry# * entry = getDeviceEntrycxx . . $ DevicesPane#getDeviceEntry(90a891db17732ed7).();
360 if (entry != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
361 {
362 stdcxx . . $ std/::stringstreamcxx . . $ std/stringstream# commandcxx . . $ std/__cxx11/basic_stringstream#basic_stringstream(49f6e7a06ebc5aa8).;
363 command <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "detach " <<cxx . . $ std/basic_ostream#`operator<<`(d90e0e305b0e25c2). stdcxx . . $ std/::hexcxx . . $ std/hex(cf36cc481190cd1f). <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). entry->getDeviceNumbercxx . . $ VisualizedDeviceEntry#getDeviceNumber(b126dc7c1de90089).() ;
364 mMainWindowcxx . . $ DevicesPane#mMainWindow.->issueCommandcxx . . $ MainWindow#issueCommand(7c222eea44a24d43).(command.strcxx . . $ std/__cxx11/basic_stringstream#str(d33e1a6fd36255f7).());
365 }
366 mClickRowcxx . . $ DeviceMenuProcessor#mClickRow.=-1;
367 return;
368 }
369
370 void DevicesPanecxx . . $ DevicesPane#::menuInterruptcxx . . $ DevicesPane#menuInterrupt(49f6e7a06ebc5aa8).()
371 {
372 VisualizedDeviceEntrycxx . . $ VisualizedDeviceEntry# * entry = getDeviceEntrycxx . . $ DevicesPane#getDeviceEntry(90a891db17732ed7).();
373 if (entry != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
374 {
375 stdcxx . . $ std/::stringstreamcxx . . $ std/stringstream# commandcxx . . $ std/__cxx11/basic_stringstream#basic_stringstream(49f6e7a06ebc5aa8).;
376 command <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "i " <<cxx . . $ std/basic_ostream#`operator<<`(d90e0e305b0e25c2). stdcxx . . $ std/::hexcxx . . $ std/hex(cf36cc481190cd1f). <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). entry->getDeviceNumbercxx . . $ VisualizedDeviceEntry#getDeviceNumber(b126dc7c1de90089).() ;
377 mMainWindowcxx . . $ DevicesPane#mMainWindow.->issueCommandcxx . . $ MainWindow#issueCommand(7c222eea44a24d43).(command.strcxx . . $ std/__cxx11/basic_stringstream#str(d33e1a6fd36255f7).());
378 }
379 mClickRowcxx . . $ DeviceMenuProcessor#mClickRow.=-1;
380 return;
381 }
382
383 void DevicesPanecxx . . $ DevicesPane#::menuStatuscxx . . $ DevicesPane#menuStatus(49f6e7a06ebc5aa8).()
384 {
385 VisualizedDeviceEntrycxx . . $ VisualizedDeviceEntry# * entry = getDeviceEntrycxx . . $ DevicesPane#getDeviceEntry(90a891db17732ed7).();
386 if (entry != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
387 {
388 stdcxx . . $ std/::stringstreamcxx . . $ std/stringstream# commandcxx . . $ std/__cxx11/basic_stringstream#basic_stringstream(49f6e7a06ebc5aa8).;
389 command <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "ds " <<cxx . . $ std/basic_ostream#`operator<<`(d90e0e305b0e25c2). stdcxx . . $ std/::hexcxx . . $ std/hex(cf36cc481190cd1f). <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). entry->getDeviceNumbercxx . . $ VisualizedDeviceEntry#getDeviceNumber(b126dc7c1de90089).() ;
390 mMainWindowcxx . . $ DevicesPane#mMainWindow.->issueCommandcxx . . $ MainWindow#issueCommand(7c222eea44a24d43).(command.strcxx . . $ std/__cxx11/basic_stringstream#str(d33e1a6fd36255f7).());
391 }
392 mClickRowcxx . . $ DeviceMenuProcessor#mClickRow.=-1;
393 return;
394 }
395
396 bool DevicesPanecxx . . $ DevicesPane#::tracedcxx . . $ DevicesPane#traced(c9857a73d68e59ba).()
397 {
398 VisualizedDeviceEntrycxx . . $ VisualizedDeviceEntry# * entry = getDeviceEntrycxx . . $ DevicesPane#getDeviceEntry(90a891db17732ed7).();
399 if (entry != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
400 {
401 return entry->tracedcxx . . $ VisualizedDeviceEntry#traced(c9857a73d68e59ba).();
402 }
403 return false;
404 }
405
406
407 void DevicesPanecxx . . $ DevicesPane#::menuTraceCCWcxx . . $ DevicesPane#menuTraceCCW(49f6e7a06ebc5aa8).()
408 {
409 VisualizedDeviceEntrycxx . . $ VisualizedDeviceEntry# * entry = getDeviceEntrycxx . . $ DevicesPane#getDeviceEntry(90a891db17732ed7).();
410 if (entry != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
411 {
412 stdcxx . . $ std/::stringstreamcxx . . $ std/stringstream# commandcxx . . $ std/__cxx11/basic_stringstream#basic_stringstream(49f6e7a06ebc5aa8).;
413 command <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "t" <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). (entry->tracedcxx . . $ VisualizedDeviceEntry#traced(c9857a73d68e59ba).() ? "- " : "+ ") <<cxx . . $ std/basic_ostream#`operator<<`(d90e0e305b0e25c2). stdcxx . . $ std/::hexcxx . . $ std/hex(cf36cc481190cd1f). <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). entry->getDeviceNumbercxx . . $ VisualizedDeviceEntry#getDeviceNumber(b126dc7c1de90089).() ;
414 mMainWindowcxx . . $ DevicesPane#mMainWindow.->issueCommandcxx . . $ MainWindow#issueCommand(7c222eea44a24d43).(command.strcxx . . $ std/__cxx11/basic_stringstream#str(d33e1a6fd36255f7).());
415 entry->setTracedcxx . . $ VisualizedDeviceEntry#setTraced(b45ddcbc8423892c).(!entry->tracedcxx . . $ VisualizedDeviceEntry#traced(c9857a73d68e59ba).());
416 }
417 mClickRowcxx . . $ DeviceMenuProcessor#mClickRow.=-1;
418 return;
419 }
420
421 bool DevicesPanecxx . . $ DevicesPane#::hasConfigcxx . . $ DevicesPane#hasConfig(c9857a73d68e59ba).()
422 {
423 VisualizedDeviceEntrycxx . . $ VisualizedDeviceEntry# * entry = getDeviceEntrycxx . . $ DevicesPane#getDeviceEntry(90a891db17732ed7).();
424 if (entry == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) return false;
425 QStringcxx . . $ QString# devNo = textFromValuecxx . . $ QString#QString(e1217c004a86c950).(entry->getDeviceNumbercxx . . $ VisualizedDeviceEntry#getDeviceNumber(b126dc7c1de90089).());
426 mCandidateLinecxx . . $ DeviceMenuProcessor#mCandidateLine. = mMainWindowcxx . . $ DevicesPane#mMainWindow.->getConfigurationFilecxx . . $ MainWindow#getConfigurationFile(64b32935410def52).()->getDevicecxx . . $ ConfigFile#getDevice(73336e9f92c2174d).(devNo.toStdStringcxx . . $ QString#toStdString(219584694fe2b248).());
427 return mCandidateLinecxx . . $ DeviceMenuProcessor#mCandidateLine.!= NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
428 }
429
430 void DevicesPanecxx . . $ DevicesPane#::menuPropertiescxx . . $ DevicesPane#menuProperties(49f6e7a06ebc5aa8).()
431 {
432 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(3,"line=" << mCandidateLine->getLine());
433
434 GenericDevicePropertiescxx . . $ GenericDeviceProperties# * mProp = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
435
436 try
437 {
438 mProp = GenericDevicePropertiescxx . . $ GenericDeviceProperties#::classFactorycxx . . $ GenericDeviceProperties#classFactory(a94d470fa14a4f70).(*mCandidateLinecxx . . $ DeviceMenuProcessor#mCandidateLine.,
439 this,
440 mCandidateLinecxx . . $ DeviceMenuProcessor#mCandidateLine.->getDeviceTypecxx . . $ DeviceConfigLine#getDeviceType(2700e08780fa2d6b).());
441 }
442 catch (...)
443 {
444 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(2, "exception caught in class factory (add)");
445 }
446
447 connectcxx . . $ QObject#connect(158df1d9a01a3410).(mProp, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(updateLine(bool)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(updateDevice(bool)));
448 mProp->setVisiblecxx . . $ QDialog#setVisible(b45ddcbc8423892c).(true);
449 mClickRowcxx . . $ DeviceMenuProcessor#mClickRow.=-1;
450 }
451
452 void DevicesPanecxx . . $ DevicesPane#::updateDevicecxx . . $ DevicesPane#updateDevice(b45ddcbc8423892c).(bool done)
453 {
454 if (!done || mCandidateLinecxx . . $ DeviceMenuProcessor#mCandidateLine. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
455 {
456 mClickRowcxx . . $ DeviceMenuProcessor#mClickRow. = -1;
457 return;
458 }
459 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5,mCandidateLine->getLine());
460 stdcxx . . $ std/::stringcxx . . $ std/string# command = mCandidateLinecxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5).->getLinecxx . . $ ConfigLine#getLine(f4fff0029955a25f).();
461 command =cxx . . $ std/__cxx11/basic_string#`operator=`(706c69e8c742c906). mCandidateLinecxx . . $ DeviceMenuProcessor#mCandidateLine.->getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(0) +cxx . . $ std/operator+(900ec9581c410ad9). " " +cxx . . $ std/operator+(aa1c00e85b87da6b). mCandidateLinecxx . . $ DeviceMenuProcessor#mCandidateLine.->getMultiTokencxx . . $ ConfigLine#getMultiToken(8a983bf2cc533e5e).(2, 0);
462 if (command.lengthcxx . . $ std/__cxx11/basic_string#length(48278e53df7b52a5).() == 0) return;
463 command =cxx . . $ std/__cxx11/basic_string#`operator=`(706c69e8c742c906). "devinit " +cxx . . $ std/operator+(42c652dfebe55ad7). command ;
464
465 mMainWindowcxx . . $ DevicesPane#mMainWindow.->issueCommandcxx . . $ MainWindow#issueCommand(7c222eea44a24d43).(command);
466 mClickRowcxx . . $ DeviceMenuProcessor#mClickRow. = -1;
467 }
468
469 void DevicesPanecxx . . $ DevicesPane#::doLoadTapecxx . . $ DevicesPane#doLoadTape(4c89b026053e4d32).(QStringcxx . . $ QString#& tapeFileName)
470 {
471 VisualizedDeviceEntrycxx . . $ VisualizedDeviceEntry# * entry = getDeviceEntrycxx . . $ DevicesPane#getDeviceEntry(90a891db17732ed7).();
472 if (entry != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
473 {
474 stdcxx . . $ std/::stringstreamcxx . . $ std/stringstream# commandcxx . . $ std/__cxx11/basic_stringstream#basic_stringstream(49f6e7a06ebc5aa8).;
475 command <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "devinit " <<cxx . . $ std/basic_ostream#`operator<<`(d90e0e305b0e25c2). stdcxx . . $ std/::hexcxx . . $ std/hex(cf36cc481190cd1f). <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). entry->getDeviceNumbercxx . . $ VisualizedDeviceEntry#getDeviceNumber(b126dc7c1de90089).() <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ std/`operator<<`(88df5bef833f7f83).tapeFileName.toStdStringcxx . . $ QString#toStdString(219584694fe2b248).() ;
476
477 mMainWindowcxx . . $ DevicesPane#mMainWindow.->issueCommandcxx . . $ MainWindow#issueCommand(7c222eea44a24d43).(command.strcxx . . $ std/__cxx11/basic_stringstream#str(d33e1a6fd36255f7).());
478 }
479 mClickRowcxx . . $ DeviceMenuProcessor#mClickRow.=-1;
480 return;
481 }
482
483 VisualizedDeviceEntrycxx . . $ VisualizedDeviceEntry#* DevicesPanecxx . . $ DevicesPane#::getDeviceEntrycxx . . $ DevicesPane#getDeviceEntry(90a891db17732ed7).()
484 {
485 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(3,"getDeviceEntry - mLastClick=" << mLastClick);
486 stdcxx . . $ std/::mapcxx . . $ std/map#<int, VisualizedDeviceEntry>::iteratorcxx . . $ std/map#iterator# it = mDevicescxx . . $ DevicesPane#mDevices..begincxx . . $ std/map#begin(fbe2f8c57595edf).();
487 while(it !=cxx . . $ std/`operator!=`(84f83906d8995b82). mDevicescxx . . $ DevicesPane#mDevices..endcxx . . $ std/map#end(fbe2f8c57595edf).())
488 {
489 if (it->cxx . . $ std/_Rb_tree_iterator#`operator->`(5a2a78a048fb49a8).secondcxx . . $ std/pair#second..getLineNumbercxx . . $ VisualizedDeviceEntry#getLineNumber(b126dc7c1de90089).() == mLastClickcxx . . $ DeviceMenuProcessor#mLastClick.)
490 {
491 return &(it->cxx . . $ std/_Rb_tree_iterator#`operator->`(5a2a78a048fb49a8).secondcxx . . $ std/pair#second.);
492 break;
493 }
494 it++cxx . . $ std/_Rb_tree_iterator#operator++(7587129c02834edc).;
495 }
496 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
497 }
498
499 QStringcxx . . $ QString# DevicesPanecxx . . $ DevicesPane#::textFromValuecxx . . $ DevicesPane#textFromValue(3f3c3d0e9c0eb37f).(int value) const
500 {
501 stdcxx . . $ std/::stringstreamcxx . . $ std/stringstream# sscxx . . $ std/__cxx11/basic_stringstream#basic_stringstream(49f6e7a06ebc5aa8).;
502 ss <<cxx . . $ std/basic_ostream#`operator<<`(d90e0e305b0e25c2). stdcxx . . $ std/::hexcxx . . $ std/hex(cf36cc481190cd1f). <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). value;
503 char formatted[5];
504 if (value <= 0xffff)
505 sprintf(formatted,"%4.4X",(value));
506 else
507 strcpy(formatted,"0000");
508 QStringcxx . . $ QString# retcxx . . $ QString#QString(85c52e162fed56f9).(formatted);
509 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5,"textFromValue:" << value << "='" << ret.toStdString());
510 return retcxx . . $ QString#QString(e1217c004a86c950).;
511 }