71 lines
1.9 KiB
C++
Executable File
71 lines
1.9 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* HMI Plugin for Messaging - Messaging Overview Dialog
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Patric Karwat, SLSE, 2016-10-05
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <Services/AlarmManagement/alm_dtc.h>
|
|
#include <Services/AlarmManagement/alm_ftc.h>
|
|
#include <Services/ParticipantManagement/ppm_dtc.h>
|
|
#include <LtsWidgets/lts_dialog.h>
|
|
#include <LtsSession/lts_session.h>
|
|
#include <LtsUtilsGuiDds/request_helper.h>
|
|
#include <Plugins/AlarmManagement/Gui/Common/alm_config_alarm_model.h>
|
|
|
|
namespace Ui
|
|
{
|
|
class ParticipantShowConfigView;
|
|
}
|
|
namespace ParticipantAlarms
|
|
{
|
|
|
|
class ParticipantShowConfigView : public LtsWidgets::LtsDialog
|
|
, protected AlarmManagement::Interface::Ftc::ConfigureAlarmsReplyHandler
|
|
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ParticipantShowConfigView(LtsSession::LtsSession *session, QWidget *parent = nullptr);
|
|
~ParticipantShowConfigView();
|
|
|
|
bool init(const std::shared_ptr<AlarmManagement::Interface::Dtc> &dtc,
|
|
const std::shared_ptr<AlarmManagement::Interface::Ftc> &ftc,
|
|
const std::shared_ptr<ParticipantManagement::Interface::Dtc> &ppmDtc,
|
|
const std::shared_ptr<AreaEffectSimulation::Interface::Dtc> &aesDtc);
|
|
|
|
|
|
private Q_SLOTS:
|
|
void retranslate() override;
|
|
void onSelectionChanged();
|
|
void onShowAlarm();
|
|
void onRemoveAlarm();
|
|
void onPrint();
|
|
|
|
protected:
|
|
void onConfigureAlarmsReply(const Core::FunctionReplyObject &replyObject) override final;
|
|
|
|
private:
|
|
void tableColumnOrganiserSetting() override;
|
|
|
|
private:
|
|
AlarmManagement::ConfigAlarmModel *m_configAlarmModel;
|
|
AlarmManagement::AlarmHistoryModel *m_alarmHistoryModel;
|
|
std::shared_ptr<AlarmManagement::Interface::Dtc> m_dtc;
|
|
std::shared_ptr<AlarmManagement::Interface::Ftc> m_almFtc;
|
|
|
|
LtsSession::LtsSession *m_session;
|
|
Ui::ParticipantShowConfigView *m_ui;
|
|
LtsUtils::RequestHelper *m_requestHelper;
|
|
|
|
AlarmManagement::LOGGER_T m_logger;
|
|
|
|
};
|
|
|
|
} // namespace ParticipantAlarms
|