You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
3.2 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include "../../components/base/basicSettingsProvider.h"
  4. #include "../../data/media/video/videoAVLIBSource.h"
  5. #include "../../gui/controls/VideoWidget.h"
  6. #include "../../gui/controls/OpenGLWidget.h"
  7. #include "../../gui/controls/OGLRadarWidget.h"
  8. #include "../../gui/controls/RangeMapWidget.h"
  9. #include "../../gui/controls/RadarMapWidget.h"
  10. #include "../../gui/controls/VideoSourceChooser.h"
  11. #include "../../gui/controls/DeviceChooser.h"
  12. #include "../../gui/controls/TimeShowWidget.h"
  13. #include "../../gui/controls/EventViewWidget.h"
  14. #include "../../gui/dialogs/ReportsManagerDialog.h"
  15. #include "../../gui/controls/mapControl/QMapControl"
  16. #include "../../gui/controls/mapControl/openaerialmapadapter.h"
  17. #include "../../components/object/objectLGS.h"
  18. #include "../../components/object/objectEventReport.h"
  19. #include "../../hardware/stick/joystick.h"
  20. #include <QMainWindow>
  21. namespace Ui {
  22. class MainWindow;
  23. }
  24. class MainWindow : public QMainWindow{
  25. Q_OBJECT
  26. private:
  27. config_setting_t *m_pSettings;
  28. /* Main Widget */
  29. joysticObject *m_pJoyStick;
  30. /* Widgets */
  31. TimeShowWidget *m_pTitleWidget;
  32. EventViewerList *m_pEventsList;
  33. DeviceChooser *m_pDevScrollAreaWidgetContents;
  34. VideoSourceChooser *m_pScrollAreaWidgetContents;
  35. VideoWidget *m_pMainVideoWidget;
  36. guiReportsManagerDialog *m_pReportManager;
  37. objectEventReport *m_pReportCreator;
  38. RangeMapWidget *m_pRangeMap;
  39. RadarMapWidget *m_pRangeRadar;
  40. GLRadar *m_pGLRadar;
  41. bool m_bUserRecordsVideo;
  42. QPushButton *m_pButtonCmdVideoRecord;
  43. QPushButton *m_pButton5;
  44. QPushButton *m_pButton6;
  45. private slots:
  46. void handleSilencePress();
  47. //void handleScreenShotPress();
  48. //void handleButton2Press();
  49. //void handleMaximumsPress();
  50. //void handleMinimumsPress();
  51. //void handleGenerateWS();
  52. //void handleSave2DPicture();
  53. void handleSave3DPicture();
  54. void handleAddMask();
  55. void handleDeleteMask();
  56. //void handleUpdateMask();
  57. //void handleSetStatusMask();
  58. void handleVideoRecorder();
  59. void handleReports();
  60. void on_m_pButtonCmdClear_clicked();
  61. void on_m_pButton5_clicked(bool checked);
  62. void on_m_pButton6_clicked(bool checked);
  63. void on_pushButton_3_clicked();
  64. void on_pushButton_4_clicked();
  65. void on_m_pButtonCmdVideoRecord_clicked();
  66. void on_m_pButtonCmdReport_clicked();
  67. public:
  68. explicit MainWindow(QWidget *parent = 0);
  69. ~MainWindow();
  70. RangeMapWidget * getRangeMap( void );
  71. RadarMapWidget * getRadarMap( void );
  72. GLRadar * getGLRadar( void );
  73. private:
  74. Ui::MainWindow *ui;
  75. public slots:
  76. void callbackSettings(void);
  77. //void callbackClear(void);
  78. //void changeEvent(QEvent *event);
  79. };
  80. #endif // MAINWINDOW_H