Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WsFormConfig.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 _WsFormConfig_H_
8 #define _WsFormConfig_H_
9 
10 #include <User/WsUser.h>
12 
13 #include <Wt/WContainerWidget>
14 #include <Wt/WDatePicker>
15 #include <Wt/WLineEdit>
16 #include <Wt/WCheckBox>
17 #include <Wt/WComboBox>
18 
19 #include <Wt/WDate>
20 #include <Wt/WTime>
21 #include <Wt/WDateTime>
22 #include <Wt/WTimer>
23 
24 #include <gdwtcore/gdFHtmlEditor.h>
25 
26 #include "WsModulesLoader.h"
27 
28 class WsFormConfig : public Wt::WContainerWidget {
29 public :
30  WsFormConfig(NodePtr pNode, WsModulesLoader& rMl, Wt::WContainerWidget* parent = 0);
31  ~WsFormConfig();
32  void setEditorFhtml(gdFHtmlEditor* pFhtmlEditor);
33 
34 public slots :
35  void doCancel();
36  void doSave();
37  void doLock();
38  void doLockEnd();
39  void doUpdateTimerLock();
40 
41 private :
44  std::vector<WsEditorWidget*> m_vEditorWidget;
45  Wt::WLineEdit* m_pName;
46  Wt::WLineEdit* m_pInitPage;
47  Wt::WLineEdit* m_pDisplayName;
48  Wt::WLineEdit* m_pAuthor;
49  Wt::WDatePicker* m_pDatePicker;
50  gdFHtmlEditor* m_pShortDescEditor;
51  Wt::WTextArea* m_pShortDescTextArea;
52  Wt::WCheckBox* m_pCBInMenu;
53  Wt::WCheckBox* m_pCBInView;
54  Wt::WCheckBox* m_pCBSort;
55  gdFHtmlEditor* m_pFhtmlEditor;
56  Wt::WLineEdit* m_pSortNumber;
57  Wt::WCheckBox* m_pCBInheritRights;
58  Wt::WComboBox* m_pCBBTemplates;
59  Wt::WPushButton* m_pSave;
60  Wt::WPushButton* m_pLock;
61  Wt::WTimer* m_pTimer;
62  Wt::WTimer* m_pTimerTick;
64 
65 
66  // Initial values
67  Wt::WDateTime m_wDateTime;
68  std::string m_sName;
69  std::string m_sInitPage;
70  std::string m_sDisplayName;
71  std::string m_sAuthor;
72  std::string m_sTemplate;
73  bool m_binMenu;
74  bool m_binView;
75  std::string m_sShortDesc;
76  bool m_bSort;
80 };
81 
82 #endif // ifdef _WsFormConfig_H_
83 
void setEditorFhtml(gdFHtmlEditor *pFhtmlEditor)
Wt::WLineEdit * m_pAuthor
Definition: WsFormConfig.h:48
boost::shared_ptr< WsAbstractNode > NodePtr
std::vector< WsEditorWidget * > m_vEditorWidget
Definition: WsFormConfig.h:44
std::string m_sShortDesc
Definition: WsFormConfig.h:75
std::string m_sTemplate
Definition: WsFormConfig.h:72
Wt::WCheckBox * m_pCBInMenu
Definition: WsFormConfig.h:52
bool m_bInheritRights
Definition: WsFormConfig.h:78
std::string m_sDisplayName
Definition: WsFormConfig.h:70
Wt::WDateTime m_wDateTime
Definition: WsFormConfig.h:67
Wt::WTimer * m_pTimer
Definition: WsFormConfig.h:61
int m_timeLockLeft
Definition: WsFormConfig.h:63
NodePtr m_pNode
Definition: WsFormConfig.h:42
bool m_bUseTextArea
Definition: WsFormConfig.h:79
std::string m_sName
Definition: WsFormConfig.h:68
Wt::WTimer * m_pTimerTick
Definition: WsFormConfig.h:62
Wt::WCheckBox * m_pCBInView
Definition: WsFormConfig.h:53
std::string m_sAuthor
Definition: WsFormConfig.h:71
Wt::WLineEdit * m_pName
Definition: WsFormConfig.h:45
WsModulesLoader & m_ml
Definition: WsFormConfig.h:43
Wt::WCheckBox * m_pCBSort
Definition: WsFormConfig.h:54
Wt::WTextArea * m_pShortDescTextArea
Definition: WsFormConfig.h:51
void doUpdateTimerLock()
Wt::WLineEdit * m_pInitPage
Definition: WsFormConfig.h:46
Wt::WPushButton * m_pSave
Definition: WsFormConfig.h:59
std::string m_sInitPage
Definition: WsFormConfig.h:69
Wt::WCheckBox * m_pCBInheritRights
Definition: WsFormConfig.h:57
gdFHtmlEditor * m_pShortDescEditor
Definition: WsFormConfig.h:50
gdFHtmlEditor * m_pFhtmlEditor
Definition: WsFormConfig.h:55
Wt::WDatePicker * m_pDatePicker
Definition: WsFormConfig.h:49
long m_lSortNumber
Definition: WsFormConfig.h:77
Wt::WComboBox * m_pCBBTemplates
Definition: WsFormConfig.h:58
Wt::WLineEdit * m_pDisplayName
Definition: WsFormConfig.h:47
Wt::WPushButton * m_pLock
Definition: WsFormConfig.h:60
User class.
WsFormConfig(NodePtr pNode, WsModulesLoader &rMl, Wt::WContainerWidget *parent=0)
Wt::WLineEdit * m_pSortNumber
Definition: WsFormConfig.h:56