NaoStiffnessConfigPlugin Class Reference

Config editor plugin for the Nao joint stiffness values. More...

#include <naostiffness_config_plugin.h>

Inheritance diagram for NaoStiffnessConfigPlugin:

List of all members.


Public Member Functions

 NaoStiffnessConfigPlugin (std::string glade_path)
 Constructor.
virtual ~NaoStiffnessConfigPlugin ()
 Destructor.

Protected Member Functions

virtual void pre_run ()
 Config editor plugins need to implement this function.
virtual void post_run (int response)
 This method is called after the dialog is closed.
virtual Gtk::Dialog * load_dialog ()
 In this function the (custom) dialog of the plugin needs to be initialized.

Detailed Description

Config editor plugin for the Nao joint stiffness values.

Author:
Tobias Kellner

Definition at line 116 of file naostiffness_config_plugin.h.


Constructor & Destructor Documentation

NaoStiffnessConfigPlugin::NaoStiffnessConfigPlugin ( std::string  glade_path  ) 

Constructor.

Parameters:
glade_path path to the Glade file for the plugin's dialog

Definition at line 264 of file naostiffness_config_plugin.cpp.

NaoStiffnessConfigPlugin::~NaoStiffnessConfigPlugin (  )  [virtual]

Destructor.

Definition at line 270 of file naostiffness_config_plugin.cpp.


Member Function Documentation

Gtk::Dialog * NaoStiffnessConfigPlugin::load_dialog (  )  [protected, virtual]

In this function the (custom) dialog of the plugin needs to be initialized.

Returns:
pointer to the loaded dialog

Implements ConfigEditorPlugin.

Definition at line 416 of file naostiffness_config_plugin.cpp.

References ConfigEditorPlugin::m_ref_xml, and NaoStiffnessConfigDialog::set_load_vals().

void NaoStiffnessConfigPlugin::post_run ( int  response  )  [protected, virtual]

This method is called after the dialog is closed.

Here, the input the user has made needs to be handled.

Parameters:
response the response obtained from the run() method of the dialog (Gtk::RESPONSE_OK or Gtk::RESPONSE_CANCEL)

Implements ConfigEditorPlugin.

Definition at line 397 of file naostiffness_config_plugin.cpp.

void NaoStiffnessConfigPlugin::pre_run (  )  [protected, virtual]

Config editor plugins need to implement this function.

It is called before the actual dialog is opened. Ususally, plugins want to parse the configuration, here, and initialize the GUI elements of the dialog.

Implements ConfigEditorPlugin.

Definition at line 391 of file naostiffness_config_plugin.cpp.


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