Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Plugins/Messaging/Gui/Messaging/msg_messaging.h
T

73 lines
2.0 KiB
C++
Executable File

#pragma once
#include "msg_messaging_model.h"
#include <Messaging/msg_dtc.h>
#include <Messaging/msg_ftc.h>
#include <OperatorManagement/opm_gui_combobox_plugin_interface.h>
#include <ParticipantManagement/ppm_data_plugin_interface.h>
#include <TrainingAreaBaseOC/taboc_data_plugin_interface.h>
#include <LtsWidgets/lts_dialog.h>
#include <LtsSession/lts_session.h>
#include <LtsUtils/LtsUtilsGui/LtsUtilsGuiDds/request_helper.h>
namespace Ui
{
class MessagingView;
}
namespace Messaging
{
class MessagingView : public LtsWidgets::LtsDialog
, protected Messaging::Interface::Ftc::ModifyOperatorMessageReplyHandler
{
Q_OBJECT
public:
explicit MessagingView(const QString &menuGroup, LtsSession::LtsSession *session, QWidget *parent = nullptr);
~MessagingView();
bool init(const std::shared_ptr<Messaging::Interface::Dtc> &dtc,
const std::shared_ptr<Messaging::Interface::Ftc> &ftc,
const std::shared_ptr<ParticipantManagement::Interface::Dtc> &ppmDtc,
const std::shared_ptr<TrainingAreaBaseOC::Interface::Dtc> &tabocDtc,
const std::shared_ptr<OperatorManagement::ForeignGuiComboboxInterface> &opmCbxDtc,
const MessagingModel::Box &box);
private:
NGL::INGLLogger &m_logger;
void retranslate() override;
void onSelectionChanged();
void onShowMessage();
void onNewMessage();
void onRemoveMessage();
void onPrint();
void tableColumnOrganiserSetting() override;
protected:
void onModifyOperatorMessageReply(const Core::FunctionReplyObject &replyObject) override final { m_requestHelper->requestReply(replyObject); }
private:
QString m_menuGroup;
MessagingModel *m_model;
MessagingProxyModel *m_proxyModel;
MessagingModel::Box m_box;
std::shared_ptr<Messaging::Interface::Dtc> m_dtc;
std::shared_ptr<Messaging::Interface::Ftc> m_ftc;
std::shared_ptr<OperatorManagement::ForeignGuiComboboxInterface> m_opmCbxDtc;
int m_uniqueMsgId;
LtsSession::LtsSession *m_session;
Ui::MessagingView *m_ui;
LtsUtils::RequestHelper *m_requestHelper;
};
}