Files
qt5-legatus-legacy/Lts/Plugins/ParticipantManagement/Gui/OperationalPlanning/participant_show.h
T
2026-08-13 18:33:10 +02:00

77 lines
1.8 KiB
C++
Executable File

/**
* @RDE_HEADER@
* GUI Plugin for ParticipantManagement - Participant Edit
* $Id$
* $HeadURL$
* $Author$
* Created by Patric Karwat, SLSE, 2016-10-17
*/
#pragma once
#include <ParticipantManagement/logger.h>
#include <Services/ParticipantManagement/ppm_dtc.h>
#include <Services/ParticipantManagement/ppm_ftc.h>
#include <Plugins/ParticipantManagement/ppm_gui_combobox_plugin_interface.h>
#include <LtsWidgets/lts_dialog.h>
#include <LtsSession/lts_session.h>
#include <LtsUtilsGuiDds/request_helper.h>
#include "ppm_planning_model.h"
namespace AdvancedSymbology
{
class ForeignDataInterface;
}
namespace Ui
{
class ParticipantShow;
}
namespace ParticipantManagement
{
class ParticipantPlanningModel;
class ParticipantTreeEditHandler;
class ParticipantShow : public LtsWidgets::LtsDialog
{
Q_OBJECT
public:
ParticipantShow(LtsSession::LtsSession *session,
bool asSupportService,
QWidget *parent = nullptr);
virtual ~ParticipantShow();
bool init(const std::shared_ptr<ParticipantManagement::Interface::Dtc> &dtc,
const std::shared_ptr<ParticipantManagement::Interface::Ftc> &ftc,
const std::shared_ptr<AdvancedSymbology::ForeignDataInterface> &asbIfc,
const int partyId,
const QString &nameParty);
private:
void retranslate() override;
protected slots:
void onPartyChanged();
void onPrint();
private:
bool m_asSupportService;
ParticipantTreeEditHandler* m_pTreehandler;
std::shared_ptr<ParticipantManagement::Interface::Dtc> m_dtc;
std::shared_ptr<ParticipantManagement::Interface::Ftc> m_ftc;
int m_partyId;
QString m_nameParty;
LtsSession::LtsSession *m_session;
ParticipantPlanningModel *m_model;
Ui::ParticipantShow *m_ui;
NGL::INGLLogger &m_logger;
};
} //ParticipantManagement