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