#include <dataform.h>
Inherits DataFormBase.
Inheritance diagram for DataForm:
Public Types | |
enum | DataFormType { FORM_TYPE_FORM, FORM_TYPE_SUBMIT, FORM_TYPE_CANCEL, FORM_TYPE_RESULT, FORM_TYPE_INVALID } |
Public Member Functions | |
DataForm (DataFormType type, const StringList &instructions, const std::string &title="") | |
DataForm (Tag *tag) | |
virtual | ~DataForm () |
Tag * | tag () |
const std::string & | title () const |
void | setTitle (const std::string &title) |
const StringList & | instructions () const |
void | setInstructions (const StringList &instructions) |
Definition at line 34 of file dataform.h.
|
Describes the possible Form Types.
Definition at line 40 of file dataform.h. |
|
Constructs a new, empty form.
Definition at line 21 of file dataform.cpp. |
|
Constructs a new DataForm from an existing Tag/XML representation.
Definition at line 26 of file dataform.cpp. References Tag::children(), DataForm::FORM_TYPE_CANCEL, DataForm::FORM_TYPE_FORM, DataForm::FORM_TYPE_RESULT, DataForm::FORM_TYPE_SUBMIT, Tag::hasAttribute(), DataFormBase::m_fields, Tag::name(), and DataForm::tag(). |
|
Virtual destructor. Definition at line 59 of file dataform.cpp. |
|
Retrieves the natural-language instructions for the form.
Definition at line 98 of file dataform.h. |
|
Use this function to set natural-language instructions for the form.
Definition at line 107 of file dataform.h. |
|
Use this function to set the title of the form.
Definition at line 92 of file dataform.h. |
|
Use this function to create a Tag representation of the form.
Definition at line 63 of file dataform.cpp. References Tag::addAttrib(), Tag::addChild(), and DataForm::FORM_TYPE_INVALID. Referenced by DataForm::DataForm(). |
|
Use this function to retrieve the title of the form.
Definition at line 85 of file dataform.h. |