CEBL  2.1
Public Member Functions
WidgetPanel Class Reference

#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::ParamgetParams ()
 Get map of params representing current state of the panel.

Detailed Description

WidgetPanel.hpp

Author:
Jeshua Bratman

Utility to create a table of widgets

Definition at line 38 of file WidgetPanel.hpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

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)
GtkWidget* WidgetPanel::getContainer ( )
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().


The documentation for this class was generated from the following files: