A simple
Form.
More...
#include <Form.h>
List of all members.
Detailed Description
A simple
Form.
Shows how a simple form can made, with an emphasis on how to handle validation.
Definition at line 34 of file Form.h.
Constructor & Destructor Documentation
Instantiate a new form.
Definition at line 20 of file Form.C.
Member Function Documentation
void Form::countryChanged |
( |
|
) |
[private, slot] |
The user selected a new country: adjust the cities combo box.
Definition at line 131 of file Form.C.
void Form::submit |
( |
|
) |
[private, slot] |
Submit the form.
Definition at line 199 of file Form.C.
void Form::createUI |
( |
|
) |
[private] |
void Form::addValidationStatus |
( |
int |
row, |
|
|
WFormWidget * |
field | |
|
) |
| | [private] |
Add a validation feedback for a field.
bool Form::validate |
( |
|
) |
[private] |
Validate the form, and return whether succesfull.
Definition at line 182 of file Form.C.
bool Form::checkValid |
( |
WFormWidget * |
edit, |
|
|
const WMessage & |
text | |
|
) |
| | [private] |
Validate a single form field.
Checks the given field, and appends the given text to the error messages on problems.
Definition at line 165 of file Form.C.
Member Data Documentation
The documentation for this class was generated from the following files:
- /home/koen/project/wt/cvs/wt/examples/form/Form.h
- /home/koen/project/wt/cvs/wt/examples/form/Form.C