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