/usr/lib/Wt/examples/dragdrop/DragApplication.C is in witty-examples 3.3.0-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #include <Wt/WApplication>
#include <Wt/WText>
#include "DragExample.h"
using namespace Wt;
WApplication *createApplication(const WEnvironment& env)
{
WApplication *app = new WApplication(env);
app->setTitle("Drag & drop");
app->root()->setStyleClass("root");
new WText("<h1>Wt Drag & drop example.</h1>", app->root());
new DragExample(app->root());
app->useStyleSheet("dragdrop.css");
return app;
}
int main(int argc, char **argv)
{
return WRun(argc, argv, &createApplication);
}
|