50 lines
1.5 KiB
C++
Executable File
50 lines
1.5 KiB
C++
Executable File
/**
|
|
* @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
|