Initial commit

This commit is contained in:
torsten committed 2026-08-13 18:33:10 +02:00
commit b7d90b9afe
16245 files changed
+3396666

No files matched your search

@@ -0,0 +1,49 @@
/**
* @RDE_HEADER@
* GUI Plugin for EffectShowManagement - EsmComboBox
* $Id$
* $HeadURL$
* $Author$
* Created by Patric Karwat, SLSE, 2016-09-12
*/
#include "esm_combobox_gui_plugin.h"
#include <EffectShowManagement/logger.h>
#include <LtsSession/lts_session_data.h>
#include <ParticipantManagement/ppm_data_plugin_interface.h>
#include <AreaEffectSimulation/aes_data_plugin_interface.h>
namespace EffectShowManagement
{
std::shared_ptr<GuiPluginBase::Interface> GuiPlugin::createGuiInterface(LtsSession::LtsSession *session)
{
return std::make_shared<InterfaceImpl>(session);
}
InterfaceImpl::InterfaceImpl(LtsSession::LtsSession *session)
: GuiPluginBase::Interface(session, getLogger("Plugins.Gui.Esm.EsmCombobox"))
{}
bool InterfaceImpl::fetchInterfaces()
{
DEBUG_LOG(m_logger) << "InterfaceImpl::fetchInterfaces";
std::shared_ptr<EffectShowManagement::Interface::Dtc> dtc;
if (!m_session->getDtc<EffectShowManagement::DataInterface>(dtc))
return false;
std::shared_ptr<ParticipantManagement::Interface::Dtc> ppmDtc;
if (!m_session->getDtc<ParticipantManagement::DataInterface>(ppmDtc))
return false;
std::shared_ptr<AreaEffectSimulation::Interface::Dtc> aesDtc;
if (!m_session->getDtc<AreaEffectSimulation::DataInterface>(aesDtc))
return false;
return ForeignGuiComboboxInterfaceImpl::init(dtc, ppmDtc, aesDtc);
}
void InterfaceImpl::clearInterfaces()
{
ForeignGuiComboboxInterfaceImpl::uninit();
}
} // namespace EffectShowManagement