/** * @RDE_HEADER@ * Alarm Configuration * $Id$ * $HeadURL$ * $Author$ * Created by Mike Wille, SLSE, 2017-01-11 */ #pragma once #include #include #include #include #include #include #include namespace Ui { class GuezNasatPartDialog; } namespace GuezNasat { class GuezNasatPartDialog final : public LtsWidgets::LtsDialog , protected GuezNasat::Interface::Ftc::ModifyNasatAircraftParticipantReplyHandler { Q_OBJECT public: explicit GuezNasatPartDialog(const QString &menuGroup, LtsSession::LtsSession *session, QWidget *parent = nullptr); ~GuezNasatPartDialog(); bool init(const std::shared_ptr &ftc, const std::shared_ptr &dtc, const std::shared_ptr &exmDtc, const std::shared_ptr &ppmDtc, const std::shared_ptr &ppmGuiCbxIfc); void retranslate() override; protected: void onModifyNasatAircraftParticipantReply(const Core::FunctionReplyObject &replyObject) override final { m_requestHelper->requestReply(replyObject); } private slots: void onSelectionChanged(); void onNewAircraftPart(); void onRemoveAircraftPart(); void onEditAircraftPart(); private: void tableColumnOrganiserSetting() override; NasatAircraftParticipantModel *m_nasatAircraftParticipantModel; std::shared_ptr m_dtc; std::shared_ptr m_ftc; std::shared_ptr m_exmDtc; std::shared_ptr m_ppmDtc; LtsSession::LtsSession *m_session; Ui::GuezNasatPartDialog *m_ui; QString m_menuGroup; LtsUtils::RequestHelper *m_requestHelper; LOGGER_T m_logger; }; } // namespace GuezNasat