Dillo
|
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. More... | |
void | addRadioButtonResource (const char *name, dw::core::ui::RadioButtonResource *resource, const char **values) |
Adds an instance of dw::core::ui::RadioButtonResource. More... | |
void | addCheckButtonResource (const char *name, dw::core::ui::CheckButtonResource *resource) |
Adds an instance of dw::core::ui::CheckButtonResource. More... | |
void | addSelectionResource (const char *name, dw::core::ui::SelectionResource *resource, const char **values) |
Adds an instance of dw::core::ui::SelectionResource. More... | |
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. Furtermore, this class impelements dw::core::ui::ButtonResource::ClickedReceiver, the form data is printed to stdout, when the "clicked" signal is received.
form::Form::Form | ( | ) |
References activateReceiver, clickedReceivers, and resources.
form::Form::~Form | ( | ) |
References activateReceiver, clickedReceivers, and resources.
void form::Form::addButtonResource | ( | const char * | name, |
dw::core::ui::ButtonResource * | resource, | ||
const char * | value | ||
) |
References clickedReceivers, and dw::core::ui::Resource::connectClicked().
Referenced by main().
void form::Form::addCheckButtonResource | ( | const char * | name, |
dw::core::ui::CheckButtonResource * | resource | ||
) |
Adds an instance of dw::core::ui::CheckButtonResource.
References activateReceiver, dw::core::ui::Resource::connectActivate(), and resources.
Referenced by main().
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.
References activateReceiver, dw::core::ui::Resource::connectActivate(), and resources.
Referenced by main().
void form::Form::addSelectionResource | ( | const char * | name, |
dw::core::ui::SelectionResource * | resource, | ||
const char ** | values | ||
) |
Adds an instance of dw::core::ui::SelectionResource.
References activateReceiver, dw::core::ui::Resource::connectActivate(), and resources.
Referenced by main().
void form::Form::addTextResource | ( | const char * | name, |
dw::core::ui::TextResource * | resource | ||
) |
Adds an instance of dw::core::ui::TextResource.
References activateReceiver, dw::core::ui::Resource::connectActivate(), and resources.
Referenced by main().
void form::Form::send | ( | const char * | buttonName, |
const char * | buttonValue, | ||
int | x, | ||
int | y | ||
) |
References form::Form::ResourceDecorator::getName(), form::Form::ResourceDecorator::getValue(), and resources.
|
private |
Referenced by addCheckButtonResource(), addRadioButtonResource(), addSelectionResource(), addTextResource(), Form(), and ~Form().
|
private |
Referenced by addButtonResource(), Form(), and ~Form().
|
private |
Referenced by addCheckButtonResource(), addRadioButtonResource(), addSelectionResource(), addTextResource(), Form(), send(), and ~Form().