Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WsModDirectoryView2.h
Go to the documentation of this file.
1 /*
2  *
3  * Filename: WsModDirectoryView2.h
4  *
5  * Description: WsLatestNews with a Wt WTable Wittyshare plugin
6  *
7  * Created: 05/01/2013 13:37:00
8  *
9  * Author: Guy Deleeuw : guy.deleeuw@gmail.com
10  *
11  */
12 #ifndef __WsModDirectoryView2__H_
13 #define __WsModDirectoryView2__H_
14 
15 #include <Wt/WContainerWidget>
16 #include <Wt/WTableView>
17 
18 #include <Main/WsApplication.h>
19 
20 class WsDirectoryItem : public Wt::WStandardItem {
21 public :
23  WsDirectoryItem(const Wt::WString& text);
24  void setNode(NodePtr pNode);
25  NodePtr node();
26 
27 private :
29 };
30 
31 class WsDirectoryView2 : public Wt::WTableView, public WsOptions {
32 public :
33  WsDirectoryView2(Wt::WContainerWidget* parent = 0);
35  virtual void load();
36 
37 public slots:
39 };
40 
41 
42 
43 
44 class WsModDirectoryView2 : public WsModule {
45 public :
48  Wt::WWidget* createContentsMenuBar(Wt::WContainerWidget* parent = 0) const;
49  Wt::WWidget* createContents(Wt::WContainerWidget* parent = 0) const;
50  WsEditorWidget* createEditor(Wt::WContainerWidget* parent = 0) const;
51  Wt::WWidget* createAdmin(Wt::WContainerWidget* parent = 0) const;
52  std::string description() const;
53 };
54 
55 extern "C" {
56  void WsModDirectoryView2Init(void) __attribute__((constructor));
57 
59  {
60  return new WsModDirectoryView2();
61  }
62 }
63 
64 #endif // __WsModDirectoryView2__H_
65 
boost::shared_ptr< WsAbstractNode > NodePtr
void setNode(NodePtr pNode)
void WsModDirectoryView2Init(void) __attribute__((constructor))
WsEditorWidget * createEditor(Wt::WContainerWidget *parent=0) const
Create the contents for an editor (create a view of options).
WsDirectoryView2(Wt::WContainerWidget *parent=0)
Wt::WWidget * createContents(Wt::WContainerWidget *parent=0) const
Create the contents.
Wt::WWidget * createAdmin(Wt::WContainerWidget *parent=0) const
Create the contents for an administrator.
Wt::WWidget * createContentsMenuBar(Wt::WContainerWidget *parent=0) const
Create the functionalities.
WsModDirectoryView2 * buildModule()
std::string description() const
Return the description of the module.