|
Dillo v3.2.0-93-g6a586845
|
Handles HTML form data. More...
#include <form.hh>
Classes | |
| class | CheckButtonResourceDecorator |
| Decorates instances of dw::core::ui::CheckButtonResource. More... | |
| class | FormActivateReceiver |
| class | FormClickedReceiver |
| class | RadioButtonResourceDecorator |
| Decorates instances of dw::core::ui::RadioButtonResource. More... | |
| class | ResourceDecorator |
| Decorates instances of dw::core::ui::Resource. More... | |
| class | SelectionResourceDecorator |
| Decorates instances of dw::core::ui::SelectionResource. More... | |
| class | TextResourceDecorator |
| Decorates instances of dw::core::ui::TextResource. More... | |
Public Member Functions | |
| Form () | |
| ~Form () | |
| void | addTextResource (const char *name, dw::core::ui::TextResource *resource) |
| Adds an instance of dw::core::ui::TextResource. | |
| void | addRadioButtonResource (const char *name, dw::core::ui::RadioButtonResource *resource, const char **values) |
| Adds an instance of dw::core::ui::RadioButtonResource. | |
| void | addCheckButtonResource (const char *name, dw::core::ui::CheckButtonResource *resource) |
| Adds an instance of dw::core::ui::CheckButtonResource. | |
| void | addSelectionResource (const char *name, dw::core::ui::SelectionResource *resource, const char **values) |
| Adds an instance of dw::core::ui::SelectionResource. | |
| void | addButtonResource (const char *name, dw::core::ui::ButtonResource *resource, const char *value) |
| void | send (const char *buttonName, const char *buttonValue, int x, int y) |
Private Attributes | |
| lout::container::typed::List< ResourceDecorator > * | resources |
| FormActivateReceiver * | activateReceiver |
| lout::container::typed::List< FormClickedReceiver > * | clickedReceivers |
Handles HTML form data.
Add resources by calling the respective add...Resource method. Furthermore, this class implements dw::core::ui::ButtonResource::ClickedReceiver, the form data is printed to stdout, when the "clicked" signal is received.
| form::Form::Form | ( | ) |
Definition at line 173 of file form.cc.
References activateReceiver, clickedReceivers, and resources.
| form::Form::~Form | ( | ) |
Definition at line 181 of file form.cc.
References activateReceiver, clickedReceivers, and resources.
| void form::Form::addButtonResource | ( | const char * | name, |
| dw::core::ui::ButtonResource * | resource, | ||
| const char * | value | ||
| ) |
Definition at line 236 of file form.cc.
References clickedReceivers, and dw::core::ui::Resource::connectClicked().
| void form::Form::addCheckButtonResource | ( | const char * | name, |
| dw::core::ui::CheckButtonResource * | resource | ||
| ) |
Adds an instance of dw::core::ui::CheckButtonResource.
Definition at line 215 of file form.cc.
References activateReceiver, dw::core::ui::Resource::connectActivate(), and resources.
| void form::Form::addRadioButtonResource | ( | const char * | name, |
| dw::core::ui::RadioButtonResource * | resource, | ||
| const char ** | values | ||
| ) |
Adds an instance of dw::core::ui::RadioButtonResource.
This method has to be called only once for a group of radio buttons.
Definition at line 203 of file form.cc.
References activateReceiver, dw::core::ui::Resource::connectActivate(), and resources.
| void form::Form::addSelectionResource | ( | const char * | name, |
| dw::core::ui::SelectionResource * | resource, | ||
| const char ** | values | ||
| ) |
Adds an instance of dw::core::ui::SelectionResource.
Definition at line 225 of file form.cc.
References activateReceiver, dw::core::ui::Resource::connectActivate(), and resources.
| void form::Form::addTextResource | ( | const char * | name, |
| dw::core::ui::TextResource * | resource | ||
| ) |
Adds an instance of dw::core::ui::TextResource.
Definition at line 191 of file form.cc.
References activateReceiver, dw::core::ui::Resource::connectActivate(), and resources.
| void form::Form::send | ( | const char * | buttonName, |
| const char * | buttonValue, | ||
| int | x, | ||
| int | y | ||
| ) |
Definition at line 249 of file form.cc.
References form::Form::ResourceDecorator::getName(), form::Form::ResourceDecorator::getValue(), and resources.
|
private |
Definition at line 138 of file form.hh.
Referenced by addCheckButtonResource(), addRadioButtonResource(), addSelectionResource(), addTextResource(), Form(), and ~Form().
|
private |
Definition at line 139 of file form.hh.
Referenced by addButtonResource(), Form(), and ~Form().
|
private |
Definition at line 137 of file form.hh.
Referenced by addCheckButtonResource(), addRadioButtonResource(), addSelectionResource(), addTextResource(), Form(), send(), and ~Form().