Noether  0.0.0
Loading...
Searching...
No Matches
noether::PluginLoaderWidget< PluginT > Class Template Reference

Widget for loading widget plugins.

#include <plugin_loader_widget.h>

Inheritance diagram for noether::PluginLoaderWidget< PluginT >:

Public Member Functions

 PluginLoaderWidget (std::shared_ptr< const WidgetFactory > factory, const QString &title, QWidget *parent=nullptr)
 
QWidgetList getWidgets () const
 
void configure (const YAML::Node &config) override
 Configures the elements of the widget from a YAML node.
 
void save (YAML::Node &config) const override
 Saves the configuration of the widget to a YAML node.
 
void removeWidgets ()
 
- Public Member Functions inherited from noether::BaseWidget
 BaseWidget (QWidget *parent=nullptr)
 

Protected Member Functions

void addWidget (const QString &plugin_name, const YAML::Node &config)
 
void shiftCurrentWidget (const int offset)
 

Protected Attributes

Ui::PluginLoader * ui_
 
std::shared_ptr< const WidgetFactoryfactory_
 

Member Function Documentation

◆ configure()

template<typename PluginT >
void noether::PluginLoaderWidget< PluginT >::configure ( const YAML::Node &  )
overridevirtual

Reimplemented from noether::BaseWidget.

◆ save()

template<typename PluginT >
void noether::PluginLoaderWidget< PluginT >::save ( YAML::Node &  ) const
overridevirtual

Implements noether::BaseWidget.