Project

General

Profile

Bug #2075 » inform.cpp

Koen Deforche, 07/31/2013 12:29 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-formx");
new WDateEdit(c);
}

void foo() {
}
};

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

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

(1-1/2)