NaoStiffnessConfigDialog Class Reference

Config dialog of the config editor plugin for the nao joint stiffnesses. More...

#include <naostiffness_config_plugin.h>

List of all members.

Classes

struct  nao_stiffnesses
 < joint stiffness values More...

Public Member Functions

 NaoStiffnessConfigDialog (BaseObjectType *cobject, const Glib::RefPtr< Gnome::Glade::Xml > &ref_xml)
 Constructor.
virtual ~NaoStiffnessConfigDialog ()
 Destructor.
virtual void set_stiffnesses (const nao_stiffnesses &vals)
 Set joint stiffness values in the dialog.
virtual void get_stiffnesses (nao_stiffnesses &vals)
 Get joint stiffness values from the dialog.
virtual void on_checkbutton_lock_toggled ()
 Lock checkbox toggled handler.
virtual void on_combobox_behaviour_changed ()
 Behaviour combobox changed handler.
virtual std::string get_cur_behaviour ()
 Return currently selected behaviour.
virtual bool get_save_default ()
 Return whether default checkbox is checked.
virtual void set_load_vals (sigc::slot< void > cb)
 Set the callback function for loading values in the plugin.

Detailed Description

Config dialog of the config editor plugin for the nao joint stiffnesses.

Author:
Tobias Kellner

Definition at line 34 of file naostiffness_config_plugin.h.


Constructor & Destructor Documentation

NaoStiffnessConfigDialog::NaoStiffnessConfigDialog ( BaseObjectType *  cobject,
const Glib::RefPtr< Gnome::Glade::Xml > &  ref_xml 
)

Constructor.

Allows to construct a dialog by means of get_widget_derived(...).

Parameters:
cobject base object pointer
ref_xml Glade XML object representing the Glade input file

Definition at line 48 of file naostiffness_config_plugin.cpp.

References on_checkbutton_lock_toggled(), and on_combobox_behaviour_changed().

NaoStiffnessConfigDialog::~NaoStiffnessConfigDialog (  )  [virtual]

Destructor.

Definition at line 90 of file naostiffness_config_plugin.cpp.


Member Function Documentation

string NaoStiffnessConfigDialog::get_cur_behaviour (  )  [virtual]

Return currently selected behaviour.

Returns:
a string representing the selected behaviour

Definition at line 232 of file naostiffness_config_plugin.cpp.

bool NaoStiffnessConfigDialog::get_save_default (  )  [virtual]

Return whether default checkbox is checked.

Returns:
true if default is checked

Definition at line 240 of file naostiffness_config_plugin.cpp.

void NaoStiffnessConfigDialog::get_stiffnesses ( nao_stiffnesses vals  )  [virtual]
void NaoStiffnessConfigDialog::on_checkbutton_lock_toggled (  )  [virtual]

Lock checkbox toggled handler.

Definition at line 170 of file naostiffness_config_plugin.cpp.

Referenced by NaoStiffnessConfigDialog().

void NaoStiffnessConfigDialog::on_combobox_behaviour_changed (  )  [virtual]

Behaviour combobox changed handler.

Definition at line 223 of file naostiffness_config_plugin.cpp.

Referenced by NaoStiffnessConfigDialog().

void NaoStiffnessConfigDialog::set_load_vals ( sigc::slot< void >  cb  )  [virtual]

Set the callback function for loading values in the plugin.

Config is not accessible in the dialog, so it has to be done there.

Parameters:
cb the callback

Definition at line 249 of file naostiffness_config_plugin.cpp.

Referenced by NaoStiffnessConfigPlugin::load_dialog().

void NaoStiffnessConfigDialog::set_stiffnesses ( const nao_stiffnesses vals  )  [virtual]

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

Generated on 1 Mar 2011 for Fawkes API by  doxygen 1.6.1