This commit is contained in:
Miodrag Milanovic 2019-06-14 10:07:59 +02:00
parent 36ccc22fc9
commit 053bd48bef
7 changed files with 1 additions and 16 deletions

View File

@ -398,7 +398,6 @@ void BaseMainWindow::updateLoaded()
disableActions();
actionPack->setEnabled(true);
onJsonLoaded();
onProjectLoaded();
}
void BaseMainWindow::execute_python()

View File

@ -58,7 +58,6 @@ class BaseMainWindow : public QMainWindow
virtual void onDisableActions(){};
virtual void onJsonLoaded(){};
virtual void onProjectLoaded(){};
virtual void onPackFinished(){};
virtual void onBudgetFinished(){};
virtual void onPlaceFinished(){};

View File

@ -192,10 +192,4 @@ void MainWindow::onJsonLoaded() { actionLoadLPF->setEnabled(true); }
void MainWindow::onRouteFinished() { actionLoadBase->setEnabled(true); }
void MainWindow::onProjectLoaded()
{
if (ctx->settings.find(ctx->id("input/lpf")) != ctx->settings.end())
actionLoadLPF->setEnabled(false);
}
NEXTPNR_NAMESPACE_END

View File

@ -40,7 +40,6 @@ class MainWindow : public BaseMainWindow
void onDisableActions() override;
void onJsonLoaded() override;
void onRouteFinished() override;
void onProjectLoaded() override;
protected Q_SLOTS:
void new_proj() override;

View File

@ -29,6 +29,7 @@ NEXTPNR_NAMESPACE_BEGIN
MainWindow::MainWindow(std::unique_ptr<Context> context, ArchArgs args, QWidget *parent)
: BaseMainWindow(std::move(context), args, parent)
{
initMainResource();
QMessageBox::critical(0, "Error - FIXME", "No GUI support for nextpnr-generic");
std::exit(1);
}

View File

@ -189,10 +189,4 @@ void MainWindow::onDisableActions()
void MainWindow::onJsonLoaded() { actionLoadPCF->setEnabled(true); }
void MainWindow::onRouteFinished() { actionSaveAsc->setEnabled(true); }
void MainWindow::onProjectLoaded()
{
if (ctx->settings.find(ctx->id("input/pcf")) != ctx->settings.end())
actionLoadPCF->setEnabled(false);
}
NEXTPNR_NAMESPACE_END

View File

@ -41,7 +41,6 @@ class MainWindow : public BaseMainWindow
void onDisableActions() override;
void onJsonLoaded() override;
void onRouteFinished() override;
void onProjectLoaded() override;
protected Q_SLOTS:
void new_proj() override;