DragApplication.C 511 B

1234567891011121314151617181920212223242526272829
  1. #include <Wt/WApplication>
  2. #include <Wt/WText>
  3. #include "DragExample.h"
  4. using namespace Wt;
  5. WApplication *createApplication(const WEnvironment& env)
  6. {
  7. WApplication *app = new WApplication(env);
  8. app->setTitle("Drag & drop");
  9. app->root()->setStyleClass("root");
  10. new WText("<h1>Wt Drag &amp; drop example.</h1>", app->root());
  11. new DragExample(app->root());
  12. app->useStyleSheet("dragdrop.css");
  13. return app;
  14. }
  15. int main(int argc, char **argv)
  16. {
  17. return WRun(argc, argv, &createApplication);
  18. }