qtrocket/gui/ThrustCurveMotorSelector.h
Travis Hunter e6bf1fea9b
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc-13, g++-13, ubuntu-latest) (push) Has been cancelled
Revert "Merge pull request #20 from cthunter01/propagator"
This reverts commit 6280d9fb0184275843a8f4406c7293e41e65a639, reversing
changes made to 3c9c8b8c6a2b2e7430ff09efdc2cc0c1996b16ca.
2025-04-16 18:23:28 -06:00

48 lines
921 B
C++

#ifndef THRUSTCURVEMOTORSELECTOR_H
#define THRUSTCURVEMOTORSELECTOR_H
/// \cond
// C headers
// C++ headers
#include <memory>
// 3rd party headers
#include <QDialog>
/// \endcond
// qtrocket headers
#include "utils/ThrustCurveAPI.h"
#include "model/MotorModel.h"
namespace Ui {
class ThrustCurveMotorSelector;
}
/**
* @brief The ThrustCurveMotorSelector class is a Window that provides an interface to Thrustcurve.org
*/
class ThrustCurveMotorSelector : public QDialog
{
Q_OBJECT
public:
explicit ThrustCurveMotorSelector(QWidget *parent = nullptr);
~ThrustCurveMotorSelector();
private slots:
void onButton_getMetadata_clicked();
void onButton_searchButton_clicked();
void onButton_setMotor_clicked();
private:
Ui::ThrustCurveMotorSelector *ui;
std::unique_ptr<utils::ThrustCurveAPI> tcApi;
std::vector<model::MotorModel> motorModels;
};
#endif // THRUSTCURVEMOTORSELECTOR_H