PeriDyno 1.0.0
Loading...
Searching...
No Matches
WBoolFieldWidget.h
Go to the documentation of this file.
1#pragma once
2#include <Wt/WContainerWidget.h>
3#include <Wt/WCheckBox.h>
4
5#include <Field.h>
7
8class WBoolFieldWidget : public Wt::WContainerWidget
9{
10public:
13
14 static Wt::WContainerWidget* WBoolFieldWidgetConstructor(dyno::FBase* field)
15 {
16 return new WBoolFieldWidget(field);
17 };
18
19
20 void setValue(dyno::FBase*);
21
22 //Called when the widget is updated
23 void updateField();
24
25 Wt::Signal<int>& changeValue()
26 {
27 return changeValue_;
28 }
29
30private:
32 Wt::WHBoxLayout* layout;
33 Wt::WCheckBox* checkbox;
34 Wt::Signal<int> changeValue_;
35};
void setValue(dyno::FBase *)
static Wt::WContainerWidget * WBoolFieldWidgetConstructor(dyno::FBase *field)
Wt::Signal< int > & changeValue()
dyno::FBase * mfield
Wt::WHBoxLayout * layout
Wt::WCheckBox * checkbox
WBoolFieldWidget(dyno::FBase *)
Wt::Signal< int > changeValue_