Dillo v3.1.1-46-g8a360e32
Loading...
Searching...
No Matches
form::Form Class Reference

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
 
FormActivateReceiveractivateReceiver
 
lout::container::typed::List< FormClickedReceiver > * clickedReceivers
 

Detailed Description

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.

Todo:
wrong comment

Definition at line 18 of file form.hh.

Constructor & Destructor Documentation

◆ Form()

form::Form::Form ( )

Definition at line 173 of file form.cc.

References activateReceiver, clickedReceivers, and resources.

◆ ~Form()

form::Form::~Form ( )

Definition at line 181 of file form.cc.

References activateReceiver, clickedReceivers, and resources.

Member Function Documentation

◆ addButtonResource()

void form::Form::addButtonResource ( const char *  name,
dw::core::ui::ButtonResource resource,
const char *  value 
)
Todo:
Comment this;

Definition at line 236 of file form.cc.

References clickedReceivers, and dw::core::ui::Resource::connectClicked().

◆ addCheckButtonResource()

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.

◆ addRadioButtonResource()

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.

◆ addSelectionResource()

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.

◆ addTextResource()

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.

◆ send()

void form::Form::send ( const char *  buttonName,
const char *  buttonValue,
int  x,
int  y 
)

Member Data Documentation

◆ activateReceiver

FormActivateReceiver* form::Form::activateReceiver
private

◆ clickedReceivers

lout::container::typed::List<FormClickedReceiver>* form::Form::clickedReceivers
private

Definition at line 139 of file form.hh.

Referenced by addButtonResource(), Form(), and ~Form().

◆ resources


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