#include "FormExample.h"
#include "Form.h"
#include <Wt/WApplication.h>
#include <Wt/WText.h>
#include <Wt/WStringUtil.h>
Go to the source code of this file.
|
std::unique_ptr< WApplication > | createApplication (const WEnvironment &env) |
|
int | main (int argc, char **argv) |
|
◆ createApplication()
std::unique_ptr<WApplication> createApplication |
( |
const WEnvironment & |
env | ) |
|
Definition at line 67 of file FormExample.C.
69 std::unique_ptr<WApplication> app
70 = std::make_unique<WApplication>(env);
71 app->messageResourceBundle().use(WApplication::appRoot() +
"form-example");
72 app->setTitle(
"Form example");
74 app->root()->addWidget(std::make_unique<FormExample>());
76 WCssDecorationStyle langStyle;
77 langStyle.font().setSize(FontSize::Smaller);
78 langStyle.setCursor(Cursor::PointingHand);
79 langStyle.setForegroundColor(WColor(
"blue"));
80 langStyle.setTextDecoration(TextDecoration::Underline);
81 app->styleSheet().addRule(
".lang", langStyle);
83 langStyle.setCursor(Cursor::Arrow);
84 langStyle.font().setWeight(FontWeight::Bold);
85 app->styleSheet().addRule(
".langcurrent", langStyle);
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |