Functions

/tmp/buildd/witty-3.1.2/examples/composer/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.

{
  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("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);
}


Generated on Mon Nov 29 2010 08:03:14 for Wt by doxygen 1.7.1