Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,71 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* HMI Plugin for Observer Controller - Fault Message Dialog
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Patric Karwat, SLSE, 2018-03-27
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LtsWidgets/lts_dialog.h>
|
||||
#include <LtsSession/lts_session.h>
|
||||
#include <OcSituationClient/logger.h>
|
||||
#include <Plugins/OcSituationClient/osc_data_plugin_interface.h>
|
||||
#include <LtsUtilsGuiDds/request_helper.h>
|
||||
|
||||
#include <Plugins/ParticipantManagement/ppm_data_plugin_interface.h>
|
||||
#include <Plugins/TrainingAreaBaseOC/taboc_data_plugin_interface.h>
|
||||
#include <ParticipantManagement/Gui/Common/participant_edit_model.h>
|
||||
#include <Plugins/ParticipantManagement/ppm_gui_combobox_plugin_interface.h>
|
||||
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
class FaultMessage;
|
||||
}
|
||||
namespace OcSituationClient
|
||||
{
|
||||
|
||||
class FaultMessage : public LtsWidgets::LtsDialog
|
||||
, private OcSituationClient::Interface::Ftc::SendEquipmentErrorRegistrationReplyHandler
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit FaultMessage(LtsSession::LtsSession *session, QWidget *parent = nullptr);
|
||||
~FaultMessage();
|
||||
bool init(const std::shared_ptr<Interface::Ftc> &ftc);
|
||||
void onSendEquipmentErrorRegistrationReply(const Core::FunctionReplyObject &replyObject) override { m_requestHelper->requestReply(replyObject); }
|
||||
|
||||
private Q_SLOTS:
|
||||
void onSlotSelectionChanged();
|
||||
void onTextChanged();
|
||||
void onDevTextChanged();
|
||||
void onSpecificsEquipmentChanged(const TrainingAreaBaseOC::SpecificsEquipment &data, const DataModification &modType);
|
||||
|
||||
private:
|
||||
void retranslate() override;
|
||||
bool apply() override;
|
||||
void timText(QLineEdit *le, QLabel *lbl);
|
||||
|
||||
private:
|
||||
LtsSession::LtsSession *m_session;
|
||||
LtsUtils::RequestHelper *m_requestHelper;
|
||||
int m_selectedEqNr;
|
||||
int m_maxChars;
|
||||
int m_maxPartChars;
|
||||
int m_ownEquipmentId;
|
||||
ParticipantManagement::ParticipantEditModel *m_model;
|
||||
LtsWidgets::LtsColumnFilterProxyModel *m_proxyModel;
|
||||
|
||||
std::shared_ptr<OcSituationClient::Interface::Ftc> m_ftc;
|
||||
std::shared_ptr<TrainingAreaBaseOC::Interface::Dtc> m_tabocDtc;
|
||||
std::shared_ptr<ParticipantManagement::ForeignGuiComboboxInterface> m_ppmCbxGui;
|
||||
|
||||
Ui::FaultMessage *m_ui;
|
||||
LOGGER_T m_logger;
|
||||
};
|
||||
|
||||
} // namespace OcSituationClient
|
||||
Reference in new issue
Block a user