WIP. Added User form

This commit is contained in:
emeric
2014-07-30 14:32:46 +02:00
parent b2bb2e0be1
commit 1f41f7f481
13 changed files with 695 additions and 39 deletions
+39
View File
@@ -0,0 +1,39 @@
#ifndef UI_SETTINGS_USER_FORM_VIEW_HPP
#define UI_SETTINGS_USER_FORM_VIEW_HPP
#include <Wt/WContainerWidget>
#include <Wt/WTemplateFormView>
#include <Wt/WSignal>
#include "common/SessionData.hpp"
namespace UserInterface {
namespace Settings {
class UserFormModel;
class UserFormView : public Wt::WTemplateFormView
{
public:
UserFormView(SessionData& sessionData, std::string userId, Wt::WContainerWidget *parent = 0);
// Signal emitted once the form is completed
Wt::Signal<bool>& completed() { return _sigCompleted; }
private:
Wt::Signal<bool> _sigCompleted;
SessionData& _sessionData;
void processSave();
void processCancel();
UserFormModel* _model;
};
} // namespace Settings
} // namespace UserInterface
#endif