33 lines
587 B
C++
33 lines
587 B
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
#include "qcustomplot.h"
|
|
#include "settingsdialog.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 saveGraph();
|
|
void openSettingsDialog(); // 新增槽函数
|
|
|
|
private:
|
|
Ui::MainWindow *ui;
|
|
QCustomPlot *customPlot;
|
|
SettingsDialog *settingsDialog;
|
|
|
|
void plotGraph();
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|