Wt examples
3.2.3
|
00001 #include <Wt/WApplication> 00002 #include <Wt/WText> 00003 00004 #include "DragExample.h" 00005 00006 using namespace Wt; 00007 00008 WApplication *createApplication(const WEnvironment& env) 00009 { 00010 WApplication *app = new WApplication(env); 00011 app->setTitle("Drag & drop"); 00012 00013 app->root()->setStyleClass("root"); 00014 00015 new WText("<h1>Wt Drag & drop example.</h1>", app->root()); 00016 00017 new DragExample(app->root()); 00018 00019 app->useStyleSheet("dragdrop.css"); 00020 00021 return app; 00022 } 00023 00024 int main(int argc, char **argv) 00025 { 00026 return WRun(argc, argv, &createApplication); 00027 } 00028