diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-07-15 20:31:42 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-07-15 20:31:42 +0200 |
commit | 8e12ae2cfed728ee1ecab4e5f60f0435bf2d58b8 (patch) | |
tree | 3fe3251b2217747bcad8967cdb551ed1fa18a1a3 /gui/designwidget.cc | |
parent | ecc4c3fa7bdf1726377cd5cf2199b3cabd233427 (diff) | |
download | nextpnr-8e12ae2cfed728ee1ecab4e5f60f0435bf2d58b8.tar.gz nextpnr-8e12ae2cfed728ee1ecab4e5f60f0435bf2d58b8.tar.bz2 nextpnr-8e12ae2cfed728ee1ecab4e5f60f0435bf2d58b8.zip |
Added splash screen info while loading
Diffstat (limited to 'gui/designwidget.cc')
-rw-r--r-- | gui/designwidget.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/designwidget.cc b/gui/designwidget.cc index 1f039c60..8b9e9d22 100644 --- a/gui/designwidget.cc +++ b/gui/designwidget.cc @@ -230,6 +230,7 @@ void DesignWidget::newContext(Context *ctx) bel_root->setText(0, "Bels");
treeWidget->insertTopLevelItem(0, bel_root);
if (ctx) {
+ Q_EMIT contextLoadStatus("Configuring bels...");
for (auto bel : ctx->getBels()) {
auto id = ctx->getBelName(bel);
QStringList items = QString(id.c_str(ctx)).split("/");
@@ -262,6 +263,7 @@ void DesignWidget::newContext(Context *ctx) wire_root->setText(0, "Wires");
treeWidget->insertTopLevelItem(0, wire_root);
if (ctx) {
+ Q_EMIT contextLoadStatus("Configuring wires...");
for (auto wire : ctx->getWires()) {
auto id = ctx->getWireName(wire);
QStringList items = QString(id.c_str(ctx)).split("/");
@@ -293,6 +295,7 @@ void DesignWidget::newContext(Context *ctx) pip_root->setText(0, "Pips");
treeWidget->insertTopLevelItem(0, pip_root);
if (ctx) {
+ Q_EMIT contextLoadStatus("Configuring pips...");
for (auto pip : ctx->getPips()) {
auto id = ctx->getPipName(pip);
QStringList items = QString(id.c_str(ctx)).split("/");
@@ -328,6 +331,8 @@ void DesignWidget::newContext(Context *ctx) cells_root = new QTreeWidgetItem(treeWidget);
cells_root->setText(0, "Cells");
treeWidget->insertTopLevelItem(0, cells_root);
+
+ Q_EMIT finishContextLoad();
}
void DesignWidget::updateTree()
|