#ifndef MAINWINDOW_H #define MAINWINDOW_H #include #include #include #include #include "battery.h" #include "wire.h" QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } QT_END_NAMESPACE class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(QWidget *parent = nullptr); ~MainWindow(); private slots: void on_spinBoxPeakSystemPower_valueChanged(double arg1); void on_comboBoxBatteryChemistry_currentIndexChanged(int index); void on_actionactionSettings_triggered(); void on_comboBoxWireMaterial_currentIndexChanged(int index); void on_doubleSpinBoxSystemVoltage_valueChanged(double arg1); void on_doubleSpinBoxEstimatedWireLength_valueChanged(double arg1); void on_lineEditVoltageRange_textChanged(const QString &arg1); private: Battery m_battery; Wire m_wire; Ui::MainWindow *ui; void initializeGraphics(void); }; #endif // MAINWINDOW_H