Wt examples
3.7.1
public-git
wt
examples
form
Form.h
Go to the documentation of this file.
1
// This may look like C code, but it's really -*- C++ -*-
2
/*
3
* Copyright (C) 2008 Emweb bv, Herent, Belgium.
4
*
5
* See the LICENSE file for terms of use.
6
*/
7
8
#ifndef FORM_H_
9
#define FORM_H_
10
11
#include <Wt/WTable>
12
13
using namespace
Wt
;
14
15
namespace
Wt
{
16
class
WContainerWidget
;
17
class
WText
;
18
class
WTextArea
;
19
class
WLineEdit
;
20
class
WComboBox
;
21
class
WFormWidget
;
22
class
WDatePicker
;
23
}
24
29
35
class
Form
:
public
WTable
36
{
37
public
:
40
Form
(
WContainerWidget
*parent = 0);
41
42
private
:
45
void
countryChanged();
46
49
void
submit();
50
51
void
createUI();
52
53
WContainerWidget
*
feedbackMessages_
;
54
55
WLineEdit
*
nameEdit_
;
56
WLineEdit
*
firstNameEdit_
;
57
58
WComboBox
*
countryEdit_
;
59
WComboBox
*
cityEdit_
;
60
61
WDateEdit
*
birthDateEdit_
;
62
WLineEdit
*
childCountEdit_
;
63
WLineEdit
*
weightEdit_
;
64
65
WTextArea
*
remarksEdit_
;
66
69
void
addValidationStatus(
int
row,
WFormWidget
*
field
);
70
73
bool
validate();
74
80
bool
checkValid(
WFormWidget
*edit,
const
WString
& text);
81
};
82
85
#endif // FORM_H_
Wt::WDatePicker
Form::weightEdit_
WLineEdit * weightEdit_
Definition:
Form.h:63
Wt::WFormWidget
Form
A simple Form.
Definition:
Form.h:35
Wt::WText
Wt::WDateEdit
Form::firstNameEdit_
WLineEdit * firstNameEdit_
Definition:
Form.h:56
Wt::WLineEdit
Wt::WString
Form::countryEdit_
WComboBox * countryEdit_
Definition:
Form.h:58
Wt::WTextArea
Form::feedbackMessages_
WContainerWidget * feedbackMessages_
Definition:
Form.h:53
Wt::Dbo::field
void field(Action &action, V &value, const std::string &name, int size=-1)
Form::childCountEdit_
WLineEdit * childCountEdit_
Definition:
Form.h:62
Wt
Wt::WComboBox
Wt::WTable
Wt::WContainerWidget
Form::cityEdit_
WComboBox * cityEdit_
Definition:
Form.h:59
Form::remarksEdit_
WTextArea * remarksEdit_
Definition:
Form.h:65
Form::birthDateEdit_
WDateEdit * birthDateEdit_
Definition:
Form.h:61
Form::nameEdit_
WLineEdit * nameEdit_
Definition:
Form.h:55
Generated on Tue Dec 15 2020 for
the C++ Web Toolkit (Wt)
by
1.8.13