You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dlg.setWindowTitle(tr("Add register bit definition"));
295
+
dlg.setWindowTitle(tr("Add bit definition"));
296
296
297
297
addbitdlg:
298
298
299
299
if (QDialog::Accepted == dlg.exec()) {
300
300
301
301
uint8_t mask;
302
-
if ((mask = checkIfBitsOverlap(pbitnew))) {
303
-
QMessageBox::warning(this, tr("Add new bit definition"), tr("Can not add bit definition. Bits overlap with already defined bits 0b%1").arg(mask, 8, 2, QChar('0')));
304
-
goto addbitdlg;
305
-
}
302
+
//if ((mask = checkIfBitsOverlap(pbitnew))) {
303
+
// QMessageBox::warning(this, tr("Add new bit definition"), tr("Can not add bit definition. Bits overlap with already defined bits 0b%1").arg(mask, 8, 2, QChar('0')));
QMessageBox::warning(this, tr("Edit bit definition"), tr("Can not add bit definition. Bits overlap with already defined bits 0b%1").arg(mask, 8, 2, QChar('0')));
356
-
goto editbitdlg;
357
-
}
354
+
//if ((mask = checkIfBitsOverlap(pbit, true))) {
355
+
// QMessageBox::warning(this, tr("Edit bit definition"), tr("Can not add bit definition. Bits overlap with already defined bits 0b%1").arg(mask, 8, 2, QChar('0')));
QMessageBox::warning(this, tr("Add new bit definition"), tr("Can not add bit definition. Bits overlap with already defined bits 0b%1").arg(mask, 8, 2, QChar('0')));
408
-
goto dupbitdlg;
409
-
}
406
+
//if ((mask = checkIfBitsOverlap(pbitnew))) {
407
+
// QMessageBox::warning(this, tr("Add new bit definition"), tr("Can not add bit definition. Bits overlap with already defined bits 0b%1").arg(mask, 8, 2, QChar('0')));
QMessageBox::critical(this, tr("MDF register bit information"), tr("Memory problem"));
150
-
spdlog::error("MDF register information - Memory problem");
189
+
QMessageBox::critical(this, tr("MDF value information"), tr("Memory problem"));
190
+
spdlog::error("MDF information - Memory problem");
151
191
return;
152
192
}
153
193
154
194
// Save the selected row
155
-
int idx = ui->listRegisterValues->currentRow();
195
+
int idx = ui->listValues->currentRow();
156
196
157
197
CDlgMdfValue dlg(this);
158
198
dlg.initDialogData(pvaluenew);
159
-
dlg.setWindowTitle(tr("Add register value"));
199
+
dlg.setWindowTitle(tr("Add value"));
160
200
161
-
addbitdlg:
201
+
addvaluedlg:
162
202
163
203
if (QDialog::Accepted == dlg.exec()) {
164
-
165
204
uint8_t mask;
166
205
// if ((mask = checkIfBitsOverlap(pvaluenew))) {
167
206
// QMessageBox::warning(this, tr("Add new bit definition"), tr("Can not add bit definition. Bits overlap with already defined bits 0b%1").arg(mask, 8, 2, QChar('0')));
0 commit comments