Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WsModAnchor.h
Go to the documentation of this file.
1 /*
2 * Copyright (C) 2006-Today Guy Deleeuw
3 *
4 * See the LICENSE file for terms of use.
5 */
6 
7 #ifndef WsModAnchor_H__
8 #define WsModAnchor_H__ 1
9 
10 #include <Wt/WContainerWidget>
11 
12 #include <WsModule/WsModule.h>
13 
14 using namespace Wt;
15 
22 class WsModAnchor : public WsModule {
23 public :
25  WsModAnchor();
26  ~WsModAnchor();
27  Wt::WWidget* createContentsMenuBar(Wt::WContainerWidget* parent = 0) const;
28  Wt::WWidget* createContents(Wt::WContainerWidget* parent = 0) const;
29  WsEditorWidget* createEditor(Wt::WContainerWidget* parent = 0) const;
30  Wt::WWidget* createAdmin(Wt::WContainerWidget* parent = 0) const;
31  std::string description() const;
32 };
33 
34 extern "C" {
35  // http://phoxis.org/2011/04/27/c-language-constructors-and-destructors-with-gcc/
36  void WsModAnchorInit(void) __attribute__((constructor));
37 
39  {
40  return new WsModAnchor();
41  }
42 }
43 
44 #endif // ifndef WsModAnchor_H__
45 
void WsModAnchorInit(void) __attribute__((constructor))
Definition: WsModAnchor.cpp:31
WsModAnchor * buildModule()
Definition: WsModAnchor.h:38