CEBL
2.1
|
#include <WidgetPanel.hpp>
Public Member Functions | |
WidgetPanel () | |
WidgetPanel (std::map< std::string, CEBL::Param > params) | |
Construct widget panel from a map of CEBL::Param. | |
~WidgetPanel () | |
void | add (std::string parameter, std::string description, std::string default_value) |
Add a text input box to the widget panel. | |
void | add (CEBL::Param &) |
Add a CEBL::Param input to the panel. | |
GtkWidget * | getContainer () |
Return widget container. | |
GtkWidget * | getWidget (int i) |
Get individual widget from panel. | |
map< std::string, CEBL::Param > | getParams () |
Get map of params representing current state of the panel. |
WidgetPanel::WidgetPanel | ( | ) |
Definition at line 17 of file WidgetPanel.cpp.
WidgetPanel::WidgetPanel | ( | std::map< std::string, CEBL::Param > | params | ) |
Construct widget panel from a map of CEBL::Param.
Definition at line 25 of file WidgetPanel.cpp.
WidgetPanel::~WidgetPanel | ( | ) |
Definition at line 35 of file WidgetPanel.cpp.
void WidgetPanel::add | ( | std::string | parameter, |
std::string | description, | ||
std::string | default_value | ||
) |
Add a text input box to the widget panel.
Definition at line 41 of file WidgetPanel.cpp.
Referenced by TabDevice::CreateGUI().
void WidgetPanel::add | ( | CEBL::Param & | param | ) |
Add a CEBL::Param input to the panel.
Definition at line 50 of file WidgetPanel.cpp.
References CEBL::Param::description, CEBL::Param::getBool(), CEBL::Param::getDouble(), CEBL::Param::getInt(), CEBL::Param::getMax(), CEBL::Param::getMin(), CEBL::Param::getStep(), CEBL::Param::getString(), CEBL::Param::name, CEBL::PARAM_BOOLEAN, CEBL::PARAM_DOUBLE, CEBL::PARAM_INTEGER, and CEBL::PARAM_STRING.
|
inline |
Return widget container.
Definition at line 68 of file WidgetPanel.hpp.
Referenced by TabDevice::CreateGUI(), TabDecision::updateView(), TabClassifiers::updateView(), and TabFeatures::updateView().
map< std::string, CEBL::Param > WidgetPanel::getParams | ( | ) |
Get map of params representing current state of the panel.
Definition at line 144 of file WidgetPanel.cpp.
References CEBL::PARAM_BOOLEAN, CEBL::PARAM_DOUBLE, CEBL::PARAM_INTEGER, and CEBL::PARAM_STRING.
Referenced by TabDecision::updateModel(), TabClassifiers::updateModel(), and TabFeatures::updateModel().
GtkWidget * WidgetPanel::getWidget | ( | int | i | ) |
Get individual widget from panel.
Definition at line 175 of file WidgetPanel.cpp.
Referenced by TabDevice::CreateGUI(), and TabDevice::updateView().