Wt examples  3.3.0
Functions
ComposeExample.C File Reference
#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

WApplicationcreateApplication (const WEnvironment &env)
 
int main (int argc, char **argv)
 

Function Documentation

WApplication* createApplication ( const WEnvironment env)

Definition at line 141 of file ComposeExample.C.

142 {
143  WApplication *app = new WApplication(env);
144 
145  // The following assumes composer.xml is in the webserver working directory
146  // (but does not need to be deployed within docroot):
147  app->messageResourceBundle().use(WApplication::appRoot() + "composer");
148 
149  // The following assumes composer.css is deployed in the seb server at the
150  // same location as the application:
151  app->useStyleSheet("composer.css");
152 
153  app->setTitle("Composer example");
154 
155  app->root()->addWidget(new ComposeExample());
156 
157  return app;
158 }
int main ( int  argc,
char **  argv 
)

Definition at line 160 of file ComposeExample.C.

161 {
162  return WRun(argc, argv, &createApplication);
163 }

Generated on Fri May 31 2013 for the C++ Web Toolkit (Wt) by doxygen 1.8.3.1