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

55 lines
1.4 KiB
C++
Executable File

/**
* @RDE_HEADER@
* HMI Plugin for ParticipantManagement - Name Template Unit Frameless Dialog
* $Id$
* $HeadURL$
* $Author$
* Created by Patric Karwat, SLSE, 2016-11-07
*/
#pragma once
#include <ParticipantManagement/logger.h>
#include <ParticipantManagement/ppm_dtc.h>
#include <Plugins/ParticipantManagement/ppm_gui_combobox_plugin_interface.h>
#include <LtsWidgets/lts_frameless_dialog.h>
#include <memory>
namespace Ui
{
class TemplateUnitNamer;
}
namespace ParticipantManagement
{
class TemplateUnitNamer : public LtsWidgets::LtsFramelessDialog
{
Q_OBJECT
public:
explicit TemplateUnitNamer(bool asSupportService,
const std::shared_ptr<ParticipantManagement::Interface::Dtc> &dtc,
const std::shared_ptr<ParticipantManagement::ForeignGuiComboboxInterface> &ppmGuiCbxIfc,
QWidget *parent = nullptr);
~TemplateUnitNamer();
private:
void onSetUnitName();
void onTypeClassChanged();
void enaDisa();
Q_SIGNALS:
void newUnitTemplateRoot(const ParticipantManagement::TemplateData &);
private:
bool m_asSupportService;
std::shared_ptr<ParticipantManagement::Interface::Dtc> m_dtc;
std::shared_ptr<ParticipantManagement::ForeignGuiComboboxInterface> m_ppmGuiCbxIfc;
Ui::TemplateUnitNamer *m_ui;
QValidator *m_validator;
LOGGER_T m_logger;
};
} // namespace ParticipantManagement