38 lines
902 B
C++
Executable File
38 lines
902 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* GUI Plugin for ProjectDataManagement - PdmComboBox
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Patric Karwat, SLSE, 2016-09-12
|
|
*/
|
|
|
|
#include "pdm_combobox_gui_plugin.h"
|
|
|
|
namespace ProjectDataManagement
|
|
{
|
|
|
|
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.Pdm.PdmCombobox"))
|
|
{}
|
|
|
|
bool InterfaceImpl::fetchInterfaces()
|
|
{
|
|
std::shared_ptr<ProjectDataManagement::Interface::Dtc> dtc;
|
|
if (!m_session->getDtc<ProjectDataManagement::DataInterface>(dtc))
|
|
return false;
|
|
return ForeignGuiInterfaceImpl::init(dtc);
|
|
}
|
|
|
|
void InterfaceImpl::clearInterfaces()
|
|
{
|
|
ForeignGuiInterfaceImpl::uninit();
|
|
}
|
|
|
|
} // namespace ProjectDataManagement
|