Fawkes API
Fawkes Development Version
|
Config editor plugin for the Nao joint stiffness values. More...
#include <naostiffness_config_plugin.h>
Public Member Functions | |
NaoStiffnessConfigPlugin (std::string ui_path) | |
Constructor. | |
virtual | ~NaoStiffnessConfigPlugin () |
Destructor. | |
![]() | |
ConfigEditorPlugin (std::string config_path, std::string ui_file) | |
Constructor. | |
virtual | ~ConfigEditorPlugin () |
Destructor. | |
void | initialize () |
Initialize the plugin. | |
void | run () |
Run the plugin. | |
std::string | get_config_path () const |
Get the config prefix specified for this config editor plugin. | |
void | set_config (fawkes::Configuration *config) |
Set the configuration for the plugin to work on. |
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. |
Additional Inherited Members | |
![]() | |
Gtk::Dialog * | m_dialog |
The (main-) dialog of the plugin. | |
Glib::RefPtr< Gtk::Builder > | m_builder |
Gtk Builder created from the UI file of the plugin. | |
std::string | m_config_path |
The config prefix the plugin is attached to. | |
fawkes::Configuration * | m_config |
The fawkes::Configuration. |
Config editor plugin for the Nao joint stiffness values.
Definition at line 115 of file naostiffness_config_plugin.h.
NaoStiffnessConfigPlugin::NaoStiffnessConfigPlugin | ( | std::string | ui_path | ) |
Constructor.
ui_path | path to the UI file for the plugin's dialog |
Definition at line 263 of file naostiffness_config_plugin.cpp.
|
virtual |
Destructor.
Definition at line 269 of file naostiffness_config_plugin.cpp.
|
protectedvirtual |
In this function the (custom) dialog of the plugin needs to be initialized.
Implements ConfigEditorPlugin.
Definition at line 415 of file naostiffness_config_plugin.cpp.
References ConfigEditorPlugin::m_builder, and NaoStiffnessConfigDialog::set_load_vals().
|
protectedvirtual |
This method is called after the dialog is closed.
Here, the input the user has made needs to be handled.
response | the response obtained from the run() method of the dialog (Gtk::RESPONSE_OK or Gtk::RESPONSE_CANCEL) |
Implements ConfigEditorPlugin.
Definition at line 396 of file naostiffness_config_plugin.cpp.
|
protectedvirtual |
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 390 of file naostiffness_config_plugin.cpp.