/** * @RDE_HEADER@ * HMI Plugin for Observer Controller - Settings Dialog * $Id$ * $HeadURL$ * $Author$ * Created by Patric Karwat, SLSE, 2018-01-17 */ #pragma once #include #include #include #ifdef WIN32 #include #include #endif namespace SituationMap { class ForeignGuiInterface; } namespace LtsUtils { class OperatorSettings; } namespace Ui { class Settings; } namespace OcSituationClient { class Settings : public LtsWidgets::LtsDialog { Q_OBJECT public: explicit Settings(LtsSession::LtsSession *session, QWidget *parent = nullptr); ~Settings(); void setMonitorLightBrightness(const int value); int getMonitorCurrentLightBrightness(); #ifdef WIN32 typedef struct _DISPLAY_BRIGHTNESS { UCHAR ucDisplayPolicy; UCHAR ucACBrightness; UCHAR ucDCBrightness; } DISPLAY_BRIGHTNESS, *PDISPLAY_BRIGHTNESS; #endif private Q_SLOTS: void onResetRange(); void onSoundCheck(); private: void loadOperatorSettings(); void retranslate() override; bool apply() override; private: static const int WARNINGRANGEDEFAULT = 100; QMediaPlayer *m_mediaplayer; QString m_ocGroupString; LtsUtils::OperatorSettings *m_opSettings; std::shared_ptr m_sitMapGuiIfc; Ui::Settings *m_ui; int m_monitorLightBrightness; #ifdef WIN32 DISPLAY_BRIGHTNESS m_displayBrightness; HANDLE m_handler; #endif //LOGGER_T m_logger; }; } // namespace OcSituationClient