From 80dba1457231afd13a667a85f07c3db74f30aa87 Mon Sep 17 00:00:00 2001 From: bd Date: Fri, 18 Apr 2025 22:34:46 -0400 Subject: Add a status bar --- gui/gui.cc | 6 ++ gui/gui.ui | 351 ++++++++++++++++++++++++++++++------------------------------- 2 files changed, 180 insertions(+), 177 deletions(-) diff --git a/gui/gui.cc b/gui/gui.cc index 39163ea..9381b55 100644 --- a/gui/gui.cc +++ b/gui/gui.cc @@ -7,6 +7,12 @@ GUI::GUI(QWidget *parent) { ui->setupUi(this); + QLabel* status_label = new QLabel("CONSENSUS: WAITING FOR USER.", this); + QLabel* risc_vector = new QLabel("RISC V[ECTOR], CS535 UMASS AMHERST", this); + status_label->setMinimumWidth(1200); + ui->statusBar->addWidget(status_label); + ui->statusBar->addPermanentWidget(risc_vector); + worker = new Worker(); worker->moveToThread(&workerThread); diff --git a/gui/gui.ui b/gui/gui.ui index d731e99..a2cd6cb 100644 --- a/gui/gui.ui +++ b/gui/gui.ui @@ -16,7 +16,7 @@ - + @@ -117,6 +117,171 @@ + + + + + + + + + true + + + + Controls + + + + + + + Qt::Orientation::Horizontal + + + + + + + + + + + + + + Enable Pipeline + + + true + + + + + + + + + + + + + + + Qt::Orientation::Horizontal + + + + + + + Qt::Orientation::Horizontal + + + + + + + + + + + + true + + + + Upload Files + + + + + + + Qt::Orientation::Horizontal + + + + + + + + + Load Instructions + + + + + + + Upload Program State + + + + + + + Save Program State + + + + + + + + + + + + Qt::Orientation::Horizontal + + + + + + + + + + + + + Qt::Orientation::Horizontal + + + + + + + + + + true + + + + Program State + + + + + + + Qt::Orientation::Horizontal + + + + + + + Clock Cycles + + + + + + + @@ -426,171 +591,6 @@ - - - - - - - - - true - - - - Controls - - - - - - - Qt::Orientation::Horizontal - - - - - - - - - - - - - - Enable Pipeline - - - true - - - - - - - - - - - - - - - Qt::Orientation::Horizontal - - - - - - - Qt::Orientation::Horizontal - - - - - - - - - - - - true - - - - Upload Files - - - - - - - Qt::Orientation::Horizontal - - - - - - - - - Load Instructions - - - - - - - Upload Program State - - - - - - - Save Program State - - - - - - - - - - - - Qt::Orientation::Horizontal - - - - - - - - - - - - - Qt::Orientation::Horizontal - - - - - - - - - - true - - - - Program State - - - - - - - Qt::Orientation::Horizontal - - - - - - - Clock Cycles - - - - - - - @@ -598,21 +598,18 @@ + + + + GroupBox + + + - - - - 0 - 0 - 1359 - 19 - - - - + -- cgit v1.2.3