bool State::export_() { Q_ASSERT(_exportedFilename.length() > 0 && "Invalid filename"); bool ret = false; if (_exportedFormat == EXPORT_FORMAT_RAW) ret = exportRaw(_exportedFilename, _exportedFeatures); /* else */ else if(_exportedFormat == EXPORT_FORMAT_PRG) ret = exportPRG(_exportedFilename, _exportedAddresses, _exportedFeatures); /* else ASM */ else ret = exportAsm(_exportedFilename, _exportedFeatures); if (ret) { MainWindow::getInstance()->showMessageOnStatusBar(tr("Export: Ok")); } else { // beep on error MainWindow::getInstance()->showMessageOnStatusBar(tr("Export: Error")); QApplication::beep(); } return ret; }
bool State::export_() { Q_ASSERT(_exportedFilename.length() > 0 && "Invalid filename"); if (_exportFormat == EXPORT_FORMAT_RAW) return exportRaw(_exportedFilename, _exportWhat); else if(_exportFormat == EXPORT_FORMAT_PRG) return exportPRG(_exportedFilename, _exportedAddresses, _exportWhat); /* else ASM */ return exportAsm(_exportedFilename, _exportWhat); }