13 #include <boost/filesystem.hpp>
22 #include <Wt/WDateTime>
23 #include <Wt/WStandardItemModel>
25 #include <gdcore/gdCore.h>
27 #include <gdwtcore/gdWTextDelegate.h>
33 #include <WsModule/WsModule.h>
44 void* hndl = dlopen(
"libwt.so", RTLD_NOW | RTLD_GLOBAL);
46 fprintf(stderr,
"cannot load wt.so shared library! %s\n", dlerror());
55 wApp->messageResourceBundle().use(wApp->docRoot() + wApp->resourcesUrl() +
"WsModLatestNews2/Transl/WsModLatestNews2");
70 ln2->addStyleClass(
"WsModLatestNews2");
92 return "WsModLatestNews2 wittyShare module";
WsEditorWidget * createEditor(Wt::WContainerWidget *parent=0) const
Create the contents for an editor (create a view of options).
const std::vector< WsOption > & options() const
Get all options.
Wt::WWidget * createContents(Wt::WContainerWidget *parent=0) const
Create the contents.
std::string description() const
Return the description of the module.
Wt::WWidget * createContentsMenuBar(Wt::WContainerWidget *parent=0) const
Create the functionalities.
Wt::WWidget * createAdmin(Wt::WContainerWidget *parent=0) const
Create the contents for an administrator.
void setOptions(const std::vector< WsOption > &vOptions)
Set all options.
void WsModLatestNews2Init(void)