mainwindow.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QMainWindow>
  4. #include "radarserver.h"
  5. #include "radarsiggen.h"
  6. #include "simdisplay.h"
  7. #include "interceptradar.h"
  8. #include <iostream>
  9. #include <QStandardItemModel>
  10. #include <QtCharts>
  11. QT_BEGIN_NAMESPACE
  12. QT_CHARTS_USE_NAMESPACE
  13. namespace Ui { class MainWindow; }
  14. QT_END_NAMESPACE
  15. class MainWindow : public QMainWindow
  16. {
  17. Q_OBJECT
  18. public:
  19. QThread *radarServerThread;
  20. QThread *radarSigGenThread;
  21. RadarServer *radarServer;
  22. RadarSigGen *radarSigGen;
  23. MainWindow(QWidget *parent = nullptr);
  24. ~MainWindow();
  25. private slots:
  26. void on_pushButton_42_clicked();
  27. void on_comboBox_radarType_currentIndexChanged(const QString &arg1);
  28. void on_pushButton_5_clicked();
  29. void on_CreateInterceptRadarButton_clicked();
  30. private:
  31. Ui::MainWindow *ui;
  32. SimDisplay *simDisplay;
  33. interceptRadar *interceptRadarList[100];
  34. int interceptRadarNum = 0;
  35. QChartView * MyChartView; // 画布对象
  36. QChart MyChart; // 图表对象
  37. QLineSeries MyLineSeries; // 展示在图表对象上面的线对象
  38. QValueAxis *xAxis ;
  39. QValueAxis *yAxis ;
  40. QStandardItemModel *tableview;
  41. double len;
  42. int rows;
  43. };
  44. #endif // MAINWINDOW_H