Project

General

Profile

Bug #2075 » inform.cpp

Koen Deforche, 07/31/2013 01:09 PM

 
#include <Wt/WApplication>
#include <Wt/WLabel>
#include <Wt/WDateEdit>
#include <Wt/WPushButton>
#include <Wt/WContainerWidget>
#include <Wt/WBootstrapTheme>
#include <iostream>

using namespace Wt;

class Test : public WApplication
{
public:
Test(const WEnvironment& env)
: WApplication(env)
{
setTheme(new WBootstrapTheme());
useStyleSheet("resources/form.css");

WContainerWidget *c = new WContainerWidget(root());
c->setStyleClass("Wt-form");
WContainerWidget *c2 = new WContainerWidget(c);
c2->setStyleClass("Wt-fields");
new WDateEdit(c2);
}

void foo() {
}
};

WApplication *createApplication(const WEnvironment& env){
return new Test(env);
}

int main(int argc, char *argv[]){
return WRun(argc, argv, createApplication);
}

(2-2/2)