52 lines
1.1 KiB
C++
Executable File
52 lines
1.1 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* HMI Plugin for ParticipantManagement - Insert Template Frameless Dialog
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Patric Karwat, SLSE, 2016-10-05
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "participant_template_chooser_model.h"
|
|
|
|
#include <Services/ParticipantManagement/ppm_dtc.h>
|
|
|
|
|
|
#include <LtsWidgets/lts_frameless_dialog.h>
|
|
#include <LtsSession/lts_session.h>
|
|
|
|
namespace Ui
|
|
{
|
|
class ParticipantTemplateChooserFrameless;
|
|
}
|
|
namespace ParticipantManagement
|
|
{
|
|
|
|
class ParticipantTemplateChooserFrameless : public LtsWidgets::LtsFramelessDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ParticipantTemplateChooserFrameless(LtsSession::LtsSession *session, QWidget *parent = nullptr);
|
|
~ParticipantTemplateChooserFrameless();
|
|
bool init(const std::shared_ptr<ParticipantManagement::Interface::Dtc> &dtc);
|
|
|
|
private Q_SLOTS:
|
|
void onAddTemplate();
|
|
Q_SIGNALS:
|
|
void selectedTemplate(int);
|
|
|
|
private:
|
|
ParticipantTemplateChooserModel *m_model;
|
|
std::shared_ptr<ParticipantManagement::Interface::Dtc> m_dtc;
|
|
LtsSession::LtsSession *m_session;
|
|
|
|
Ui::ParticipantTemplateChooserFrameless *m_ui;
|
|
|
|
LOGGER_T m_logger;
|
|
};
|
|
|
|
} // namespace ParticipantManagement
|