diff --git a/include/TeamInfo.h b/include/TeamInfo.h
index 4b26d84..75bec56 100644
--- a/include/TeamInfo.h
+++ b/include/TeamInfo.h
@@ -16,6 +16,8 @@ class TeamInfo : public QWidget
~TeamInfo();
int teamNumber();
+ int matchNumber();
+ QString eventCode();
private:
Ui::TeamInfo *ui;
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp
index 200d13c..ffc7221 100644
--- a/src/MainWindow.cpp
+++ b/src/MainWindow.cpp
@@ -15,7 +15,7 @@ MainWindow::MainWindow(QWidget *parent)
int currentIdx;
- connect(nextButton, &QPushButton::clicked, this, [this, ¤tIdx]() {
+ connect(nextButton, &QPushButton::released, this, [this, ¤tIdx]() {
int nextIdx = currentIdx + 1;
if (nextIdx >= stackedWidget->count()) nextIdx = stackedWidget->count() - 1;
currentIdx = nextIdx;
@@ -27,7 +27,7 @@ MainWindow::MainWindow(QWidget *parent)
}
});
- connect(backButton, &QPushButton::clicked, this, [this, ¤tIdx]() {
+ connect(backButton, &QPushButton::released, this, [this, ¤tIdx]() {
int nextIdx = currentIdx - 1;
if (nextIdx < 0) nextIdx = 0;
currentIdx = nextIdx;
@@ -53,6 +53,8 @@ QString MainWindow::serializeData() {
QStringList csv;
csv << "Field,Value";
csv << "Team Number," + QString::number(teamInfo->teamNumber());
+ csv << "Match Number," + QString::number(teamInfo->matchNumber());
+ csv << "Event Code," + teamInfo->eventCode();
csv << "Auto Mobility," + QString::number(autoScouting->mobility());
csv << "Auto Amp Pieces," + QString::number(autoScouting->ampPieces());
csv << "Auto Speaker Pieces," + QString::number(autoScouting->speakerPieces());
diff --git a/src/TeamInfo.cpp b/src/TeamInfo.cpp
index e03c0ca..71d8fda 100644
--- a/src/TeamInfo.cpp
+++ b/src/TeamInfo.cpp
@@ -14,5 +14,13 @@ TeamInfo::~TeamInfo()
}
int TeamInfo::teamNumber() {
- return ui->spinBox->value();
+ return ui->teamNumber->value();
+}
+
+int TeamInfo::matchNumber() {
+ return ui->matchNumber->value();
+}
+
+QString TeamInfo::eventCode() {
+ return ui->eventCode->text();
}
diff --git a/ui/TeamInfo.ui b/ui/TeamInfo.ui
index eef9a94..f0d49d7 100644
--- a/ui/TeamInfo.ui
+++ b/ui/TeamInfo.ui
@@ -37,7 +37,7 @@
- Team Info
+ Match Info
true
@@ -55,24 +55,24 @@
1
- 5
+ 0
Noto Sans
- 18
+ 16
false
- Enter team info here.
+ Enter match info here.
true
- Qt::AlignHCenter|Qt::AlignTop
+ Qt::AlignCenter
true
@@ -95,7 +95,7 @@
- Number:
+ Team Number:
true
@@ -109,11 +109,11 @@
-
-
+
-
+
1
- 1
+ 0
@@ -124,15 +124,61 @@
+ -
+
+
+
+ Noto Sans
+ 16
+ false
+
+
+
+ Match Number:
+
+
+ Qt::AlignCenter
+
+
+
+ -
+
+
+ -
+
+
+
+ Noto Sans
+ 16
+ false
+
+
+
+ Event Code (e.g. OHMV)
+
+
+ Qt::AlignCenter
+
+
+
+ -
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
-
-
- BetterSpinBox
- QSpinBox
-
-
-
diff --git a/ui/WelcomePage.ui b/ui/WelcomePage.ui
index 1316419..0a7a798 100644
--- a/ui/WelcomePage.ui
+++ b/ui/WelcomePage.ui
@@ -7,7 +7,7 @@
0
0
480
- 640
+ 480
@@ -19,7 +19,7 @@
Noto Sans
- 50
+ 40
true