示例#1
0
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;
}
示例#2
0
bool State::export_()
{
    Q_ASSERT(_exportedFilename.length()>0 && "Invalid filename");

    if (_exportedAddress == -1)
        return exportRaw(_exportedFilename);
    else
        return exportPRG(_exportedFilename, (quint16)_exportedAddress);
}
示例#3
0
文件: state.cpp 项目: hbekel/vchar64
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);
}