| 250 | } |
| 251 | |
| 252 | void |
| 253 | SymViewTab::refreshSizes(void) |
| 254 | { |
| 255 | this->ui->sizeLabel->setText( |
| 256 | "Capture size: " + |
| 257 | SuWidgetsHelpers::formatQuantity( |
| 258 | this->ui->symView->getLength(), |
| 259 | "sym")); |
| 260 | |
| 261 | this->ui->dataSizeLabel->setText( |
| 262 | "Data size: " + |
| 263 | SuWidgetsHelpers::formatQuantity( |
| 264 | this->ui->symView->getLength() * this->bps, |
| 265 | "bits") |
| 266 | + " (" + |
| 267 | SuWidgetsHelpers::formatBinaryQuantity( |
| 268 | this->ui->symView->getLength() * this->bps >> 3, |
| 269 | "B") + ")"); |
| 270 | |
| 271 | this->ui->saveButton->setEnabled(this->ui->symView->getLength() > 0); |
| 272 | |
| 273 | this->refreshVScrollBar(); |
| 274 | } |
| 275 | |
| 276 | void |
| 277 | SymViewTab::setThrottleControl(ThrottleControl *control) |
no test coverage detected