#pragma once

#include <QtWidgets/QMainWindow>
#include <QPushButton>
#include <QLineEdit>
#include <QPushButton>
#include <QLabel>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QGroupBox>
#include <QFileDialog>
#include <QMessageBox>

class QPushButton;

class WindInverstorDialog : public QMainWindow
{
    Q_OBJECT

public:
    WindInverstorDialog(QWidget *parent = nullptr);
    ~WindInverstorDialog();


private slots:
    void browseWindDirFile();
    void browseIncAngleFile();
    void browseSarSigmaFile();
    void browseOutputFile();
    void startInversion();
    void closeApplication();

private:
    void setupUI();
    void connectSlots();

    // 输入文件路径控件
    QLineEdit* windDirLineEdit;
    QLineEdit* incAngleLineEdit;
    QLineEdit* sarSigmaLineEdit;
    QLineEdit* outputLineEdit;

    // 按钮控件
    QPushButton* browseWindDirBtn;
    QPushButton* browseIncAngleBtn;
    QPushButton* browseSarSigmaBtn;
    QPushButton* browseOutputBtn;
    QPushButton* startBtn;
    QPushButton* cancelBtn;
};

