Files
qt5-legatus-legacy/Lts/Plugins/FileManagement/Gui/FlmComboBox/flm_combobox_gui_plugin.cpp
T
2026-08-13 18:33:10 +02:00

55 lines
1.2 KiB
C++
Executable File

/**
* @RDE_HEADER@
* GUI Plugin for FileManagement - FlmComboBox
* $Id$
* $HeadURL$
* $Author$
* Created by Iuliana Ojog, SLSE, 2017-05-29
*/
#include "flm_combobox_gui_plugin.h"
namespace FileManagement
{
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.FlmCombobox"))
{}
bool InterfaceImpl::fetchInterfaces()
{
return true;
}
void InterfaceImpl::clearInterfaces()
{
}
bool InterfaceImpl::fillFileCategoryComboBox(LtsWidgets::LtsComboBox *cbx)
{
return fillFlmComboBox(cbx, FlmComboBoxType::CbFileCategory);
}
bool InterfaceImpl::fillFileStatusComboBox(LtsWidgets::LtsComboBox *cbx)
{
return fillFlmComboBox(cbx, FlmComboBoxType::CbFileStatus);
}
bool InterfaceImpl::fillFileTypeComboBox(LtsWidgets::LtsComboBox *cbx)
{
return fillFlmComboBox(cbx, FlmComboBoxType::CbFileType);
}
//private
bool InterfaceImpl::fillFlmComboBox(LtsWidgets::LtsComboBox *cbx, FlmComboBoxType type)
{
return FlmComboBox::fill(cbx, type);
}
} // namespace FileManagement