noisemonitorparamdialog.h 1003 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef NOISEMONITORPARAMDIALOG_H
  2. #define NOISEMONITORPARAMDIALOG_H
  3. #include "DialogBase.h"
  4. #include "spdlog/spdlog.h"
  5. #include "SystemConfigStruct.h"
  6. namespace Ui {
  7. class NoiseMonitorParamWidget;
  8. }
  9. class NoiseMonitorParamDialog : public DialogBase
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit NoiseMonitorParamDialog(QWidget *parent = nullptr);
  14. ~NoiseMonitorParamDialog();
  15. /* 设置初始参数 */
  16. void setInitialParams(NoiseDetectParam_t& noiseDetectParam);
  17. /* 获取当前参数 */
  18. NoiseDetectParam_t getCurrentParams() const { return m_noiseDetectParam; }
  19. private:
  20. /* 设置qss */
  21. void setQss();
  22. /* 点击了OK */
  23. bool isOKClicked() override;
  24. /* 更新噪音检测参数 */
  25. void updateNoiseDetectParam();
  26. private:
  27. Ui::NoiseMonitorParamWidget *ui;
  28. std::shared_ptr<spdlog::logger> m_logger = nullptr;
  29. NoiseDetectParam_t m_noiseDetectParam; // 噪音检测参数
  30. };
  31. #endif // NOISEMONITORPARAMDIALOG_H