Cleanup
This commit is contained in:
parent
36ccc22fc9
commit
053bd48bef
@ -398,7 +398,6 @@ void BaseMainWindow::updateLoaded()
|
|||||||
disableActions();
|
disableActions();
|
||||||
actionPack->setEnabled(true);
|
actionPack->setEnabled(true);
|
||||||
onJsonLoaded();
|
onJsonLoaded();
|
||||||
onProjectLoaded();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void BaseMainWindow::execute_python()
|
void BaseMainWindow::execute_python()
|
||||||
|
@ -58,7 +58,6 @@ class BaseMainWindow : public QMainWindow
|
|||||||
|
|
||||||
virtual void onDisableActions(){};
|
virtual void onDisableActions(){};
|
||||||
virtual void onJsonLoaded(){};
|
virtual void onJsonLoaded(){};
|
||||||
virtual void onProjectLoaded(){};
|
|
||||||
virtual void onPackFinished(){};
|
virtual void onPackFinished(){};
|
||||||
virtual void onBudgetFinished(){};
|
virtual void onBudgetFinished(){};
|
||||||
virtual void onPlaceFinished(){};
|
virtual void onPlaceFinished(){};
|
||||||
|
@ -192,10 +192,4 @@ void MainWindow::onJsonLoaded() { actionLoadLPF->setEnabled(true); }
|
|||||||
|
|
||||||
void MainWindow::onRouteFinished() { actionLoadBase->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
|
NEXTPNR_NAMESPACE_END
|
||||||
|
@ -40,7 +40,6 @@ class MainWindow : public BaseMainWindow
|
|||||||
void onDisableActions() override;
|
void onDisableActions() override;
|
||||||
void onJsonLoaded() override;
|
void onJsonLoaded() override;
|
||||||
void onRouteFinished() override;
|
void onRouteFinished() override;
|
||||||
void onProjectLoaded() override;
|
|
||||||
|
|
||||||
protected Q_SLOTS:
|
protected Q_SLOTS:
|
||||||
void new_proj() override;
|
void new_proj() override;
|
||||||
|
@ -29,6 +29,7 @@ NEXTPNR_NAMESPACE_BEGIN
|
|||||||
MainWindow::MainWindow(std::unique_ptr<Context> context, ArchArgs args, QWidget *parent)
|
MainWindow::MainWindow(std::unique_ptr<Context> context, ArchArgs args, QWidget *parent)
|
||||||
: BaseMainWindow(std::move(context), args, parent)
|
: BaseMainWindow(std::move(context), args, parent)
|
||||||
{
|
{
|
||||||
|
initMainResource();
|
||||||
QMessageBox::critical(0, "Error - FIXME", "No GUI support for nextpnr-generic");
|
QMessageBox::critical(0, "Error - FIXME", "No GUI support for nextpnr-generic");
|
||||||
std::exit(1);
|
std::exit(1);
|
||||||
}
|
}
|
||||||
|
@ -189,10 +189,4 @@ void MainWindow::onDisableActions()
|
|||||||
void MainWindow::onJsonLoaded() { actionLoadPCF->setEnabled(true); }
|
void MainWindow::onJsonLoaded() { actionLoadPCF->setEnabled(true); }
|
||||||
void MainWindow::onRouteFinished() { actionSaveAsc->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
|
NEXTPNR_NAMESPACE_END
|
||||||
|
@ -41,7 +41,6 @@ class MainWindow : public BaseMainWindow
|
|||||||
void onDisableActions() override;
|
void onDisableActions() override;
|
||||||
void onJsonLoaded() override;
|
void onJsonLoaded() override;
|
||||||
void onRouteFinished() override;
|
void onRouteFinished() override;
|
||||||
void onProjectLoaded() override;
|
|
||||||
|
|
||||||
protected Q_SLOTS:
|
protected Q_SLOTS:
|
||||||
void new_proj() override;
|
void new_proj() override;
|
||||||
|
Loading…
Reference in New Issue
Block a user