|
Wt examples
3.3.0
|
#include <Wt/WApplication>#include <Wt/WBreak>#include <Wt/WText>#include <Wt/WPushButton>#include <Wt/WContainerWidget>#include <Wt/WStringUtil>#include <unistd.h>#include "Composer.h"#include "ComposeExample.h"#include "Contact.h"Go to the source code of this file.
Functions | |
| WApplication * | createApplication (const WEnvironment &env) |
| int | main (int argc, char **argv) |
| WApplication* createApplication | ( | const WEnvironment & | env | ) |
Definition at line 141 of file ComposeExample.C.
{
WApplication *app = new WApplication(env);
// The following assumes composer.xml is in the webserver working directory
// (but does not need to be deployed within docroot):
app->messageResourceBundle().use(WApplication::appRoot() + "composer");
// The following assumes composer.css is deployed in the seb server at the
// same location as the application:
app->useStyleSheet("composer.css");
app->setTitle("Composer example");
app->root()->addWidget(new ComposeExample());
return app;
}
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 160 of file ComposeExample.C.
{
return WRun(argc, argv, &createApplication);
}
1.7.5.1