示例#1
0
bool RvctToolChainConfigWidget::isDirty() const
{
    RvctToolChain *tc = static_cast<RvctToolChain *>(toolChain());
    Q_ASSERT(tc);

    return tc->compilerCommand() != m_ui->compilerPath->fileName()
            || tc->armVersion() != static_cast<RvctToolChain::ArmVersion>(m_ui->versionComboBox->currentIndex())
            || tc->environmentChanges() != environmentChanges()
            || tc->debuggerCommand() != debuggerCommand()
            || tc->mkspecList() != mkspecList();
}
示例#2
0
char *gui_debug_prompt()
{
    #ifdef MOBILE_UI
        return const_cast<char*>("c");
    #else
        QEventLoop ev;
        ev.connect(main_window, SIGNAL(debuggerCommand()), &ev, SLOT(quit()));
        ev.exec();
        return main_window->debug_command.data();
    #endif
}
示例#3
0
void RvctToolChainConfigWidget::apply()
{
    RvctToolChain *tc = static_cast<RvctToolChain *>(toolChain());
    Q_ASSERT(tc);

    QList<Utils::EnvironmentItem> changes = environmentChanges();
    tc->setCompilerCommand(m_ui->compilerPath->fileName());
    tc->setArmVersion(static_cast<RvctToolChain::ArmVersion>(m_ui->versionComboBox->currentIndex()));
    tc->setEnvironmentChanges(changes);
    tc->setDebuggerCommand(debuggerCommand());
    tc->setMkspecList(mkspecList());

    m_model->setUserChanges(changes);
}
示例#4
0
void MainWindow::debugCommand()
{
    debug_command = ui->lineEdit->text().toLatin1();
    ui->lineEdit->clear();
    emit debuggerCommand();
}