summaryrefslogtreecommitdiff
path: root/mainwindow.h
diff options
context:
space:
mode:
authorJoshua Drake <joshua.drake@ditchwitch.com>2022-11-21 16:34:17 -0600
committerJoshua Drake <joshua.drake@ditchwitch.com>2022-11-21 16:34:17 -0600
commit179ed918aed1c9f190ae6846ea4bcccccbeab18f (patch)
tree1fabd0bbc20e102097eeecf18e2238f121629d0f /mainwindow.h
parent341e61f7a6f9deebf086a2b8147e252be6d45f33 (diff)
Added Pre-Charge functionality and made thing prettier.
Diffstat (limited to 'mainwindow.h')
-rw-r--r--mainwindow.h27
1 files changed, 22 insertions, 5 deletions
diff --git a/mainwindow.h b/mainwindow.h
index f7f0b00..f8ce84e 100644
--- a/mainwindow.h
+++ b/mainwindow.h
@@ -5,8 +5,11 @@
#include <QSettings>
#include <QString>
#include <QComboBox>
+#include <QDoubleSpinBox>
#include "battery.h"
#include "wire.h"
+#include "generator.h"
+#include "precharge.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
@@ -19,6 +22,14 @@ class MainWindow : public QMainWindow
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
+private:
+ Battery m_battery;
+ Wire m_wire;
+ Generator m_generator;
+ Precharge m_precharge;
+
+ Ui::MainWindow *ui;
+ void initializeGraphics(void);
private slots:
void on_spinBoxPeakSystemPower_valueChanged(double arg1);
@@ -35,11 +46,17 @@ private slots:
void on_lineEditVoltageRange_textChanged(const QString &arg1);
-private:
- Battery m_battery;
- Wire m_wire;
+ void on_doubleSpinBoxMinimumAllowableSOC_valueChanged(double arg1);
- Ui::MainWindow *ui;
- void initializeGraphics(void);
+ void on_doubleSpinBoxGeneratorRPM_valueChanged(double arg1);
+
+ void on_doubleSpinBoxPreChargeTime_valueChanged(double arg1);
+
+ void on_doubleSpinBoxSystemCapacitance_valueChanged(double arg1);
+
+ void on_doubleSpinBoxPreChargePercentageDesired_valueChanged(double arg1);
+
+ void on_doubleSpinBoxChosenResistance_valueChanged(double arg1);
+ void on_lineEditMaximumPrechargeResistance_textChanged(const QString &arg1);
};
#endif // MAINWINDOW_H